Computer Assited Medical Intervention Tool Kit  version 5.0
Arrows.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2021 Univ. Grenoble Alpes, CNRS, Grenoble INP, TIMC, 38000 Grenoble, France
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 #include "MMLMonitorDisplay.h"
27 #include "MMLComponentAPI.h"
28 
29 #ifndef MMLMONITORSDISLPAYS_ARROWS_H
30 #define MMLMONITORSDISLPAYS_ARROWS_H
31 
33 
34 public:
35 
37  Arrows(Monitor* monitor, MMLComponent* manager);
39  ~Arrows() override = default;
40 
42  void update() override;
44  void hide() override;
45 
46 };
47 
48 #endif
MMLMonitorDisplay::manager
MMLComponent * manager
display
Definition: MMLMonitorDisplay.h:64
PMLComponent::getPointId
vtkIdType getPointId(const Atom *a)
get the point Id from the corresponding atom, this is the opposite of pml->getAtom(id)
Definition: PMLComponent.h:290
MMLComponentAPI.h
MMLComponent::getPMLComponent
PMLComponent * getPMLComponent()
get Physical model manager
Definition: MMLComponent.cpp:157
MMLMonitorDisplay.h
Atom
An atom has an unique index in the physical model object, a 3D position, and different basic properti...
Definition: Atom.h:49
PMLComponent::getPhysicalModel
PhysicalModel * getPhysicalModel()
Definition: PMLComponent.cpp:104
camitk::MeshComponent::setDataRepresentationOff
void setDataRepresentationOff(int dataType=SCALARS|VECTORS|TENSORS)
hide all the data representation of a given data type (hide all by default)
Definition: MeshComponent.cpp:845
a
#define a
PhysicalModel::getNumberOfAtoms
unsigned int getNumberOfAtoms() const
get the number of atoms
Definition: PhysicalModel.cpp:716
PhysicalModel::getAtom
Atom * getAtom(const unsigned int id)
Get the atom that has the global index given in parameters.
Definition: PhysicalModel.h:385
MMLMonitorDisplay::monitor
Monitor * monitor
monitor
Definition: MMLMonitorDisplay.h:62
MMLMonitorDisplayFactory::getInstance
static MMLMonitorDisplayFactory * getInstance()
return the unique instance of the factory
Definition: MMLMonitorDisplayFactory.cpp:60
Arrows::hide
void hide() override
hide display
Definition: Arrows.cpp:75
Arrows::Arrows
Arrows(Monitor *monitor, MMLComponent *manager)
constructor
Definition: Arrows.cpp:39
Arrows.h
Monitor::getIndexOfValues
int getIndexOfValues(const unsigned int i)
get index i of indexes vector
Definition: Monitor.cpp:240
MMLMonitorDisplay::hide
virtual void hide()=0
hide display
camitk::MeshComponent::addDataArray
void addDataArray(FieldType fieldType, const QString &name, vtkSmartPointer< vtkDataArray > data)
Add a data array.
Definition: MeshComponent.cpp:1066
MMLMonitorDisplay
Generic class for MML Monitor 3D/Graphical representation.
Definition: MMLMonitorDisplay.h:45
Arrows
Definition: Arrows.h:32
camitk::MeshComponent::POINTS
@ POINTS
data are attached to point
Definition: MeshComponent.h:67
MMLComponent
This class manage an MML monitoring document ".mml".
Definition: MMLComponent.h:48
MMLMonitorDisplayFactory::registerClass
bool registerClass(std::string id, Monitor::type type)
Register a class into the map A registered class can be created using createMonitorDisplay().
Definition: MMLMonitorDisplayFactory.h:64
Monitor::VECTORSET
@ VECTORSET
Definition: Monitor.h:109
MMLMonitorDisplayFactory.h
arrowsRegistered
bool arrowsRegistered
Definition: Arrows.cpp:37
PMLComponent
This class manages a physical model (PML) CamiTK component.
Definition: PMLComponent.h:103
Monitor::getValue
double getValue(const unsigned int i)
get value i of values vector
Definition: Monitor.cpp:250
Monitor::getNumberOfIndex
unsigned int getNumberOfIndex()
get number of index in indexes vetor
Definition: Monitor.cpp:260
MMLCOMPONENT_API
#define MMLCOMPONENT_API
Definition: MMLComponentAPI.h:54
Monitor::getTypeName
virtual std::string getTypeName()=0
Monitor
A monitor calculate and store followed data (ex:calculation between current position and references) ...
Definition: Monitor.h:49
Arrows::update
void update() override
update display
Definition: Arrows.cpp:44
MMLComponent.h
PMLComponent.h
MMLMonitorDisplay::update
virtual void update()=0
update display
camitk
Definition: Action.cpp:35