![]() |
Computer Assited Medical Intervention Tool Kit
version 4.0
|
This class allows you to display any geometric object represented by a SC (e.g. More...
#include <AnyDecoration.h>
Inherits Decoration.
Public Member Functions | |
| AnyDecoration (StructuralComponentDC *theDC) | |
| this constructor set the current atom to follow More... | |
| void | setColor (const double, const double, const double) |
| change the color of the geometric object More... | |
| void | show (const bool) |
| show the geometric object in 3D or not depending on the parameter More... | |
| void | update () |
| update the 3D representation: use the current position of the atoms to represent the geometric structure More... | |
| ~AnyDecoration () | |
Public Member Functions inherited from Decoration | |
| Decoration (camitk::Component *theDC) | |
| virtual | ~Decoration () |
| virtual destructor More... | |
Private Attributes | |
| std::AtomVtkPointsIndexMap | atomMap |
| map atom -> id (order index) in the vtk point set More... | |
| camitk::Geometry * | myGeometry |
| the list of geometric object More... | |
| StructuralComponent * | mySC |
| the represented SC More... | |
Additional Inherited Members | |
Protected Attributes inherited from Decoration | |
| camitk::Component * | dc |
| the data component where the decoration is attached to More... | |
This class allows you to display any geometric object represented by a SC (e.g.
a list of nodes, lines, triangles, etc...)
| AnyDecoration::AnyDecoration | ( | StructuralComponentDC * | theDC | ) |
this constructor set the current atom to follow
References atomMap, StructuralComponent::getColor(), StructuralComponent::getMode(), camitk::Component::getName(), ComponentDC::getPMManagerDC(), StructuralComponentDC::getSC(), myGeometry, mySC, camitk::Geometry::setActorColor(), camitk::Geometry::setRenderingModes(), StructuralComponentDC::structuralComponentToVtk(), and PMManagerDC::toDCRenderingMode().
| AnyDecoration::~AnyDecoration | ( | ) |
References Decoration::dc, myGeometry, camitk::Component::removeProp(), and show().
|
virtual |
change the color of the geometric object
Implements Decoration.
References myGeometry, and camitk::Geometry::setColor().
|
virtual |
show the geometric object in 3D or not depending on the parameter
Implements Decoration.
References camitk::Component::addProp(), Decoration::dc, camitk::Geometry::getActor(), camitk::Component::getProp(), camitk::Geometry::getRenderingModes(), and myGeometry.
Referenced by ~AnyDecoration().
|
virtual |
update the 3D representation: use the current position of the atoms to represent the geometric structure
Implements Decoration.
References atomMap, StructuralComponent::getAtoms(), StructuralComponent::getNumberOfStructures(), Atom::getPosition(), StructuralComponent::getStructure(), myGeometry, mySC, and camitk::Geometry::setPointPosition().
|
private |
map atom -> id (order index) in the vtk point set
Referenced by AnyDecoration(), and update().
|
private |
the list of geometric object
Referenced by AnyDecoration(), setColor(), show(), update(), and ~AnyDecoration().
|
private |
the represented SC
Referenced by AnyDecoration(), and update().
1.8.13