![]() |
Computer Assited Medical Intervention Tool Kit
version 3.3
|
This class allows you to display a geometric object (arrow, sphere, ...) positionned on an atom. More...
#include <AtomDecoration.h>
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 * | , |
camitk::GeometricObject::Geometry | |||
) |
this constructor set the current atom to follow
AtomDecoration::~AtomDecoration | ( | ) |
|
inline |
References camitk::GeometricObject::getType(), and myObject.
|
virtual |
change the color of the geometric object
Implements Decoration.
void AtomDecoration::setDirection | ( | const double | , |
const double | , | ||
const double | |||
) |
set the direction of the of the object without updating the position
void AtomDecoration::setDirection | ( | const double | [3] | ) |
set the direction of the object, without updating the position
void AtomDecoration::setPosition | ( | const double | , |
const double | , | ||
const double | |||
) |
change the position of the geometric object (even if different from the atom's position)
void AtomDecoration::setSize | ( | const double | ) |
change the size of the geometric object
|
virtual |
show the geometric object in 3D or not depending on the paramater
Implements Decoration.
void AtomDecoration::update | ( | const double | , |
const double | , | ||
const double | |||
) |
update the 3D representation
void AtomDecoration::update | ( | const double | [3] | ) |
update the 3D representation
|
virtual |
update the position of the geometric object (using the atom's position)
Implements Decoration.
|
private |
|
private |
Referenced by getType().