ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PdmsTools::PdmsObjects::GenericItem Class Referenceabstract

Generic item. More...

#include <PdmsTools.h>

Inheritance diagram for PdmsTools::PdmsObjects::GenericItem:
[legend]
Collaboration diagram for PdmsTools::PdmsObjects::GenericItem:
[legend]

Public Member Functions

 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 bool convertCoordinateSystem ()
 
virtual GenericItem * getRoot ()
 
virtual bool push (GenericItem *i)=0
 
virtual void remove (GenericItem *i)
 
virtual bool isGroupElement ()
 
virtual bool isDesignElement ()
 
virtual Token getType () const
 
virtual bool setValue (Token t, PointCoordinateType value)
 
virtual GenericItem * scan (const char *str)
 
virtual bool scan (Token t, std::vector< GenericItem * > &array)
 
virtual std::pair< int, int > write (std::ostream &output, int nbtabs=0) const =0
 

Public Attributes

GenericItem * owner
 Parent imte. More...
 
GenericItem * creator
 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...
 
GenericItem * positionReference
 Reference object (position) More...
 
GenericItem * orientationReferences [3]
 Reference(s) object(s) (orientation) More...
 
char name [c_max_str_length]
 Name. More...
 

Protected Member Functions

bool isOrientationValid (unsigned i) const
 
bool completeOrientation ()
 

Detailed Description

Generic item.

Constructor & Destructor Documentation

◆ GenericItem()

GenericItem::GenericItem ( )

Default constructor.

References name, orientation, and orientationReferences.

◆ ~GenericItem()

virtual PdmsTools::PdmsObjects::GenericItem::~GenericItem ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ completeOrientation()

◆ convertCoordinateSystem()

◆ getRoot()

◆ getType()

◆ isDesignElement()

virtual bool PdmsTools::PdmsObjects::GenericItem::isDesignElement ( )
inlinevirtual

◆ isGroupElement()

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

◆ isOrientationValid()

bool GenericItem::isOrientationValid ( unsigned  i) const
protected

◆ push()

◆ remove()

◆ scan() [1/2]

virtual GenericItem* PdmsTools::PdmsObjects::GenericItem::scan ( const char *  str)
inlinevirtual

◆ scan() [2/2]

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

Reimplemented in PdmsTools::PdmsObjects::GroupElement.

References getType(), and memfail.

◆ setOrientation()

bool GenericItem::setOrientation ( const CCVector3 &  x,
const CCVector3 &  y,
const CCVector3 &  z 
)
virtual

◆ setPosition()

bool GenericItem::setPosition ( const CCVector3 &  p)
virtual

◆ setValue()

◆ write()

Member Data Documentation

◆ creator

GenericItem* PdmsTools::PdmsObjects::GenericItem::creator

Creator item.

◆ isCoordinateSystemUpToDate

bool PdmsTools::PdmsObjects::GenericItem::isCoordinateSystemUpToDate

◆ name

◆ orientation

◆ orientationReferences

GenericItem* PdmsTools::PdmsObjects::GenericItem::orientationReferences[3]

Reference(s) object(s) (orientation)

Referenced by convertCoordinateSystem(), PdmsTools::PdmsCommands::Orientation::execute(), and GenericItem().

◆ owner

◆ position

◆ positionReference

GenericItem* PdmsTools::PdmsObjects::GenericItem::positionReference

Reference object (position)

Referenced by convertCoordinateSystem(), and PdmsTools::PdmsCommands::Position::execute().


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