18 #ifndef vtkPointCloudRepresentation_h
19 #define vtkPointCloudRepresentation_h
21 #include "vtkInteractionWidgetsModule.h"
24 VTK_ABI_NAMESPACE_BEGIN
37 struct vtkPointCloudPicker;
41 friend struct vtkPointCloudPicker;
92 x[0] = this->PointCoordinates[0];
93 x[1] = this->PointCoordinates[1];
94 x[2] = this->PointCoordinates[2];
103 vtkSetMacro(Highlighting,
bool);
104 vtkGetMacro(Highlighting,
bool);
105 vtkBooleanMacro(Highlighting,
bool);
128 vtkSetClampMacro(InteractionState,
int, Outside, Selecting);
136 void BuildRepresentation()
override {}
175 HARDWARE_PICKING = 0,
178 vtkSetClampMacro(PickingMode,
int, HARDWARE_PICKING, SOFTWARE_PICKING);
179 vtkGetMacro(PickingMode,
int);
195 vtkSetMacro(HardwarePickingTolerance,
unsigned int);
196 vtkGetMacro(HardwarePickingTolerance,
unsigned int);
208 vtkSetClampMacro(SoftwarePickingTolerance,
double, 0.0, 100.0);
209 vtkGetMacro(SoftwarePickingTolerance,
double);
228 double PointCoordinates[3];
257 VTK_ABI_NAMESPACE_END
a actor that draws 2D data
represents an object (geometry & properties) in a rendered scene
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
create 2D glyphs represented by vtkPolyData
a simple class to control print indentation
create wireframe outline for an arbitrary data set or composite dataset
superclass for 3D geometric pickers (uses ray cast)
represent the vtkPointCloudWidget
vtkOutlineFilter * OutlineFilter
double * GetBounds() override
Some methods required to satisfy the vtkWidgetRepresentation API.
void CreateDefaultProperties()
const double * GetPointCoordinates()
Retrieve the point coordinates of the selected point.
int RenderOpaqueGeometry(vtkViewport *viewport) override
These methods are necessary to make this representation behave as a vtkProp (i.e.,...
double SoftwarePickingTolerance
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
These methods are necessary to make this representation behave as a vtkProp (i.e.,...
vtkCoordinate * SelectionCoordinate
void GetActors2D(vtkPropCollection *pc) override
These methods are necessary to make this representation behave as a vtkProp (i.e.,...
vtkPolyDataMapper2D * SelectionMapper
vtkProperty2D * SelectionProperty
vtkIdType GetPointId()
Retrieve the point id from the selected point.
vtkGlyphSource2D * SelectionShape
void GetPointCoordinates(double x[3])
Retrieve the point coordinates of the selected point.
void SetPickingModeToHardware()
Because point clouds can be very large, alternative point picking approaches can be used to select po...
vtkActor * PointCloudActor
vtkPointCloudPicker * PointCloudPicker
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class methods for obtaining type information and printing.
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp (i.e.,...
vtkPolyDataMapper * OutlineMapper
void GetActors(vtkPropCollection *pc) override
These methods are necessary to make this representation behave as a vtkProp (i.e.,...
void PlacePointCloud(vtkPointSet *ps)
Specify and place either an actor (vtkActor) or a point set (vtkPointSet) that represents the point c...
vtkPolyDataMapper * PointCloudMapper
vtkPicker * OutlinePicker
vtkPointCloudRepresentation()
int ComputeInteractionState(int X, int Y, int modify=0) override
Some methods required to satisfy the vtkWidgetRepresentation API.
PickingModeType
Because point clouds can be very large, alternative point picking approaches can be used to select po...
void PlacePointCloud(vtkActor *a)
Specify and place either an actor (vtkActor) or a point set (vtkPointSet) that represents the point c...
static vtkPointCloudRepresentation * New()
Instantiate this class.
vtkActor2D * SelectionActor
~vtkPointCloudRepresentation() override
unsigned int HardwarePickingTolerance
vtkTypeBool HasTranslucentPolygonalGeometry() override
These methods are necessary to make this representation behave as a vtkProp (i.e.,...
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp (i.e.,...
void SetPickingModeToSoftware()
Because point clouds can be very large, alternative point picking approaches can be used to select po...
void RegisterPickers() override
Register internal Pickers in the Picking Manager.
select a point by shooting a ray into a graphics window
concrete class for storing a set of points
draw vtkPolyData onto the image plane
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a 2D image
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_SIZEHINT(...)