41 #ifndef vtkOculusRenderWindow_h
42 #define vtkOculusRenderWindow_h
44 #include "vtkRenderingOculusModule.h"
45 #include "vtkOpenGLRenderWindow.h"
48 #include "OVR_CAPI_GL.h"
68 virtual void Start(
void);
190 void UpdateHMDMatrixPose();
202 {
return this->LeftEyeDesc.m_nResolveFramebufferId; };
204 {
return this->RightEyeDesc.m_nResolveFramebufferId; };
214 return this->HMDToEyeViewOffsets; }
229 SDL_Window *WindowId;
234 ovrVector3f HMDToEyeViewOffsets[2];
virtual void SetFullScreen(int)
Turn on/off rendering full screen window size.
virtual void Finalize()=0
Finalize the rendering process.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
GLuint GetLeftResolveBufferId()
Get the frame buffers used for rendering.
FramebufferDesc LeftEyeDesc
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on...
virtual void * GetGenericDrawable()
Dummy stubs for vtkWindow API.
virtual int * GetScreenSize()=0
Get the current size of the screen in pixels.
ovrTextureSwapChain TextureSwapChain
virtual void WindowRemap(void)
Remap the rendering window.
void SetParentId(void *)
Dummy stubs for vtkWindow API.
ovrSession GetSession()
Get the system pointer.
virtual void SetSize(int a[2])
Set the size of the window in screen coordinates in pixels.
virtual void SetPosition(int a[2])
Set the position of the window.
vtkTransform * HMDTransform
virtual void * GetGenericDisplayId()
Dummy stubs for vtkWindow API.
void SetParentInfo(char *)
Dummy stubs for vtkWindow API.
virtual void SetDisplayId(void *)
Dummy stubs for vtkWindow API.
virtual void * GetGenericWindowId()
Dummy stubs for vtkWindow API.
GLuint m_nResolveFramebufferId
virtual bool IsCurrent()=0
Tells if this window is the current graphics context for the calling thread.
ovrVector3f * GetHMDToEyeViewOffsets()
void ShowCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
ovrSizei RecommendedTexSize
void SetWindowInfo(char *)
Dummy stubs for vtkWindow API.
a simple class to control print indentation
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
FramebufferDesc RightEyeDesc
virtual void MakeCurrent()=0
Attempt to make this window the current graphics context for the calling thread.
void SetNextWindowInfo(char *)
Dummy stubs for vtkWindow API.
virtual void Frame()=0
A termination method performed at the end of the rendering process to do things like swapping buffers...
virtual void SetNextWindowId(void *)
Dummy stubs for vtkWindow API.
virtual void StereoRenderComplete()
Handles work required once both views have been rendered when using stereo rendering.
create a window for renderers to draw into
virtual void * GetGenericContext()
Dummy stubs for vtkWindow API.
virtual int SupportsOpenGL()
Does this render window support OpenGL? 0-false, 1-true.
virtual void SetSize(int a[2])
Set the size of the window in pixels.
virtual void StereoMidpoint()
Intermediate method performs operations required between the rendering of the left and right eye...
virtual void Start()=0
Initialize the rendering process.
void HideCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
virtual int GetEventPending()
Check to see if a mouse button has been pressed or mouse wheel activated.
virtual void SetPosition(int, int)
Set/Get the position in screen coordinates of the rendering window.
virtual void Render()
Ask each renderer owned by this RenderWindow to render its image and synchronize this process...
GLuint GetRightResolveBufferId()
Get the frame buffers used for rendering.
ovrLayerEyeFov GetOVRLayer()
Get the system pointer.
int IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
const char * ReportCapabilities()
Get report of capabilities for the render window.
virtual void ReleaseGraphicsResources(vtkRenderWindow *)
Free up any graphics resources associated with this window a value of NULL means the context may alre...
virtual void StereoUpdate()
Update system if needed due to stereo rendering.
virtual void CreateAWindow()
Create a not-off-screen window.
virtual void Initialize(void)
Initialize the rendering window.
void SetWindowId(void *)
Dummy stubs for vtkWindow API.
virtual void * GetGenericParentId()
Dummy stubs for vtkWindow API.