30 #include <camitkcore/Component.h>
33 #include <vtkFollower.h>
34 #include <vtkSmartPointer.h>
51 typedef std::pair<camitk::InterfaceNode *, unsigned int> IndexInParentItemPair;
58 typedef std::map <camitk::InterfaceNode *, unsigned int> IndexInParentItemMap;
60 typedef std::map <camitk::InterfaceNode *, unsigned int>::iterator IndexInParentItemMapIterator;
93 virtual void setSelected(
const bool,
const bool recursive=
false);
99 virtual void setName(
const QString &);
102 virtual void setPointSet(vtkSmartPointer<vtkPointSet>);
108 virtual QWidget * getPropertyWidget(QWidget* parent = 0);
118 void setPosition(
double,
double,
double);
121 void getPosition(
double &,
double &,
double &);
127 void updatePosition();
130 void resetAlreadyMovedFlag();
142 unsigned int registerIndexInSCDC(
const std::IndexInParentItemPair);
156 void clearPointData();
159 void updatePointData(
const double);
The manager of the physical model data.
Definition: PMManagerDC.h:97
This class allows you to display a geometric object (arrow, sphere, ...) positionned on an atom...
Definition: AtomDecoration.h:46
virtual bool doubleClicked()
this method is called each time the InterfaceNode is double clicked by the user.
Definition: sdk/libraries/core/component/Component.h:783
std::set< StructuralComponentDC * > pointDataSC
list of all the SC who asked for a point data in this AtomDC
Definition: AtomDC.h:205
Atom * getAtom()
get the atom this dc is representing
Definition: AtomDC.h:215
virtual void pointPicked(vtkIdType, bool)
an inherited class can redefine this method something specific.
Definition: sdk/libraries/core/component/Component.h:606
#define PHYSICALMODEL_COMPONENT_API
Definition: PMComponentAPI.h:54
QMap< QString, AtomDecoration * > decorations
list of decorations attached to this AtomDC
Definition: AtomDC.h:208
The class AtomDCProperties defines an object that allows interaction of some properties of an atom...
Definition: AtomDCProperties.h:47
setPointSet
Definition: sdk/libraries/core/component/Component.h:547
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:292
virtual QMenu * getPopupMenu(QWidget *parent=0)
get the popup menu to display (always return NULL, overwrite this method if you want to give here you...
Definition: sdk/libraries/core/component/Component.h:529
The manager of the Atom data.
Definition: AtomDC.h:74
AtomDCProperties * myProp
the atom'properties
Definition: AtomDC.h:196
virtual void setSelected(const bool b, const bool recursive=true)
Update the selection flag.
Atom * myAtom
The atom the dc is representing.
Definition: AtomDC.h:172
PMManagerDC * myPMManagerDC
the PMManagerDC
Definition: AtomDC.h:211
static QPixmap * myPixmap
the AtomDC pixmap
Definition: AtomDC.h:199
bool alreadyMoved
true if the atom has been already moved by another SC This is a way to solve the bug which occurs whe...
Definition: AtomDC.h:185
virtual void initRepresentation()=0
Instanciate the concrete representation (either InterfaceGeometry or InterfaceBitMap) if needed...
The manager of the Structural component data.
Definition: StructuralComponentDC.h:83
An atom has an unique index in the physical model object, a 3D position, and different basic properti...
Definition: Atom.h:44
virtual void setEnhancedModes(const EnhancedModes)=0
set the enhanced mode
std::IndexInParentItemMap mySCDCindexes
correspondance between a SCDC and the order number of this atom dc in a particular SCDC (parent items...
Definition: AtomDC.h:190
std::vector< double * > pointData
list of all the point data adresses
Definition: AtomDC.h:202
virtual QObject * getPropertyObject()
Get the property object that could be understood by PropertyEditor.
Definition: sdk/libraries/core/component/Component.h:450
virtual QPixmap getIcon()
Get the pixmap that will be displayed for this node.
Definition: sdk/libraries/core/component/Component.h:804
Geometry
the geometric type
Definition: GeometricObject.h:59
virtual void setName(const QString &)
set the name to be displayed
Definition: sdk/libraries/core/component/Component.h:814
virtual void setParent(InterfaceNode *)
set the parent Component. This method automatically remove this Component from its previous (if alrea...
AtomDCPopup * myPopupMenu
the popup menu
Definition: AtomDC.h:193
virtual PMManagerDC * getPMManagerDC()
get the PMManagerDC (given during instanciation), allows to get PML/Component maps ...
Definition: AtomDC.h:136