3.4.0
tigl::CCPACSPositioning Class Reference

#include <CCPACSPositioning.h>

+ Inheritance diagram for tigl::CCPACSPositioning:

Public Member Functions

TIGL_EXPORT void AddDependentPositioning (CCPACSPositioning *child)
 
TIGL_EXPORT CCPACSPositioning (CCPACSPositionings *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT void DisconnectDependentPositionings ()
 
TIGL_EXPORT const std::vector< CCPACSPositioning * > GetDependentPositionings () const
 
TIGL_EXPORT const CTiglPointGetFromPoint ()
 
TIGL_EXPORT const CTiglPointGetToPoint ()
 
TIGL_EXPORT CTiglTransformation GetToTransformation ()
 
TIGL_EXPORT void ReadCPACS (const TixiDocumentHandle &tixiHandle, const std::string &positioningXPath) override
 
TIGL_EXPORT void SetDihedralAngle (const double &value) override
 
TIGL_EXPORT void SetFromPoint (const CTiglPoint &aPoint)
 
TIGL_EXPORT void SetFromSectionUID (const boost::optional< std::string > &value) override
 
TIGL_EXPORT void SetLength (const double &value) override
 
TIGL_EXPORT void SetParametersFromVector (const CTiglPoint &delta, bool rounding=true)
 
TIGL_EXPORT void SetSweepAngle (const double &value) override
 
TIGL_EXPORT void SetToPoint (const CTiglPoint &newPosition, bool moveDependentPositionings=false)
 
TIGL_EXPORT void SetToSectionUID (const std::string &value) override
 
- Public Member Functions inherited from tigl::generated::CPACSPositioning
TIGL_EXPORT CPACSPositioning (CCPACSPositionings *parent, CTiglUIDManager *uidMgr)
 
virtual TIGL_EXPORT const boost::optional< std::string > & GetDescription () const
 
virtual TIGL_EXPORT const double & GetDihedralAngle () const
 
virtual TIGL_EXPORT const boost::optional< std::string > & GetFromSectionUID () const
 
virtual TIGL_EXPORT const double & GetLength () const
 
virtual TIGL_EXPORT const std::string & GetName () const
 
virtual TIGL_EXPORT CTiglUIDObjectGetNextUIDParent ()
 
virtual TIGL_EXPORT const CTiglUIDObjectGetNextUIDParent () const
 
TIGL_EXPORT CCPACSPositioningsGetParent ()
 
TIGL_EXPORT const CCPACSPositioningsGetParent () const
 
virtual TIGL_EXPORT const double & GetSweepAngle () const
 
virtual TIGL_EXPORT const std::string & GetToSectionUID () const
 
virtual TIGL_EXPORT const std::string & GetUID () const
 
TIGL_EXPORT CTiglUIDManagerGetUIDManager ()
 
TIGL_EXPORT const CTiglUIDManagerGetUIDManager () const
 
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 ~CPACSPositioning ()
 
- 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
 

Protected Member Functions

void BuildMatrix ()
 
void SetFromPointKeepingToPoint (const CTiglPoint &newFromPosition)
 
void Update ()
 
- Protected Member Functions inherited from tigl::CTiglUIDObject
 ~CTiglUIDObject ()=default
 

Private Member Functions

void InvalidateImpl (const boost::optional< std::string > &source) const override
 

Private Attributes

std::vector< CCPACSPositioning * > _dependentPositionings
 
CTiglPoint _fromPoint
 
CTiglPoint _toPoint
 
CTiglTransformation _toTransformation
 
bool invalidated
 

Additional Inherited Members

- Protected Attributes inherited from tigl::generated::CPACSPositioning
boost::optional< std::string > m_description
 Description of the positioning. More...
 
double m_dihedralAngle
 Dihedralangle between inner and outer section. This angle equals a positive rotation of the positioing vector around the x-axis of the wing coordinate system. More...
 
boost::optional< std::string > m_fromSectionUID
 Reference to starting section of the positioning vector. If missing, the positioning is made from the orgin of the wing coordinate system. More...
 
double m_length
 Distance between inner and outer section (length of the positioning vector). More...
 
std::string m_name
 Name of the positioning. More...
 
CCPACSPositioningsm_parent
 
double m_sweepAngle
 Sweepangle between inner and outer section. This angle equals a positive rotation of the positioing vector around the z-axis of the wing coordinate system. More...
 
std::string m_toSectionUID
 Reference to ending section (section to be positioned) of the positioning vector. More...
 
std::string m_uID
 
CTiglUIDManagerm_uidMgr
 

Constructor & Destructor Documentation

◆ CCPACSPositioning()

TIGL_EXPORT tigl::CCPACSPositioning::CCPACSPositioning ( CCPACSPositionings parent,
CTiglUIDManager uidMgr 
)

Member Function Documentation

◆ AddDependentPositioning()

TIGL_EXPORT void tigl::CCPACSPositioning::AddDependentPositioning ( CCPACSPositioning child)

◆ BuildMatrix()

void tigl::CCPACSPositioning::BuildMatrix ( )
protected

◆ DisconnectDependentPositionings()

TIGL_EXPORT void tigl::CCPACSPositioning::DisconnectDependentPositionings ( )

◆ GetDependentPositionings()

TIGL_EXPORT const std::vector<CCPACSPositioning*> tigl::CCPACSPositioning::GetDependentPositionings ( ) const

◆ GetFromPoint()

TIGL_EXPORT const CTiglPoint& tigl::CCPACSPositioning::GetFromPoint ( )

◆ GetToPoint()

TIGL_EXPORT const CTiglPoint& tigl::CCPACSPositioning::GetToPoint ( )

◆ GetToTransformation()

TIGL_EXPORT CTiglTransformation tigl::CCPACSPositioning::GetToTransformation ( )

◆ InvalidateImpl()

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

Reimplemented from tigl::CTiglUIDObject.

◆ ReadCPACS()

TIGL_EXPORT void tigl::CCPACSPositioning::ReadCPACS ( const TixiDocumentHandle &  tixiHandle,
const std::string &  positioningXPath 
)
overridevirtual

Reimplemented from tigl::generated::CPACSPositioning.

◆ SetDihedralAngle()

TIGL_EXPORT void tigl::CCPACSPositioning::SetDihedralAngle ( const double &  value)
overridevirtual

Reimplemented from tigl::generated::CPACSPositioning.

◆ SetFromPoint()

TIGL_EXPORT void tigl::CCPACSPositioning::SetFromPoint ( const CTiglPoint aPoint)

◆ SetFromPointKeepingToPoint()

void tigl::CCPACSPositioning::SetFromPointKeepingToPoint ( const CTiglPoint newFromPosition)
protected

Set the positioning vector (length, sweep, dihedral) such that the "toPoint" does not move if the "fromPoint" take the new position "newFromPosition"

Remarks
This method is useful to update a positioning without changing its dependencies.
Parameters
newFromPositionthe new position of the from point.

◆ SetFromSectionUID()

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

Reimplemented from tigl::generated::CPACSPositioning.

◆ SetLength()

TIGL_EXPORT void tigl::CCPACSPositioning::SetLength ( const double &  value)
overridevirtual

Reimplemented from tigl::generated::CPACSPositioning.

◆ SetParametersFromVector()

TIGL_EXPORT void tigl::CCPACSPositioning::SetParametersFromVector ( const CTiglPoint delta,
bool  rounding = true 
)

Set the length, sweep and dihedral parameter from the given positioning vector.

Remarks
The fromSectionUID nor the toSectionUID are changed.
Parameters
delta
rounding,ifrounding is set to true angle and length will be rounding near common value as 0 ,90,180,..

◆ SetSweepAngle()

TIGL_EXPORT void tigl::CCPACSPositioning::SetSweepAngle ( const double &  value)
overridevirtual

Reimplemented from tigl::generated::CPACSPositioning.

◆ SetToPoint()

TIGL_EXPORT void tigl::CCPACSPositioning::SetToPoint ( const CTiglPoint newPosition,
bool  moveDependentPositionings = false 
)

Set the toPoint of this positioning. By the the "toPoint", we mean the total position obtain by the section from this positioning and its parent positionings.

Parameters
aPoint
moveDependentPositioningsIf true, the dependent positionings will also move from the delta between the newPosition and the old position. If false, the dependent positioning will keep their positions (but, their parameters (sweep,...) need to be updated).

◆ SetToSectionUID()

TIGL_EXPORT void tigl::CCPACSPositioning::SetToSectionUID ( const std::string &  value)
overridevirtual

Reimplemented from tigl::generated::CPACSPositioning.

◆ Update()

void tigl::CCPACSPositioning::Update ( )
protected

Field Documentation

◆ _dependentPositionings

std::vector<CCPACSPositioning*> tigl::CCPACSPositioning::_dependentPositionings
private

◆ _fromPoint

CTiglPoint tigl::CCPACSPositioning::_fromPoint
private

◆ _toPoint

CTiglPoint tigl::CCPACSPositioning::_toPoint
private

◆ _toTransformation

CTiglTransformation tigl::CCPACSPositioning::_toTransformation
private

◆ invalidated

bool tigl::CCPACSPositioning::invalidated
mutableprivate

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