|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class. More...
|
|
vtkZSpaceSDKManager * | NewInstance () 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 trakers. 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...
|
|
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 vtkMatrix4x4 * | GetCenterEyeViewMatrix () |
| Get the zSpace view matrix without stereo (eye set as EYE_CENTER) in row major format (VTK format) More...
|
|
vtkMatrix4x4 * | GetStereoViewMatrix (bool leftEye) |
| Get the zSpace view matrix for the right or left eye in row major format (VTK format) More...
|
|
virtual vtkMatrix4x4 * | GetCenterEyeProjectionMatrix () |
| Get the zSpace projection matrix without stereo (eye set as EYE_CENTER) in row major format (VTK format) More...
|
|
vtkMatrix4x4 * | GetStereoProjectionMatrix (bool leftEye) |
| Get the zSpace projection matrix for the right or left eye in row major format (VTK format) More...
|
|
virtual vtkMatrix4x4 * | GetStylusMatrixColMajor () |
| Get the zSpace stylus matrix in world space. More...
|
|
virtual vtkMatrix4x4 * | GetStylusMatrixRowMajor () |
| Get the zSpace stylus matrix in world space. More...
|
|
virtual vtkTransform * | GetStylusTransformRowMajor () |
| Get the zSpace stylus transform in world space. More...
|
|
|
virtual void | BeginFrame ()=0 |
| Notify the zSpace SDK for the begining/end of a frame (vtkZSpaceCoreCompatibility only) More...
|
|
virtual void | EndFrame ()=0 |
| Notify the zSpace SDK for the begining/end of a frame (vtkZSpaceCoreCompatibility only) 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...
|
|
| 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) |
|
int | InvokeEvent (unsigned long event) |
|
int | 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...
|
|
vtkCommand * | GetCommand (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...
|
|
int | InvokeEvent (unsigned long event, void *callData) |
| This method invokes an event and return whether the event was aborted or not. More...
|
|
int | 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...
|
|
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...
|
|
virtual 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 vtkTypeBool | IsTypeOf (const char *type) |
|
static vtkZSpaceSDKManager * | SafeDownCast (vtkObjectBase *o) |
|
static vtkZSpaceSDKManager * | GetInstance () |
| Return the singleton instance (with no reference counting) of a vtkZSpaceCoreSDKManager or vtkZSpaceCoreCompatibilitySDKManager depending on the curent zSpaceSDK in use. More...
|
|
static vtkObject * | New () |
| 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 (int 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 int | GetGlobalWarningDisplay () |
| This is a global flag that controls whether any debug, warning or error messages are displayed. More...
|
|
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 vtkObjectBase * | New () |
| 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...
|
|
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 :
- Initializes the zSpace SDK via InitializeZSpace(). This method looks for a zSpace device and optional trackers.
- Synchronizes the zSpace SDK and the plugin via the Update method. This method corresponds to these succesive calls :
- UpdateViewport : send the viewport-relative informations to the zSpace SDK (position, interpupillary distance, near and far plane) in order to allow it to perform valid stereo frustum computations;
- UpdateViewAndProjectionMatrix : retrieve the the view and projection matrix for each eye from the SDK (tied to the stereo frustum);
- UpdateTrackers : retrieve the head pose and the trackers pose (such as the stylus) from the SDK;
- UpdateButtonState : retrieve the state of the buttons of the stylus (Down, Pressed, Up or None) from the 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 60 of file vtkZSpaceSDKManager.h.