3.4.0
tigl::CCPACSPositionings Class Reference

#include <CCPACSPositionings.h>

+ Inheritance diagram for tigl::CCPACSPositionings:

Public Member Functions

TIGL_EXPORT CCPACSPositionings (CCPACSEnginePylon *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT CCPACSPositionings (CCPACSFuselage *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT CCPACSPositionings (CCPACSDuct *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT CCPACSPositionings (CCPACSWing *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT void Cleanup ()
 
TIGL_EXPORT CCPACSPositioningCreatePositioning (const std::string &fromUID, const std::string &toUID, const CTiglPoint &delta)
 
TIGL_EXPORT CTiglTransformation GetPositioningTransformation (const std::string &sectionUID)
 
TIGL_EXPORT void Invalidate ()
 
TIGL_EXPORT void ReadCPACS (const TixiDocumentHandle &tixiHandle, const std::string &wingXPath) override
 
TIGL_EXPORT void SetPositioningTransformation (const std::string &sectionUID, CTiglPoint newPosition, bool moveDependentPositionings=false)
 
TIGL_EXPORT ~CCPACSPositionings () override
 
- Public Member Functions inherited from tigl::generated::CPACSPositionings
virtual TIGL_EXPORT CCPACSPositioningAddPositioning ()
 
TIGL_EXPORT CPACSPositionings (CCPACSDuct *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT CPACSPositionings (CCPACSEnginePylon *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT CPACSPositionings (CCPACSFuselage *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT CPACSPositionings (CCPACSWing *parent, CTiglUIDManager *uidMgr)
 
virtual TIGL_EXPORT CTiglUIDObjectGetNextUIDParent ()
 
virtual TIGL_EXPORT const CTiglUIDObjectGetNextUIDParent () const
 
template<typename P >
P * GetParent ()
 
template<typename P >
const P * GetParent () const
 
virtual TIGL_EXPORT const std::vector< std::unique_ptr< CCPACSPositioning > > & GetPositionings () const
 
virtual TIGL_EXPORT std::vector< std::unique_ptr< CCPACSPositioning > > & GetPositionings ()
 
TIGL_EXPORT CTiglUIDManagerGetUIDManager ()
 
TIGL_EXPORT const CTiglUIDManagerGetUIDManager () const
 
template<typename P >
bool IsParent () const
 
virtual TIGL_EXPORT void RemovePositioning (CCPACSPositioning &ref)
 
virtual TIGL_EXPORT void WriteCPACS (const TixiDocumentHandle &tixiHandle, const std::string &xpath) const
 
virtual TIGL_EXPORT ~CPACSPositionings ()
 

Protected Member Functions

void Update ()
 

Private Attributes

bool invalidated
 

Additional Inherited Members

- Protected Attributes inherited from tigl::generated::CPACSPositionings
void * m_parent
 
const std::type_info * m_parentType
 
std::vector< std::unique_ptr< CCPACSPositioning > > m_positionings
 
CTiglUIDManagerm_uidMgr
 

Constructor & Destructor Documentation

◆ CCPACSPositionings() [1/4]

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

◆ CCPACSPositionings() [2/4]

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

◆ CCPACSPositionings() [3/4]

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

◆ CCPACSPositionings() [4/4]

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

◆ ~CCPACSPositionings()

TIGL_EXPORT tigl::CCPACSPositionings::~CCPACSPositionings ( )
override

Member Function Documentation

◆ Cleanup()

TIGL_EXPORT void tigl::CCPACSPositionings::Cleanup ( )

◆ CreatePositioning()

TIGL_EXPORT CCPACSPositioning& tigl::CCPACSPositionings::CreatePositioning ( const std::string &  fromUID,
const std::string &  toUID,
const CTiglPoint delta 
)

◆ GetPositioningTransformation()

TIGL_EXPORT CTiglTransformation tigl::CCPACSPositionings::GetPositioningTransformation ( const std::string &  sectionUID)

◆ Invalidate()

TIGL_EXPORT void tigl::CCPACSPositionings::Invalidate ( )

◆ ReadCPACS()

TIGL_EXPORT void tigl::CCPACSPositionings::ReadCPACS ( const TixiDocumentHandle &  tixiHandle,
const std::string &  wingXPath 
)
overridevirtual

◆ SetPositioningTransformation()

TIGL_EXPORT void tigl::CCPACSPositionings::SetPositioningTransformation ( const std::string &  sectionUID,
CTiglPoint  newPosition,
bool  moveDependentPositionings = false 
)

Set positioning transformation. This function will take a section UID and will set the positioning of this section such that the positioning obtained by this section is equal to the given position. @Remark, If the section has no postioning associated to it, the function will create a new positioning that has no from element.

Parameters
sectionUIDThe section that will be modified
newPositionThe new final position given by positionings for this section.
moveDependentPositioningsIf true the sections depending of the positioning of sectionUID will also move. If false, the sections depending of this will stay at the same place, this mean that the function will update the parameters of the depending positonings.
Remarks
No verification is performed on the section UID. So, if the section is not present, a dirty useless positioning will be created.

◆ Update()

void tigl::CCPACSPositionings::Update ( )
protected

Field Documentation

◆ invalidated

bool tigl::CCPACSPositionings::invalidated
private

Internal state flag


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