VTK  9.3.20240416
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkZSpaceSDKManager Class Referenceabstract

Abstract zSpace SDK manager class. More...

#include <vtkZSpaceSDKManager.h>

Inheritance diagram for vtkZSpaceSDKManager:
[legend]
Collaboration diagram for vtkZSpaceSDKManager:
[legend]

Public Types

enum  StereoDisplayMode { QUAD_BUFFER_STEREO = 0 , STEREO_DISPLAY_API = 1 }
 
enum  ButtonIds { MiddleButton = 0 , RightButton = 1 , LeftButton = 2 , NumberOfButtons = 3 }
 
enum  ButtonState {
  Down = 0 , Pressed = 1 , Up = 2 , None = 3 ,
  NumberOfStates = 4
}
 
typedef vtkObject Superclass
 

Public Member Functions

virtual vtkTypeBool IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class. More...
 
vtkZSpaceSDKManagerNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual void InitializeZSpace ()=0
 Initialize the zSpace SDK and check for zSpace devices : the display, the stylus and the head trackers. More...
 
virtual void UpdateViewport ()=0
 Update the zSpace viewport position and size based on the position and size of the application window. More...
 
virtual void UpdateTrackers ()=0
 Update the position of the stylus and head trackers. More...
 
virtual void UpdateViewAndProjectionMatrix ()=0
 Update the zSpace view and projection matrix for each eye. More...
 
virtual void UpdateButtonState ()=0
 Update the stylus buttons state. More...
 
virtual void CalculateFrustumFit (const double bounds[6], double position[3], double viewUp[3])=0
 Let zSpace compute the viewer scale, camera position and camera view up from the input bounds. More...
 
virtual void ShutDown ()
 Shutdown the zSpace SDK (clean its internal state). More...
 
virtual StereoDisplayMode GetStereoDisplayMode ()
 
void Update ()
 Update the viewport, the trackers and the camera matrix by calling the zSpace SDK. More...
 
virtual int GetWindowX ()
 Get the x position of the upper left corner of the zSpace display in the virtual desktop. More...
 
virtual int GetWindowY ()
 Get the y position of the upper left corner of the zSpace display in the virtual desktop. More...
 
virtual int GetWindowWidth ()
 Get the x resolution in pixels of the zSpace display. More...
 
virtual int GetWindowHeight ()
 Get the y resolution in pixels of the zSpace display. More...
 
virtual int GetStylusTargets ()
 Get the number of stylus connected to the zSpace device. More...
 
virtual int GetHeadTargets ()
 Get the number of glasses connected to the zSpace device. More...
 
virtual int GetSecondaryTargets ()
 Get the number of secondary targets connected to the zSpace device. More...
 
void SetClippingRange (const float nearPlane, const float farPlane)
 Set the near and far plane. More...
 
virtual float GetViewerScale ()
 Get the viewer scale. More...
 
virtual float GetNearPlane ()
 Get the near plane. More...
 
virtual float GetFarPlane ()
 Get the far plane. More...
 
virtual vtkMatrix4x4GetCenterEyeViewMatrix ()
 Get the zSpace view matrix without stereo (eye set as EYE_CENTER) in row major format (VTK format) More...
 
vtkMatrix4x4GetStereoViewMatrix (bool leftEye)
 Get the zSpace view matrix for the right or left eye in row major format (VTK format) More...
 
virtual vtkMatrix4x4GetCenterEyeProjectionMatrix ()
 Get the zSpace projection matrix without stereo (eye set as EYE_CENTER) in row major format (VTK format) More...
 
vtkMatrix4x4GetStereoProjectionMatrix (bool leftEye)
 Get the zSpace projection matrix for the right or left eye in row major format (VTK format) More...
 
virtual vtkMatrix4x4GetStylusMatrixColMajor ()
 Get the zSpace stylus matrix in world space. More...
 
virtual vtkMatrix4x4GetStylusMatrixRowMajor ()
 Get the zSpace stylus matrix in world space. More...
 
virtual vtkTransformGetStylusTransformRowMajor ()
 Get the zSpace stylus transform in world space. More...
 
virtual void BeginFrame ()=0
 Notify the zSpace SDK for the beginning/end of a frame (vtkZSpaceCoreCompatibility only) More...
 
virtual void EndFrame ()=0
 Notify the zSpace SDK for the beginning/end of a frame (vtkZSpaceCoreCompatibility only) More...
 
