Computer Assited Medical Intervention Tool Kit  version 4.0
Public Member Functions | Private Attributes | List of all members
AnyDecoration Class Reference

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::GeometrymyGeometry
 the list of geometric object More...
 
StructuralComponentmySC
 the represented SC More...
 

Additional Inherited Members

- Protected Attributes inherited from Decoration
camitk::Componentdc
 the data component where the decoration is attached to More...
 

Detailed Description

This class allows you to display any geometric object represented by a SC (e.g.

a list of nodes, lines, triangles, etc...)

Constructor & Destructor Documentation

◆ AnyDecoration()

AnyDecoration::AnyDecoration ( StructuralComponentDC theDC)

◆ ~AnyDecoration()

AnyDecoration::~AnyDecoration ( )

Member Function Documentation

◆ setColor()

void AnyDecoration::setColor ( const double  r,
const double  g,
const double  b 
)
virtual

change the color of the geometric object

Implements Decoration.

References myGeometry, and camitk::Geometry::setColor().

◆ show()

void AnyDecoration::show ( const bool  d)
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().

◆ update()

void AnyDecoration::update ( )
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().

Member Data Documentation

◆ atomMap

std::AtomVtkPointsIndexMap AnyDecoration::atomMap
private

map atom -> id (order index) in the vtk point set

Referenced by AnyDecoration(), and update().

◆ myGeometry

camitk::Geometry* AnyDecoration::myGeometry
private

the list of geometric object

Referenced by AnyDecoration(), setColor(), show(), update(), and ~AnyDecoration().

◆ mySC

StructuralComponent* AnyDecoration::mySC
private

the represented SC

Referenced by AnyDecoration(), and update().


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