3.4.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 CCPACSConfigurationGetConfiguration () const
 
TIGL_EXPORT std::vector< tigl::CTiglSectionElement * > GetCTiglElements ()
 
TIGL_EXPORT std::string GetDefaultedUID () const override
 
TIGL_EXPORT TiglGetPointBehavior GetGetPointBehavior () const
 
TIGL_EXPORT std::vector< gp_Pnt > GetGuideCurvePoints () const
 
TIGL_EXPORT CCPACSGuideCurveGetGuideCurveSegment (std::string uid)
 
TIGL_EXPORT const CCPACSGuideCurveGetGuideCurveSegment (std::string uid) const
 
TIGL_EXPORT double GetLength ()
 
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< CTiglTransformationGetPositioningTransformation (const std::string &sectionUID)
 
TIGL_EXPORT CCPACSFuselageSectionGetSection (int index) const
 
TIGL_EXPORT int GetSectionCount () const
 
TIGL_EXPORT TopoDS_Shape GetSectionFace (const std::string section_uid) 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 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 SetParentUID (const boost::optional< std::string > &value) override
 
TIGL_EXPORT void SetRotation (const CTiglPoint &newRotation)
 
TIGL_EXPORT void SetSymmetryAxis (const TiglSymmetryAxis &axis) override
 
TIGL_EXPORT void SetTransformation (const CCPACSTransformation &transform) override
 
TIGL_EXPORT ~CCPACSFuselage () override
 
- Public Member Functions inherited from tigl::generated::CPACSFuselage
TIGL_EXPORT CPACSFuselage (CCPACSFuselages *parent, CTiglUIDManager *uidMgr)
 
virtual TIGL_EXPORT const boost::optional< CPACSCompartments > & GetCompartments () const
 
virtual TIGL_EXPORT boost::optional< CPACSCompartments > & GetCompartments ()
 
virtual TIGL_EXPORT CPACSCompartmentsGetCompartments (CreateIfNotExistsTag)
 
virtual TIGL_EXPORT const boost::optional< std::string > & GetDescription () const
 
virtual TIGL_EXPORT const std::string & GetName () const
 
virtual TIGL_EXPORT CTiglUIDObjectGetNextUIDParent ()
 
virtual TIGL_EXPORT const CTiglUIDObjectGetNextUIDParent () const
 
TIGL_EXPORT CCPACSFuselagesGetParent ()
 
TIGL_EXPORT const CCPACSFuselagesGetParent () const
 
virtual TIGL_EXPORT const boost::optional< std::string > & GetParentUID () const
 
virtual TIGL_EXPORT const boost::optional< CCPACSPositionings > & GetPositionings () const
 
virtual TIGL_EXPORT boost::optional< CCPACSPositionings > & GetPositionings ()
 
virtual TIGL_EXPORT CCPACSPositioningsGetPositionings (CreateIfNotExistsTag)
 
virtual TIGL_EXPORT const CCPACSFuselageSectionsGetSections () const
 
virtual TIGL_EXPORT CCPACSFuselageSectionsGetSections ()
 
virtual TIGL_EXPORT const CCPACSFuselageSegmentsGetSegments () const
 
virtual TIGL_EXPORT CCPACSFuselageSegmentsGetSegments ()
 
virtual TIGL_EXPORT const boost::optional< CCPACSFuselageStructure > & GetStructure () const
 
virtual TIGL_EXPORT boost::optional< CCPACSFuselageStructure > & GetStructure ()
 
virtual TIGL_EXPORT CCPACSFuselageStructureGetStructure (CreateIfNotExistsTag)
 
virtual TIGL_EXPORT const boost::optional< TiglSymmetryAxis > & GetSymmetry () const
 
virtual TIGL_EXPORT const CCPACSTransformationGetTransformation () const
 
virtual TIGL_EXPORT CCPACSTransformationGetTransformation ()
 
virtual TIGL_EXPORT const std::string & GetUID () const
 
TIGL_EXPORT CTiglUIDManagerGetUIDManager ()
 
TIGL_EXPORT const CTiglUIDManagerGetUIDManager () const
 
virtual TIGL_EXPORT void RemoveCompartments ()
 
virtual TIGL_EXPORT void RemovePositionings ()
 
virtual TIGL_EXPORT void RemoveStructure ()
 
virtual TIGL_EXPORT void SetDescription (const boost::optional< std::string > &value)
 
virtual TIGL_EXPORT void SetName (const std::string &value)
 
virtual TIGL_EXPORT void SetSymmetry (const boost::optional< TiglSymmetryAxis > &value)
 
virtual TIGL_EXPORT void SetUID (const std::string &value)
 
virtual TIGL_EXPORT void WriteCPACS (const TixiDocumentHandle &tixiHandle, const std::string &xpath) const
 
virtual TIGL_EXPORT ~CPACSFuselage ()
 
- Public Member Functions inherited from tigl::CTiglReqUIDObject
boost::optional< std::string > GetObjectUID () const
 
virtual ~CTiglReqUIDObject ()=default
 
- Public Member Functions inherited from tigl::CTiglUIDObject
TIGL_EXPORT void Invalidate (const boost::optional< std::string > &source=boost::none) const
 
- Public Member Functions inherited from tigl::ITiglUIDRefObject
virtual ~ITiglUIDRefObject ()=default
 
- Public Member Functions inherited from tigl::CTiglRelativelyPositionedComponent
TIGL_EXPORT CTiglRelativelyPositionedComponent (MaybeOptionalPtr< std::string > parentUid, MaybeOptionalPtr< CCPACSTransformation > trans)
 
TIGL_EXPORT CTiglRelativelyPositionedComponent (MaybeOptionalPtr< std::string > parentUid, MaybeOptionalPtr< CCPACSTransformation > trans, boost::optional< TiglSymmetryAxis > *symmetryAxis)
 
TIGL_EXPORT ChildContainerType GetChildren (bool recursive)
 
TIGL_EXPORT boost::optional< const std::string & > GetParentUID () const
 
virtual TIGL_EXPORT CTiglPoint GetRotation () const
 
virtual TIGL_EXPORT CTiglPoint GetScaling () const
 
TIGL_EXPORT TiglSymmetryAxis GetSymmetryAxis () const override
 
virtual TIGL_EXPORT CTiglTransformation GetTransformationMatrix () const
 
virtual TIGL_EXPORT CTiglPoint GetTranslation () const
 
virtual TIGL_EXPORT ECPACSTranslationType GetTranslationType () const
 
TIGL_EXPORT void Reset () const
 
TIGL_EXPORT void SetParentUID (const std::string &parentUID)
 
- Public Member Functions inherited from tigl::CTiglAbstractGeometricComponent
 CTiglAbstractGeometricComponent ()
 
TIGL_EXPORT Bnd_Box const & GetBoundingBox () const
 
virtual TIGL_EXPORT bool GetIsOn (const gp_Pnt &pnt) const
 
TIGL_EXPORT bool GetIsOnMirrored (const gp_Pnt &pnt) const
 
TIGL_EXPORT PNamedShape GetLoft () const override
 
virtual TIGL_EXPORT PNamedShape GetMirroredLoft () const
 
TIGL_EXPORT void Reset () const
 
- Public Member Functions inherited from tigl::ITiglGeometricComponent
virtual ~ITiglGeometricComponent ()
 

Protected Member Functions

void BuildCleanLoft (PNamedShape &cache) const
 
PNamedShape BuildLoft () const override
 
void Cleanup ()
 
void SetFaceTraits (PNamedShape loft) const
 
void SetFuselageHelper (CTiglFuselageHelper &cache) const
 
- Protected Member Functions inherited from tigl::CTiglUIDObject
 ~CTiglUIDObject ()=default
 

Private Member Functions

std::string GetShortShapeName () const
 
void InvalidateImpl (const boost::optional< std::string > &source) const override
 

Private Attributes

BRep_Builder aBuilder
 
TopoDS_Compound aCompound
 
Cache< PNamedShape, CCPACSFuselagecleanLoft
 
CCPACSConfigurationconfiguration
 
FusedElementsContainerType fusedElements
 
Cache< CTiglFuselageHelper, CCPACSFuselagefuselageHelper
 
TiglGetPointBehavior getPointBehavior {asParameterOnSurface}
 
double myVolume
 

Friends

class CCPACSFuselageSegment
 
class CTiglStandardizer
 

Additional Inherited Members

- Public Types inherited from tigl::CTiglRelativelyPositionedComponent
typedef std::vector< CTiglRelativelyPositionedComponent * > ChildContainerType
 
- Protected Types inherited from tigl::CTiglRelativelyPositionedComponent
typedef std::map< int, int > FusedElementsContainerType
 
- Protected Attributes inherited from tigl::generated::CPACSFuselage
boost::optional< CPACSCompartmentsm_compartments
 
boost::optional< std::string > m_description
 Description of fuselage. More...
 
std::string m_name
 Name of fuselage. More...
 
CCPACSFuselagesm_parent
 
boost::optional< std::string > m_parentUID
 UID of part to which the fuselage is mounted (if any) More...
 
boost::optional< CCPACSPositioningsm_positionings
 
CCPACSFuselageSections m_sections
 
CCPACSFuselageSegments m_segments
 
boost::optional< CCPACSFuselageStructurem_structure
 
boost::optional< TiglSymmetryAxism_symmetry
 
CCPACSTransformation m_transformation
 
std::string m_uID
 
CTiglUIDManagerm_uidMgr
 
- Protected Attributes inherited from tigl::CTiglAbstractGeometricComponent
Cache< Bnd_Box, CTiglAbstractGeometricComponentbounding_box
 
Cache< PNamedShape, CTiglAbstractGeometricComponentloft
 

Constructor & Destructor Documentation

◆ CCPACSFuselage()

TIGL_EXPORT tigl::CCPACSFuselage::CCPACSFuselage ( CCPACSFuselages parent,
CTiglUIDManager uidMgr 
)

◆ ~CCPACSFuselage()

TIGL_EXPORT tigl::CCPACSFuselage::~CCPACSFuselage ( )
override

Member Function Documentation

◆ BuildCleanLoft()

void tigl::CCPACSFuselage::BuildCleanLoft ( PNamedShape cache) const
protected

◆ BuildLoft()

PNamedShape tigl::CCPACSFuselage::BuildLoft ( ) const
overrideprotectedvirtual

◆ Cleanup()

void tigl::CCPACSFuselage::Cleanup ( )
protected

◆ CreateNewConnectedElementAfter()

TIGL_EXPORT void tigl::CCPACSFuselage::CreateNewConnectedElementAfter ( std::string  startElementUID)
overridevirtual

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

Implements tigl::CreateConnectedElementI.

◆ CreateNewConnectedElementBefore()

TIGL_EXPORT void tigl::CCPACSFuselage::CreateNewConnectedElementBefore ( std::string  startElementUID)
overridevirtual

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

Implements tigl::CreateConnectedElementI.

◆ CreateNewConnectedElementBetween()

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

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

Implements tigl::CreateConnectedElementI.

◆ DeleteConnectedElement()

TIGL_EXPORT void tigl::CCPACSFuselage::DeleteConnectedElement ( std::string  ElementUID)
overridevirtual

Delete the connected element tacking care of removing the section and removing or updating the segments.

Implements tigl::CreateConnectedElementI.

◆ GetAllUsedProfiles()

TIGL_EXPORT std::vector<std::string> tigl::CCPACSFuselage::GetAllUsedProfiles ( )
Returns
Return all the uid of the profiles used by this fuselage

◆ GetCircumference()

TIGL_EXPORT double tigl::CCPACSFuselage::GetCircumference ( int  segmentIndex,
double  eta 
)

◆ GetComponentIntent()

TIGL_EXPORT TiglGeometricComponentIntent tigl::CCPACSFuselage::GetComponentIntent ( ) const
inlineoverridevirtual

◆ GetComponentType()

TIGL_EXPORT TiglGeometricComponentType tigl::CCPACSFuselage::GetComponentType ( ) const
inlineoverridevirtual

◆ GetConfiguration()

TIGL_EXPORT CCPACSConfiguration& tigl::CCPACSFuselage::GetConfiguration ( ) const

◆ GetCTiglElements()

TIGL_EXPORT std::vector<tigl::CTiglSectionElement*> tigl::CCPACSFuselage::GetCTiglElements ( )

◆ GetDefaultedUID()

TIGL_EXPORT std::string tigl::CCPACSFuselage::GetDefaultedUID ( ) const
overridevirtual

◆ GetGetPointBehavior()

TIGL_EXPORT TiglGetPointBehavior tigl::CCPACSFuselage::GetGetPointBehavior ( ) const

◆ GetGuideCurvePoints()

TIGL_EXPORT std::vector<gp_Pnt> tigl::CCPACSFuselage::GetGuideCurvePoints ( ) const

◆ GetGuideCurveSegment() [1/2]

TIGL_EXPORT CCPACSGuideCurve& tigl::CCPACSFuselage::GetGuideCurveSegment ( std::string  uid)

◆ GetGuideCurveSegment() [2/2]

TIGL_EXPORT const CCPACSGuideCurve& tigl::CCPACSFuselage::GetGuideCurveSegment ( std::string  uid) const

◆ GetLength()

TIGL_EXPORT double tigl::CCPACSFuselage::GetLength ( )

◆ GetMaximalHeight()

TIGL_EXPORT double tigl::CCPACSFuselage::GetMaximalHeight ( )

◆ GetMaximalWidth()

TIGL_EXPORT double tigl::CCPACSFuselage::GetMaximalWidth ( )

◆ GetMinumumDistanceToGround()

TIGL_EXPORT gp_Pnt tigl::CCPACSFuselage::GetMinumumDistanceToGround ( gp_Ax1  RAxis,
double  angle 
)

◆ GetNoseCenter()

TIGL_EXPORT CTiglPoint tigl::CCPACSFuselage::GetNoseCenter ( )

◆ GetOrderedConnectedElement()

TIGL_EXPORT std::vector<std::string> tigl::CCPACSFuselage::GetOrderedConnectedElement ( )
overridevirtual

Return the current connected element uids in order for this component (wing or fuselage)

Returns

Implements tigl::CreateConnectedElementI.

◆ GetPoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSFuselage::GetPoint ( int  segmentIndex,
double  eta,
double  zeta 
)

◆ GetPositioningTransformation()

TIGL_EXPORT boost::optional<CTiglTransformation> tigl::CCPACSFuselage::GetPositioningTransformation ( const std::string &  sectionUID)

◆ GetSection()

TIGL_EXPORT CCPACSFuselageSection& tigl::CCPACSFuselage::GetSection ( int  index) const

◆ GetSectionCount()

TIGL_EXPORT int tigl::CCPACSFuselage::GetSectionCount ( ) const

◆ GetSectionFace()

TIGL_EXPORT TopoDS_Shape tigl::CCPACSFuselage::GetSectionFace ( const std::string  section_uid) const

◆ GetSegment() [1/3]

TIGL_EXPORT CCPACSFuselageSegment& tigl::CCPACSFuselage::GetSegment ( const int  index)

◆ GetSegment() [2/3]

TIGL_EXPORT const CCPACSFuselageSegment& tigl::CCPACSFuselage::GetSegment ( const int  index) const

◆ GetSegment() [3/3]

TIGL_EXPORT CCPACSFuselageSegment& tigl::CCPACSFuselage::GetSegment ( std::string  uid)

◆ GetSegmentCount()

TIGL_EXPORT int tigl::CCPACSFuselage::GetSegmentCount ( ) const

◆ GetShortShapeName()

std::string tigl::CCPACSFuselage::GetShortShapeName ( ) const
private

◆ GetSurfaceArea()

TIGL_EXPORT double tigl::CCPACSFuselage::GetSurfaceArea ( )

◆ GetVolume()

TIGL_EXPORT double tigl::CCPACSFuselage::GetVolume ( )

◆ InvalidateImpl()

void tigl::CCPACSFuselage::InvalidateImpl ( const boost::optional< std::string > &  source) const
overrideprivatevirtual

Reimplemented from tigl::CTiglUIDObject.

◆ ReadCPACS()

TIGL_EXPORT void tigl::CCPACSFuselage::ReadCPACS ( const TixiDocumentHandle &  tixiHandle,
const std::string &  fuselageXPath 
)
overridevirtual

Reimplemented from tigl::generated::CPACSFuselage.

◆ SetAllProfiles()

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

◆ SetFaceTraits()

void tigl::CCPACSFuselage::SetFaceTraits ( PNamedShape  loft) const
protected

◆ SetFuselageHelper()

void tigl::CCPACSFuselage::SetFuselageHelper ( CTiglFuselageHelper cache) const
protected

◆ SetGetPointBehavior()

TIGL_EXPORT void tigl::CCPACSFuselage::SetGetPointBehavior ( TiglGetPointBehavior  behavior = asParameterOnSurface)

◆ SetLength()

TIGL_EXPORT void tigl::CCPACSFuselage::SetLength ( double  newLength)

◆ SetMaxHeight()

TIGL_EXPORT void tigl::CCPACSFuselage::SetMaxHeight ( double  newMaxHeight)

◆ SetMaxWidth()

TIGL_EXPORT void tigl::CCPACSFuselage::SetMaxWidth ( double  newMaxWidth)

◆ SetNoseCenter()

TIGL_EXPORT void tigl::CCPACSFuselage::SetNoseCenter ( const CTiglPoint newCenter)

◆ SetParentUID()

TIGL_EXPORT void tigl::CCPACSFuselage::SetParentUID ( const boost::optional< std::string > &  value)
overridevirtual

Reimplemented from tigl::generated::CPACSFuselage.

◆ SetRotation()

TIGL_EXPORT void tigl::CCPACSFuselage::SetRotation ( const CTiglPoint newRotation)

◆ SetSymmetryAxis()

TIGL_EXPORT void tigl::CCPACSFuselage::SetSymmetryAxis ( const TiglSymmetryAxis axis)
overridevirtual

◆ SetTransformation()

TIGL_EXPORT void tigl::CCPACSFuselage::SetTransformation ( const CCPACSTransformation transform)
overridevirtual

Friends And Related Function Documentation

◆ CCPACSFuselageSegment

friend class CCPACSFuselageSegment
friend

◆ CTiglStandardizer

friend class CTiglStandardizer
friend

Field Documentation

◆ aBuilder

BRep_Builder tigl::CCPACSFuselage::aBuilder
private

◆ aCompound

TopoDS_Compound tigl::CCPACSFuselage::aCompound
private

◆ cleanLoft

Cache<PNamedShape, CCPACSFuselage> tigl::CCPACSFuselage::cleanLoft
private

Stores the loft with cutouts (e.g. ducts)

◆ configuration

CCPACSConfiguration* tigl::CCPACSFuselage::configuration
private

Parent configuration

◆ fusedElements

FusedElementsContainerType tigl::CCPACSFuselage::fusedElements
private

Stores already fused segments

◆ fuselageHelper

Cache<CTiglFuselageHelper, CCPACSFuselage> tigl::CCPACSFuselage::fuselageHelper
private

◆ getPointBehavior

TiglGetPointBehavior tigl::CCPACSFuselage::getPointBehavior {asParameterOnSurface}
private

◆ myVolume

double tigl::CCPACSFuselage::myVolume
private

Volume of this fuselage


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