|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
37 class vtkAlgorithmOutput;
38 class vtkDataSetMapper;
45 class vtkCastToConcrete;
47 class vtkSphereSource;
48 class vtkTransformFilter;
160 vtkSmartPointer<vtkPointSet> getPointSet()
override {
167 void setPointSet(vtkSmartPointer<vtkPointSet> ds)
override;
170 void setMeshWorldTransform(vtkSmartPointer<vtkTransform>)
override;
173 vtkSmartPointer<vtkAlgorithmOutput>
getDataPort()
const override {
178 void setDataConnection(vtkSmartPointer<vtkAlgorithmOutput>)
override;
181 void setPointData(vtkSmartPointer<vtkDataArray>)
override;
187 vtkSmartPointer<vtkActor> getActor(
const RenderingModes)
override;
190 void setTexture(vtkSmartPointer<vtkTexture> texture)
override;
211 vtkSmartPointer<vtkProp> getProp(
const QString&)
override;
214 unsigned int getNumberOfProp()
const override;
217 vtkSmartPointer<vtkProp> getProp(
unsigned int)
override;
222 bool addProp(
const QString&, vtkSmartPointer<vtkProp>)
override final;
234 void getBounds(
double* bounds)
override final;
237 double getBoundingRadius() override final;
240 void setPointPosition(const
unsigned int orderNumber, const
double x, const
double y, const
double z) override;
249 void setRenderingModes(const RenderingModes rMode)
override {
250 renderingModes = rMode;
255 return renderingModes;
259 void setEnhancedModes(
const EnhancedModes)
override;
263 return enhancedModes;
267 void setActorColor(
const RenderingModes,
double*)
override;
270 void setActorColor(
const RenderingModes,
const double,
const double,
const double)
override;
273 void getActorColor(
const RenderingModes,
double*)
override final;
276 void setColor(
const double,
const double,
const double)
override;
279 void setColor(
const double,
const double,
const double,
const double)
override;
282 void setActorOpacity(
const RenderingModes,
const double)
override final;
285 double getActorOpacity(
const RenderingModes)
const override;
288 void setOpacity(
const double)
override;
291 void setMapperScalarRange(
double min,
double max)
override;
294 void setGlyphType(
const GlyphTypes type,
const double size = 0.0) override final;
297 void setLinesAsTubes(
bool tubes = false) override;
306 vtkSmartPointer<vtkPointSet> pointSet;
311 vtkSmartPointer<vtkAlgorithmOutput> dataOutput;
314 vtkSmartPointer<vtkAlgorithmOutput> customPipelineOutput;
317 vtkSmartPointer<vtkCastToConcrete> concreteData;
320 vtkSmartPointer<vtkDataSetMapper> mapper;
323 vtkSmartPointer<vtkTextMapper> labelActorMapper;
326 vtkSmartPointer<vtkActor> surfaceActor;
329 vtkSmartPointer<vtkActor> wireframeActor;
332 vtkSmartPointer<vtkActor> pointsActor;
335 vtkSmartPointer<vtkTexture> texture;
338 vtkSmartPointer<vtkTubeFilter> tube;
341 vtkSmartPointer<vtkTransformFilter> worldTransformFilter;
344 vtkSmartPointer<vtkSphereSource> sphereGeom;
371 void buildGlyph(const GlyphTypes type);
378 void createPointCloudVisualization();
384 double surfaceColor[4];
386 double wireframeColor[4];
387 double pointsColor[4];
392 double oldAlphaSurface;
393 double oldAlphaWireframe;
394 double oldAlphaPoints;
402 QMap<QString, vtkSmartPointer<vtkProp> > extraProp;
void setActorOpacity(const RenderingModes, const double) override final
Set the opacity of this representation modes. WARNING color field (surfaceColor, ....
Definition: Geometry.cpp:606
vtkSmartPointer< vtkAlgorithmOutput > customPipelineOutput
the external custom pipeline output (equals to dataOuput if no custom pipeline plugged)
Definition: Geometry.h:314
@ Shaded
the object is shaded
Definition: InterfaceGeometry.h:77
vtkSmartPointer< vtkDataSetMapper > mapper
the VTK mapper
Definition: Geometry.h:320
vtkSmartPointer< vtkCastToConcrete > concreteData
the filter to convert the DataSet to get a correct vtkPipeline output port
Definition: Geometry.h:317
A 3D representation of a vtkPointSet to be displayed in a InteractiveViewer, this class implements th...
Definition: Geometry.h:126
void setLabel(QString newName) override
set the label of this Geometry instance
Definition: Geometry.h:151
QString label
the label
Definition: Geometry.h:359
@ Normal
the object is normally displayed
Definition: InterfaceGeometry.h:75
double pointsColor[4]
Definition: Geometry.h:387
void setEnhancedModes(const EnhancedModes) override
set the enhanced mode
Definition: Geometry.cpp:705
vtkSmartPointer< vtkActor > wireframeActor
the wireframe actor that manages the representation as wireframe
Definition: Geometry.h:329
vtkSmartPointer< vtkSphereSource > sphereGeom
the sphere glyph
Definition: Geometry.h:344
@ Surface
the surface is visible
Definition: InterfaceGeometry.h:67
void setPointSet(vtkSmartPointer< vtkPointSet > ds) override
set the input data of the Geometry,
Definition: Geometry.cpp:195
double oldAlphaSurface
Definition: Geometry.h:392
vtkSmartPointer< vtkTextMapper > labelActorMapper
the mapper to create the text
Definition: Geometry.h:323
double getBoundingRadius() override final
compute the object's bounding sphere radius
Definition: Geometry.cpp:792
void updateLabel()
update position and text of the label
Definition: Geometry.cpp:428
void setMapperScalarRange(double min, double max) override
Set the mapper scalar range.
Definition: Geometry.cpp:664
vtkSmartPointer< vtkTexture > texture
texture of this object.
Definition: Geometry.h:335
vtkSmartPointer< vtkAlgorithmOutput > dataOutput
to be able to set external custom pipeline
Definition: Geometry.h:311
void setTexture(vtkSmartPointer< vtkTexture > texture) override
Set a texture to this object.
Definition: Geometry.cpp:669
void setPointData(vtkSmartPointer< vtkDataArray >) override
set the point data (may contains a lookup table)
Definition: Geometry.cpp:814
void setLinesAsTubes(bool tubes=false) override
display lines as tubes (depeding of the boolean) (only work if the Geometry was defined using a vtkPo...
Definition: Geometry.cpp:762
@ Highlighted
the object is highlighted
Definition: InterfaceGeometry.h:78
vtkSmartPointer< vtkActor > getActor(const RenderingModes) override
Return the actor representing this representation mode (returns nullptr if hightlight mode is Hidden)...
Definition: Geometry.cpp:269
@ Hidden
the object is hidden
Definition: InterfaceGeometry.h:76
vtkSmartPointer< vtkProp > getProp(const QString &) override
Return the vtkProp (actors, volumes and annotations) corresponding to the given name.
Definition: Geometry.cpp:467
double oldAlphaPoints
Definition: Geometry.h:394
void setColor(const double, const double, const double) override
Set an (r,g,b) color to all representation modes, without changing the opacity.
Definition: Geometry.cpp:590
double alphaShaded
Opacity value when this object must be shaded.
Definition: Geometry.h:356
void setDataConnection(vtkSmartPointer< vtkAlgorithmOutput >) override
call this method with the custom algorithm pipeline output
Definition: Geometry.cpp:250
vtkSmartPointer< vtkPointSet > pointSet
Definition: Geometry.h:308
This class describes what are the methods to implement for a Geometry (rendering parameters,...
Definition: InterfaceGeometry.h:61
InterfaceGeometry::RenderingModes renderingModes
Definition: Geometry.h:350
const EnhancedModes getEnhancedModes() const override
get the current enhanced mode
Definition: Geometry.h:262
vtkSmartPointer< vtkActor > pointsActor
the point actor that manages the representation as a set of points
Definition: Geometry.h:332
Geometry(QString label, vtkSmartPointer< vtkPointSet > pointSet, const InterfaceGeometry::RenderingModes mode=InterfaceGeometry::Surface)
instantiate a Geometry using existing stuff.
Definition: Geometry.cpp:82
double oldAlphaWireframe
Definition: Geometry.h:393
vtkSmartPointer< vtkAlgorithmOutput > getDataPort() const override
get the custom algorithm pipeline input.
Definition: Geometry.h:173
void setOpacity(const double) override
Set the opacity of this object. WARNING color field (surfaceColor, ...) are not modified!
Definition: Geometry.cpp:659
void getBounds(double *bounds) override final
compute the object's bounding box [xmin,xmax, ymin,ymax, zmin,zmax]
Definition: Geometry.cpp:787
~Geometry() override
destructor
Definition: Geometry.cpp:170
double wireframeColor[4]
Definition: Geometry.h:386
vtkSmartPointer< vtkTransformFilter > worldTransformFilter
the transform filter to place the mesh correctly with respect to its Frame
Definition: Geometry.h:341
@ Sphere
the glyph is a nice sphere
Definition: InterfaceGeometry.h:85
vtkSmartPointer< vtkTubeFilter > tube
the tube filter (creates tubes insead of lines)
Definition: Geometry.h:338
void buildLabel()
build the label extra prop
Definition: Geometry.cpp:404
vtkSmartPointer< vtkTransform > transform
Definition: RendererWidget.cpp:372
void setGlyphType(const GlyphTypes type, const double size=0.0) override final
set the glyph information
Definition: Geometry.cpp:680
@ Points
the points are visible
Definition: InterfaceGeometry.h:69
const RenderingModes getRenderingModes() const override
Return if the actor associated to a rendering mode is currently visible or not.
Definition: Geometry.h:254
QMap< QString, vtkSmartPointer< vtkProp > > extraProp
The additional map for prop (include at least "label" and "glyph")
Definition: Geometry.h:402
vtkSmartPointer< vtkActor > surfaceActor
the surface actor that manages the surfacic representation
Definition: Geometry.h:326
void cellPicked(vtkIdType, bool) override
a vtkCell of the structured was picked (to be reimplemented in a Component inherited class if needed)
Definition: Geometry.h:196
bool removeProp(const QString &) override
remove a given additional prop.
Definition: Geometry.cpp:495
double glyphSize
current size of glyph (0.0 means no glyph)
Definition: Geometry.h:362
InterfaceGeometry::EnhancedModes enhancedModes
Enhanced mode options (the way actors are rendered: normal, hidden, highlighted, shaded)
Definition: Geometry.h:353
void getActorColor(const RenderingModes, double *) override final
Get the color of given representation modes in the second parameter, i.e. double[4] (r,...
Definition: Geometry.cpp:566
double getActorOpacity(const RenderingModes) const override
Return the opacity of a given renderng mode.
Definition: Geometry.cpp:643
void removeProp(vtkSmartPointer< vtkProp > p, bool refresh=false)
remove the given vtkProp (e.g.
void pointPicked(vtkIdType, bool) override
a vtkPoint of the structured was picked (to be reimplemented in a Component inherited class if needed...
Definition: Geometry.h:193
void buildGlyph(const GlyphTypes type)
build the glyph extra prop (sphere glyph by default)
Definition: Geometry.cpp:331
@ Wireframe
the wireframe is visible
Definition: InterfaceGeometry.h:68
void setPointPosition(const unsigned int orderNumber, const double x, const double y, const double z) override
set a given point position
Definition: Geometry.cpp:516
double surfaceColor[4]
Definition: Geometry.h:385
const QString getLabel() const override
get the label of this Geometry instance
Definition: Geometry.h:146
void setActorColor(const RenderingModes, double *) override
Set the color of given representation modes.
Definition: Geometry.cpp:522
void setMeshWorldTransform(vtkSmartPointer< vtkTransform >) override
Set the world transform (if the Geometry depends on another Frame)
Definition: Geometry.cpp:242
unsigned int getNumberOfProp() const override
return the number of additional prop
Definition: Geometry.cpp:485
void createPointCloudVisualization()
force visualization of point cloud If the point set does only contains a point cloud,...
Definition: Geometry.cpp:216
@ NoGlyph
there are no glyph type attached to the geometry
Definition: InterfaceGeometry.h:84
bool addProp(const QString &, vtkSmartPointer< vtkProp >) override final
insert an additional prop, defining it by its name (default visibility = false)
Definition: Geometry.cpp:456
#define CAMITK_API
Definition: CamiTKAPI.h:49
Definition: Action.cpp:35