Computer Assited Medical Intervention Tool Kit  version 4.0
AnyDecoration.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2016 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 #ifndef ANYDECORATION_H
27 #define ANYDECORATION_H
28 
29 #include "Decoration.h"
30 
31 #include <vector>
32 
34 class Vector;
35 
36 #include <StructuralComponentDC.h>
37 
44 class AnyDecoration : public Decoration {
45 public:
46 
49 
51 
55  void update();
56 
58  void show(const bool);
59 
61  void setColor(const double, const double, const double);
62 
63 private:
66 
69 
72 };
73 
74 #endif
void show(const bool)
show the geometric object in 3D or not depending on the parameter
Definition: AnyDecoration.cpp:96
camitk::Geometry * myGeometry
the list of geometric object
Definition: AnyDecoration.h:68
AnyDecoration(StructuralComponentDC *theDC)
this constructor set the current atom to follow
Definition: AnyDecoration.cpp:46
void update()
update the 3D representation: use the current position of the atoms to represent the geometric struct...
Definition: AnyDecoration.cpp:78
std::AtomVtkPointsIndexMap atomMap
map atom -> id (order index) in the vtk point set
Definition: AnyDecoration.h:71
The manager of the Structural component data.
Definition: StructuralComponentDC.h:83
abstract class representing a decoration added to a DC
Definition: Decoration.h:33
void setColor(const double, const double, const double)
change the color of the geometric object
Definition: AnyDecoration.cpp:124
A 3D representation of a vtkPointSet to be displayed in a InteractiveViewer, this class implements th...
Definition: Geometry.h:126
This class allows you to display any geometric object represented by a SC (e.g.
Definition: AnyDecoration.h:44
~AnyDecoration()
Definition: AnyDecoration.cpp:68
StructuralComponent * mySC
the represented SC
Definition: AnyDecoration.h:65
A structural component is composed either by cell or by atoms.
Definition: StructuralComponent.h:52
std::map< Atom *, unsigned int > AtomVtkPointsIndexMap
definition of the association map (=STL map) AtomVtkPointsIndexMap.
Definition: StructuralComponentDC.h:68