![]() |
Computer Assited Medical Intervention Tool Kit
version 4.0
|
This class allows you to display a geometric object (arrow, sphere, ...) positionned on an atom. More...
#include <AtomDecoration.h>
Inherits Decoration.
Public Member Functions | |
AtomDecoration (AtomDC *, camitk::GeometricObject::Geometry) | |
this constructor set the current atom to follow More... | |
camitk::GeometricObject::Geometry | getType () const |
void | setColor (const double, const double, const double) |
change the color of the geometric object More... | |
void | setDirection (const double, const double, const double) |
set the direction of the of the object without updating the position More... | |
void | setDirection (const double[3]) |
set the direction of the object, without updating the position More... | |
void | setPosition (const double, const double, const double) |
change the position of the geometric object (even if different from the atom's position) More... | |
void | setSize (const double) |
change the size of the geometric object More... | |
void | show (const bool) |
show the geometric object in 3D or not depending on the paramater More... | |
void | update (const double, const double, const double) |
update the 3D representation More... | |
void | update (const double[3]) |
update the 3D representation More... | |
void | update () |
update the position of the geometric object (using the atom's position) More... | |
~AtomDecoration () | |
![]() | |
Decoration (camitk::Component *theDC) | |
virtual | ~Decoration () |
virtual destructor More... | |
Private Attributes | |
Atom * | myAtom |
camitk::GeometricObject * | myObject |
Additional Inherited Members | |
![]() | |
camitk::Component * | dc |
the data component where the decoration is attached to More... | |
This class allows you to display a geometric object (arrow, sphere, ...) positionned on an atom.
For example an arrow can represent a vector associated to the atom (e.g. a force, its velocity...)
AtomDecoration::AtomDecoration | ( | AtomDC * | adc, |
camitk::GeometricObject::Geometry | t | ||
) |
this constructor set the current atom to follow
References AtomDC::getAtom(), myAtom, myObject, and update().
AtomDecoration::~AtomDecoration | ( | ) |
References Decoration::dc, myObject, camitk::Component::removeProp(), and show().
|
inline |
Referenced by LoadsManager::addDecoration(), and LoadsManager::updateLoadsDisplay().
|
virtual |
change the color of the geometric object
Implements Decoration.
References myObject, and camitk::GeometricObject::setColor().
Referenced by LoadsManager::addDecoration().
void AtomDecoration::setDirection | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
set the direction of the of the object without updating the position
References myObject, camitk::GeometricObject::setDirection(), and camitk::GeometricObject::setSize().
Referenced by setDirection(), and update().
void AtomDecoration::setDirection | ( | const double | v[3] | ) |
set the direction of the object, without updating the position
References setDirection().
void AtomDecoration::setPosition | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
change the position of the geometric object (even if different from the atom's position)
References myObject, and camitk::GeometricObject::setPosition().
Referenced by update().
void AtomDecoration::setSize | ( | const double | s | ) |
change the size of the geometric object
References myObject, and camitk::GeometricObject::setSize().
Referenced by LoadsManager::addDecoration(), and LoadsManager::updateLoadsDisplay().
|
virtual |
show the geometric object in 3D or not depending on the paramater
Implements Decoration.
References camitk::Component::addProp(), Decoration::dc, camitk::GeometricObject::getActor(), camitk::Component::getProp(), and myObject.
Referenced by LoadsManager::addDecoration(), LoadsManager::close(), LoadsManager::setDisplayLoads(), and ~AtomDecoration().
void AtomDecoration::update | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
update the 3D representation
References camitk::GeometricObject::getType(), myObject, setDirection(), setPosition(), and update().
Referenced by LoadsManager::addDecoration().
void AtomDecoration::update | ( | const double | v[3] | ) |
update the 3D representation
References update().
|
virtual |
update the position of the geometric object (using the atom's position)
Implements Decoration.
References Atom::getPosition(), myAtom, myObject, and camitk::GeometricObject::setPosition().
Referenced by AtomDecoration(), and update().
|
private |
Referenced by AtomDecoration(), and update().
|
private |
Referenced by AtomDecoration(), setColor(), setDirection(), setPosition(), setSize(), show(), update(), and ~AtomDecoration().