26 #ifndef StructuralComponentDC_H
27 #define StructuralComponentDC_H
35 #include <vtkSmartPointer.h>
50 class vtkUnstructuredGrid;
62 typedef std::pair<Atom *, unsigned int> AtomVtkPointsIndexPair;
68 typedef std::map <Atom *, unsigned int> AtomVtkPointsIndexMap;
70 typedef std::map <Atom *, unsigned int>::iterator AtomVtkPointsIndexMapIterator;
107 virtual void setPointSet(vtkSmartPointer<vtkPointSet>);
116 virtual void setSelected(
const bool,
const bool recursive=
false);
124 virtual void setActorColor(
const RenderingModes,
const double,
const double,
const double);
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 *);
152 void updatePosition(
AtomDC *,
int atomOrderNr = -1);
165 static vtkSmartPointer<vtkUnstructuredGrid> structuralComponentToVtk(
StructuralComponent *, std::AtomVtkPointsIndexMap *);
169 static vtkSmartPointer<vtkUnstructuredGrid> structuralComponentToVtk(
StructuralComponent *);
virtual void setRenderingModes(const RenderingModes)=0
::Component * myComponent
the managed Component
Definition: ComponentDC.h:98
A cell has an unique index in the physical model object, is composed by atoms, and different basic pr...
Definition: Cell.h:41
The manager of the physical model data.
Definition: PMManagerDC.h:97
unsigned int nrOfAtoms
nr of atoms
Definition: StructuralComponentDC.h:186
void pointPicked(vtkIdType pointId, bool)
reimplemented to save the last pick point id
setColor
Definition: sdk/libraries/core/component/Component.h:643
unsigned int nrOfParts
cumulative nr of cell and points.
Definition: StructuralComponentDC.h:215
#define PHYSICALMODEL_COMPONENT_API
Definition: PMComponentAPI.h:54
StructuralComponentDCProperties * myProp
the SC DC properties
Definition: StructuralComponentDC.h:224
StructuralComponent * getSC()
convenient methods
Definition: StructuralComponentDC.h:228
setPointSet
Definition: sdk/libraries/core/component/Component.h:547
std::vector< AtomDC * > atomDCs
list of atom DCs.
Definition: StructuralComponentDC.h:208
virtual QObject * getPropertyObject()
show all properties
Definition: ComponentDC.h:85
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 void addChild(InterfaceNode *)
add a child Component (sub item in the hierarchy), and modify the child's parent to be equal to this ...
virtual void initRepresentation()
the concrete building of the 3D objects (Slice/Geometry): none in this case, everything is done by in...
Definition: MeshComponent.h:106
The manager of the Component data.
Definition: ComponentDC.h:43
ComposedBy
What this structural component is made of.
Definition: StructuralComponent.h:169
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
void cellPicked(vtkIdType cellId, bool)
reimplemented to save the last pick point id
virtual void setSelected(const bool b, const bool recursive=true)
Update the selection flag.
const EnhancedModes setActorColor
Definition: sdk/libraries/core/component/Component.h:636
virtual void destroyPointData()
destroy all the point data
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 removeChild(InterfaceNode *)
remove from the the sub item vector.
StructuralComponentDCPopup * myPopupMenu
the popup menu
Definition: StructuralComponentDC.h:199
virtual void setEnhancedModes(const EnhancedModes)=0
set the enhanced mode
A 3D representation of a vtkPointSet to be displayed in a InteractiveViewer, this class implements th...
Definition: Geometry.h:126
virtual void createPointData()
create all the point data to display specific information (only works for SCs that have a surface rep...
virtual QPixmap getIcon()
Get the pixmap that will be displayed for this node.
Definition: sdk/libraries/core/component/Component.h:804
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:48
static QPixmap * myPixmap
the StructuralComponentDC pixmap
Definition: StructuralComponentDC.h:221
vtkSmartPointer< vtkDoubleArray > pointData
the point data array
Definition: StructuralComponentDC.h:189
The class StructuralComponentDCProperties defines an QObject that allows user interaction with proper...
Definition: StructuralComponentDCProperties.h:47