3.4.0
tigl::CCPACSFuselageSegment Class Reference

#include <CCPACSFuselageSegment.h>

+ Inheritance diagram for tigl::CCPACSFuselageSegment:

Data Structures

struct  SurfaceCache
 
struct  SurfacePropertiesCache
 

Public Member Functions

TIGL_EXPORT CCPACSFuselageSegment (CCPACSFuselageSegments *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT double GetCircumference (const double eta)
 
TIGL_EXPORT TiglGeometricComponentIntent GetComponentIntent () const override
 
TIGL_EXPORT TiglGeometricComponentType GetComponentType () const override
 
TIGL_EXPORT std::string GetDefaultedUID () const override
 
TIGL_EXPORT int GetEndConnectedSegmentCount ()
 
TIGL_EXPORT int GetEndConnectedSegmentIndex (int n)
 
TIGL_EXPORT CTiglFuselageConnectionGetEndConnection ()
 
TIGL_EXPORT int GetEndSectionElementIndex ()
 
TIGL_EXPORT const std::string & GetEndSectionElementUID ()
 
TIGL_EXPORT int GetEndSectionIndex ()
 
TIGL_EXPORT const std::string & GetEndSectionUID () const
 
TIGL_EXPORT TopoDS_Wire GetEndWire (TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM) const
 
TIGL_EXPORT int GetNumberOfLoftFaces () const
 
TIGL_EXPORT int GetNumPointsOnXPlane (double eta, double xpos)
 
TIGL_EXPORT int GetNumPointsOnYPlane (double eta, double ypos)
 
TIGL_EXPORT gp_Pnt GetPoint (double eta, double zeta, TiglGetPointBehavior behavior=asParameterOnSurface)
 
TIGL_EXPORT gp_Pnt GetPointAngle (double eta, double alpha, double y_cs=0.0, double z_cs=0.0, bool absolute=false)
 
TIGL_EXPORT gp_Pnt GetPointOnXPlane (double eta, double xpos, int pointIndex)
 
TIGL_EXPORT gp_Pnt GetPointOnYPlane (double eta, double ypos, int pointIndex)
 
TIGL_EXPORT std::vector< CTiglPointGetRawEndProfilePoints ()
 
TIGL_EXPORT std::vector< CTiglPointGetRawStartProfilePoints ()
 
TIGL_EXPORT int GetStartConnectedSegmentCount ()
 
TIGL_EXPORT int GetStartConnectedSegmentIndex (int n)
 
TIGL_EXPORT CTiglFuselageConnectionGetStartConnection ()
 
TIGL_EXPORT int GetStartSectionElementIndex ()
 
TIGL_EXPORT const std::string & GetStartSectionElementUID ()
 
TIGL_EXPORT int GetStartSectionIndex ()
 
TIGL_EXPORT const std::string & GetStartSectionUID () const
 
TIGL_EXPORT TopoDS_Wire GetStartWire (TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM) const
 
TIGL_EXPORT double GetSurfaceArea ()
 
TIGL_EXPORT gp_Pnt GetTransformedProfileOriginEnd () const
 
TIGL_EXPORT gp_Pnt GetTransformedProfileOriginStart () const
 
TIGL_EXPORT double GetVolume ()
 
TIGL_EXPORT TopoDS_Wire GetWire (const std::string &elementUID, TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM) const
 
TIGL_EXPORT TopoDS_Shape getWireOnLoft (double eta)
 
TIGL_EXPORT void ReadCPACS (const TixiDocumentHandle &tixiHandle, const std::string &segmentXPath) override
 
TIGL_EXPORT void SetFromElementUID (const std::string &value) override
 
TIGL_EXPORT void SetToElementUID (const std::string &value) override
 
TIGL_EXPORT ~CCPACSFuselageSegment () override
 
- Public Member Functions inherited from tigl::generated::CPACSFuselageSegment
TIGL_EXPORT CPACSFuselageSegment (CCPACSFuselageSegments *parent, CTiglUIDManager *uidMgr)
 
virtual TIGL_EXPORT const boost::optional< std::string > & GetDescription () const
 
virtual TIGL_EXPORT const std::string & GetFromElementUID () const
 
virtual TIGL_EXPORT const boost::optional< CCPACSGuideCurves > & GetGuideCurves () const
 
virtual TIGL_EXPORT boost::optional< CCPACSGuideCurves > & GetGuideCurves ()
 
virtual TIGL_EXPORT CCPACSGuideCurvesGetGuideCurves (CreateIfNotExistsTag)
 
virtual TIGL_EXPORT const std::string & GetName () const
 
virtual TIGL_EXPORT CTiglUIDObjectGetNextUIDParent ()
 
virtual TIGL_EXPORT const CTiglUIDObjectGetNextUIDParent () const
 
TIGL_EXPORT CCPACSFuselageSegmentsGetParent ()
 
TIGL_EXPORT const CCPACSFuselageSegmentsGetParent () const
 
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 RemoveGuideCurves ()
 
virtual TIGL_EXPORT void SetDescription (const boost::optional< std::string > &value)
 
virtual TIGL_EXPORT void SetName (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 ~CPACSFuselageSegment ()
 
- 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< CCPACSFuselageSegment >
TIGL_EXPORT CTiglAbstractSegment (const std::vector< std::unique_ptr< CCPACSFuselageSegment >> &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 Member Functions

PNamedShape BuildLoft () const override
 
void BuildSurfaces (SurfaceCache &cache) const
 
void Cleanup ()
 
std::string GetShortShapeName () const
 
void InvalidateImpl (const boost::optional< std::string > &source) const override
 
void SetFaceTraits (PNamedShape loft) const
 
void UpdateSurfaceProperties (SurfacePropertiesCache &cache) const
 

Private Attributes

CTiglFuselageConnection endConnection
 
bool loftLinearly = false
 
std::unique_ptr< IGuideCurveBuilderm_guideCurveBuilder
 
CTiglFuselageConnection startConnection
 
Cache< SurfaceCache, CCPACSFuselageSegmentsurfaceCache
 
Cache< SurfacePropertiesCache, CCPACSFuselageSegmentsurfacePropertiesCache
 

Additional Inherited Members

- Protected Member Functions inherited from tigl::CTiglUIDObject
 ~CTiglUIDObject ()=default
 
- Protected Attributes inherited from tigl::generated::CPACSFuselageSegment
boost::optional< std::string > m_description
 Description of fuselage segment. More...
 
std::string m_fromElementUID
 Reference to element from which the segment shall start. More...
 
boost::optional< CCPACSGuideCurvesm_guideCurves
 Optional and additional guidecurves to shape the outer geometry. More...
 
std::string m_name
 Name of fuselage segment. More...
 
CCPACSFuselageSegmentsm_parent
 
std::string m_toElementUID
 Reference to element at which the segment shall end. More...
 
std::string m_uID
 
CTiglUIDManagerm_uidMgr
 
- Protected Attributes inherited from tigl::CTiglAbstractSegment< CCPACSFuselageSegment >
TiglContinuity _continuity
 
const CTiglAbstractGeometricComponent_parentComponent
 
const std::vector< std::unique_ptr< CCPACSFuselageSegment > > & _segments
 
- Protected Attributes inherited from tigl::CTiglAbstractGeometricComponent
Cache< Bnd_Box, CTiglAbstractGeometricComponentbounding_box
 
Cache< PNamedShape, CTiglAbstractGeometricComponentloft
 

Constructor & Destructor Documentation

◆ CCPACSFuselageSegment()

TIGL_EXPORT tigl::CCPACSFuselageSegment::CCPACSFuselageSegment ( CCPACSFuselageSegments parent,
CTiglUIDManager uidMgr 
)

◆ ~CCPACSFuselageSegment()

TIGL_EXPORT tigl::CCPACSFuselageSegment::~CCPACSFuselageSegment ( )
override

Member Function Documentation

◆ BuildLoft()

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

◆ BuildSurfaces()

void tigl::CCPACSFuselageSegment::BuildSurfaces ( SurfaceCache cache) const
private

◆ Cleanup()

void tigl::CCPACSFuselageSegment::Cleanup ( )
private

◆ GetCircumference()

TIGL_EXPORT double tigl::CCPACSFuselageSegment::GetCircumference ( const double  eta)

◆ GetComponentIntent()

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

◆ GetComponentType()

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

◆ GetDefaultedUID()

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

◆ GetEndConnectedSegmentCount()

TIGL_EXPORT int tigl::CCPACSFuselageSegment::GetEndConnectedSegmentCount ( )

◆ GetEndConnectedSegmentIndex()

TIGL_EXPORT int tigl::CCPACSFuselageSegment::GetEndConnectedSegmentIndex ( int  n)

◆ GetEndConnection()

TIGL_EXPORT CTiglFuselageConnection& tigl::CCPACSFuselageSegment::GetEndConnection ( )

◆ GetEndSectionElementIndex()

TIGL_EXPORT int tigl::CCPACSFuselageSegment::GetEndSectionElementIndex ( )

◆ GetEndSectionElementUID()

TIGL_EXPORT const std::string& tigl::CCPACSFuselageSegment::GetEndSectionElementUID ( )

◆ GetEndSectionIndex()

TIGL_EXPORT int tigl::CCPACSFuselageSegment::GetEndSectionIndex ( )

◆ GetEndSectionUID()

TIGL_EXPORT const std::string& tigl::CCPACSFuselageSegment::GetEndSectionUID ( ) const

◆ GetEndWire()

TIGL_EXPORT TopoDS_Wire tigl::CCPACSFuselageSegment::GetEndWire ( TiglCoordinateSystem  referenceCS = GLOBAL_COORDINATE_SYSTEM) const

◆ GetNumberOfLoftFaces()

TIGL_EXPORT int tigl::CCPACSFuselageSegment::GetNumberOfLoftFaces ( ) const

◆ GetNumPointsOnXPlane()

TIGL_EXPORT int tigl::CCPACSFuselageSegment::GetNumPointsOnXPlane ( double  eta,
double  xpos 
)

◆ GetNumPointsOnYPlane()

TIGL_EXPORT int tigl::CCPACSFuselageSegment::GetNumPointsOnYPlane ( double  eta,
double  ypos 
)

◆ GetPoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSFuselageSegment::GetPoint ( double  eta,
double  zeta,
TiglGetPointBehavior  behavior = asParameterOnSurface 
)

◆ GetPointAngle()

TIGL_EXPORT gp_Pnt tigl::CCPACSFuselageSegment::GetPointAngle ( double  eta,
double  alpha,
double  y_cs = 0.0,
double  z_cs = 0.0,
bool  absolute = false 
)

◆ GetPointOnXPlane()

TIGL_EXPORT gp_Pnt tigl::CCPACSFuselageSegment::GetPointOnXPlane ( double  eta,
double  xpos,
int  pointIndex 
)

◆ GetPointOnYPlane()

TIGL_EXPORT gp_Pnt tigl::CCPACSFuselageSegment::GetPointOnYPlane ( double  eta,
double  ypos,
int  pointIndex 
)

◆ GetRawEndProfilePoints()

TIGL_EXPORT std::vector<CTiglPoint> tigl::CCPACSFuselageSegment::GetRawEndProfilePoints ( )

◆ GetRawStartProfilePoints()

TIGL_EXPORT std::vector<CTiglPoint> tigl::CCPACSFuselageSegment::GetRawStartProfilePoints ( )

◆ GetShortShapeName()

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

◆ GetStartConnectedSegmentCount()

TIGL_EXPORT int tigl::CCPACSFuselageSegment::GetStartConnectedSegmentCount ( )

◆ GetStartConnectedSegmentIndex()

TIGL_EXPORT int tigl::CCPACSFuselageSegment::GetStartConnectedSegmentIndex ( int  n)

◆ GetStartConnection()

TIGL_EXPORT CTiglFuselageConnection& tigl::CCPACSFuselageSegment::GetStartConnection ( )

◆ GetStartSectionElementIndex()

TIGL_EXPORT int tigl::CCPACSFuselageSegment::GetStartSectionElementIndex ( )

◆ GetStartSectionElementUID()

TIGL_EXPORT const std::string& tigl::CCPACSFuselageSegment::GetStartSectionElementUID ( )

◆ GetStartSectionIndex()

TIGL_EXPORT int tigl::CCPACSFuselageSegment::GetStartSectionIndex ( )

◆ GetStartSectionUID()

TIGL_EXPORT const std::string& tigl::CCPACSFuselageSegment::GetStartSectionUID ( ) const

◆ GetStartWire()

TIGL_EXPORT TopoDS_Wire tigl::CCPACSFuselageSegment::GetStartWire ( TiglCoordinateSystem  referenceCS = GLOBAL_COORDINATE_SYSTEM) const

◆ GetSurfaceArea()

TIGL_EXPORT double tigl::CCPACSFuselageSegment::GetSurfaceArea ( )

◆ GetTransformedProfileOriginEnd()

TIGL_EXPORT gp_Pnt tigl::CCPACSFuselageSegment::GetTransformedProfileOriginEnd ( ) const

◆ GetTransformedProfileOriginStart()

TIGL_EXPORT gp_Pnt tigl::CCPACSFuselageSegment::GetTransformedProfileOriginStart ( ) const

◆ GetVolume()

TIGL_EXPORT double tigl::CCPACSFuselageSegment::GetVolume ( )

◆ GetWire()

TIGL_EXPORT TopoDS_Wire tigl::CCPACSFuselageSegment::GetWire ( const std::string &  elementUID,
TiglCoordinateSystem  referenceCS = GLOBAL_COORDINATE_SYSTEM 
) const

◆ getWireOnLoft()

TIGL_EXPORT TopoDS_Shape tigl::CCPACSFuselageSegment::getWireOnLoft ( double  eta)

◆ InvalidateImpl()

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

Reimplemented from tigl::CTiglUIDObject.

◆ ReadCPACS()

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

◆ SetFaceTraits()

void tigl::CCPACSFuselageSegment::SetFaceTraits ( PNamedShape  loft) const
private

◆ SetFromElementUID()

TIGL_EXPORT void tigl::CCPACSFuselageSegment::SetFromElementUID ( const std::string &  value)
overridevirtual

◆ SetToElementUID()

TIGL_EXPORT void tigl::CCPACSFuselageSegment::SetToElementUID ( const std::string &  value)
overridevirtual

◆ UpdateSurfaceProperties()

void tigl::CCPACSFuselageSegment::UpdateSurfaceProperties ( SurfacePropertiesCache cache) const
private

Field Documentation

◆ endConnection

CTiglFuselageConnection tigl::CCPACSFuselageSegment::endConnection
private

End segment connection

◆ loftLinearly

bool tigl::CCPACSFuselageSegment::loftLinearly = false
private

Set to true to speed up lofting of the segment. This removes the dependency on the fuselage loft at the price of a nonsmooth fuselage

◆ m_guideCurveBuilder

std::unique_ptr<IGuideCurveBuilder> tigl::CCPACSFuselageSegment::m_guideCurveBuilder
private

◆ startConnection

CTiglFuselageConnection tigl::CCPACSFuselageSegment::startConnection
private

Start segment connection

◆ surfaceCache

Cache<SurfaceCache, CCPACSFuselageSegment> tigl::CCPACSFuselageSegment::surfaceCache
private

◆ surfacePropertiesCache

Cache<SurfacePropertiesCache, CCPACSFuselageSegment> tigl::CCPACSFuselageSegment::surfacePropertiesCache
private

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