24#ifndef vtkVRControlsHelper_h
25#define vtkVRControlsHelper_h
30#include "vtkRenderingVRModule.h"
96 void SetTooltipInfo(
const char* s,
int buttonSide,
int drawSide,
const char* txt)
103 this->DrawSide = drawSide;
104 this->ButtonSide = buttonSide;
109 vtkGetMacro(Enabled,
bool);
110 vtkBooleanMacro(Enabled,
bool);
141 double ControlPositionLC[3];
157 double LastPhysicalTranslation[3];
158 double LastEventPosition[3];
159 double LastEventOrientation[4];
represents an object (geometry & properties) in a rendered scene
supports function callbacks
object to represent cell connectivity
a simple class to control print indentation
create a line defined by two end points
abstract base class for most VTK objects
represent and manipulate 3D points
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract superclass for all actors, volumes and annotations
represent surface properties of a geometric object
abstract specification for renderers
An actor that displays text.
Tooltip helper explaining controls Helper class to draw one tooltip per button around the controller.
void SetEnabled(bool enabled)
vtkTextActor3D * TextActor
std::string ComponentName
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
Methods supporting the rendering process.
void ReleaseGraphicsResources(vtkWindow *) override
Methods supporting the rendering process.
virtual void InitControlPosition()=0
Must be overriden in subclasses to init the member variable ControlPositionLC to position the tooltip...
static void MoveEvent(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
vtkCallbackCommand * MoveCallbackCommand
vtkNew< vtkTransform > TempTransform
void SetTooltipInfo(const char *s, int buttonSide, int drawSide, const char *txt)
unsigned long ObserverTag
int RenderOpaqueGeometry(vtkViewport *) override
Methods supporting the rendering process.
vtkWeakPointer< vtkRenderer > Renderer
void SetDevice(vtkEventDataDevice val)
vtkEventDataDevice Device
virtual void SetRenderer(vtkRenderer *ren)
vtkPolyDataMapper * LineMapper
void SetText(const std::string &str)
Set Tooltip text (used by TextActor)
~vtkVRControlsHelper() override
void BuildRepresentation()
Methods to interface with the vtkVRPanelWidget.
virtual vtkRenderer * GetRenderer()
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Methods supporting the rendering process.
void UpdateRepresentation()
Methods to interface with the vtkVRPanelWidget.
vtkLineSource * LineSource
abstract specification for Viewports
window superclass for vtkRenderWindow
vtkEventDataDevice
platform-independent event data structures