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:
Collaboration diagram for PdmsTools::PdmsObjects::GenericItem:

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 GenericItemgetRoot ()
 
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 GenericItemscan (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

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...
 

Protected Member Functions

bool isOrientationValid (unsigned i) const
 
bool completeOrientation ()
 

Detailed Description

Generic item.

Definition at line 137 of file PdmsTools.h.

Constructor & Destructor Documentation

◆ GenericItem()

GenericItem::GenericItem ( )

Default constructor.

Definition at line 873 of file PdmsTools.cpp.

References name, orientation, and orientationReferences.

◆ ~GenericItem()

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

Destructor.

Definition at line 162 of file PdmsTools.h.

Member Function Documentation

◆ completeOrientation()

bool GenericItem::completeOrientation ( )
protected

◆ convertCoordinateSystem()

◆ getRoot()

virtual GenericItem* PdmsTools::PdmsObjects::GenericItem::getRoot ( )
inlinevirtual

◆ getType()

◆ isDesignElement()

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

Reimplemented in PdmsTools::PdmsObjects::DesignElement.

Definition at line 182 of file PdmsTools.h.

Referenced by PdmsTools::PdmsObjects::DesignElement::push().

◆ isGroupElement()

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

Reimplemented in PdmsTools::PdmsObjects::GroupElement.

Definition at line 181 of file PdmsTools.h.

◆ isOrientationValid()

bool GenericItem::isOrientationValid ( unsigned  i) const
protected

Definition at line 904 of file PdmsTools.cpp.

References cloudViewer::GreaterThanEpsilon(), and orientation.

Referenced by completeOrientation(), and convertCoordinateSystem().

◆ 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.

Definition at line 1024 of file PdmsTools.cpp.

References getType(), and memfail.

◆ setOrientation()

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

Definition at line 895 of file PdmsTools.cpp.

References orientation.

Referenced by PdmsTools::PdmsCommands::Orientation::execute().

◆ setPosition()

bool GenericItem::setPosition ( const CCVector3 p)
virtual

Reimplemented in PdmsTools::PdmsObjects::Vertex.

Definition at line 890 of file PdmsTools.cpp.

References position.

Referenced by PdmsTools::PdmsCommands::Position::execute().

◆ setValue()

◆ write()

Member Data Documentation

◆ creator

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

Creator item.

Definition at line 142 of file PdmsTools.h.

Referenced by PdmsTools::PdmsCommands::ElementCreation::execute().

◆ isCoordinateSystemUpToDate

bool PdmsTools::PdmsObjects::GenericItem::isCoordinateSystemUpToDate

Coordinate system update flag.

Definition at line 149 of file PdmsTools.h.

Referenced by convertCoordinateSystem(), and PdmsTools::PdmsObjects::GroupElement::convertCoordinateSystem().

◆ name

◆ orientation

◆ orientationReferences

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

Reference(s) object(s) (orientation)

Definition at line 154 of file PdmsTools.h.

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

◆ owner

◆ position

◆ positionReference

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

Reference object (position)

Definition at line 152 of file PdmsTools.h.

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


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