27#ifndef vtkPointCloudRepresentation_h
28#define vtkPointCloudRepresentation_h
30#include "vtkInteractionWidgetsModule.h"
45struct vtkPointCloudPicker;
49 friend struct vtkPointCloudPicker;
100 x[0] = this->PointCoordinates[0];
101 x[1] = this->PointCoordinates[1];
102 x[2] = this->PointCoordinates[2];
111 vtkSetMacro(Highlighting,
bool);
112 vtkGetMacro(Highlighting,
bool);
113 vtkBooleanMacro(Highlighting,
bool);
136 vtkSetClampMacro(InteractionState,
int, Outside, Selecting);
144 void BuildRepresentation()
override {}
182 HARDWARE_PICKING = 0,
185 vtkSetClampMacro(PickingMode,
int, HARDWARE_PICKING, SOFTWARE_PICKING);
186 vtkGetMacro(PickingMode,
int);
202 vtkSetMacro(HardwarePickingTolerance,
unsigned int);
203 vtkGetMacro(HardwarePickingTolerance,
unsigned int);
215 vtkSetClampMacro(SoftwarePickingTolerance,
double, 0.0, 100.0);
216 vtkGetMacro(SoftwarePickingTolerance,
double);
235 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.,...
_Picking_Mode
Because point clouds can be very large, alternative point picking approaches can be used to select po...
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 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.
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(...)