Go to the documentation of this file.
20 #ifndef vtkOpenVRInteractorStyle_h
21 #define vtkOpenVRInteractorStyle_h
23 #include "vtkRenderingOpenVRModule.h"
108 vtkSetClampMacro(HoverPick,
int, 0, 1);
109 vtkGetMacro(HoverPick,
int);
110 vtkBooleanMacro(HoverPick,
int);
113 return this->InteractionState[
static_cast<int>(device)]; }
131 return this->Menu.Get(); }
perform various plane computations
void MapInputToAction(vtkEventDataDevice device, vtkEventDataDeviceInput input, int state)
Map controller inputs to actions.
void SetInteractor(vtkRenderWindowInteractor *iren) override
Set/Get the Interactor wrapper being controlled by this object.
vtkOpenVRMenuWidget * GetMenu()
virtual void Clip(vtkEventDataDevice3D *)
represents an 3D object for placement in a rendered scene
virtual void EndDolly3D(vtkEventDataDevice3D *)
virtual void StartPositionProp(vtkEventDataDevice3D *)
int GetInteractionState(vtkEventDataDevice device)
An actor that displays text.
void OnButton3D(vtkEventData *edata) override
Override generic event bindings to call the corresponding action.
Tooltip helper explaining controls Helper class to draw one tooltip per button around the controller.
vtkNew< vtkActor > PickActor
virtual void StartDolly3D(vtkEventDataDevice3D *)
abstract base class for most VTK objects
virtual void EndPositionProp(vtkEventDataDevice3D *)
void AddTooltipForInput(vtkEventDataDevice device, vtkEventDataDeviceInput input)
Controls helpers drawing.
const int vtkEventDataNumberOfInputs
data object that represents a "selection" in VTK.
void StartAction(int VTKIS_STATE, vtkEventDataDevice3D *edata)
void ShowPickSphere(double *pos, double radius, vtkProp3D *)
void LoadNextCameraPose()
void ShowRay(vtkEventDataDevice controller)
pick an actor/prop given a controller position and orientation
void HideRay(vtkEventDataDevice controller)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkNew< vtkSphereSource > Sphere
virtual void EndClip(vtkEventDataDevice3D *)
static vtkOpenVRInteractorStyle * New()
void OnPan() override
Multitouch events binding.
const int vtkEventDataNumberOfDevices
virtual void EndLoadCamPose(vtkEventDataDevice3D *)
create a polygonal sphere centered at the origin
void ProbeData(vtkEventDataDevice controller)
Methods for intertaction.
abstract class to specify cell behavior
void EndAction(int VTKIS_STATE, vtkEventDataDevice3D *edata)
static void MenuCallback(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
~vtkOpenVRInteractorStyle() override
a simple class to control print indentation
void UpdateRay(vtkEventDataDevice controller)
vtkOpenVRInteractorStyle()
void AddTooltipForInput(vtkEventDataDevice device, vtkEventDataDeviceInput input, const std::string &text)
Define the helper text that goes with an input.
virtual void EndPick(vtkEventDataDevice3D *)
virtual void StartLoadCamPose(vtkEventDataDevice3D *)
platform-independent render window interaction including picking and frame rate control.
vtkNew< vtkOpenVRMenuWidget > Menu
virtual void StartClip(vtkEventDataDevice3D *)
vtkNew< vtkOpenVRMenuRepresentation > MenuRepresentation
extends interaction to support 3D input
vtkNew< vtkTextActor3D > TextActor3D
int HoverPick
Indicates if picking should be updated every frame.
void ToggleDrawControls()
vtkEventDataDevice
platform-independent event data structures
extended from vtkInteractorStyle3D to override command methods
supports function callbacks
void ShowBillboard(const std::string &text)
void ShowPickCell(vtkCell *cell, vtkProp3D *)
vtkNew< vtkOpenVRHardwarePicker > HardwarePicker
void EndPickCallback(vtkSelection *sel)
virtual void StartPick(vtkEventDataDevice3D *)
Interaction mode entry points.
virtual void PositionProp(vtkEventData *)
vtkCallbackCommand * MenuCommand
void OnMove3D(vtkEventData *edata) override
Generic 3D event bindings can be overridden in subclasses.
void OnPinch() override
gesture based events