12#ifndef vtkVRControlsHelper_h 
   13#define vtkVRControlsHelper_h 
   18#include "vtkRenderingVRModule.h"  
   22VTK_ABI_NAMESPACE_BEGIN
 
   79  void SetTooltipInfo(
const char* s, 
int buttonSide, 
int drawSide, 
const char* txt)
 
   85    this->ComponentName = std::string(s);
 
   86    this->DrawSide = drawSide;
 
   87    this->ButtonSide = buttonSide;
 
   88    this->SetText(std::string(txt));
 
   92  vtkGetMacro(Enabled, 
bool);
 
   93  vtkBooleanMacro(Enabled, 
bool);
 
  124  double ControlPositionLC[3];
 
  140  double LastPhysicalTranslation[3];
 
  141  double LastEventPosition[3];
 
  142  double LastEventOrientation[4];
 
represents an object (geometry & properties) in a rendered scene
 
supports function callbacks
 
a simple class to control print indentation
 
create a line defined by two end points
 
Allocate and hold a VTK object.
 
abstract base class for most VTK objects
 
map vtkPolyData to graphics primitives
 
abstract superclass for all actors, volumes and annotations
 
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 overridden in subclasses to init the member variable ControlPositionLC to position the toolti...
 
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
 
a weak reference to a vtkObject.
 
window superclass for vtkRenderWindow
 
vtkEventDataDevice
platform-independent event data structures