30 #ifndef vtkPointCloudRepresentation_h
31 #define vtkPointCloudRepresentation_h
34 #include "vtkInteractionWidgetsModule.h"
35 #include "vtkLegacy.h"
38 VTK_ABI_NAMESPACE_BEGIN
51 struct vtkPointCloudPicker;
55 friend struct vtkPointCloudPicker;
106 x[0] = this->PointCoordinates[0];
107 x[1] = this->PointCoordinates[1];
108 x[2] = this->PointCoordinates[2];
117 vtkSetMacro(Highlighting,
bool);
118 vtkGetMacro(Highlighting,
bool);
119 vtkBooleanMacro(Highlighting,
bool);
132 #if !defined(VTK_LEGACY_REMOVE)
146 vtkSetClampMacro(InteractionState,
int, Outside, Selecting);
154 void BuildRepresentation()
override {}
193 HARDWARE_PICKING = 0,
196 #if !defined(VTK_LEGACY_REMOVE)
200 vtkSetClampMacro(PickingMode,
int, HARDWARE_PICKING, SOFTWARE_PICKING);
201 vtkGetMacro(PickingMode,
int);
217 vtkSetMacro(HardwarePickingTolerance,
unsigned int);
218 vtkGetMacro(HardwarePickingTolerance,
unsigned int);
230 vtkSetClampMacro(SoftwarePickingTolerance,
double, 0.0, 100.0);
231 vtkGetMacro(SoftwarePickingTolerance,
double);
250 double PointCoordinates[3];
279 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_DEPRECATED_IN_9_2_0(reason)
#define VTK_SIZEHINT(...)