26 #ifndef StructuralComponentDC_H 27 #define StructuralComponentDC_H 35 #include <vtkSmartPointer.h> 50 class vtkUnstructuredGrid;
103 virtual QPixmap getIcon();
107 virtual void setPointSet(vtkSmartPointer<vtkPointSet>);
110 virtual void cellPicked(vtkIdType,
bool);
113 virtual void pointPicked(vtkIdType,
bool);
116 virtual void setSelected(
const bool,
const bool recursive=
false);
119 virtual void setEnhancedModes(
const EnhancedModes);
122 virtual void setRenderingModes(
const RenderingModes);
124 virtual void setActorColor(
const RenderingModes,
const double,
const double,
const double);
126 virtual void setActorColor(
const RenderingModes,
double[4]);
128 virtual void setColor(
const double,
const double,
const double);
130 virtual void setColor(
const double,
const double,
const double,
const double);
133 virtual void addChild(InterfaceNode *);
136 virtual void removeChild(InterfaceNode *);
139 virtual QMenu * getPopupMenu(QWidget* parent);
142 virtual QObject * getPropertyObject();
152 void updatePosition(
AtomDC *,
int atomOrderNr = -1);
158 virtual void createPointData();
161 virtual void destroyPointData();
169 static vtkSmartPointer<vtkUnstructuredGrid> structuralComponentToVtk(
StructuralComponent *);
196 virtual void initRepresentation();
std::pair< Atom *, unsigned int > AtomVtkPointsIndexPair
definition of a couple (=STL pair) [Atom *, unsigned int] this associates an atom to its index in the...
Definition: StructuralComponentDC.h:62
A cell has an unique index in the physical model object, is composed by atoms, and different basic pr...
Definition: Cell.h:46
The manager of the physical model data.
Definition: PMManagerDC.h:97
unsigned int nrOfAtoms
nr of atoms
Definition: StructuralComponentDC.h:186
unsigned int nrOfParts
cumulative nr of cell and points.
Definition: StructuralComponentDC.h:215
#define PHYSICALMODEL_COMPONENT_API
Definition: PMComponentAPI.h:54
ComposedBy
What this structural component is made of.
Definition: StructuralComponent.h:173
StructuralComponentDCProperties * myProp
the SC DC properties
Definition: StructuralComponentDC.h:224
StructuralComponent * getSC()
convenient methods
Definition: StructuralComponentDC.h:228
std::vector< AtomDC * > atomDCs
list of atom DCs.
Definition: StructuralComponentDC.h:208
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:299
std::map< Atom *, unsigned int >::iterator AtomVtkPointsIndexMapIterator
the iterator corresponding to the AtomVtkPointsMap
Definition: StructuralComponentDC.h:70
The manager of the Component data.
Definition: ComponentDC.h:43
The manager of the Atom data.
Definition: AtomDC.h:74
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:49
StructuralComponentDCPopup * myPopupMenu
the popup menu
Definition: StructuralComponentDC.h:199
A 3D representation of a vtkPointSet to be displayed in a InteractiveViewer, this class implements th...
Definition: Geometry.h:126
static QPixmap * myPixmap
the StructuralComponentDC pixmap
Definition: StructuralComponentDC.h:221
std::vector< unsigned int > cellIdToBeRemoved
cell ids in the vtk structures to be removed
Definition: StructuralComponentDC.h:218
A structural component is composed either by cell or by atoms.
Definition: StructuralComponent.h:52
vtkSmartPointer< vtkDoubleArray > pointData
the point data array
Definition: StructuralComponentDC.h:189
std::map< Atom *, unsigned int > AtomVtkPointsIndexMap
definition of the association map (=STL map) AtomVtkPointsIndexMap.
Definition: StructuralComponentDC.h:68
The class StructuralComponentDCProperties defines an QObject that allows user interaction with proper...
Definition: StructuralComponentDCProperties.h:47