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

#include <CCPACSWingSegment.h>

Inheritance diagram for tigl::CCPACSWingSegment:

Data Structures

struct  ChordSurfaceCache
struct  SurfaceCache

Public Member Functions

TIGL_EXPORT CCPACSWingSegment (CCPACSWingSegments *parent, CTiglUIDManager *uidMgr)
TIGL_EXPORT gp_Pnt GetChordNormal (double eta, double xsi) const
TIGL_EXPORT gp_Pnt GetChordPoint (double eta, double xsi, TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM) const
TIGL_EXPORT TiglGeometricComponentIntent GetComponentIntent () const override
TIGL_EXPORT TiglGeometricComponentType GetComponentType () const override
TIGL_EXPORT std::string GetDefaultedUID () const override
TIGL_EXPORT void GetEtaXsi (gp_Pnt pnt, double &eta, double &xsi, gp_Pnt &projectedPoint, TiglGetPointBehavior behavior) const
TIGL_EXPORT TopoDS_Shape GetInnerClosure (TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM, TiglShapeModifier mod=UNMODIFIED_SHAPE) const
TIGL_EXPORT int GetInnerConnectedSegmentCount () const
TIGL_EXPORT int GetInnerConnectedSegmentIndex (int n) const
TIGL_EXPORT CTiglWingConnectionGetInnerConnection ()
TIGL_EXPORT const CTiglWingConnectionGetInnerConnection () const
TIGL_EXPORT gp_Pnt GetInnerProfilePoint (double xsi) const
TIGL_EXPORT int GetInnerSectionElementIndex () const
TIGL_EXPORT const std::string & GetInnerSectionElementUID () const
TIGL_EXPORT int GetInnerSectionIndex () const
TIGL_EXPORT const std::string & GetInnerSectionUID () const
TIGL_EXPORT TopoDS_Wire GetInnerWire (TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM, TiglShapeModifier mod=UNMODIFIED_SHAPE) const
TIGL_EXPORT bool GetIsOn (const gp_Pnt &pnt) const override
TIGL_EXPORT bool GetIsOnTop (gp_Pnt pnt) const
TIGL_EXPORT PNamedShape GetLoft (TiglShapeModifier mod) const
TIGL_EXPORT gp_Pnt GetLowerPoint (double eta, double xsi, TiglGetPointBehavior getPointBehavior) const
TIGL_EXPORT TopoDS_Shape GetLowerShape (TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM, TiglShapeModifier mod=UNMODIFIED_SHAPE) const
TIGL_EXPORT TopoDS_Shape GetOuterClosure (TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM, TiglShapeModifier mod=UNMODIFIED_SHAPE) const
TIGL_EXPORT int GetOuterConnectedSegmentCount () const
TIGL_EXPORT int GetOuterConnectedSegmentIndex (int n) const
TIGL_EXPORT CTiglWingConnectionGetOuterConnection ()
TIGL_EXPORT const CTiglWingConnectionGetOuterConnection () const
TIGL_EXPORT gp_Pnt GetOuterProfilePoint (double xsi) const
TIGL_EXPORT int GetOuterSectionElementIndex () const
TIGL_EXPORT const std::string & GetOuterSectionElementUID () const
TIGL_EXPORT int GetOuterSectionIndex () const
TIGL_EXPORT const std::string & GetOuterSectionUID () const
TIGL_EXPORT TopoDS_Wire GetOuterWire (TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM, TiglShapeModifier mod=UNMODIFIED_SHAPE) const
TIGL_EXPORT CTiglTransformation GetParentTransformation () const
TIGL_EXPORT gp_Pnt GetPoint (double eta, double xsi, bool fromUpper, TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM, TiglGetPointBehavior behavior=asParameterOnSurface) const
TIGL_EXPORT gp_Pnt GetPointDirection (double eta, double xsi, double dirx, double diry, double dirz, bool fromUpper, double &deviation) const
TIGL_EXPORT double GetReferenceArea (TiglSymmetryAxis symPlane) const
TIGL_EXPORT double GetSurfaceArea () const
TIGL_EXPORT double GetSurfaceArea (bool fromUpper, double eta1, double xsi1, double eta2, double xsi2, double eta3, double xsi3, double eta4, double xsi4) const
TIGL_EXPORT TopoDS_Shape GetTrailingEdgeShape (TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM, TiglShapeModifier mod=UNMODIFIED_SHAPE) const
TIGL_EXPORT gp_Pnt GetUpperPoint (double eta, double xsi, TiglGetPointBehavior getPointBehavior) const
TIGL_EXPORT TopoDS_Shape GetUpperShape (TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM, TiglShapeModifier mod=UNMODIFIED_SHAPE) const
TIGL_EXPORT double GetVolume ()
TIGL_EXPORT Handle (Geom_Surface) GetLowerSurface(TiglCoordinateSystem referenceCS
TIGL_EXPORT Handle (Geom_Surface) GetUpperSurface(TiglCoordinateSystem referenceCS
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 ~CCPACSWingSegment () override
Public Member Functions inherited from tigl::generated::CPACSWingSegment
TIGL_EXPORT CPACSWingSegment (CCPACSWingSegments *parent, CTiglUIDManager *uidMgr)
virtual TIGL_EXPORT const boost::optional< std::string > & GetDescription () const
virtual TIGL_EXPORT const std::string & GetFromElementUID () const
virtual TIGL_EXPORT boost::optional< CCPACSGuideCurves > & GetGuideCurves ()
virtual TIGL_EXPORT const boost::optional< CCPACSGuideCurves > & GetGuideCurves () const
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 CCPACSWingSegmentsGetParent ()
TIGL_EXPORT const CCPACSWingSegmentsGetParent () 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 ~CPACSWingSegment ()
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< CCPACSWingSegment >
TIGL_EXPORT CTiglAbstractSegment (const std::vector< std::unique_ptr< CCPACSWingSegment > > &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
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 ()

Data Fields

TIGL_EXPORT TiglShapeModifier mod = UNMODIFIED_SHAPE) const

Protected Member Functions

PNamedShape BuildLoft () const override
Protected Member Functions inherited from tigl::CTiglUIDObject
 ~CTiglUIDObject ()=default

Private Member Functions

const CTiglPointTranslatorChordFace (TiglCoordinateSystem referenceCS=GLOBAL_COORDINATE_SYSTEM) const
void ComputeArea (double &cache) const
void ComputeVolume (double &cache) const
void etaXsiToUV (bool isFromUpper, double eta, double xsi, double &u, double &v) const
std::string GetShortShapeName () const
void InvalidateImpl (const boost::optional< std::string > &source) const override
void MakeChordSurfaces (ChordSurfaceCache &cache) const
void MakeSurfaces (SurfaceCache &cache) const
void uvToEtaXsi (bool isFromUpper, double u, double v, double &eta, double &xsi) const

Private Attributes

Cache< double, CCPACSWingSegmentareaCache
Cache< ChordSurfaceCache, CCPACSWingSegmentchordSurfaceCache
CTiglWingConnection innerConnection
bool loftLinearly = false
std::unique_ptr< IGuideCurveBuilderm_guideCurveBuilder
CTiglWingConnection outerConnection
Cache< SurfaceCache, CCPACSWingSegmentsurfaceCache
Cache< double, CCPACSWingSegmentvolumeCache

Additional Inherited Members

Protected Attributes inherited from tigl::generated::CPACSWingSegment
boost::optional< std::string > m_description
 Description of the wing segment.
std::string m_fromElementUID
 Reference to the element from which the segment shall start.
boost::optional< CCPACSGuideCurvesm_guideCurves
 Optional and additional guidecurves to shape the outer geometry.
std::string m_name
 Name of wing the wing segment.
CCPACSWingSegmentsm_parent
std::string m_toElementUID
 Reference to the element at which the segment shall end.
std::string m_uID
CTiglUIDManagerm_uidMgr
Protected Attributes inherited from tigl::CTiglAbstractSegment< CCPACSWingSegment >
TiglContinuity _continuity
const CTiglAbstractGeometricComponent_parentComponent
const std::vector< std::unique_ptr< CCPACSWingSegment > > & _segments
Protected Attributes inherited from tigl::CTiglAbstractGeometricComponent
Cache< Bnd_Box, CTiglAbstractGeometricComponentbounding_box
Cache< PNamedShape, CTiglAbstractGeometricComponentloft

Constructor & Destructor Documentation

◆ CCPACSWingSegment()

TIGL_EXPORT tigl::CCPACSWingSegment::CCPACSWingSegment ( CCPACSWingSegments * parent,
CTiglUIDManager * uidMgr )

◆ ~CCPACSWingSegment()

TIGL_EXPORT tigl::CCPACSWingSegment::~CCPACSWingSegment ( )
override

Member Function Documentation

◆ BuildLoft()

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

◆ ChordFace()

const CTiglPointTranslator & tigl::CCPACSWingSegment::ChordFace ( TiglCoordinateSystem referenceCS = GLOBAL_COORDINATE_SYSTEM) const
private

◆ ComputeArea()

void tigl::CCPACSWingSegment::ComputeArea ( double & cache) const
private

◆ ComputeVolume()

void tigl::CCPACSWingSegment::ComputeVolume ( double & cache) const
private

◆ etaXsiToUV()

void tigl::CCPACSWingSegment::etaXsiToUV ( bool isFromUpper,
double eta,
double xsi,
double & u,
double & v ) const
private

◆ GetChordNormal()

TIGL_EXPORT gp_Pnt tigl::CCPACSWingSegment::GetChordNormal ( double eta,
double xsi ) const

◆ GetChordPoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSWingSegment::GetChordPoint ( double eta,
double xsi,
TiglCoordinateSystem referenceCS = GLOBAL_COORDINATE_SYSTEM ) const

◆ GetComponentIntent()

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

◆ GetComponentType()

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

◆ GetDefaultedUID()

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

◆ GetEtaXsi()

TIGL_EXPORT void tigl::CCPACSWingSegment::GetEtaXsi ( gp_Pnt pnt,
double & eta,
double & xsi,
gp_Pnt & projectedPoint,
TiglGetPointBehavior behavior ) const

◆ GetInnerClosure()

TIGL_EXPORT TopoDS_Shape tigl::CCPACSWingSegment::GetInnerClosure ( TiglCoordinateSystem referenceCS = GLOBAL_COORDINATE_SYSTEM,
TiglShapeModifier mod = UNMODIFIED_SHAPE ) const

◆ GetInnerConnectedSegmentCount()

TIGL_EXPORT int tigl::CCPACSWingSegment::GetInnerConnectedSegmentCount ( ) const

◆ GetInnerConnectedSegmentIndex()

TIGL_EXPORT int tigl::CCPACSWingSegment::GetInnerConnectedSegmentIndex ( int n) const

◆ GetInnerConnection() [1/2]

TIGL_EXPORT CTiglWingConnection & tigl::CCPACSWingSegment::GetInnerConnection ( )

◆ GetInnerConnection() [2/2]

TIGL_EXPORT const CTiglWingConnection & tigl::CCPACSWingSegment::GetInnerConnection ( ) const

◆ GetInnerProfilePoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSWingSegment::GetInnerProfilePoint ( double xsi) const

◆ GetInnerSectionElementIndex()

TIGL_EXPORT int tigl::CCPACSWingSegment::GetInnerSectionElementIndex ( ) const

◆ GetInnerSectionElementUID()

TIGL_EXPORT const std::string & tigl::CCPACSWingSegment::GetInnerSectionElementUID ( ) const

◆ GetInnerSectionIndex()

TIGL_EXPORT int tigl::CCPACSWingSegment::GetInnerSectionIndex ( ) const

◆ GetInnerSectionUID()

TIGL_EXPORT const std::string & tigl::CCPACSWingSegment::GetInnerSectionUID ( ) const

◆ GetInnerWire()

TIGL_EXPORT TopoDS_Wire tigl::CCPACSWingSegment::GetInnerWire ( TiglCoordinateSystem referenceCS = GLOBAL_COORDINATE_SYSTEM,
TiglShapeModifier mod = UNMODIFIED_SHAPE ) const

◆ GetIsOn()

TIGL_EXPORT bool tigl::CCPACSWingSegment::GetIsOn ( const gp_Pnt & pnt) const
overridevirtual

◆ GetIsOnTop()

TIGL_EXPORT bool tigl::CCPACSWingSegment::GetIsOnTop ( gp_Pnt pnt) const

◆ GetLoft()

TIGL_EXPORT PNamedShape tigl::CCPACSWingSegment::GetLoft ( TiglShapeModifier mod) const

◆ GetLowerPoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSWingSegment::GetLowerPoint ( double eta,
double xsi,
TiglGetPointBehavior getPointBehavior ) const

◆ GetLowerShape()

TIGL_EXPORT TopoDS_Shape tigl::CCPACSWingSegment::GetLowerShape ( TiglCoordinateSystem referenceCS = GLOBAL_COORDINATE_SYSTEM,
TiglShapeModifier mod = UNMODIFIED_SHAPE ) const

◆ GetOuterClosure()

TIGL_EXPORT TopoDS_Shape tigl::CCPACSWingSegment::GetOuterClosure ( TiglCoordinateSystem referenceCS = GLOBAL_COORDINATE_SYSTEM,
TiglShapeModifier mod = UNMODIFIED_SHAPE ) const

◆ GetOuterConnectedSegmentCount()

TIGL_EXPORT int tigl::CCPACSWingSegment::GetOuterConnectedSegmentCount ( ) const

◆ GetOuterConnectedSegmentIndex()

TIGL_EXPORT int tigl::CCPACSWingSegment::GetOuterConnectedSegmentIndex ( int n) const

◆ GetOuterConnection() [1/2]

TIGL_EXPORT CTiglWingConnection & tigl::CCPACSWingSegment::GetOuterConnection ( )

◆ GetOuterConnection() [2/2]

TIGL_EXPORT const CTiglWingConnection & tigl::CCPACSWingSegment::GetOuterConnection ( ) const

◆ GetOuterProfilePoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSWingSegment::GetOuterProfilePoint ( double xsi) const

◆ GetOuterSectionElementIndex()

TIGL_EXPORT int tigl::CCPACSWingSegment::GetOuterSectionElementIndex ( ) const

◆ GetOuterSectionElementUID()

TIGL_EXPORT const std::string & tigl::CCPACSWingSegment::GetOuterSectionElementUID ( ) const

◆ GetOuterSectionIndex()

TIGL_EXPORT int tigl::CCPACSWingSegment::GetOuterSectionIndex ( ) const

◆ GetOuterSectionUID()

TIGL_EXPORT const std::string & tigl::CCPACSWingSegment::GetOuterSectionUID ( ) const

◆ GetOuterWire()

TIGL_EXPORT TopoDS_Wire tigl::CCPACSWingSegment::GetOuterWire ( TiglCoordinateSystem referenceCS = GLOBAL_COORDINATE_SYSTEM,
TiglShapeModifier mod = UNMODIFIED_SHAPE ) const

◆ GetParentTransformation()

TIGL_EXPORT CTiglTransformation tigl::CCPACSWingSegment::GetParentTransformation ( ) const

◆ GetPoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSWingSegment::GetPoint ( double eta,
double xsi,
bool fromUpper,
TiglCoordinateSystem referenceCS = GLOBAL_COORDINATE_SYSTEM,
TiglGetPointBehavior behavior = asParameterOnSurface ) const

◆ GetPointDirection()

TIGL_EXPORT gp_Pnt tigl::CCPACSWingSegment::GetPointDirection ( double eta,
double xsi,
double dirx,
double diry,
double dirz,
bool fromUpper,
double & deviation ) const

◆ GetReferenceArea()

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

◆ GetShortShapeName()

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

◆ GetSurfaceArea() [1/2]

TIGL_EXPORT double tigl::CCPACSWingSegment::GetSurfaceArea ( ) const

◆ GetSurfaceArea() [2/2]

TIGL_EXPORT double tigl::CCPACSWingSegment::GetSurfaceArea ( bool fromUpper,
double eta1,
double xsi1,
double eta2,
double xsi2,
double eta3,
double xsi3,
double eta4,
double xsi4 ) const

◆ GetTrailingEdgeShape()

TIGL_EXPORT TopoDS_Shape tigl::CCPACSWingSegment::GetTrailingEdgeShape ( TiglCoordinateSystem referenceCS = GLOBAL_COORDINATE_SYSTEM,
TiglShapeModifier mod = UNMODIFIED_SHAPE ) const

◆ GetUpperPoint()

TIGL_EXPORT gp_Pnt tigl::CCPACSWingSegment::GetUpperPoint ( double eta,
double xsi,
TiglGetPointBehavior getPointBehavior ) const

◆ GetUpperShape()

TIGL_EXPORT TopoDS_Shape tigl::CCPACSWingSegment::GetUpperShape ( TiglCoordinateSystem referenceCS = GLOBAL_COORDINATE_SYSTEM,
TiglShapeModifier mod = UNMODIFIED_SHAPE ) const

◆ GetVolume()

TIGL_EXPORT double tigl::CCPACSWingSegment::GetVolume ( )

◆ Handle() [1/2]

TIGL_EXPORT tigl::CCPACSWingSegment::Handle ( Geom_Surface )

◆ Handle() [2/2]

TIGL_EXPORT tigl::CCPACSWingSegment::Handle ( Geom_Surface )

◆ InvalidateImpl()

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

Reimplemented from tigl::CTiglUIDObject.

◆ MakeChordSurfaces()

void tigl::CCPACSWingSegment::MakeChordSurfaces ( ChordSurfaceCache & cache) const
private

◆ MakeSurfaces()

void tigl::CCPACSWingSegment::MakeSurfaces ( SurfaceCache & cache) const
private

◆ ReadCPACS()

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

Reimplemented from tigl::generated::CPACSWingSegment.

◆ SetFromElementUID()

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

Reimplemented from tigl::generated::CPACSWingSegment.

◆ SetToElementUID()

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

Reimplemented from tigl::generated::CPACSWingSegment.

◆ uvToEtaXsi()

void tigl::CCPACSWingSegment::uvToEtaXsi ( bool isFromUpper,
double u,
double v,
double & eta,
double & xsi ) const
private

Field Documentation

◆ areaCache

Cache<double, CCPACSWingSegment> tigl::CCPACSWingSegment::areaCache
private

◆ chordSurfaceCache

Cache<ChordSurfaceCache, CCPACSWingSegment> tigl::CCPACSWingSegment::chordSurfaceCache
private

◆ innerConnection

CTiglWingConnection tigl::CCPACSWingSegment::innerConnection
private

Inner segment connection (root)

◆ loftLinearly

bool tigl::CCPACSWingSegment::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::CCPACSWingSegment::m_guideCurveBuilder
private

◆ mod

TIGL_EXPORT TiglShapeModifier tigl::CCPACSWingSegment::mod = UNMODIFIED_SHAPE) const

◆ outerConnection

CTiglWingConnection tigl::CCPACSWingSegment::outerConnection
private

Outer segment connection (tip)

◆ surfaceCache

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

◆ volumeCache

Cache<double, CCPACSWingSegment> tigl::CCPACSWingSegment::volumeCache
private

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