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>
Data Structures | |
struct | GeometryCache |
struct | LinesCache |
Public Member Functions | |
TIGL_EXPORT | CCPACSWingComponentSegment (CCPACSWingComponentSegments *parent, CTiglUIDManager *uidMgr) |
TIGL_EXPORT const CCPACSWingSegment * | findSegment (double x, double y, double z, gp_Pnt &nearestPoint, double &deviation, double maxDeviation=1.e-2) const |
TIGL_EXPORT const CCPACSWingSegment & | GetBelongingSegment (const std::string &segmentUID) const |
TIGL_EXPORT const CTiglWingChordface & | GetChordface () 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, TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM) const |
TIGL_EXPORT gp_Pnt | GetPoint (double eta, double xsi, const std::string &referenceUID, TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM) const |
TIGL_EXPORT TopoDS_Face | GetSectionElementFace (const std::string §ionElementUID) const |
TIGL_EXPORT void | GetSegmentEtaXsi (double csEta, double xsXsi, std::string &segmentUID, double &seta, double &sxsi) const |
DEPRECATED TIGL_EXPORT void | GetSegmentIntersection (const std::string &segmentUID, double csEta1, double csXsi1, double csEta2, double csXsi2, double eta, double &xsi) const |
TIGL_EXPORT const SegmentList & | GetSegmentList () 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 CCPACSWing & | GetWing () 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 const boost::optional< CCPACSControlSurfaces > & | GetControlSurfaces () const |
virtual TIGL_EXPORT boost::optional< CCPACSControlSurfaces > & | GetControlSurfaces () |
virtual TIGL_EXPORT CCPACSControlSurfaces & | GetControlSurfaces (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 CTiglUIDObject * | GetNextUIDParent () |
virtual TIGL_EXPORT const CTiglUIDObject * | GetNextUIDParent () const |
TIGL_EXPORT CCPACSWingComponentSegments * | GetParent () |
TIGL_EXPORT const CCPACSWingComponentSegments * | GetParent () const |
virtual TIGL_EXPORT const boost::optional< CCPACSWingCSStructure > & | GetStructure () const |
virtual TIGL_EXPORT boost::optional< CCPACSWingCSStructure > & | GetStructure () |
virtual TIGL_EXPORT CCPACSWingCSStructure & | GetStructure (CreateIfNotExistsTag) |
virtual TIGL_EXPORT const std::string & | GetToElementUID () const |
virtual TIGL_EXPORT const std::string & | GetUID () const |
TIGL_EXPORT CTiglUIDManager & | GetUIDManager () |
TIGL_EXPORT const CTiglUIDManager & | GetUIDManager () 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 | ~ITiglGeometricComponent () |
Private Types | |
typedef CTiglShapeGeomComponentAdaptor< CCPACSWingComponentSegment > | ShapeAdaptor |
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< CTiglWingChordface > | chordFace |
Cache< GeometryCache, CCPACSWingComponentSegment > | geomCache |
Cache< LinesCache, CCPACSWingComponentSegment > | linesCache |
std::unique_ptr< ShapeAdaptor > | lowerShape |
std::unique_ptr< ShapeAdaptor > | upperShape |
CCPACSWing * | wing |
Cache< SegmentList, CCPACSWingComponentSegment > | wingSegments |
List of segments belonging to the component segment. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from tigl::CTiglUIDObject | |
~CTiglUIDObject ()=default | |
Protected Attributes inherited from tigl::generated::CPACSComponentSegment | |
boost::optional< CCPACSControlSurfaces > | m_controlSurfaces |
boost::optional< std::string > | m_description |
Description of the componentSegment. More... | |
std::string | m_fromElementUID |
Reference to the element from which the componentSegment shall start. More... | |
std::string | m_name |
Name of the wing componentSegment. More... | |
CCPACSWingComponentSegments * | m_parent |
boost::optional< CCPACSWingCSStructure > | m_structure |
std::string | m_toElementUID |
Reference to the element from which the componentSegment shall end. More... | |
std::string | m_uID |
CTiglUIDManager * | m_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, CTiglAbstractGeometricComponent > | bounding_box |
Cache< PNamedShape, CTiglAbstractGeometricComponent > | loft |
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.
|
private |
TIGL_EXPORT tigl::CCPACSWingComponentSegment::CCPACSWingComponentSegment | ( | CCPACSWingComponentSegments * | parent, |
CTiglUIDManager * | uidMgr | ||
) |
|
override |
|
private |
|
private |
|
overrideprivatevirtual |
Implements tigl::CTiglAbstractGeometricComponent.
|
private |
|
private |
|
private |
TIGL_EXPORT const CCPACSWingSegment* tigl::CCPACSWingComponentSegment::findSegment | ( | double | x, |
double | y, | ||
double | z, | ||
gp_Pnt & | nearestPoint, | ||
double & | deviation, | ||
double | maxDeviation = 1.e-2 |
||
) | const |
TIGL_EXPORT const CCPACSWingSegment& tigl::CCPACSWingComponentSegment::GetBelongingSegment | ( | const std::string & | segmentUID | ) | const |
TIGL_EXPORT const CTiglWingChordface& tigl::CCPACSWingComponentSegment::GetChordface | ( | ) | const |
|
inlineoverridevirtual |
Implements tigl::ITiglGeometricComponent.
|
inlineoverridevirtual |
Implements tigl::ITiglGeometricComponent.
TIGL_EXPORT TopoDS_Wire tigl::CCPACSWingComponentSegment::GetCSLine | ( | double | eta1, |
double | xsi1, | ||
double | eta2, | ||
double | xsi2, | ||
int | NSTEPS = 101 |
||
) |
|
overridevirtual |
Implements tigl::ITiglGeometricComponent.
TIGL_EXPORT void tigl::CCPACSWingComponentSegment::GetEtaXsi | ( | const gp_Pnt & | globalPoint, |
double & | eta, | ||
double & | xsi | ||
) | const |
TIGL_EXPORT void tigl::CCPACSWingComponentSegment::GetEtaXsiFromSegmentEtaXsi | ( | const std::string & | segmentUID, |
double | seta, | ||
double | sxsi, | ||
double & | eta, | ||
double & | xsi | ||
) | const |
TIGL_EXPORT void tigl::CCPACSWingComponentSegment::GetEtaXsiLocal | ( | const gp_Pnt & | localPoint, |
double & | eta, | ||
double & | xsi | ||
) | const |
TIGL_EXPORT TopoDS_Face tigl::CCPACSWingComponentSegment::GetInnerFace | ( | ) | const |
TIGL_EXPORT const std::string& tigl::CCPACSWingComponentSegment::GetInnerSegmentUID | ( | ) | const |
TIGL_EXPORT gp_Vec tigl::CCPACSWingComponentSegment::GetLeadingEdgeDirection | ( | const gp_Pnt & | point, |
const std::string & | defaultSegmentUID = "" |
||
) | const |
|
private |
TIGL_EXPORT double tigl::CCPACSWingComponentSegment::GetLeadingEdgeLength | ( | ) | const |
TIGL_EXPORT const TopoDS_Wire& tigl::CCPACSWingComponentSegment::GetLeadingEdgeLine | ( | ) | const |
TIGL_EXPORT gp_Pnt tigl::CCPACSWingComponentSegment::GetLeadingEdgePoint | ( | double | relativePos | ) | const |
TIGL_EXPORT PNamedShape tigl::CCPACSWingComponentSegment::GetLowerShape | ( | ) | const |
TIGL_EXPORT MaterialList tigl::CCPACSWingComponentSegment::GetMaterials | ( | double | eta, |
double | xsi, | ||
TiglStructureType | |||
) | const |
TIGL_EXPORT gp_Vec tigl::CCPACSWingComponentSegment::GetMidplaneEtaDir | ( | double | eta | ) | const |
TIGL_EXPORT TopoDS_Wire tigl::CCPACSWingComponentSegment::GetMidplaneLine | ( | const gp_Pnt & | startPoint, |
const gp_Pnt & | endPoint | ||
) | const |
TIGL_EXPORT gp_Vec tigl::CCPACSWingComponentSegment::GetMidplaneNormal | ( | double | eta | ) | const |
TIGL_EXPORT TopoDS_Shape tigl::CCPACSWingComponentSegment::GetMidplaneShape | ( | ) | const |
TIGL_EXPORT TopoDS_Face tigl::CCPACSWingComponentSegment::GetOuterFace | ( | ) | const |
TIGL_EXPORT const std::string& tigl::CCPACSWingComponentSegment::GetOuterSegmentUID | ( | ) | const |
TIGL_EXPORT gp_Pnt tigl::CCPACSWingComponentSegment::GetPoint | ( | double | eta, |
double | xsi, | ||
TiglCoordinateSystem | referenceCS = GLOBAL_COORDINATE_SYSTEM |
||
) | const |
TIGL_EXPORT gp_Pnt tigl::CCPACSWingComponentSegment::GetPoint | ( | double | eta, |
double | xsi, | ||
const std::string & | referenceUID, | ||
TiglCoordinateSystem | referenceCS = GLOBAL_COORDINATE_SYSTEM |
||
) | const |
TIGL_EXPORT TopoDS_Face tigl::CCPACSWingComponentSegment::GetSectionElementFace | ( | const std::string & | sectionElementUID | ) | const |
TIGL_EXPORT void tigl::CCPACSWingComponentSegment::GetSegmentEtaXsi | ( | double | csEta, |
double | xsXsi, | ||
std::string & | segmentUID, | ||
double & | seta, | ||
double & | sxsi | ||
) | const |
DEPRECATED TIGL_EXPORT void tigl::CCPACSWingComponentSegment::GetSegmentIntersection | ( | const std::string & | segmentUID, |
double | csEta1, | ||
double | csXsi1, | ||
double | csEta2, | ||
double | csXsi2, | ||
double | eta, | ||
double & | xsi | ||
) | const |
calculates the intersection of a segment iso eta line with a component segment line (defined by its start and end point) returns the xsi coordinate of the intersection This function is deprecated: Use interpolateXsi from etaXsiFunctions
TIGL_EXPORT const SegmentList& tigl::CCPACSWingComponentSegment::GetSegmentList | ( | ) | const |
TIGL_EXPORT std::string tigl::CCPACSWingComponentSegment::GetShortName | ( | ) | const |
TIGL_EXPORT double tigl::CCPACSWingComponentSegment::GetSurfaceArea | ( | ) |
TIGL_EXPORT gp_Vec tigl::CCPACSWingComponentSegment::GetTrailingEdgeDirection | ( | const gp_Pnt & | point, |
const std::string & | defaultSegmentUID = "" |
||
) | const |
|
private |
TIGL_EXPORT double tigl::CCPACSWingComponentSegment::GetTrailingEdgeLength | ( | ) | const |
TIGL_EXPORT const TopoDS_Wire& tigl::CCPACSWingComponentSegment::GetTrailingEdgeLine | ( | ) | const |
TIGL_EXPORT gp_Pnt tigl::CCPACSWingComponentSegment::GetTrailingEdgePoint | ( | double | relativePos | ) | const |
TIGL_EXPORT PNamedShape tigl::CCPACSWingComponentSegment::GetUpperShape | ( | ) | const |
TIGL_EXPORT double tigl::CCPACSWingComponentSegment::GetVolume | ( | ) |
TIGL_EXPORT CCPACSWing& tigl::CCPACSWingComponentSegment::GetWing | ( | ) | const |
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
|
overrideprivatevirtual |
Reimplemented from tigl::CTiglUIDObject.
TIGL_EXPORT bool tigl::CCPACSWingComponentSegment::IsSegmentContained | ( | const CCPACSWingSegment & | segment | ) | const |
|
overridevirtual |
Reimplemented from tigl::generated::CPACSComponentSegment.
|
private |
|
private |
|
private |
|
private |
|
private |
Lower shape of this componentSegment
|
private |
Upper shape of this componentSegment
|
private |
Parent wing
|
private |
List of segments belonging to the component segment.