3.5.0
Loading...
Searching...
No Matches
tigl::CCPACSGenericSystem Class Reference

#include <CCPACSGenericSystem.h>

+ Inheritance diagram for tigl::CCPACSGenericSystem:

Public Member Functions

TIGL_EXPORT CCPACSGenericSystem (CCPACSGenericSystems *parent, CTiglUIDManager *uidMgr)
 
TIGL_EXPORT boost::optional< CTiglPointGetCenterOfGravity () const
 Returns the center of gravity of the system.
 
TIGL_EXPORT TiglGeometricComponentIntent GetComponentIntent () const override
 
TIGL_EXPORT TiglGeometricComponentType GetComponentType () const override
 
TIGL_EXPORT CCPACSConfigurationGetConfiguration () const
 
TIGL_EXPORT std::string GetDefaultedUID () const override
 
TIGL_EXPORT double GetMassAllComponents () const
 Returns the total mass of all components in the system.
 
TIGL_EXPORT double GetMassPositionedComponents () const
 Returns the total mass of all explicitly positioned components.
 
virtual TIGL_EXPORT ~CCPACSGenericSystem ()
 
- Public Member Functions inherited from tigl::generated::CPACSGenericSystem
TIGL_EXPORT CPACSGenericSystem (CCPACSGenericSystems *parent, CTiglUIDManager *uidMgr)
 
virtual TIGL_EXPORT boost::optional< CPACSComponents > & GetComponents ()
 
virtual TIGL_EXPORT const boost::optional< CPACSComponents > & GetComponents () const
 
virtual TIGL_EXPORT CPACSComponentsGetComponents (CreateIfNotExistsTag)
 
virtual TIGL_EXPORT const boost::optional< std::string > & GetDescription () const
 
virtual TIGL_EXPORT const std::string & GetName () const
 
virtual TIGL_EXPORT CTiglUIDObjectGetNextUIDParent ()
 
virtual TIGL_EXPORT const CTiglUIDObjectGetNextUIDParent () const
 
TIGL_EXPORT CCPACSGenericSystemsGetParent ()
 
TIGL_EXPORT const CCPACSGenericSystemsGetParent () const
 
virtual TIGL_EXPORT const std::string & GetUID () const
 
TIGL_EXPORT CTiglUIDManagerGetUIDManager ()
 
TIGL_EXPORT const CTiglUIDManagerGetUIDManager () const
 
virtual TIGL_EXPORT void ReadCPACS (const TixiDocumentHandle &tixiHandle, const std::string &xpath)
 
virtual TIGL_EXPORT void RemoveComponents ()
 
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 ~CPACSGenericSystem ()
 
- 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::CTiglRelativelyPositionedComponent
TIGL_EXPORT CTiglRelativelyPositionedComponent (MaybeOptionalPtr< std::string > parentUid, MaybeOptionalPtr< CCPACSTransformation > trans)
 
TIGL_EXPORT CTiglRelativelyPositionedComponent (MaybeOptionalPtr< std::string > parentUid, MaybeOptionalPtr< CCPACSTransformation > trans, boost::optional< TiglSymmetryAxis > *symmetryAxis)
 
TIGL_EXPORT CTiglRelativelyPositionedComponent (MaybeOptionalPtr< std::string > parentUid, MaybeOptionalPtr< CCPACSTransformationSE3 > trans)
 
TIGL_EXPORT CTiglRelativelyPositionedComponent (tigl::CTiglRelativelyPositionedComponent *parent, MaybeOptionalPtr< CCPACSTransformation > trans)
 
TIGL_EXPORT CTiglRelativelyPositionedComponent (tigl::CTiglRelativelyPositionedComponent *parent, MaybeOptionalPtr< CCPACSTransformation > trans, boost::optional< TiglSymmetryAxis > *symmetryAxis)
 
TIGL_EXPORT ChildContainerType GetChildren (bool recursive)
 
TIGL_EXPORT boost::optional< const std::string & > GetParentUID () const
 
virtual TIGL_EXPORT CTiglPoint GetRotation () const
 
virtual TIGL_EXPORT ECPACSTranslationType GetRotationType () const
 
virtual TIGL_EXPORT CTiglPoint GetScaling () const
 
virtual TIGL_EXPORT ECPACSTranslationType GetScalingType () const
 
