18#ifndef vtkPointCloudRepresentation_h
19#define vtkPointCloudRepresentation_h
21#include "vtkInteractionWidgetsModule.h"
25VTK_ABI_NAMESPACE_BEGIN
38struct vtkPointCloudPicker;
43 friend struct vtkPointCloudPicker;
94 x[0] = this->PointCoordinates[0];
95 x[1] = this->PointCoordinates[1];
96 x[2] = this->PointCoordinates[2];
105 vtkSetMacro(Highlighting,
bool);
106 vtkGetMacro(Highlighting,
bool);
107 vtkBooleanMacro(Highlighting,
bool);
130 vtkSetClampMacro(InteractionState,
int, Outside, Selecting);
138 void BuildRepresentation()
override {}
177 HARDWARE_PICKING = 0,
180 vtkSetClampMacro(PickingMode,
int, HARDWARE_PICKING, SOFTWARE_PICKING);
181 vtkGetMacro(PickingMode,
int);
197 vtkSetMacro(HardwarePickingTolerance,
unsigned int);
198 vtkGetMacro(HardwarePickingTolerance,
unsigned int);
210 vtkSetClampMacro(SoftwarePickingTolerance,
double, 0.0, 100.0);
211 vtkGetMacro(SoftwarePickingTolerance,
double);
230 double PointCoordinates[3];
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
void CreateDefaultProperties()
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
static vtkPointCloudRepresentation * New()
Instantiate this class.
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...
vtkActor2D * SelectionActor
~vtkPointCloudRepresentation() override
const double * GetPointCoordinates()
Retrieve the point coordinates of the selected point.
double * GetBounds() override
Some methods required to satisfy the vtkWidgetRepresentation API.
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(...)