virtual void EnableGraphicsBinding ()
 These functions are overriden by vtkZSpaceCoreCompatibility (specific to zSpace Inspire). More...
 
virtual void SubmitFrame (unsigned int vtkNotUsed(leftText), unsigned int vtkNotUsed(rightText))
 These functions are overriden by vtkZSpaceCoreCompatibility (specific to zSpace Inspire). More...
 
virtual void GetPerEyeImageResolution (int *vtkNotUsed(width), int *vtkNotUsed(height))
 These functions are overriden by vtkZSpaceCoreCompatibility (specific to zSpace Inspire). More...
 
virtual void SetStereoDisplayEnabled (bool vtkNotUsed(enabled))
 These functions are overriden by vtkZSpaceCoreCompatibility (specific to zSpace Inspire). More...
 
virtual bool GetStereoDisplayEnabled ()
 These functions are overriden by vtkZSpaceCoreCompatibility (specific to zSpace Inspire). More...
 
virtual void SetRenderWindow (vtkRenderWindow *renderWindow)
 Set the render windwow the manager makes viewport computations from. More...
 
virtual float GetInterPupillaryDistance ()
 Get/Set the distance between the eyes in meters. More...
 
virtual void SetInterPupillaryDistance (float)
 Get/Set the distance between the eyes in meters. More...
 
virtual int GetLeftButtonState ()
 Get/Set the state of the left button of the stylus. More...
 
 vtkSetEnumMacro (LeftButtonState, ButtonState)
 Get/Set the state of the left button of the stylus. More...
 
virtual int GetMiddleButtonState ()
 Get/Set the state of the middle button of the stylus. More...
 
 vtkSetEnumMacro (MiddleButtonState, ButtonState)
 Get/Set the state of the middle button of the stylus. More...
 
virtual int GetRightButtonState ()
 Get/Set the state of the right button of the stylus. More...
 
 vtkSetEnumMacro (RightButtonState, ButtonState)
 Get/Set the state of the right button of the stylus. More...
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 Turn debugging output on. More...
 
virtual void DebugOff ()
 Turn debugging output off. More...
 
bool GetDebug ()
 Get the value of the debug flag. More...
 
void SetDebug (bool debugFlag)
 Set the value of the debug flag. More...
 
virtual void Modified ()
 Update the modification time for this object. More...
 
virtual vtkMTimeType GetMTime ()
 Return this object's modified time. More...
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
vtkTypeBool HasObserver (unsigned long event)
 
vtkTypeBool HasObserver (const char *event)
 
vtkTypeBool InvokeEvent (unsigned long event)
 
vtkTypeBool InvokeEvent (const char *event)
 
