 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
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() {
167 void setPointSet(vtkSmartPointer<vtkPointSet> ds)
override;
170 void setMeshWorldTransform(vtkSmartPointer<vtkTransform>)
override;
178 void setDataConnection(vtkSmartPointer<vtkAlgorithmOutput>)
override;
181 void setPointData(vtkSmartPointer<vtkDataArray>)
override;
187 vtkSmartPointer<vtkActor> getActor(
const RenderingModes)
override;
190 vtkSmartPointer<vtkProp> getProp(
const QString&)
override;
193 unsigned int getNumberOfProp()
const override;
196 vtkSmartPointer<vtkProp> getProp(
unsigned int)
override;
201 bool addProp(
const QString&, vtkSmartPointer<vtkProp>)
override;
209 void setTexture(vtkSmartPointer<vtkTexture> texture)
override;
223 void getBounds(
double* bounds)
override;
226 double getBoundingRadius()
override;
229 void setPointPosition(
const unsigned int orderNumber,
const double x,
const double y,
const double z)
override;
239 renderingModes = rMode;
244 return renderingModes;
248 void setEnhancedModes(
const EnhancedModes)
override;
252 return enhancedModes;
256 void setActorColor(
const RenderingModes,
double*)
override;
259 void setActorColor(
const RenderingModes,
const double,
const double,
const double)
override;
262 void getActorColor(
const RenderingModes,
double*)
override;
265 void setColor(
const double,
const double,
const double)
override;
268 void setColor(
const double,
const double,
const double,
const double)
override;
271 void setActorOpacity(
const RenderingModes,
const double)
override;
274 double getActorOpacity(
const RenderingModes)
const override;
277 void setOpacity(
const double)
override;
280 void setMapperScalarRange(
double min,
double max)
override;
283 void setGlyphType(
const GlyphTypes type,
const double size = 0.0)
override;
286 void setLinesAsTubes(
bool tubes =
false)
override;
295 vtkSmartPointer<vtkPointSet> pointSet;
309 vtkSmartPointer<vtkDataSetMapper>
mapper;
330 vtkSmartPointer<vtkTubeFilter>
tube;
363 void buildGlyph(
const GlyphTypes type);
370 void createPointCloudVisualization();
376 double surfaceColor[4];
378 double wireframeColor[4];
379 double pointsColor[4];
387 double oldPointsColor[4];
390 vtkSmartPointer< vtkPointSet > New();
vtkSmartPointer< vtkAlgorithmOutput > customPipelineOutput
the external custom pipeline output (equals to dataOuput if no custom pipeline plugged)
Definition: Geometry.h:303
@ Shaded
the object is shaded
Definition: InterfaceGeometry.h:77
vtkSmartPointer< vtkDataSetMapper > mapper
the VTK mapper
Definition: Geometry.h:309
vtkSmartPointer< vtkCastToConcrete > concreteData
the filter to convert the DataSet to get a correct vtkPipeline output port
Definition: Geometry.h:306
void setGlyphType(const GlyphTypes type, const double size=0.0) override
set the glyph information
Definition: Geometry.cpp:677
A 3D representation of a vtkPointSet to be displayed in a InteractiveViewer, this class implements th...
Definition: Geometry.h:126
void getBounds(double *bounds) override
compute the object's bounding box [xmin,xmax, ymin,ymax, zmin,zmax]
Definition: Geometry.cpp:784
QString label
the label
Definition: Geometry.h:351
@ Normal
the object is normally displayed
Definition: InterfaceGeometry.h:75
double pointsColor[4]
Definition: Geometry.h:379
void setEnhancedModes(const EnhancedModes) override
set the enhanced mode
Definition: Geometry.cpp:702
void setRenderingModes(const RenderingModes rMode)
Set the actor associated to a rendering mode visible or not.
Definition: Geometry.h:238
vtkSmartPointer< vtkActor > wireframeActor
the wireframe actor that manages the representation as wireframe
Definition: Geometry.h:321
vtkSmartPointer< vtkSphereSource > sphereGeom
the sphere glyph
Definition: Geometry.h:336
@ 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:192
double oldAlphaSurface
Definition: Geometry.h:384
vtkSmartPointer< vtkTextMapper > labelActorMapper
the mapper to create the text
Definition: Geometry.h:315
void setActorOpacity(const RenderingModes, const double) override
Set the opacity of this representation modes. WARNING color field (surfaceColor, ....
Definition: Geometry.cpp:603
void updateLabel()
update position and text of the label
Definition: Geometry.cpp:425
void setMapperScalarRange(double min, double max) override
Set the mapper scalar range.
Definition: Geometry.cpp:661
vtkSmartPointer< vtkTexture > texture
texture of this object.
Definition: Geometry.h:327
vtkSmartPointer< vtkAlgorithmOutput > dataOutput
to be able to set external custom pipeline
Definition: Geometry.h:300
void setTexture(vtkSmartPointer< vtkTexture > texture) override
Set a texture to this object.
Definition: Geometry.cpp:666
void setPointData(vtkSmartPointer< vtkDataArray >) override
set the point data (may contains a lookup table)
Definition: Geometry.cpp:811
void cellPicked(vtkIdType, bool)
a vtkCell of the structured was picked (to be reimplemented in a Component inherited class if needed)
Definition: Geometry.h:215
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:759
@ Highlighted
the object is highlighted
Definition: InterfaceGeometry.h:78
vtkSmartPointer< vtkActor > getActor(const RenderingModes) override
Return the actor representing this representation mode (return NULL if hightlight mode is Hidden).
Definition: Geometry.cpp:266
@ 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:464
double oldAlphaPoints
Definition: Geometry.h:386
void setLabel(QString newName)
set the label of this Geometry instance
Definition: Geometry.h:151
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:587
double alphaShaded
Opacity value when this object must be shaded.
Definition: Geometry.h:348
void setDataConnection(vtkSmartPointer< vtkAlgorithmOutput >) override
call this method with the custom algorithm pipeline output
Definition: Geometry.cpp:247
vtkSmartPointer< vtkPointSet > pointSet
Definition: Geometry.h:297
This class describes what are the methods to implement for a Geometry (rendering parameters,...
Definition: InterfaceGeometry.h:61
InterfaceGeometry::RenderingModes renderingModes
Definition: Geometry.h:342
vtkSmartPointer< vtkActor > pointsActor
the point actor that manages the representation as a set of points
Definition: Geometry.h:324
Geometry(QString label, vtkSmartPointer< vtkPointSet > pointSet, const InterfaceGeometry::RenderingModes mode=InterfaceGeometry::Surface)
instantiate a Geometry using existing stuff.
Definition: Geometry.cpp:78
double oldAlphaWireframe
Definition: Geometry.h:385
void setOpacity(const double) override
Set the opacity of this object. WARNING color field (surfaceColor, ...) are not modified!
Definition: Geometry.cpp:656
double getBoundingRadius() override
compute the object's bounding sphere radius
Definition: Geometry.cpp:789
~Geometry() override
destructor
Definition: Geometry.cpp:167
double wireframeColor[4]
Definition: Geometry.h:378
vtkSmartPointer< vtkTransformFilter > worldTransformFilter
the transform filter to place the mesh correctly with respect to its Frame
Definition: Geometry.h:333
@ Sphere
the glyph is a nice sphere
Definition: InterfaceGeometry.h:85
bool addProp(const QString &, vtkSmartPointer< vtkProp >) override
insert an additional prop, defining it by its name (default visibility = false)
Definition: Geometry.cpp:453
vtkSmartPointer< vtkTubeFilter > tube
the tube filter (creates tubes insead of lines)
Definition: Geometry.h:330
void buildLabel()
build the label extra prop
Definition: Geometry.cpp:401
vtkSmartPointer< vtkTransform > transform
Definition: RendererWidget.cpp:595
@ Points
the points are visible
Definition: InterfaceGeometry.h:69
QMap< QString, vtkSmartPointer< vtkProp > > extraProp
The additional map for prop (include at least "label" and "glyph".
Definition: Geometry.h:312
const RenderingModes getRenderingModes() const
Return if the actor associated to a rendering mode is currently visible or not.
Definition: Geometry.h:243
vtkSmartPointer< vtkActor > surfaceActor
the surface actor that manages the surfacic representation
Definition: Geometry.h:318
bool removeProp(const QString &) override
remove a given additional prop.
Definition: Geometry.cpp:492
double glyphSize
current size of glyph (0.0 means no glyph)
Definition: Geometry.h:354
InterfaceGeometry::EnhancedModes enhancedModes
Enhanced mode options (the way actors are rendered: normal, hidden, highlighted, shaded)
Definition: Geometry.h:345
double getActorOpacity(const RenderingModes) const override
Return the opacity of a given renderng mode.
Definition: Geometry.cpp:640
void getActorColor(const RenderingModes, double *) override
Get the color of given representation modes in the second parameter, i.e. double[4] (r,...
Definition: Geometry.cpp:563
void removeProp(vtkSmartPointer< vtkProp > p, bool refresh=false)
remove the given vtkProp (e.g.
void buildGlyph(const GlyphTypes type)
build the glyph extra prop (sphere glyph by default)
Definition: Geometry.cpp:328
@ 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:513
double surfaceColor[4]
Definition: Geometry.h:377
void pointPicked(vtkIdType, bool)
a vtkPoint of the structured was picked (to be reimplemented in a Component inherited class if needed...
Definition: Geometry.h:212
const EnhancedModes getEnhancedModes() const
get the current enhanced mode
Definition: Geometry.h:251
const QString getLabel() const
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:519
void setMeshWorldTransform(vtkSmartPointer< vtkTransform >) override
Set the world transform (if the Geometry depends on another Frame)
Definition: Geometry.cpp:239
unsigned int getNumberOfProp() const override
return the number of additional prop
Definition: Geometry.cpp:482
void createPointCloudVisualization()
force visualization of point cloud If the point set does only contains a point cloud,...
Definition: Geometry.cpp:213
@ NoGlyph
there are no glyph type attached to the geometry
Definition: InterfaceGeometry.h:84
vtkSmartPointer< vtkAlgorithmOutput > getDataPort() const
get the custom algorithm pipeline input.
Definition: Geometry.h:173
#define CAMITK_API
Definition: CamiTKAPI.h:49
Definition: Action.cpp:36