ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PdmsTools::PdmsObjects::GroupElement Class Reference

Group of elements. More...

#include <PdmsTools.h>

Inheritance diagram for PdmsTools::PdmsObjects::GroupElement:
Collaboration diagram for PdmsTools::PdmsObjects::GroupElement:

Public Member Functions

 GroupElement (Token l)
 
virtual ~GroupElement ()
 
virtual void clear (bool del=false)
 
virtual bool push (GenericItem *i)
 
virtual void remove (GenericItem *i)
 
virtual bool isGroupElement ()
 
virtual bool convertCoordinateSystem ()
 
virtual GenericItemscan (const char *str)
 
virtual bool scan (Token t, std::vector< GenericItem * > &array)
 
virtual Token getType () const
 
virtual std::pair< int, int > write (std::ostream &output, int nbtabs=0) const
 
- Public Member Functions inherited from PdmsTools::PdmsObjects::GenericItem
 GenericItem ()
 Default constructor. More...
 
virtual ~GenericItem ()
 Destructor. More...
 
virtual bool setPosition (const CCVector3 &p)
 
virtual bool setOrientation (const CCVector3 &x, const CCVector3 &y, const CCVector3 &z)
 
virtual GenericItemgetRoot ()
 
virtual bool isDesignElement ()
 
virtual bool setValue (Token t, PointCoordinateType value)
 

Public Attributes

Token level
 
std::list< DesignElement * > elements
 
std::list< GroupElement * > subhierarchy
 
- Public Attributes inherited from PdmsTools::PdmsObjects::GenericItem
GenericItemowner
 Parent imte. More...
 
GenericItemcreator
 Creator item. More...
 
CCVector3 position
 Object position. More...
 
CCVector3 orientation [3]
 Object orientation (X,Y and Z) More...
 
bool isCoordinateSystemUpToDate
 Coordinate system update flag. More...
 
GenericItempositionReference
 Reference object (position) More...
 
GenericItemorientationReferences [3]
 Reference(s) object(s) (orientation) More...
 
char name [c_max_str_length]
 Name. More...
 

Additional Inherited Members

- Protected Member Functions inherited from PdmsTools::PdmsObjects::GenericItem
bool isOrientationValid (unsigned i) const
 
bool completeOrientation ()
 

Detailed Description

Group of elements.

Definition at line 228 of file PdmsTools.h.

Constructor & Destructor Documentation

◆ GroupElement()

GroupElement::GroupElement ( Token  l)
explicit

◆ ~GroupElement()

GroupElement::~GroupElement ( )
virtual

Definition at line 1087 of file PdmsTools.cpp.

References clear().

Member Function Documentation

◆ clear()

void GroupElement::clear ( bool  del = false)
virtual

Definition at line 1089 of file PdmsTools.cpp.

References PdmsTools::PdmsObjects::Stack::Destroy(), elements, and subhierarchy.

Referenced by ~GroupElement().

◆ convertCoordinateSystem()

◆ getType()

virtual Token PdmsTools::PdmsObjects::GroupElement::getType ( ) const
inlinevirtual

Reimplemented from PdmsTools::PdmsObjects::GenericItem.

Definition at line 249 of file PdmsTools.h.

References level.

◆ isGroupElement()

virtual bool PdmsTools::PdmsObjects::GroupElement::isGroupElement ( )
inlinevirtual

Reimplemented from PdmsTools::PdmsObjects::GenericItem.

Definition at line 245 of file PdmsTools.h.

◆ push()

◆ remove()

void GroupElement::remove ( GenericItem i)
virtual

Reimplemented from PdmsTools::PdmsObjects::GenericItem.

Definition at line 1148 of file PdmsTools.cpp.

References elements, and subhierarchy.

◆ scan() [1/2]

GenericItem * GroupElement::scan ( const char *  str)
virtual

◆ scan() [2/2]

bool GroupElement::scan ( Token  t,
std::vector< GenericItem * > &  array 
)
virtual

◆ write()

Member Data Documentation

◆ elements

std::list<DesignElement *> PdmsTools::PdmsObjects::GroupElement::elements

◆ level

Token PdmsTools::PdmsObjects::GroupElement::level

Definition at line 230 of file PdmsTools.h.

Referenced by getType(), GroupElement(), push(), and write().

◆ subhierarchy

std::list<GroupElement *> PdmsTools::PdmsObjects::GroupElement::subhierarchy

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