std::string GetObjectDescription () const override
 The object description printed in messages and PrintSelf output. More...
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkCommandGetCommand (unsigned long tag)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObserver (vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkTypeBool HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkTypeBool HasObserver (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Allow user to set the AbortFlagOn() with the return value of the callback method. More...
 
vtkTypeBool InvokeEvent (unsigned long event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
vtkTypeBool InvokeEvent (const char *event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
virtual void SetObjectName (const std::string &objectName)
 Set/get the name of this object for reporting purposes. More...
 
virtual std::string GetObjectName () const
 Set/get the name of this object for reporting purposes. More...
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string. More...
 
virtual vtkIdType GetNumberOfGenerationsFromBase (const char *name)
 Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More...
 
virtual void Delete ()
 Delete a VTK object. More...
 
virtual void FastDelete ()
 Delete a reference to this object. More...
 
void InitializeObjectBase ()
 
void Print (ostream &os)
 Print an object to an ostream. More...
 
void Register (vtkObjectBase *o)
 Increase the reference count (mark as used by another object). More...
 
virtual void UnRegister (vtkObjectBase *o)
 Decrease the reference count (release by another object). More...
 
int GetReferenceCount ()
 Return the current reference count of this object. More...
 
void SetReferenceCount (int)
 Sets the reference count. More...
 
bool GetIsInMemkind () const
 A local state flag that remembers whether this object lives in the normal or extended memory space. More...
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual bool UsesGarbageCollector () const
 Indicate whether the class uses vtkGarbageCollector or not. More...
 

Static Public Member Functions

static vtkTypeBool IsTypeOf (const char *type)
 
static vtkZSpaceSDKManagerSafeDownCast (vtkObjectBase *o)
 
static vtkZSpaceSDKManagerGetInstance ()
 Return the singleton instance (with no reference counting) of a vtkZSpaceCoreSDKManager or vtkZSpaceCoreCompatibilitySDKManager depending on the current zSpaceSDK in use. More...
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
static void BreakOnError ()
 This method is called when vtkErrorMacro executes. More...
 
static void SetGlobalWarningDisplay (vtkTypeBool val)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static vtkTypeBool GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 Return 1 if this class type is the same type of (or a subclass of) the named class. More...
 
static vtkIdType GetNumberOfGenerationsFromBaseType (const char *name)
 Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More...
 
static vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
static void SetMemkindDirectory (const char *directoryname)
 The name of a directory, ideally mounted -o dax, to memory map an extended memory space within. More...
 
static bool GetUsingMemkind ()
 A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space. More...
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkZSpaceSDKManager ()
 
 ~vtkZSpaceSDKManager () override
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
 ~vtkObject () override
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr)
 These methods allow a command to exclusively grab all events. More...
 
void InternalReleaseFocus ()
 These methods allow a command to exclusively grab all events. More...
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

vtkRenderWindowRenderWindow = nullptr
 
vtkNew< vtkMatrix4x4CenterEyeViewMatrix
 
vtkNew< vtkMatrix4x4LeftEyeViewMatrix
 
vtkNew< vtkMatrix4x4RightEyeViewMatrix
 
vtkNew< vtkMatrix4x4CenterEyeProjectionMatrix
 
vtkNew< vtkMatrix4x4LeftEyeProjectionMatrix
 
vtkNew< vtkMatrix4x4RightEyeProjectionMatrix
 
vtkNew< vtkMatrix4x4StylusMatrixColMajor
 
vtkNew< vtkMatrix4x4StylusMatrixRowMajor
 
vtkNew< vtkTransformStylusTransformRowMajor
 
int WindowX = 0
 
int WindowY = 0
 
int WindowWidth = 0
 
int WindowHeight = 0
 
std::vector< std::string > Displays
 
int StylusTargets = 0
 
int HeadTargets = 0
 
int SecondaryTargets = 0
 
float InterPupillaryDistance = 0.056f
 
float ViewerScale = 1.f
 
float NearPlane = 0.0001f
 
float FarPlane = 1000.f
 
ButtonState LeftButtonState = None
 
ButtonState MiddleButtonState = None
 
ButtonState RightButtonState = None
 
ButtonStateButtonsState [NumberOfButtons]
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
std::string ObjectName
 
- Protected Attributes inherited from vtkObjectBase
std::atomic< int32_t > ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkObjectBase
static vtkMallocingFunction GetCurrentMallocFunction ()
 
static vtkReallocingFunction GetCurrentReallocFunction ()
 
static vtkFreeingFunction GetCurrentFreeFunction ()
 
static vtkFreeingFunction GetAlternateFreeFunction ()
 

Detailed Description

Abstract zSpace SDK manager class.

Abstract class handling the interactions between the zSpace plugin and the zSpace SDK. The implementation of virtual functions depend of the version of the zSpace SDK currently used : "zSpace Core SDK" (older) and zSpace Core Compatibility SDK (newer).

This class encapsulates all the calls to the zSpace SDK :

For button states, the states Down/Up are set by this class; whereas the states Pressed/None should be set by the calling class when the state Down/Up has been processed, to ensure that the same input won't be processed multiple times.

Definition at line 49 of file vtkZSpaceSDKManager.h.

Member Typedef Documentation

◆ Superclass

Definition at line 52 of file vtkZSpaceSDKManager.h.

Member Enumeration Documentation

◆ StereoDisplayMode

Enumerator
QUAD_BUFFER_STEREO 
STEREO_DISPLAY_API 

Definition at line 123 of file vtkZSpaceSDKManager.h.

◆ ButtonIds

Enumerator
MiddleButton 
RightButton 
LeftButton 
NumberOfButtons 

Definition at line 254 of file vtkZSpaceSDKManager.h.

◆ ButtonState

Enumerator
Down 
Pressed 
Up 
None 
NumberOfStates 

Definition at line 262 of file vtkZSpaceSDKManager.h.

Constructor & Destructor Documentation

◆ vtkZSpaceSDKManager()

vtkZSpaceSDKManager::vtkZSpaceSDKManager ( )
protected

◆ ~vtkZSpaceSDKManager()

vtkZSpaceSDKManager::~vtkZSpaceSDKManager ( )
overrideprotected

Member Function Documentation

◆ IsTypeOf()

static vtkTypeBool vtkZSpaceSDKManager::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual vtkTypeBool vtkZSpaceSDKManager::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class.

Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObjectBase.

Reimplemented in vtkZSpaceCoreSDKManager, and vtkZSpaceCoreCompatibilitySDKManager.

◆ SafeDownCast()

static vtkZSpaceSDKManager* vtkZSpaceSDKManager::SafeDownCast ( vtkObjectBase o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase* vtkZSpaceSDKManager::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkZSpaceSDKManager* vtkZSpaceSDKManager::NewInstance ( ) const

◆ PrintSelf()

void vtkZSpaceSDKManager::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Methods invoked by print to print information about the object including superclasses.

Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

◆ GetInstance()

static vtkZSpaceSDKManager* vtkZSpaceSDKManager::GetInstance ( )
static

Return the singleton instance (with no reference counting) of a vtkZSpaceCoreSDKManager or vtkZSpaceCoreCompatibilitySDKManager depending on the current zSpaceSDK in use.

◆ InitializeZSpace()

virtual void vtkZSpaceSDKManager::InitializeZSpace ( )
pure virtual

Initialize the zSpace SDK and check for zSpace devices : the display, the stylus and the head trackers.

Implemented in vtkZSpaceCoreSDKManager, and vtkZSpaceCoreCompatibilitySDKManager.

◆ UpdateViewport()

virtual void vtkZSpaceSDKManager::UpdateViewport ( )
pure virtual

Update the zSpace viewport position and size based on the position and size of the application window.

Implemented in vtkZSpaceCoreSDKManager, and vtkZSpaceCoreCompatibilitySDKManager.

◆ UpdateTrackers()

virtual void vtkZSpaceSDKManager::UpdateTrackers ( )
pure virtual

Update the position of the stylus and head trackers.

Implemented in vtkZSpaceCoreSDKManager, and vtkZSpaceCoreCompatibilitySDKManager.

◆ UpdateViewAndProjectionMatrix()

virtual void vtkZSpaceSDKManager::UpdateViewAndProjectionMatrix ( )
pure virtual

Update the zSpace view and projection matrix for each eye.

Implemented in vtkZSpaceCoreSDKManager, and vtkZSpaceCoreCompatibilitySDKManager.

◆ UpdateButtonState()

virtual void vtkZSpaceSDKManager::UpdateButtonState ( )
pure virtual

Update the stylus buttons state.

Implemented in vtkZSpaceCoreSDKManager, and vtkZSpaceCoreCompatibilitySDKManager.

◆ CalculateFrustumFit()

virtual void vtkZSpaceSDKManager::CalculateFrustumFit ( const double  bounds[6],
double  position[3],
double  viewUp[3] 
)
pure virtual

Let zSpace compute the viewer scale, camera position and camera view up from the input bounds.

Implemented in vtkZSpaceCoreSDKManager, and vtkZSpaceCoreCompatibilitySDKManager.

◆ BeginFrame()

virtual void vtkZSpaceSDKManager::BeginFrame ( )
pure virtual

Notify the zSpace SDK for the beginning/end of a frame (vtkZSpaceCoreCompatibility only)

Implemented in vtkZSpaceCoreSDKManager, and vtkZSpaceCoreCompatibilitySDKManager.

◆ EndFrame()

virtual void vtkZSpaceSDKManager::EndFrame ( )
pure virtual

Notify the zSpace SDK for the beginning/end of a frame (vtkZSpaceCoreCompatibility only)

Implemented in vtkZSpaceCoreSDKManager, and vtkZSpaceCoreCompatibilitySDKManager.

◆ ShutDown()

virtual void vtkZSpaceSDKManager::ShutDown ( )
inlinevirtual

Shutdown the zSpace SDK (clean its internal state).

Useful to re-initialize the zSpace SDK from a clean state.

Reimplemented in vtkZSpaceCoreCompatibilitySDKManager.

Definition at line 109 of file vtkZSpaceSDKManager.h.

◆ EnableGraphicsBinding()

virtual void vtkZSpaceSDKManager::EnableGraphicsBinding ( )
inlinevirtual

These functions are overriden by vtkZSpaceCoreCompatibility (specific to zSpace Inspire).

See also
vtkZSpaceCoreCompatibility

Reimplemented in vtkZSpaceCoreCompatibilitySDKManager.

Definition at line 116 of file vtkZSpaceSDKManager.h.

◆ SubmitFrame()

virtual void vtkZSpaceSDKManager::SubmitFrame ( unsigned int   vtkNotUsedleftText,
unsigned int   vtkNotUsedrightText 
)
inlinevirtual

These functions are overriden by vtkZSpaceCoreCompatibility (specific to zSpace Inspire).

See also
vtkZSpaceCoreCompatibility

Definition at line 117 of file vtkZSpaceSDKManager.h.

◆ GetPerEyeImageResolution()

virtual void vtkZSpaceSDKManager::GetPerEyeImageResolution ( int *  vtkNotUsedwidth,
int *  vtkNotUsedheight 
)
inlinevirtual

These functions are overriden by vtkZSpaceCoreCompatibility (specific to zSpace Inspire).

See also
vtkZSpaceCoreCompatibility

Definition at line 118 of file vtkZSpaceSDKManager.h.

◆ SetStereoDisplayEnabled()

virtual void vtkZSpaceSDKManager::SetStereoDisplayEnabled ( bool   vtkNotUsedenabled)
inlinevirtual

These functions are overriden by vtkZSpaceCoreCompatibility (specific to zSpace Inspire).

See also
vtkZSpaceCoreCompatibility

Definition at line 119 of file vtkZSpaceSDKManager.h.

◆ GetStereoDisplayEnabled()

virtual bool vtkZSpaceSDKManager::GetStereoDisplayEnabled ( )
inlinevirtual

These functions are overriden by vtkZSpaceCoreCompatibility (specific to zSpace Inspire).

See also
vtkZSpaceCoreCompatibility

Reimplemented in vtkZSpaceCoreCompatibilitySDKManager.

Definition at line 120 of file vtkZSpaceSDKManager.h.

◆ GetStereoDisplayMode()

virtual StereoDisplayMode vtkZSpaceSDKManager::GetStereoDisplayMode ( )
inlinevirtual

Reimplemented in vtkZSpaceCoreCompatibilitySDKManager.

Definition at line 129 of file vtkZSpaceSDKManager.h.

◆ SetRenderWindow()

virtual void vtkZSpaceSDKManager::SetRenderWindow ( vtkRenderWindow renderWindow)
virtual

Set the render windwow the manager makes viewport computations from.

Reimplemented in vtkZSpaceCoreCompatibilitySDKManager.

◆ Update()

void vtkZSpaceSDKManager::Update ( )

Update the viewport, the trackers and the camera matrix by calling the zSpace SDK.

◆ GetWindowX()

virtual int vtkZSpaceSDKManager::GetWindowX ( )
virtual

Get the x position of the upper left corner of the zSpace display in the virtual desktop.

◆ GetWindowY()

virtual int vtkZSpaceSDKManager::GetWindowY ( )
virtual

Get the y position of the upper left corner of the zSpace display in the virtual desktop.

◆ GetWindowWidth()

virtual int vtkZSpaceSDKManager::GetWindowWidth ( )
virtual

Get the x resolution in pixels of the zSpace display.

◆ GetWindowHeight()

virtual int vtkZSpaceSDKManager::GetWindowHeight ( )
virtual

Get the y resolution in pixels of the zSpace display.

◆ GetStylusTargets()

virtual int vtkZSpaceSDKManager::GetStylusTargets ( )
virtual

Get the number of stylus connected to the zSpace device.

◆ GetHeadTargets()

virtual int vtkZSpaceSDKManager::GetHeadTargets ( )
virtual

Get the number of glasses connected to the zSpace device.

◆ GetSecondaryTargets()

virtual int vtkZSpaceSDKManager::GetSecondaryTargets ( )
virtual

Get the number of secondary targets connected to the zSpace device.

◆ GetInterPupillaryDistance()

virtual float vtkZSpaceSDKManager::GetInterPupillaryDistance ( )
virtual

Get/Set the distance between the eyes in meters.

◆ SetInterPupillaryDistance()

virtual void vtkZSpaceSDKManager::SetInterPupillaryDistance ( float  )
virtual

Get/Set the distance between the eyes in meters.

◆ SetClippingRange()

void vtkZSpaceSDKManager::SetClippingRange ( const float  nearPlane,
const float  farPlane 
)

Set the near and far plane.

◆ GetViewerScale()

virtual float vtkZSpaceSDKManager::GetViewerScale ( )
virtual

Get the viewer scale.

◆ GetNearPlane()

virtual float vtkZSpaceSDKManager::GetNearPlane ( )
virtual

Get the near plane.

◆ GetFarPlane()

virtual float vtkZSpaceSDKManager::GetFarPlane ( )
virtual

Get the far plane.

◆ GetCenterEyeViewMatrix()

virtual vtkMatrix4x4* vtkZSpaceSDKManager::GetCenterEyeViewMatrix ( )
virtual

Get the zSpace view matrix without stereo (eye set as EYE_CENTER) in row major format (VTK format)

◆ GetStereoViewMatrix()

vtkMatrix4x4* vtkZSpaceSDKManager::GetStereoViewMatrix ( bool  leftEye)

Get the zSpace view matrix for the right or left eye in row major format (VTK format)

◆ GetCenterEyeProjectionMatrix()

virtual vtkMatrix4x4* vtkZSpaceSDKManager::GetCenterEyeProjectionMatrix ( )
virtual

Get the zSpace projection matrix without stereo (eye set as EYE_CENTER) in row major format (VTK format)

◆ GetStereoProjectionMatrix()

vtkMatrix4x4* vtkZSpaceSDKManager::GetStereoProjectionMatrix ( bool  leftEye)

Get the zSpace projection matrix for the right or left eye in row major format (VTK format)

◆ GetStylusMatrixColMajor()

virtual vtkMatrix4x4* vtkZSpaceSDKManager::GetStylusMatrixColMajor ( )
virtual

Get the zSpace stylus matrix in world space.

The matrix is in column major format and can be used by OpenGL.

◆ GetStylusMatrixRowMajor()

virtual vtkMatrix4x4* vtkZSpaceSDKManager::GetStylusMatrixRowMajor ( )
virtual

Get the zSpace stylus matrix in world space.

The matrix is in row major format and can be used by VTK.

◆ GetStylusTransformRowMajor()

virtual vtkTransform* vtkZSpaceSDKManager::GetStylusTransformRowMajor ( )
virtual

Get the zSpace stylus transform in world space.

The transform has for matrix StylusMatrixRowMajor

◆ GetLeftButtonState()

virtual int vtkZSpaceSDKManager::GetLeftButtonState ( )
virtual

Get/Set the state of the left button of the stylus.

◆ vtkSetEnumMacro() [1/3]

vtkZSpaceSDKManager::vtkSetEnumMacro ( LeftButtonState  ,
ButtonState   
)

Get/Set the state of the left button of the stylus.

◆ GetMiddleButtonState()

virtual int vtkZSpaceSDKManager::GetMiddleButtonState ( )
virtual

Get/Set the state of the middle button of the stylus.

◆ vtkSetEnumMacro() [2/3]

vtkZSpaceSDKManager::vtkSetEnumMacro ( MiddleButtonState  ,
ButtonState   
)

Get/Set the state of the middle button of the stylus.

◆ GetRightButtonState()

virtual int vtkZSpaceSDKManager::GetRightButtonState ( )
virtual

Get/Set the state of the right button of the stylus.

◆ vtkSetEnumMacro() [3/3]

vtkZSpaceSDKManager::vtkSetEnumMacro ( RightButtonState  ,
ButtonState   
)

Get/Set the state of the right button of the stylus.

Member Data Documentation

◆ RenderWindow

vtkRenderWindow* vtkZSpaceSDKManager::RenderWindow = nullptr
protected

Definition at line 299 of file vtkZSpaceSDKManager.h.

◆ CenterEyeViewMatrix

vtkNew<vtkMatrix4x4> vtkZSpaceSDKManager::CenterEyeViewMatrix
protected

Definition at line 301 of file vtkZSpaceSDKManager.h.

◆ LeftEyeViewMatrix

vtkNew<vtkMatrix4x4> vtkZSpaceSDKManager::LeftEyeViewMatrix
protected

Definition at line 302 of file vtkZSpaceSDKManager.h.

◆ RightEyeViewMatrix

vtkNew<vtkMatrix4x4> vtkZSpaceSDKManager::RightEyeViewMatrix
protected

Definition at line 303 of file vtkZSpaceSDKManager.h.

◆ CenterEyeProjectionMatrix

vtkNew<vtkMatrix4x4> vtkZSpaceSDKManager::CenterEyeProjectionMatrix
protected

Definition at line 304 of file vtkZSpaceSDKManager.h.

◆ LeftEyeProjectionMatrix

vtkNew<vtkMatrix4x4> vtkZSpaceSDKManager::LeftEyeProjectionMatrix
protected

Definition at line 305 of file vtkZSpaceSDKManager.h.

◆ RightEyeProjectionMatrix

vtkNew<vtkMatrix4x4> vtkZSpaceSDKManager::RightEyeProjectionMatrix
protected

Definition at line 306 of file vtkZSpaceSDKManager.h.

◆ StylusMatrixColMajor

vtkNew<vtkMatrix4x4> vtkZSpaceSDKManager::StylusMatrixColMajor
protected

Definition at line 309 of file vtkZSpaceSDKManager.h.

◆ StylusMatrixRowMajor

vtkNew<vtkMatrix4x4> vtkZSpaceSDKManager::StylusMatrixRowMajor
protected

Definition at line 312 of file vtkZSpaceSDKManager.h.

◆ StylusTransformRowMajor

vtkNew<vtkTransform> vtkZSpaceSDKManager::StylusTransformRowMajor
protected

Definition at line 313 of file vtkZSpaceSDKManager.h.

◆ WindowX

int vtkZSpaceSDKManager::WindowX = 0
protected

Definition at line 315 of file vtkZSpaceSDKManager.h.

◆ WindowY

int vtkZSpaceSDKManager::WindowY = 0
protected

Definition at line 316 of file vtkZSpaceSDKManager.h.

◆ WindowWidth

int vtkZSpaceSDKManager::WindowWidth = 0
protected

Definition at line 317 of file vtkZSpaceSDKManager.h.

◆ WindowHeight

int vtkZSpaceSDKManager::WindowHeight = 0
protected

Definition at line 318 of file vtkZSpaceSDKManager.h.

◆ Displays

std::vector<std::string> vtkZSpaceSDKManager::Displays
protected

Definition at line 321 of file vtkZSpaceSDKManager.h.

◆ StylusTargets

int vtkZSpaceSDKManager::StylusTargets = 0
protected

Definition at line 323 of file vtkZSpaceSDKManager.h.

◆ HeadTargets

int vtkZSpaceSDKManager::HeadTargets = 0
protected

Definition at line 325 of file vtkZSpaceSDKManager.h.

◆ SecondaryTargets

int vtkZSpaceSDKManager::SecondaryTargets = 0
protected

Definition at line 327 of file vtkZSpaceSDKManager.h.

◆ InterPupillaryDistance

float vtkZSpaceSDKManager::InterPupillaryDistance = 0.056f
protected

Definition at line 330 of file vtkZSpaceSDKManager.h.

◆ ViewerScale

float vtkZSpaceSDKManager::ViewerScale = 1.f
protected

Definition at line 331 of file vtkZSpaceSDKManager.h.

◆ NearPlane

float vtkZSpaceSDKManager::NearPlane = 0.0001f
protected

Definition at line 333 of file vtkZSpaceSDKManager.h.

◆ FarPlane

float vtkZSpaceSDKManager::FarPlane = 1000.f
protected

Definition at line 335 of file vtkZSpaceSDKManager.h.

◆ LeftButtonState

ButtonState vtkZSpaceSDKManager::LeftButtonState = None
protected

Definition at line 338 of file vtkZSpaceSDKManager.h.

◆ MiddleButtonState

ButtonState vtkZSpaceSDKManager::MiddleButtonState = None
protected

Definition at line 339 of file vtkZSpaceSDKManager.h.

◆ RightButtonState

ButtonState vtkZSpaceSDKManager::RightButtonState = None
protected

Definition at line 340 of file vtkZSpaceSDKManager.h.

◆ ButtonsState

ButtonState* vtkZSpaceSDKManager::ButtonsState[NumberOfButtons]
protected
Initial value:

Definition at line 342 of file vtkZSpaceSDKManager.h.


The documentation for this class was generated from the following file: