3.5.0-rc1
Loading...
Searching...
No Matches
tigl::CCPACSWingComponentSegment Class Reference

A CCPACSWingComponentSegment is a part of the wing that consists of several adjacent segments. Component segments are used to define the relative position of the internal wing structural elements and fuel tanks, control devices, and the wing fuselage attachment. More...

#include <CCPACSWingComponentSegment.h>

Inheritance diagram for tigl::CCPACSWingComponentSegment:

Data Structures

struct  GeometryCache
struct  LinesCache

Public Member Functions

TIGL_EXPORT CCPACSWingComponentSegment (CCPACSWingComponentSegments *parent, CTiglUIDManager *uidMgr)
TIGL_EXPORT const CCPACSWingSegmentfindSegment (double x, double y, double z, gp_Pnt &nearestPoint, double &deviation, double maxDeviation=1.e-2) const
TIGL_EXPORT const CCPACSWingSegmentGetBelongingSegment (const std::string &segmentUID) const
TIGL_EXPORT const CTiglWingChordfaceGetChordface () const
TIGL_EXPORT TiglGeometricComponentIntent GetComponentIntent () const override
TIGL_EXPORT TiglGeometricComponentType GetComponentType () const override
TIGL_EXPORT TopoDS_Wire GetCSLine (double eta1, double xsi1, double eta2, double xsi2, int NSTEPS=101)
TIGL_EXPORT std::string GetDefaultedUID () const override
TIGL_EXPORT void GetEtaXsi (const gp_Pnt &globalPoint, double &eta, double &xsi) const
TIGL_EXPORT void GetEtaXsiFromSegmentEtaXsi (const std::string &segmentUID, double seta, double sxsi, double &eta, double &xsi) const
TIGL_EXPORT void GetEtaXsiLocal (const gp_Pnt &localPoint, double &eta, double &xsi) const
TIGL_EXPORT TopoDS_Face GetInnerFace () const
TIGL_EXPORT const std::string & GetInnerSegmentUID () const
TIGL_EXPORT gp_Vec GetLeadingEdgeDirection (const gp_Pnt &point, const std::string &defaultSegmentUID="") const
TIGL_EXPORT double GetLeadingEdgeLength () const
TIGL_EXPORT const TopoDS_Wire & GetLeadingEdgeLine () const
TIGL_EXPORT gp_Pnt GetLeadingEdgePoint (double relativePos) const
TIGL_EXPORT PNamedShape GetLowerShape () const
TIGL_EXPORT MaterialList GetMaterials (double eta, double xsi, TiglStructureType) const
TIGL_EXPORT gp_Vec GetMidplaneEtaDir (double eta) const
TIGL_EXPORT TopoDS_Wire GetMidplaneLine (const gp_Pnt &startPoint, const gp_Pnt &endPoint) const
TIGL_EXPORT gp_Vec GetMidplaneNormal (double eta) const
TIGL_EXPORT TopoDS_Shape GetMidplaneShape () const
TIGL_EXPORT TopoDS_Face GetOuterFace () const
TIGL_EXPORT const std::string & GetOuterSegmentUID () const
TIGL_EXPORT gp_Pnt GetPoint (double eta, double xsi, const std::string &referenceUID, TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM) const
TIGL_EXPORT gp_Pnt GetPoint (double eta, double xsi, TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM) const
TIGL_EXPORT TopoDS_Face GetSectionElementFace (const std::string &sectionElementUID) const
TIGL_EXPORT void GetSegmentEtaXsi (double csEta, double xsXsi, std::string &segmentUID, double &seta, double &sxsi) const
TIGL_EXPORT const SegmentListGetSegmentList () const
TIGL_EXPORT std::string GetShortName () const
TIGL_EXPORT double GetSurfaceArea ()
TIGL_EXPORT gp_Vec GetTrailingEdgeDirection (const gp_Pnt &point, const std::string &defaultSegmentUID="") const
TIGL_EXPORT double GetTrailingEdgeLength () const
TIGL_EXPORT const TopoDS_Wire & GetTrailingEdgeLine () const
TIGL_EXPORT gp_Pnt GetTrailingEdgePoint (double relativePos) const
TIGL_EXPORT PNamedShape GetUpperShape () const
TIGL_EXPORT double GetVolume ()
TIGL_EXPORT CCPACSWingGetWing () const
DEPRECATED TIGL_EXPORT void InterpolateOnLine (double csEta1, double csXsi1, double csEta2, double csXsi2, double eta, double &xsi, double &errorDistance) const
TIGL_EXPORT bool IsSegmentContained (const CCPACSWingSegment &segment) const
TIGL_EXPORT void ReadCPACS (const TixiDocumentHandle &tixiHandle, const std::string &segmentXPath) override
TIGL_EXPORT ~CCPACSWingComponentSegment () override
Public Member Functions inherited from tigl::generated::CPACSComponentSegment
TIGL_EXPORT CPACSComponentSegment (CCPACSWingComponentSegments *parent, CTiglUIDManager *uidMgr)
virtual TIGL_EXPORT boost::optional< CCPACSControlSurfaces > & GetControlSurfaces ()
virtual TIGL_EXPORT const boost::optional< CCPACSControlSurfaces > & GetControlSurfaces () const
virtual TIGL_EXPORT CCPACSControlSurfacesGetControlSurfaces (CreateIfNotExistsTag)
virtual TIGL_EXPORT const boost::optional< std::string > & GetDescription () const
virtual TIGL_EXPORT const std::string & GetFromElementUID () const
virtual TIGL_EXPORT const std::string & GetName () const
virtual TIGL_EXPORT CTiglUIDObjectGetNextUIDParent ()
virtual TIGL_EXPORT const CTiglUIDObjectGetNextUIDParent () const
TIGL_EXPORT CCPACSWingComponentSegmentsGetParent ()
TIGL_EXPORT const CCPACSWingComponentSegmentsGetParent () const
virtual TIGL_EXPORT boost::optional< CCPACSWingCSStructure > & GetStructure ()
virtual TIGL_EXPORT const boost::optional< CCPACSWingCSStructure > & GetStructure () const
virtual TIGL_EXPORT CCPACSWingCSStructureGetStructure (CreateIfNotExistsTag)
virtual TIGL_EXPORT const std::string & GetToElementUID () const
virtual TIGL_EXPORT const std::string & GetUID () const
TIGL_EXPORT CTiglUIDManagerGetUIDManager ()
TIGL_EXPORT const CTiglUIDManagerGetUIDManager () const
virtual TIGL_EXPORT void RemoveControlSurfaces ()
virtual TIGL_EXPORT void RemoveStructure ()
virtual TIGL_EXPORT void SetDescription (const boost::optional< std::string > &value)
virtual TIGL_EXPORT void SetFromElementUID (const std::string &value)
virtual TIGL_EXPORT void SetName (const std::string &value)
virtual TIGL_EXPORT void SetToElementUID (const std::string &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 ~CPACSComponentSegment ()
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::CTiglAbstractSegment< CCPACSWingComponentSegment >
TIGL_EXPORT CTiglAbstractSegment (const std::vector< std::unique_ptr< CCPACSWingComponentSegment > > &segments, const CTiglAbstractGeometricComponent *parentComponent)
TiglContinuity GetContinuity () const
int GetSegmentIndex () const
TiglSymmetryAxis GetSymmetryAxis () const override
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 bool IsIndependentGeometry () const
virtual ~ITiglGeometricComponent ()

Private Types

typedef CTiglShapeGeomComponentAdaptor< CCPACSWingComponentSegmentShapeAdaptor

Private Member Functions

void BuildGeometry (GeometryCache &cache) const
void BuildLines (LinesCache &cache) const
PNamedShape BuildLoft () const override
void BuildWingSegments (SegmentList &cache) const
void Cleanup ()
std::vector< int > findPath (const std::string &fromUid, const::std::string &toUID, const std::vector< int > &curPath, bool forward) const
gp_Vec GetLeadingEdgeDirection (const std::string &segmentUID) const
gp_Vec GetTrailingEdgeDirection (const std::string &segmentUID) const
void InvalidateImpl (const boost::optional< std::string > &source) const override
void Update ()

Private Attributes

std::unique_ptr< CTiglWingChordfacechordFace
Cache< GeometryCache, CCPACSWingComponentSegmentgeomCache
Cache< LinesCache, CCPACSWingComponentSegmentlinesCache
std::unique_ptr< ShapeAdaptorlowerShape
std::unique_ptr< ShapeAdaptorupperShape
CCPACSWingwing
Cache< SegmentList, CCPACSWingComponentSegmentwingSegments
 List of segments belonging to the component segment.

Additional Inherited Members

Protected Member Functions inherited from tigl::CTiglUIDObject
 ~CTiglUIDObject ()=default
Protected Attributes inherited from tigl::generated::CPACSComponentSegment
boost::optional< CCPACSControlSurfacesm_controlSurfaces
boost::optional< std::string > m_description
 Description of the componentSegment.
std::string m_fromElementUID
 Reference to the element from which the componentSegment shall start.
std::string m_name
 Name of the wing componentSegment.
CCPACSWingComponentSegmentsm_parent
boost::optional< CCPACSWingCSStructurem_structure
std::string m_toElementUID
 Reference to the element from which the componentSegment shall end.
std::string m_uID
CTiglUIDManagerm_uidMgr
Protected Attributes inherited from tigl::CTiglAbstractSegment< CCPACSWingComponentSegment >
TiglContinuity _continuity
const CTiglAbstractGeometricComponent_parentComponent
const std::vector< std::unique_ptr< CCPACSWingComponentSegment > > & _segments
Protected Attributes inherited from tigl::CTiglAbstractGeometricComponent
Cache< Bnd_Box, CTiglAbstractGeometricComponentbounding_box
Cache< PNamedShape, CTiglAbstractGeometricComponentloft

Detailed Description

A CCPACSWingComponentSegment is a part of the wing that consists of several adjacent segments. Component segments are used to define the relative position of the internal wing structural elements and fuel tanks, control devices, and the wing fuselage attachment.

Member Typedef Documentation

◆ ShapeAdaptor

Constructor & Destructor Documentation

◆ CCPACSWingComponentSegment()

TIGL_EXPORT tigl::CCPACSWingComponentSegment::CCPACSWingComponentSegment ( CCPACSWingComponentSegments * parent,
CTiglUIDManager * uidMgr )

◆ ~CCPACSWingComponentSegment()

TIGL_EXPORT tigl::CCPACSWingComponentSegment::~CCPACSWingComponentSegment ( )
override

Member Function Documentation

◆ BuildGeometry()

void tigl::CCPACSWingComponentSegment::BuildGeometry ( GeometryCache & cache) const
private

◆ BuildLines()

void tigl::CCPACSWingComponentSegment::BuildLines ( LinesCache & cache) const
private

◆ BuildLoft()

PNamedShape tigl::CCPACSWingComponentSegment::BuildLoft ( ) const
overrideprivatevirtual

◆ BuildWingSegments()

void tigl::CCPACSWingComponentSegment::BuildWingSegments ( SegmentList & cache) const
private

◆ Cleanup()

void tigl::CCPACSWingComponentSegment::Cleanup ( )
private

◆ findPath()

std::vector< int > tigl::CCPACSWingComponentSegment::findPath ( const std::string & fromUid,
const::std::string & toUID,
const std::vector< int > & curPath,
bool forward ) const
private

◆ findSegment()

TIGL_EXPORT const CCPACSWingSegment * tigl::CCPACSWingComponentSegment::findSegment ( double x,
double y,
double z,
gp_Pnt & nearestPoint,
double & deviation,
double maxDeviation = 1.e-2 ) const

◆ GetBelongingSegment()

TIGL_EXPORT const CCPACSWingSegment & tigl::CCPACSWingComponentSegment::GetBelongingSegment ( const std::string & segmentUID) const

◆ GetChordface()

TIGL_EXPORT const CTiglWingChordface & tigl::CCPACSWingComponentSegment::GetChordface ( ) const

◆ GetComponentIntent()

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

◆ GetComponentType()

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

◆ GetCSLine()

TIGL_EXPORT TopoDS_Wire tigl::CCPACSWingComponentSegment::GetCSLine ( double eta1,
double xsi1,
double eta2,
double xsi2,
int NSTEPS = 101 )

◆ GetDefaultedUID()

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

◆ GetEtaXsi()

TIGL_EXPORT void tigl::CCPACSWingComponentSegment::GetEtaXsi ( const gp_Pnt & globalPoint,
double & eta,
double & xsi ) const

◆ GetEtaXsiFromSegmentEtaXsi()

TIGL_EXPORT void tigl::CCPACSWingComponentSegment::GetEtaXsiFromSegmentEtaXsi ( const std::string & segmentUID,
double seta,
double sxsi,
double & eta,
double & xsi ) const

◆ GetEtaXsiLocal()

TIGL_EXPORT void tigl::CCPACSWingComponentSegment::GetEtaXsiLocal ( const gp_Pnt & localPoint,
double & eta,
double & xsi ) const

◆ GetInnerFace()

TIGL_EXPORT TopoDS_Face tigl::CCPACSWingComponentSegment::GetInnerFace ( ) const

◆ GetInnerSegmentUID()

TIGL_EXPORT const std::string & tigl::CCPACSWingComponentSegment::GetInnerSegmentUID ( ) const

◆ GetLeadingEdgeDirection() [1/2]

TIGL_EXPORT gp_Vec tigl::CCPACSWingComponentSegment::GetLeadingEdgeDirection ( const gp_Pnt & point,
const std::string & defaultSegmentUID = "" ) const

◆ GetLeadingEdgeDirection() [2/2]

gp_Vec tigl::CCPACSWingComponentSegment::GetLeadingEdgeDirection ( const std::string & segmentUID) const
private

◆ GetLeadingEdgeLength()

TIGL_EXPORT double tigl::CCPACSWingComponentSegment::GetLeadingEdgeLength ( ) const

◆ GetLeadingEdgeLine()

TIGL_EXPORT const TopoDS_Wire & tigl::CCPACSWingComponentSegment::GetLeadingEdgeLine ( ) const

◆ GetLeadingEdgePoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSWingComponentSegment::GetLeadingEdgePoint ( double relativePos) const

◆ GetLowerShape()

TIGL_EXPORT PNamedShape tigl::CCPACSWingComponentSegment::GetLowerShape ( ) const

◆ GetMaterials()

TIGL_EXPORT MaterialList tigl::CCPACSWingComponentSegment::GetMaterials ( double eta,
double xsi,
TiglStructureType  ) const

◆ GetMidplaneEtaDir()

TIGL_EXPORT gp_Vec tigl::CCPACSWingComponentSegment::GetMidplaneEtaDir ( double eta) const

◆ GetMidplaneLine()

TIGL_EXPORT TopoDS_Wire tigl::CCPACSWingComponentSegment::GetMidplaneLine ( const gp_Pnt & startPoint,
const gp_Pnt & endPoint ) const

◆ GetMidplaneNormal()

TIGL_EXPORT gp_Vec tigl::CCPACSWingComponentSegment::GetMidplaneNormal ( double eta) const

◆ GetMidplaneShape()

TIGL_EXPORT TopoDS_Shape tigl::CCPACSWingComponentSegment::GetMidplaneShape ( ) const

◆ GetOuterFace()

TIGL_EXPORT TopoDS_Face tigl::CCPACSWingComponentSegment::GetOuterFace ( ) const

◆ GetOuterSegmentUID()

TIGL_EXPORT const std::string & tigl::CCPACSWingComponentSegment::GetOuterSegmentUID ( ) const

◆ GetPoint() [1/2]

TIGL_EXPORT gp_Pnt tigl::CCPACSWingComponentSegment::GetPoint ( double eta,
double xsi,
const std::string & referenceUID,
TiglCoordinateSystem referenceCS = GLOBAL_COORDINATE_SYSTEM ) const

◆ GetPoint() [2/2]

TIGL_EXPORT gp_Pnt tigl::CCPACSWingComponentSegment::GetPoint ( double eta,
double xsi,
TiglCoordinateSystem referenceCS = GLOBAL_COORDINATE_SYSTEM ) const

◆ GetSectionElementFace()

TIGL_EXPORT TopoDS_Face tigl::CCPACSWingComponentSegment::GetSectionElementFace ( const std::string & sectionElementUID) const

◆ GetSegmentEtaXsi()

TIGL_EXPORT void tigl::CCPACSWingComponentSegment::GetSegmentEtaXsi ( double csEta,
double xsXsi,
std::string & segmentUID,
double & seta,
double & sxsi ) const

◆ GetSegmentList()

TIGL_EXPORT const SegmentList & tigl::CCPACSWingComponentSegment::GetSegmentList ( ) const

◆ GetShortName()

TIGL_EXPORT std::string tigl::CCPACSWingComponentSegment::GetShortName ( ) const

◆ GetSurfaceArea()

TIGL_EXPORT double tigl::CCPACSWingComponentSegment::GetSurfaceArea ( )

◆ GetTrailingEdgeDirection() [1/2]

TIGL_EXPORT gp_Vec tigl::CCPACSWingComponentSegment::GetTrailingEdgeDirection ( const gp_Pnt & point,
const std::string & defaultSegmentUID = "" ) const

◆ GetTrailingEdgeDirection() [2/2]

gp_Vec tigl::CCPACSWingComponentSegment::GetTrailingEdgeDirection ( const std::string & segmentUID) const
private

◆ GetTrailingEdgeLength()

TIGL_EXPORT double tigl::CCPACSWingComponentSegment::GetTrailingEdgeLength ( ) const

◆ GetTrailingEdgeLine()

TIGL_EXPORT const TopoDS_Wire & tigl::CCPACSWingComponentSegment::GetTrailingEdgeLine ( ) const

◆ GetTrailingEdgePoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSWingComponentSegment::GetTrailingEdgePoint ( double relativePos) const

◆ GetUpperShape()

TIGL_EXPORT PNamedShape tigl::CCPACSWingComponentSegment::GetUpperShape ( ) const

◆ GetVolume()

TIGL_EXPORT double tigl::CCPACSWingComponentSegment::GetVolume ( )

◆ GetWing()

TIGL_EXPORT CCPACSWing & tigl::CCPACSWingComponentSegment::GetWing ( ) const

◆ InterpolateOnLine()

DEPRECATED TIGL_EXPORT void tigl::CCPACSWingComponentSegment::InterpolateOnLine ( double csEta1,
double csXsi1,
double csEta2,
double csXsi2,
double eta,
double & xsi,
double & errorDistance ) const

Computes the xsi coordinate on a straight line in global space, given an eta coordinate

This function is deprecated: Use interpolateXsi from etaXsiFunctions

◆ InvalidateImpl()

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

Reimplemented from tigl::CTiglUIDObject.

◆ IsSegmentContained()

TIGL_EXPORT bool tigl::CCPACSWingComponentSegment::IsSegmentContained ( const CCPACSWingSegment & segment) const

◆ ReadCPACS()

TIGL_EXPORT void tigl::CCPACSWingComponentSegment::ReadCPACS ( const TixiDocumentHandle & tixiHandle,
const std::string & segmentXPath )
overridevirtual

◆ Update()

void tigl::CCPACSWingComponentSegment::Update ( )
private

Field Documentation

◆ chordFace

std::unique_ptr<CTiglWingChordface> tigl::CCPACSWingComponentSegment::chordFace
private

◆ geomCache

Cache<GeometryCache, CCPACSWingComponentSegment> tigl::CCPACSWingComponentSegment::geomCache
private

◆ linesCache

Cache<LinesCache, CCPACSWingComponentSegment> tigl::CCPACSWingComponentSegment::linesCache
private

◆ lowerShape

std::unique_ptr<ShapeAdaptor> tigl::CCPACSWingComponentSegment::lowerShape
private

Lower shape of this componentSegment

◆ upperShape

std::unique_ptr<ShapeAdaptor> tigl::CCPACSWingComponentSegment::upperShape
private

Upper shape of this componentSegment

◆ wing

CCPACSWing* tigl::CCPACSWingComponentSegment::wing
private

Parent wing

◆ wingSegments

Cache<SegmentList, CCPACSWingComponentSegment> tigl::CCPACSWingComponentSegment::wingSegments
private

List of segments belonging to the component segment.


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