30#ifndef vtkZSpaceInteractorStyle_h
31#define vtkZSpaceInteractorStyle_h
37#include "vtkRenderingZSpaceModule.h"
39VTK_ABI_NAMESPACE_BEGIN
90 vtkSetMacro(HoverPick,
bool);
91 vtkGetMacro(HoverPick,
bool);
92 vtkBooleanMacro(HoverPick,
bool);
114 vtkGetMacro(PickingFieldAssociation,
int);
183 bool HoverPick =
false;
abstract class to specify cell behavior
@ FIELD_ASSOCIATION_POINTS
@ FIELD_ASSOCIATION_CELLS
abstract class to specify dataset behavior
a simple class to control print indentation
extends interaction to support 3D input
Allocate and hold a VTK object.
perform various plane computations
represents an 3D object for placement in a rendered scene
data object that represents a "selection" in VTK.
Hold a reference to a vtkObjectBase instance.
An actor that displays text.
Pick an actor/prop given the stylus position and orientation.
vtkZSpaceInteractorStyle extends vtkInteractorStyle3D to override command methods.
std::string GetPickedText(vtkDataSet *ds, const vtkIdType &aid)
Create a string that contains information about the point or cell defined by the index 'aid' in the d...
void OnSelect3D(vtkEventData *edata) override
Override generic event bindings to call the corresponding action.
bool FindDataSet(vtkSelection *sel, vtkSmartPointer< vtkDataSet > &ds, vtkIdType &aid)
From the selection 'sel', find the corresponding dataset 'ds' and the point/cell id 'aid'.
virtual void StartPick(vtkEventDataDevice3D *)
Interaction mode entry points.
void RemovePickActor()
Remove the PickActor and the TextActor from the renderer.
void StartAction(int VTKIS_STATE, vtkEventDataDevice3D *edata)
Utility routines.
virtual void PositionProp(vtkEventData *, double *lwpos=nullptr, double *lwori=nullptr)
Methods for interaction.
void UpdatePickActor()
Update the PickActor and the TextActor depending on the PickedInteractionProp position and visibility...
void ProbeData(vtkEventDataDevice3D *)
Methods for interaction.
vtkZSpaceInteractorStyle()
void OnMove3D(vtkEventData *edata) override
Override generic event bindings to call the corresponding action.
vtkNew< vtkTextActor > TextActor
static vtkZSpaceInteractorStyle * New()
virtual void EndPositionProp(vtkEventDataDevice3D *)
Interaction mode entry points.
void EndPickCallback(vtkSelection *sel)
Create the text to display information about the selection, create the PickActor to draw the picked c...
~vtkZSpaceInteractorStyle() override=default
void CreatePickCell(vtkCell *cell)
Create the PickActor to show the picked cell.
void EndAction(int VTKIS_STATE, vtkEventDataDevice3D *edata)
Utility routines.
void OnPositionProp3D(vtkEventData *edata) override
Override generic event bindings to call the corresponding action.
void UpdateRay(vtkEventDataDevice3D *)
Use FindPickedActor to update the InteractionProp.
void OnPick3D(vtkEventData *edata) override
Override generic event bindings to call the corresponding action.
vtkNew< vtkZSpaceHardwarePicker > HardwarePicker
bool HardwareSelect(vtkEventDataDevice3D *edd, bool actorPassOnly)
Do a selection using the vtkZSpaceHardwarePicker.
virtual void EndPick(vtkEventDataDevice3D *)
Interaction mode entry points.
void CreatePickPoint(double *point)
Create the PickActor to show the picked point.
vtkZSpaceRayActor * ZSpaceRayActor
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void StartPositionProp(vtkEventDataDevice3D *)
Interaction mode entry points.
vtkNew< vtkActor > PickActor
An actor for displaying a ray.