 |
VTK
9.1.0
|
Go to the documentation of this file.
23 #ifndef vtkOpenVRInteractorStyle_h
24 #define vtkOpenVRInteractorStyle_h
26 #include "vtkRenderingOpenVRModule.h"
121 vtkSetMacro(HoverPick,
bool);
122 vtkGetMacro(HoverPick,
bool);
123 vtkBooleanMacro(HoverPick,
bool);
130 vtkSetMacro(GrabWithRay,
bool);
131 vtkGetMacro(GrabWithRay,
bool);
132 vtkBooleanMacro(GrabWithRay,
bool);
137 return this->InteractionState[
static_cast<int>(device)];
171 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
178 std::map<std::tuple<vtkCommand::EventIds, vtkEventDataAction>,
int>
InputMap;
void OnSelect3D(vtkEventData *edata) override
Override generic event bindings to call the corresponding action.
perform various plane computations
void SetInteractor(vtkRenderWindowInteractor *iren) override
Set/Get the Interactor wrapper being controlled by this object.
pick an actor/prop given a controller position and orientation
virtual void Clip(vtkEventDataDevice3D *)
Methods for intertaction.
represents an 3D object for placement in a rendered scene
virtual void EndDolly3D(vtkEventDataDevice3D *)
Interaction mode entry points.
virtual void StartPositionProp(vtkEventDataDevice3D *)
Interaction mode entry points.
int GetInteractionState(vtkEventDataDevice device)
An actor that displays text.
virtual void PositionProp(vtkEventData *, double *lwpos=nullptr, double *lwori=nullptr)
Methods for intertaction.
Tooltip helper explaining controls Helper class to draw one tooltip per button around the controller.
vtkVRMenuWidget * GetMenu()
vtkNew< vtkActor > PickActor
virtual void StartDolly3D(vtkEventDataDevice3D *)
Interaction mode entry points.
abstract base class for most VTK objects
virtual void EndPositionProp(vtkEventDataDevice3D *)
Interaction mode entry points.
void AddTooltipForInput(vtkEventDataDevice device, vtkEventDataDeviceInput input)
Controls helpers drawing.
const int vtkEventDataNumberOfInputs
data object that represents a "selection" in VTK.
void MapInputToAction(vtkCommand::EventIds eid, int state)
Map controller inputs to actions.
void StartAction(int VTKIS_STATE, vtkEventDataDevice3D *edata)
void ShowPickSphere(double *pos, double radius, vtkProp3D *)
void LoadNextCameraPose()
Methods for intertaction.
void ShowRay(vtkEventDataDevice controller)
vtkNew< vtkVRMenuWidget > Menu
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 *)
Interaction mode entry points.
static vtkOpenVRInteractorStyle * New()
std::map< std::tuple< vtkCommand::EventIds, vtkEventDataAction >, int > InputMap
void OnNextPose3D(vtkEventData *edata) override
Override generic event bindings to call the corresponding action.
void OnPan() override
Multitouch events binding.
const int vtkEventDataNumberOfDevices
virtual void EndLoadCamPose(vtkEventDataDevice3D *)
Interaction mode entry points.
create a polygonal sphere centered at the origin
void SetDrawControls(bool)
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)
void OnRotate() override
Multitouch events binding.
~vtkOpenVRInteractorStyle() override
void MapInputToAction(vtkCommand::EventIds eid, vtkEventDataAction action, int state)
Map controller inputs to actions.
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, deprecated as open vr mostly provides it.
virtual void EndPick(vtkEventDataDevice3D *)
Interaction mode entry points.
virtual void StartLoadCamPose(vtkEventDataDevice3D *)
Interaction mode entry points.
platform-independent render window interaction including picking and frame rate control.
virtual void StartClip(vtkEventDataDevice3D *)
Interaction mode entry points.
void OnViewerMovement3D(vtkEventData *edata) override
Override generic event bindings to call the corresponding action.
extends interaction to support 3D input
vtkNew< vtkTextActor3D > TextActor3D
void ToggleDrawControls()
void OnMenu3D(vtkEventData *edata) override
Override generic event bindings to call the corresponding action.
vtkEventDataDevice
platform-independent event data structures
extended from vtkInteractorStyle3D to override command methods
supports function callbacks
void ShowBillboard(const std::string &text)
vtkNew< vtkVRHardwarePicker > HardwarePicker
bool HardwareSelect(vtkEventDataDevice controller, bool actorPassOnly)
void ShowPickCell(vtkCell *cell, vtkProp3D *)
void EndPickCallback(vtkSelection *sel)
virtual void StartPick(vtkEventDataDevice3D *)
Interaction mode entry points.
vtkCallbackCommand * MenuCommand
vtkNew< vtkVRMenuRepresentation > MenuRepresentation
void OnMove3D(vtkEventData *edata) override
Override generic event bindings to call the corresponding action.
void OnPinch() override
Multitouch events binding.