Marine systems simulation
Ship::HullData Class Referenceabstract
+ Inheritance diagram for Ship::HullData:
+ Collaboration diagram for Ship::HullData:

Classes

struct  HullFace
 
struct  HullGeometry
 
struct  MainDimensions
 
struct  Point
 

Public Member Functions

 HullData (std::string &fname)
 
void SetPosition (double n, double e, double d)
 
void SetPosition (const Eigen::Vector3d &vec)
 
void SetRotation (const Eigen::Quaterniond &q)
 
void SetRotation (double w, double x, double y, double z)
 
virtual void ReadHullGeometry (std::string &fname)=0
 
virtual void ReadWaterLine (std::string &fname)=0
 
void CalculateHullSectionData ()
 
void AddStation (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z)
 
void GetStation (int StationNr, std::vector< Eigen::Vector3d > &Out)
 
double GetStationArea (int SectionNr)
 
double GetStationArea (int SectionNr, double T)
 
double GetStationDraught (int SectionNr, double T)
 
double GetStationMaxBredth (int SectionNr, double T)
 
double GetStationBredth (int SectionNr, double T)
 
unsigned int GetNumberOfStations ()
 
int GetStationNr (double DistanceFromZeroStation)
 
double GetStationPosition (int SectionNr)
 
void GetStationLewisData (int SectionNr, double B, double T, double &LewisA1, double &LewisA3, double &LewisScaleFactor)
 
int GetStationSkegPoint (int SectionNr)
 
double GetStationInstentaneousDraught (int SecitonNr)
 
void GetVertexGlobalPosition (int vertex, Eigen::Vector3d &vertexpos)
 
void MakeHull2 ()
 
void AddToHull (std::vector< Eigen::Vector3d > &side1, std::vector< Eigen::Vector3d > side2, bool mirror=true)
 
void SetInterpolationParameters (double HullTop, double HullBottom, double VerticalStep, double HorizontalStep)
 
virtual double GetParam (std::string p)
 

Public Attributes

struct MainDimensions Main
 
struct HullGeometry Geomtery
 

Static Protected Member Functions

static bool CompareSections (struct Section const &lhs, struct Section const &rhs)
 

Protected Attributes

Eigen::Vector3d r
 
Eigen::Quaterniond q
 
double HullBottom
 
double HullTop
 
double HullVerticalStep
 
double HullHorizontalStep
 
std::vector< struct SectionSections
 
std::map< std::string, double > param
 

The documentation for this class was generated from the following file: