3.3.0
tigl::CCPACSWing Class Reference

#include <CCPACSWing.h>

+ Inheritance diagram for tigl::CCPACSWing:

Data Structures

struct  LocatedGuideCurves
 

Public Member Functions

TIGL_EXPORT CCPACSWing (CCPACSWings *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT CCPACSWing (CCPACSRotorBlades *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT double GetAspectRatio () const
 
TIGL_EXPORT gp_Pnt GetChordPoint (int segmentIndex, double eta, double xsi, TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM)
 
TIGL_EXPORT TiglGeometricComponentIntent GetComponentIntent () const override
 
TIGL_EXPORT CCPACSWingComponentSegmentGetComponentSegment (const int index)
 
TIGL_EXPORT const CCPACSWingComponentSegmentGetComponentSegment (const int index) const
 
TIGL_EXPORT CCPACSWingComponentSegmentGetComponentSegment (const std::string &uid)
 
TIGL_EXPORT int GetComponentSegmentCount () const
 
TIGL_EXPORT TiglGeometricComponentType GetComponentType () const override
 
TIGL_EXPORT CCPACSConfigurationGetConfiguration () const
 
TIGL_EXPORT std::string GetDefaultedUID () const override
 
TIGL_EXPORT TiglGetPointBehavior const GetGetPointBehavior () const
 
TIGL_EXPORT TiglGetPointBehavior GetGetPointBehavior ()
 
TIGL_EXPORT std::vector< gp_Pnt > GetGuideCurvePoints ()
 
TIGL_EXPORT CCPACSGuideCurveGetGuideCurveSegment (std::string uid)
 
TIGL_EXPORT std::vector< double > GetGuideCurveStartParameters () const
 
TIGL_EXPORT TopoDS_Compound GetGuideCurveWires () const
 
TIGL_EXPORT TopoDS_Shape GetLoftWithCutouts ()
 
TIGL_EXPORT TopoDS_Shape & GetLoftWithLeadingEdge ()
 
TIGL_EXPORT gp_Pnt GetLowerPoint (int segmentIndex, double eta, double xsi)
 
TIGL_EXPORT TopoDS_Shape & GetLowerShape ()
 
TIGL_EXPORT CTiglTransformation GetPositioningTransformation (std::string sectionUID)
 
TIGL_EXPORT double GetReferenceArea (TiglSymmetryAxis symPlane) const
 
TIGL_EXPORT double GetReferenceArea () const
 
TIGL_EXPORT CCPACSWingSectionGetSection (int index)
 
TIGL_EXPORT const CCPACSWingSectionGetSection (int index) const
 
TIGL_EXPORT int GetSectionCount () const
 
TIGL_EXPORT CCPACSWingSegmentGetSegment (const int index)
 
TIGL_EXPORT const CCPACSWingSegmentGetSegment (const int index) const
 
TIGL_EXPORT CCPACSWingSegmentGetSegment (std::string uid)
 
TIGL_EXPORT const CCPACSWingSegmentGetSegment (std::string uid) const
 
TIGL_EXPORT int GetSegmentCount () const
 
TIGL_EXPORT int GetSegmentEtaXsi (const gp_Pnt &xyz, double &eta, double &xsi, bool &onTop)
 
TIGL_EXPORT double GetSurfaceArea ()
 
TIGL_EXPORT gp_Pnt GetUpperPoint (int segmentIndex, double eta, double xsi)
 
TIGL_EXPORT TopoDS_Shape & GetUpperShape ()
 
TIGL_EXPORT double GetVolume ()
 
TIGL_EXPORT double GetWettedArea (TopoDS_Shape parent) const
 
TIGL_EXPORT PNamedShape GetWingCleanShape () const
 
TIGL_EXPORT void GetWingMAC (double &mac_chord, double &mac_x, double &mac_y, double &mac_z) const
 
TIGL_EXPORT double GetWingspan () const
 
TIGL_EXPORT Handle (Geom_Surface) GetLowerSegmentSurface(int index)
 
TIGL_EXPORT Handle (Geom_Surface) GetUpperSegmentSurface(int index)
 
TIGL_EXPORT bool IsRotorBlade () const
 
TIGL_EXPORT void ReadCPACS (const TixiDocumentHandle &tixiHandle, const std::string &wingXPath) override
 
TIGL_EXPORT void SetBuildFlaps (bool enabled)
 
TIGL_EXPORT void SetGetPointBehavior (TiglGetPointBehavior behavior=asParameterOnSurface)
 
TIGL_EXPORT void SetParentUID (const boost::optional< std::string > &value) override
 
TIGL_EXPORT void SetSymmetryAxis (const TiglSymmetryAxis &axis) override
 
TIGL_EXPORT ~CCPACSWing () override
 
- Public Member Functions inherited from tigl::generated::CPACSWing
TIGL_EXPORT CPACSWing (CCPACSRotorBlades *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT CPACSWing (CCPACSWings *parent, CTiglUIDManager *uidMgr)
 
virtual TIGL_EXPORT const boost::optional< CCPACSWingComponentSegments > & GetComponentSegments () const
 
virtual TIGL_EXPORT boost::optional< CCPACSWingComponentSegments > & GetComponentSegments ()
 
virtual TIGL_EXPORT CCPACSWingComponentSegmentsGetComponentSegments (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
 
template<typename P >
P * GetParent ()
 
template<typename P >
const P * GetParent () 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 CCPACSWingSectionsGetSections () const
 
virtual TIGL_EXPORT CCPACSWingSectionsGetSections ()
 
virtual TIGL_EXPORT const CCPACSWingSegmentsGetSegments () const
 
virtual TIGL_EXPORT CCPACSWingSegmentsGetSegments ()
 
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
 
template<typename P >
bool IsParent () const
 
virtual TIGL_EXPORT void RemoveComponentSegments ()
 
virtual TIGL_EXPORT void RemovePositionings ()
 
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 ~CPACSWing ()
 
- 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)
 
virtual TIGL_EXPORT void SetTransformation (const CCPACSTransformation &transform)
 
- 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 BuildFusedSegments (PNamedShape &) const
 
void BuildGuideCurveWires (LocatedGuideCurves &cache) const
 
PNamedShape BuildLoft () const override
 
void BuildUpperLowerShells ()
 
void Cleanup ()
 
void Update ()
 
- Protected Member Functions inherited from tigl::CTiglUIDObject
 ~CTiglUIDObject ()=default
 

Private Member Functions

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

Private Attributes

bool buildFlaps
 
CCPACSConfigurationconfiguration
 
FusedElementsContainerType fusedElements
 
TopoDS_Shape fusedSegmentWithEdge
 
TiglGetPointBehavior getPointBehavior {asParameterOnSurface}
 
Cache< LocatedGuideCurves, CCPACSWingguideCurves
 
bool isRotorBlade
 
TopoDS_Shape lowerShape
 
double myVolume
 
bool rebuildFusedSegWEdge
 
bool rebuildShells
 
TopoDS_Shape upperShape
 
Cache< PNamedShape, CCPACSWingwingCleanShape
 
Cache< PNamedShape, CCPACSWingwingShapeWithCutouts
 

Friends

class CCPACSWingComponentSegment
 
class CCPACSWingSegment
 
class CTiglWingBuilder
 

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::CPACSWing
boost::optional< CCPACSWingComponentSegmentsm_componentSegments
 
boost::optional< std::string > m_description
 Description of the wing. More...
 
std::string m_name
 Name of the wing. More...
 
void * m_parent
 
const std::type_info * m_parentType
 
boost::optional< std::string > m_parentUID
 UID of part to which the wing is mounted (if any). The parent of the wing can e.g. be the fuselage. In each aircraft model, there is exactly one part without a parent part (The root of the connection hierarchy). More...
 
boost::optional< CCPACSPositioningsm_positionings
 
CCPACSWingSections m_sections
 
CCPACSWingSegments m_segments
 
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

◆ CCPACSWing() [1/2]

TIGL_EXPORT tigl::CCPACSWing::CCPACSWing ( CCPACSWings parent,
CTiglUIDManager uidMgr 
)

◆ CCPACSWing() [2/2]

TIGL_EXPORT tigl::CCPACSWing::CCPACSWing ( CCPACSRotorBlades parent,
CTiglUIDManager uidMgr 
)

◆ ~CCPACSWing()

TIGL_EXPORT tigl::CCPACSWing::~CCPACSWing ( )
override

Member Function Documentation

◆ BuildFusedSegments()

void tigl::CCPACSWing::BuildFusedSegments ( PNamedShape ) const
protected

◆ BuildGuideCurveWires()

void tigl::CCPACSWing::BuildGuideCurveWires ( LocatedGuideCurves cache) const
protected

◆ BuildLoft()

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

◆ BuildUpperLowerShells()

void tigl::CCPACSWing::BuildUpperLowerShells ( )
protected

◆ BuildWingWithCutouts()

void tigl::CCPACSWing::BuildWingWithCutouts ( PNamedShape ) const
private

◆ Cleanup()

void tigl::CCPACSWing::Cleanup ( )
protected

◆ GetAspectRatio()

TIGL_EXPORT double tigl::CCPACSWing::GetAspectRatio ( ) const

◆ GetChordPoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSWing::GetChordPoint ( int  segmentIndex,
double  eta,
double  xsi,
TiglCoordinateSystem  referenceCS = GLOBAL_COORDINATE_SYSTEM 
)

◆ GetComponentIntent()

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

◆ GetComponentSegment() [1/3]

TIGL_EXPORT CCPACSWingComponentSegment& tigl::CCPACSWing::GetComponentSegment ( const int  index)

◆ GetComponentSegment() [2/3]

TIGL_EXPORT const CCPACSWingComponentSegment& tigl::CCPACSWing::GetComponentSegment ( const int  index) const

◆ GetComponentSegment() [3/3]

TIGL_EXPORT CCPACSWingComponentSegment& tigl::CCPACSWing::GetComponentSegment ( const std::string &  uid)

◆ GetComponentSegmentCount()

TIGL_EXPORT int tigl::CCPACSWing::GetComponentSegmentCount ( ) const

◆ GetComponentType()

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

◆ GetConfiguration()

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

◆ GetDefaultedUID()

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

◆ GetGetPointBehavior() [1/2]

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

◆ GetGetPointBehavior() [2/2]

TIGL_EXPORT TiglGetPointBehavior tigl::CCPACSWing::GetGetPointBehavior ( )

◆ GetGuideCurvePoints()

TIGL_EXPORT std::vector<gp_Pnt> tigl::CCPACSWing::GetGuideCurvePoints ( )

◆ GetGuideCurveSegment()

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

◆ GetGuideCurveStartParameters()

TIGL_EXPORT std::vector<double> tigl::CCPACSWing::GetGuideCurveStartParameters ( ) const

◆ GetGuideCurveWires()

TIGL_EXPORT TopoDS_Compound tigl::CCPACSWing::GetGuideCurveWires ( ) const

◆ GetLoftWithCutouts()

TIGL_EXPORT TopoDS_Shape tigl::CCPACSWing::GetLoftWithCutouts ( )

◆ GetLoftWithLeadingEdge()

TIGL_EXPORT TopoDS_Shape& tigl::CCPACSWing::GetLoftWithLeadingEdge ( )

◆ GetLowerPoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSWing::GetLowerPoint ( int  segmentIndex,
double  eta,
double  xsi 
)

◆ GetLowerShape()

TIGL_EXPORT TopoDS_Shape& tigl::CCPACSWing::GetLowerShape ( )

◆ GetPositioningTransformation()

TIGL_EXPORT CTiglTransformation tigl::CCPACSWing::GetPositioningTransformation ( std::string  sectionUID)

◆ GetReferenceArea() [1/2]

TIGL_EXPORT double tigl::CCPACSWing::GetReferenceArea ( TiglSymmetryAxis  symPlane) const

◆ GetReferenceArea() [2/2]

TIGL_EXPORT double tigl::CCPACSWing::GetReferenceArea ( ) const

◆ GetSection() [1/2]

TIGL_EXPORT CCPACSWingSection& tigl::CCPACSWing::GetSection ( int  index)

◆ GetSection() [2/2]

TIGL_EXPORT const CCPACSWingSection& tigl::CCPACSWing::GetSection ( int  index) const

◆ GetSectionCount()

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

◆ GetSegment() [1/4]

TIGL_EXPORT CCPACSWingSegment& tigl::CCPACSWing::GetSegment ( const int  index)

◆ GetSegment() [2/4]

TIGL_EXPORT const CCPACSWingSegment& tigl::CCPACSWing::GetSegment ( const int  index) const

◆ GetSegment() [3/4]

TIGL_EXPORT CCPACSWingSegment& tigl::CCPACSWing::GetSegment ( std::string  uid)

◆ GetSegment() [4/4]

TIGL_EXPORT const CCPACSWingSegment& tigl::CCPACSWing::GetSegment ( std::string  uid) const

◆ GetSegmentCount()

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

◆ GetSegmentEtaXsi()

TIGL_EXPORT int tigl::CCPACSWing::GetSegmentEtaXsi ( const gp_Pnt &  xyz,
double &  eta,
double &  xsi,
bool &  onTop 
)

◆ GetShortShapeName()

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

◆ GetSurfaceArea()

TIGL_EXPORT double tigl::CCPACSWing::GetSurfaceArea ( )

◆ GetUpperPoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSWing::GetUpperPoint ( int  segmentIndex,
double  eta,
double  xsi 
)

◆ GetUpperShape()

TIGL_EXPORT TopoDS_Shape& tigl::CCPACSWing::GetUpperShape ( )

◆ GetVolume()

TIGL_EXPORT double tigl::CCPACSWing::GetVolume ( )

◆ GetWettedArea()

TIGL_EXPORT double tigl::CCPACSWing::GetWettedArea ( TopoDS_Shape  parent) const

◆ GetWingCleanShape()

TIGL_EXPORT PNamedShape tigl::CCPACSWing::GetWingCleanShape ( ) const

◆ GetWingMAC()

TIGL_EXPORT void tigl::CCPACSWing::GetWingMAC ( double &  mac_chord,
double &  mac_x,
double &  mac_y,
double &  mac_z 
) const

◆ GetWingspan()

TIGL_EXPORT double tigl::CCPACSWing::GetWingspan ( ) const

◆ GroupedFlapsAndWingShapes()

PNamedShape tigl::CCPACSWing::GroupedFlapsAndWingShapes ( ) const
private

◆ Handle() [1/2]

TIGL_EXPORT tigl::CCPACSWing::Handle ( Geom_Surface  )

◆ Handle() [2/2]

TIGL_EXPORT tigl::CCPACSWing::Handle ( Geom_Surface  )

◆ InvalidateImpl()

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

Reimplemented from tigl::CTiglUIDObject.

◆ IsRotorBlade()

TIGL_EXPORT bool tigl::CCPACSWing::IsRotorBlade ( ) const

◆ ReadCPACS()

TIGL_EXPORT void tigl::CCPACSWing::ReadCPACS ( const TixiDocumentHandle &  tixiHandle,
const std::string &  wingXPath 
)
overridevirtual

Reimplemented from tigl::generated::CPACSWing.

◆ SetBuildFlaps()

TIGL_EXPORT void tigl::CCPACSWing::SetBuildFlaps ( bool  enabled)

◆ SetGetPointBehavior()

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

◆ SetParentUID()

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

Reimplemented from tigl::generated::CPACSWing.

◆ SetSymmetryAxis()

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

◆ Update()

void tigl::CCPACSWing::Update ( )
protected

Friends And Related Function Documentation

◆ CCPACSWingComponentSegment

friend class CCPACSWingComponentSegment
friend

◆ CCPACSWingSegment

friend class CCPACSWingSegment
friend

◆ CTiglWingBuilder

friend class CTiglWingBuilder
friend

Field Documentation

◆ buildFlaps

bool tigl::CCPACSWing::buildFlaps
private

Indicates if the wing's loft shall include flaps

◆ configuration

CCPACSConfiguration* tigl::CCPACSWing::configuration
private

Parent configuration

◆ fusedElements

FusedElementsContainerType tigl::CCPACSWing::fusedElements
private

Stores already fused segments

◆ fusedSegmentWithEdge

TopoDS_Shape tigl::CCPACSWing::fusedSegmentWithEdge
private

All Segments in one shape plus modelled leading edge

◆ getPointBehavior

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

◆ guideCurves

Cache<LocatedGuideCurves, CCPACSWing> tigl::CCPACSWing::guideCurves
private

◆ isRotorBlade

bool tigl::CCPACSWing::isRotorBlade
private

Indicates if this wing is a rotor blade

◆ lowerShape

TopoDS_Shape tigl::CCPACSWing::lowerShape
private

◆ myVolume

double tigl::CCPACSWing::myVolume
private

Volume of this Wing

◆ rebuildFusedSegWEdge

bool tigl::CCPACSWing::rebuildFusedSegWEdge
mutableprivate

Indicates if segmentation fusing need rebuild

◆ rebuildShells

bool tigl::CCPACSWing::rebuildShells
mutableprivate

◆ upperShape

TopoDS_Shape tigl::CCPACSWing::upperShape
private

◆ wingCleanShape

Cache<PNamedShape, CCPACSWing> tigl::CCPACSWing::wingCleanShape
private

Clean wing surface without flaps cutout

◆ wingShapeWithCutouts

Cache<PNamedShape, CCPACSWing> tigl::CCPACSWing::wingShapeWithCutouts
private

Wing without flaps / flaps removed


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