3.4.0
tigl::CreateConnectedElementI Class Referenceabstract

#include <CreateConnectedElementI.h>

+ Inheritance diagram for tigl::CreateConnectedElementI:

Public Member Functions

virtual TIGL_EXPORT void CreateNewConnectedElementAfter (std::string startElementUID)=0
 
virtual TIGL_EXPORT void CreateNewConnectedElementBefore (std::string startElementUID)=0
 
virtual TIGL_EXPORT void CreateNewConnectedElementBetween (std::string startElementUID, std::string endElementUID)=0
 
virtual TIGL_EXPORT void DeleteConnectedElement (std::string ElementUID)=0
 
virtual TIGL_EXPORT std::vector< std::string > GetOrderedConnectedElement ()=0
 

Detailed Description

This class defines the interface (I) of a cpacs object that is capable to create or delete a connected element. By connected element we mean a element that is correctly connected to another element by a segment. For the moment this interface is implemented by the the wing and fuselage classes.

Member Function Documentation

◆ CreateNewConnectedElementAfter()

virtual TIGL_EXPORT void tigl::CreateConnectedElementI::CreateNewConnectedElementAfter ( std::string  startElementUID)
pure virtual

Create a new section, a new element and connect the element to the "startElement". The new element is placed "after" the start element. If there is already a element after the start element, we split the existing segment and insert the new element between the the two elements.

Parameters
startElementUID

Implemented in tigl::CCPACSWing, and tigl::CCPACSFuselage.

◆ CreateNewConnectedElementBefore()

virtual TIGL_EXPORT void tigl::CreateConnectedElementI::CreateNewConnectedElementBefore ( std::string  startElementUID)
pure virtual

Create a new section, a new element and connect the element to the "startElement". The new element is placed "Before" the start element. If there is already a element before the start element, we split the existing segment and insert the new element between the the two elements.

Parameters
startElementUID

Implemented in tigl::CCPACSWing, and tigl::CCPACSFuselage.

◆ CreateNewConnectedElementBetween()

virtual TIGL_EXPORT void tigl::CreateConnectedElementI::CreateNewConnectedElementBetween ( std::string  startElementUID,
std::string  endElementUID 
)
pure virtual

Create a new section, a new element and place the new element between the startElement and the endElement.

Remarks
The startElement and endElement must be connected by a segment.
Parameters
startElementUID
endElementUID

Implemented in tigl::CCPACSWing, and tigl::CCPACSFuselage.

◆ DeleteConnectedElement()

virtual TIGL_EXPORT void tigl::CreateConnectedElementI::DeleteConnectedElement ( std::string  ElementUID)
pure virtual

Delete the connected element tacking care of removing the section and removing or updating the segments.

Implemented in tigl::CCPACSWing, and tigl::CCPACSFuselage.

◆ GetOrderedConnectedElement()

virtual TIGL_EXPORT std::vector<std::string> tigl::CreateConnectedElementI::GetOrderedConnectedElement ( )
pure virtual

Return the current connected element uids in order for this component (wing or fuselage)

Returns

Implemented in tigl::CCPACSWing, and tigl::CCPACSFuselage.


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