Virtual Testbed
Ship dynamics simulator for extreme conditions
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
vtb::db::Hull< T > Class Template Reference
Inheritance diagram for vtb::db::Hull< T >:
[legend]
Collaboration diagram for vtb::db::Hull< T >:
[legend]

Public Types

using vec3 = vtb::core::Vector3< T >
 
using transformation_type = Ship_hull_transformation< T >
 
using clock = std::chrono::system_clock
 
using time_point = clock::time_point
 
using duration = clock::duration
 
using color_type = vec3
 
using polyhedron_type = vtb::geometry::Polyhedron< T >
 
using transformation_array = Transform_sequence< T >
 
using polyhedron_array = std::vector< polyhedron_type >
 
- Public Types inherited from vtb::db::Entity
typedef int64_t id_type
 
typedef std::string string_type
 
typedef const std::stringstring_reference
 

Public Member Functions

 Hull (Hull &&)=default
 
Hulloperator= (Hull &&)=default
 
 Hull (const Hull &)=default
 
Hulloperator= (const Hull &)=default
 
const std::stringauthor () const
 
const std::stringorganisation () const
 
void author (const std::string &rhs)
 
void organisation (const std::string &rhs)
 
void filename (const std::string &filename)
 
const polyhedron_typepolyhedron () const
 
void polyhedron (const polyhedron_type &rhs)
 
void polyhedron (polyhedron_type &&rhs)
 
const vec3 & scale () const
 
void scale (const vec3 &rhs)
 
length () const
 Get overall hull length in metres.
 
beam () const
 Get overall hull width in metres.
 
depth () const
 Get overall hull height in metres.
 
draught () const
 Get vertical the distance between the waterline and the bottom of the hull.
 
void draught (T rhs)
 
void dimensions (T x, T y, T z)
 
void dimensions (const vec3 &v)
 
const transformation_arraytransformations () const
 
const time_point & created () const
 
const time_point & modified () const
 
void created (const time_point &rhs)
 
void modified (const time_point &rhs)
 
const color_type & color () const noexcept
 
void color (const color_type &rhs)
 
void color (T r, T g, T b)
 
std::string file_name_for_export () const
 
bool has_valid_id (sqlite::connection *db) const
 
bool original (sqlite::connection *db) const
 
void insert (sqlite::connection *db)
 
void copy (sqlite::connection *db)
 
void select (sqlite::connection *db)
 
void update (sqlite::connection *db)
 
void save (sqlite::connection *db)
 
void import (std::string filename)
 
void import_original ()
 
void select_blobs (sqlite::connection *db)
 
void update_blobs (sqlite::connection *db)
 
void save_blobs (sqlite::connection *db)
 
void remove (sqlite::connection *db)
 
void clear ()
 
void swap (Hull &rhs)
 
polyhedron_type make_ship_hull (bool transform)
 
void transform (const transformation_type &rhs)
 
void clear_transforms ()
 
void undo ()
 
void redo ()
 
string_reference filename () const
 
- Public Member Functions inherited from vtb::db::Entity
id_type id () const
 
void id (id_type rhs)
 
bool has_id () const
 
const std::stringname () const
 
std::stringname ()
 
void name (const std::string &rhs)
 
string_reference description () const
 
void description (string_reference &rhs)
 
string_reference filename () const
 
const sqlite::blob & file_content () const
 
void clear ()
 
void export_original (std::string filename) const
 

Static Public Member Functions

static std::vector< Hull< T > > all (sqlite::connection *db)
 

Friends

template<class X >
sqlite::statement & operator>> (sqlite::statement &in, Hull< X > &rhs)
 

Additional Inherited Members

- Protected Member Functions inherited from vtb::db::Entity
std::string temporary_filename () const
 
- Protected Attributes inherited from vtb::db::Entity
id_type _id = 0
 
std::string _name
 
std::string _description
 
std::string _filename
 
sqlite::blob _filecontent
 

Detailed Description

template<class T>
class vtb::db::Hull< T >

Definition at line 20 of file db/hull.hh.