TIGL_EXPORT TiglSymmetryAxis GetSymmetryAxis () const override
 
virtual TIGL_EXPORT CTiglTransformation GetTransformationMatrix () const
 
virtual TIGL_EXPORT CTiglPoint GetTranslation () const
 
virtual TIGL_EXPORT ECPACSTranslationType GetTranslationType () const
 
TIGL_EXPORT void Reset () const
 
TIGL_EXPORT void SetParentUID (const std::string &parentUID)
 
virtual TIGL_EXPORT void SetSymmetryAxis (const TiglSymmetryAxis &axis)
 
virtual TIGL_EXPORT void SetTransformation (const CCPACSTransformation &transform)
 
- 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 bool IsIndependentGeometry () const
 
virtual ~ITiglGeometricComponent ()
 

Protected Member Functions

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

Private Member Functions

std::string GetShortShapeName () const
 

Additional Inherited Members

- Public Types inherited from tigl::CTiglRelativelyPositionedComponent
typedef std::vector< CTiglRelativelyPositionedComponent * > ChildContainerType
 
- Protected Types inherited from tigl::CTiglRelativelyPositionedComponent
typedef std::map< int, int > FusedElementsContainerType
 
- Protected Attributes inherited from tigl::generated::CPACSGenericSystem
boost::optional< CPACSComponentsm_components
 Components.
 
boost::optional< std::string > m_description
 Description.
 
std::string m_name
 Name.
 
CCPACSGenericSystemsm_parent
 
std::string m_uID
 UID.
 
CTiglUIDManagerm_uidMgr
 
- Protected Attributes inherited from tigl::CTiglAbstractGeometricComponent
Cache< Bnd_Box, CTiglAbstractGeometricComponentbounding_box
 
Cache< PNamedShape, CTiglAbstractGeometricComponentloft
 

Constructor & Destructor Documentation

◆ CCPACSGenericSystem()

TIGL_EXPORT tigl::CCPACSGenericSystem::CCPACSGenericSystem ( CCPACSGenericSystems * parent,
CTiglUIDManager * uidMgr )

◆ ~CCPACSGenericSystem()

virtual TIGL_EXPORT tigl::CCPACSGenericSystem::~CCPACSGenericSystem ( )
virtual

Member Function Documentation

◆ BuildLoft()

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

◆ GetCenterOfGravity()

TIGL_EXPORT boost::optional< CTiglPoint > tigl::CCPACSGenericSystem::GetCenterOfGravity ( ) const

Returns the center of gravity of the system.

The system CoG is computed as the mass-weighted average of the global centers of gravity of all contained CCPACSComponent instances.

Only components that satisfy all of the following conditions are considered:

  • The component is explicitly positioned (see CCPACSComponent::IsPositioned()).
  • A valid positive mass is available.
  • A global center of gravity can be determined.

If no contributing mass is available, boost::none is returned.

Returns
Global system center of gravity, or boost::none if undefined.

◆ GetComponentIntent()

TIGL_EXPORT TiglGeometricComponentIntent tigl::CCPACSGenericSystem::GetComponentIntent ( ) const
overridevirtual

◆ GetComponentType()

TIGL_EXPORT TiglGeometricComponentType tigl::CCPACSGenericSystem::GetComponentType ( ) const
overridevirtual

◆ GetConfiguration()

TIGL_EXPORT CCPACSConfiguration & tigl::CCPACSGenericSystem::GetConfiguration ( ) const

◆ GetDefaultedUID()

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

◆ GetMassAllComponents()

TIGL_EXPORT double tigl::CCPACSGenericSystem::GetMassAllComponents ( ) const

Returns the total mass of all components in the system.

The mass is computed as the sum of the masses of all contained CCPACSComponent instances.

Components without a valid mass definition contribute zero mass. Positioning of the components is not required.

Returns
Total mass of all components in the system.

◆ GetMassPositionedComponents()

TIGL_EXPORT double tigl::CCPACSGenericSystem::GetMassPositionedComponents ( ) const

Returns the total mass of all explicitly positioned components.

The mass is computed as the sum of the masses of all contained CCPACSComponent instances for which IsPositioned() returns true.

Components without a valid mass definition contribute zero mass.

Returns
Total mass of all positioned components in the system.

◆ GetShortShapeName()

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

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