3.0.0
tigl::CCPACSFuselage Class Reference

#include <CCPACSFuselage.h>

+ Inheritance diagram for tigl::CCPACSFuselage:

Public Member Functions

TIGL_EXPORT CCPACSFuselage (CCPACSFuselages *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT void CreateNewConnectedElementAfter (std::string startElementUID) override
 
TIGL_EXPORT void CreateNewConnectedElementBefore (std::string startElementUID) override
 
TIGL_EXPORT void CreateNewConnectedElementBetween (std::string startElementUID, std::string endElementUID) override
 
TIGL_EXPORT void DeleteConnectedElement (std::string elementUID) override
 
TIGL_EXPORT std::vector< std::string > GetAllUsedProfiles ()
 
TIGL_EXPORT double GetCircumference (int segmentIndex, double eta)
 
TIGL_EXPORT TiglGeometricComponentIntent GetComponentIntent () const override
 
TIGL_EXPORT TiglGeometricComponentType GetComponentType () const override
 
TIGL_EXPORT CCPACSConfiguration & GetConfiguration () const
 
TIGL_EXPORT std::vector< tigl::CTiglSectionElement * > GetCTiglElements ()
 
TIGL_EXPORT std::string GetDefaultedUID () const override
 
TIGL_EXPORT TiglGetPointBehavior const GetGetPointBehavior () const
 
TIGL_EXPORT TiglGetPointBehavior GetGetPointBehavior ()
 
TIGL_EXPORT std::vector< gp_Pnt > GetGuideCurvePoints () const
 
TIGL_EXPORT CCPACSGuideCurve & GetGuideCurveSegment (std::string uid)
 
TIGL_EXPORT const CCPACSGuideCurve & GetGuideCurveSegment (std::string uid) const
 
TIGL_EXPORT const TopoDS_Compound & GetGuideCurveWires () const
 
TIGL_EXPORT double GetLength ()
 
TIGL_EXPORT PNamedShape GetLoft (TiglCoordinateSystem cs=GLOBAL_COORDINATE_SYSTEM) const
 
TIGL_EXPORT double GetMaximalHeight ()
 
TIGL_EXPORT double GetMaximalWidth ()
 
TIGL_EXPORT gp_Pnt GetMinumumDistanceToGround (gp_Ax1 RAxis, double angle)
 
TIGL_EXPORT CTiglPoint GetNoseCenter ()
 
TIGL_EXPORT std::vector< std::string > GetOrderedConnectedElement () override
 
TIGL_EXPORT gp_Pnt GetPoint (int segmentIndex, double eta, double zeta)
 
TIGL_EXPORT boost::optional< CTiglTransformation > GetPositioningTransformation (const std::string &sectionUID)
 
TIGL_EXPORT CCPACSFuselageSection & GetSection (int index) const
 
TIGL_EXPORT int GetSectionCount () const
 
TIGL_EXPORT CCPACSFuselageSegmentGetSegment (const int index)
 
TIGL_EXPORT const CCPACSFuselageSegmentGetSegment (const int index) const
 
TIGL_EXPORT CCPACSFuselageSegmentGetSegment (std::string uid)
 
TIGL_EXPORT int GetSegmentCount () const
 
TIGL_EXPORT double GetSurfaceArea ()
 
TIGL_EXPORT double GetVolume ()
 
TIGL_EXPORT gp_Lin Intersection (gp_Pnt pRef, double angleRef) const
 
TIGL_EXPORT gp_Lin Intersection (const CCPACSFuselageStringerFramePosition &pos) const
 
TIGL_EXPORT void Invalidate ()
 
TIGL_EXPORT TopoDS_Wire projectConic (TopoDS_Shape wireOrEdge, gp_Pnt origin) const
 
TIGL_EXPORT TopoDS_Wire projectParallel (TopoDS_Shape wireOrEdge, gp_Dir direction) const
 
TIGL_EXPORT void ReadCPACS (const TixiDocumentHandle &tixiHandle, const std::string &fuselageXPath) override
 
TIGL_EXPORT void SetAllProfiles (const std::string &profileUID)
 
TIGL_EXPORT void SetGetPointBehavior (TiglGetPointBehavior behavior=asParameterOnSurface)
 
TIGL_EXPORT void SetLength (double newLength)
 
TIGL_EXPORT void SetMaxHeight (double newMaxHeight)
 
TIGL_EXPORT void SetMaxWidth (double newMaxWidth)
 
TIGL_EXPORT void SetNoseCenter (const CTiglPoint &newCenter)
 
TIGL_EXPORT void SetRotation (const CTiglPoint &newRotation)
 
TIGL_EXPORT ~CCPACSFuselage () override
 

Protected Member Functions

void BuildGuideCurves (TopoDS_Compound &cache) const
 
PNamedShape BuildLoft () const override
 
void Cleanup ()
 
void ConnectGuideCurveSegments ()
 
void SetFaceTraits (PNamedShape loft) const
 
void SetFuselageHelper (CTiglFuselageHelper &cache) const
 

Private Member Functions

std::string GetShortShapeName () const
 

Private Attributes

BRep_Builder aBuilder
 
TopoDS_Compound aCompound
 
CCPACSConfiguration * configuration
 
FusedElementsContainerType fusedElements
 
Cache< CTiglFuselageHelper, CCPACSFuselagefuselageHelper
 
TiglGetPointBehavior getPointBehavior {asParameterOnSurface}
 
Cache< TopoDS_Compound, CCPACSFuselageguideCurves
 
double myVolume
 

Friends

class CCPACSFuselageSegment
 
class CTiglStandardizer
 

Constructor & Destructor Documentation

TIGL_EXPORT tigl::CCPACSFuselage::CCPACSFuselage ( CCPACSFuselages parent,
CTiglUIDManager *  uidMgr 
)
TIGL_EXPORT tigl::CCPACSFuselage::~CCPACSFuselage ( )
override

Member Function Documentation

void tigl::CCPACSFuselage::BuildGuideCurves ( TopoDS_Compound &  cache) const
protected
PNamedShape tigl::CCPACSFuselage::BuildLoft ( ) const
overrideprotected
void tigl::CCPACSFuselage::Cleanup ( )
protected
void tigl::CCPACSFuselage::ConnectGuideCurveSegments ( )
protected
TIGL_EXPORT void tigl::CCPACSFuselage::CreateNewConnectedElementAfter ( std::string  startElementUID)
override

Create a new section, a new element and connect the element to the "startElement". The new element is placed "after" the start element. If there is already a element after the start element, we split the existing segment and insert the new element between the the two elements.

Parameters
startElementUID
TIGL_EXPORT void tigl::CCPACSFuselage::CreateNewConnectedElementBefore ( std::string  startElementUID)
override

Create a new section, a new element and connect the element to the "startElement". The new element is placed "Before" the start element. If there is already a element before the start element, we split the existing segment and insert the new element between the the two elements.

Parameters
startElementUID
TIGL_EXPORT void tigl::CCPACSFuselage::CreateNewConnectedElementBetween ( std::string  startElementUID,
std::string  endElementUID 
)
override

Create a new section, a new element and place the new element between the startElement and the endElement.

Remarks
The startElement and endElement must be connected by a segment.
Parameters
startElementUID
endElementUID
TIGL_EXPORT void tigl::CCPACSFuselage::DeleteConnectedElement ( std::string  elementUID)
override
TIGL_EXPORT std::vector<std::string> tigl::CCPACSFuselage::GetAllUsedProfiles ( )
Returns
Return all the uid of the profiles used by this fuselage
TIGL_EXPORT double tigl::CCPACSFuselage::GetCircumference ( int  segmentIndex,
double  eta 
)
TIGL_EXPORT TiglGeometricComponentIntent tigl::CCPACSFuselage::GetComponentIntent ( ) const
inlineoverride
TIGL_EXPORT TiglGeometricComponentType tigl::CCPACSFuselage::GetComponentType ( ) const
inlineoverride
TIGL_EXPORT CCPACSConfiguration& tigl::CCPACSFuselage::GetConfiguration ( ) const
TIGL_EXPORT std::vector<tigl::CTiglSectionElement*> tigl::CCPACSFuselage::GetCTiglElements ( )
TIGL_EXPORT std::string tigl::CCPACSFuselage::GetDefaultedUID ( ) const
override
TIGL_EXPORT TiglGetPointBehavior const tigl::CCPACSFuselage::GetGetPointBehavior ( ) const
TIGL_EXPORT TiglGetPointBehavior tigl::CCPACSFuselage::GetGetPointBehavior ( )
TIGL_EXPORT std::vector<gp_Pnt> tigl::CCPACSFuselage::GetGuideCurvePoints ( ) const
TIGL_EXPORT CCPACSGuideCurve& tigl::CCPACSFuselage::GetGuideCurveSegment ( std::string  uid)
TIGL_EXPORT const CCPACSGuideCurve& tigl::CCPACSFuselage::GetGuideCurveSegment ( std::string  uid) const
TIGL_EXPORT const TopoDS_Compound& tigl::CCPACSFuselage::GetGuideCurveWires ( ) const
TIGL_EXPORT double tigl::CCPACSFuselage::GetLength ( )
TIGL_EXPORT PNamedShape tigl::CCPACSFuselage::GetLoft ( TiglCoordinateSystem  cs = GLOBAL_COORDINATE_SYSTEM) const
TIGL_EXPORT double tigl::CCPACSFuselage::GetMaximalHeight ( )
TIGL_EXPORT double tigl::CCPACSFuselage::GetMaximalWidth ( )
TIGL_EXPORT gp_Pnt tigl::CCPACSFuselage::GetMinumumDistanceToGround ( gp_Ax1  RAxis,
double  angle 
)
TIGL_EXPORT CTiglPoint tigl::CCPACSFuselage::GetNoseCenter ( )
TIGL_EXPORT std::vector<std::string> tigl::CCPACSFuselage::GetOrderedConnectedElement ( )
override
TIGL_EXPORT gp_Pnt tigl::CCPACSFuselage::GetPoint ( int  segmentIndex,
double  eta,
double  zeta 
)
TIGL_EXPORT boost::optional<CTiglTransformation> tigl::CCPACSFuselage::GetPositioningTransformation ( const std::string &  sectionUID)
TIGL_EXPORT CCPACSFuselageSection& tigl::CCPACSFuselage::GetSection ( int  index) const
TIGL_EXPORT int tigl::CCPACSFuselage::GetSectionCount ( ) const
TIGL_EXPORT CCPACSFuselageSegment& tigl::CCPACSFuselage::GetSegment ( const int  index)
TIGL_EXPORT const CCPACSFuselageSegment& tigl::CCPACSFuselage::GetSegment ( const int  index) const
TIGL_EXPORT CCPACSFuselageSegment& tigl::CCPACSFuselage::GetSegment ( std::string  uid)
TIGL_EXPORT int tigl::CCPACSFuselage::GetSegmentCount ( ) const
std::string tigl::CCPACSFuselage::GetShortShapeName ( ) const
private
TIGL_EXPORT double tigl::CCPACSFuselage::GetSurfaceArea ( )
TIGL_EXPORT double tigl::CCPACSFuselage::GetVolume ( )
TIGL_EXPORT gp_Lin tigl::CCPACSFuselage::Intersection ( gp_Pnt  pRef,
double  angleRef 
) const
TIGL_EXPORT gp_Lin tigl::CCPACSFuselage::Intersection ( const CCPACSFuselageStringerFramePosition &  pos) const
TIGL_EXPORT void tigl::CCPACSFuselage::Invalidate ( )
TIGL_EXPORT TopoDS_Wire tigl::CCPACSFuselage::projectConic ( TopoDS_Shape  wireOrEdge,
gp_Pnt  origin 
) const
TIGL_EXPORT TopoDS_Wire tigl::CCPACSFuselage::projectParallel ( TopoDS_Shape  wireOrEdge,
gp_Dir  direction 
) const
TIGL_EXPORT void tigl::CCPACSFuselage::ReadCPACS ( const TixiDocumentHandle &  tixiHandle,
const std::string &  fuselageXPath 
)
override
TIGL_EXPORT void tigl::CCPACSFuselage::SetAllProfiles ( const std::string &  profileUID)

Set the profile uid of all the section elements of this fuselage.

Parameters
profileUID; the profile UID to use
void tigl::CCPACSFuselage::SetFaceTraits ( PNamedShape  loft) const
protected
void tigl::CCPACSFuselage::SetFuselageHelper ( CTiglFuselageHelper &  cache) const
protected
TIGL_EXPORT void tigl::CCPACSFuselage::SetGetPointBehavior ( TiglGetPointBehavior  behavior = asParameterOnSurface)
TIGL_EXPORT void tigl::CCPACSFuselage::SetLength ( double  newLength)
TIGL_EXPORT void tigl::CCPACSFuselage::SetMaxHeight ( double  newMaxHeight)
TIGL_EXPORT void tigl::CCPACSFuselage::SetMaxWidth ( double  newMaxWidth)
TIGL_EXPORT void tigl::CCPACSFuselage::SetNoseCenter ( const CTiglPoint &  newCenter)
TIGL_EXPORT void tigl::CCPACSFuselage::SetRotation ( const CTiglPoint &  newRotation)

Friends And Related Function Documentation

friend class CCPACSFuselageSegment
friend
friend class CTiglStandardizer
friend

Field Documentation

BRep_Builder tigl::CCPACSFuselage::aBuilder
private
TopoDS_Compound tigl::CCPACSFuselage::aCompound
private
CCPACSConfiguration* tigl::CCPACSFuselage::configuration
private

Parent configuration

FusedElementsContainerType tigl::CCPACSFuselage::fusedElements
private

Stores already fused segments

Cache<CTiglFuselageHelper, CCPACSFuselage> tigl::CCPACSFuselage::fuselageHelper
private
TiglGetPointBehavior tigl::CCPACSFuselage::getPointBehavior {asParameterOnSurface}
private
Cache<TopoDS_Compound, CCPACSFuselage> tigl::CCPACSFuselage::guideCurves
private
double tigl::CCPACSFuselage::myVolume
private

Volume of this fuselage


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