Go to the documentation of this file.
21 #ifndef vtkOpenVROverlay_h
22 #define vtkOpenVROverlay_h
24 #include "vtkRenderingOpenVRModule.h"
60 return this->OverlayHandle; }
66 return this->OverlayTexture.Get(); }
78 return this->LastSpot; }
80 std::vector<vtkOpenVROverlaySpot> &
GetSpots() {
93 this->SessionName =
name; }
95 return this->SessionName; }
103 this->DashboardImageFileName =
name; }
105 return this->DashboardImageFileName; }
118 return this->SavedCameraPoses; }
141 std::vector<vtkOpenVROverlaySpot>
Spots;
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
std::string GetDashboardImageFileName()
void SetDashboardImageFileName(const std::string &name)
Set/Get a file for the dashboard image.
void SetSessionName(const std::string &name)
Set/Get a prefix for saving camera poses.
virtual void SetupSpots()
unsigned char * CurrentTextureData
double ActiveSpotIntensity
virtual void LoadNextCameraPose()
abstract base class for most VTK objects
vtkNew< vtkTextureObject > OverlayTexture
vr::VROverlayHandle_t OverlayThumbnailHandle
virtual void MouseMoved(int x, int y)
methods to support events on the overlay
virtual void Create(vtkOpenVRRenderWindow *rw)
Create the overlay.
virtual void ReadCameraPoses(istream &is)
vr::VROverlayHandle_t GetOverlayHandle()
Get handle to the overlay.
vtkWeakPointer< vtkOpenVRRenderWindow > Window
virtual void MouseButtonPress(int x, int y)
vtkOpenVROverlaySpot * GetLastSpot()
virtual std::map< int, vtkOpenVRCameraPose > & GetSavedCameraPoses()
std::vector< vtkOpenVROverlaySpot > Spots
virtual void WriteCameraPoses()
virtual void ReadCameraPoses()
a simple class to control print indentation
abstracts an OpenGL texture object.
vtkOpenVROverlaySpot * LastSpot
virtual void WriteCameraPoses(ostream &os)
std::string GetSessionName()
Represents an XML element and those nested inside.
std::string DashboardImageFileName
static vtkOpenVROverlay * New()
virtual void LoadCameraPose(int num)
virtual void ReadCameraPoses(vtkXMLDataElement *xml)
virtual void UpdateSpot(vtkOpenVROverlaySpot *spot)
vtkTextureObject * GetOverlayTexture()
Get handle to the overlay texture.
virtual void MouseButtonRelease(int x, int y)
unsigned char * OriginalTextureData
virtual void SaveCameraPose(int num)
vr::VROverlayHandle_t OverlayHandle
std::map< int, vtkOpenVRCameraPose > SavedCameraPoses
std::vector< vtkOpenVROverlaySpot > & GetSpots()
virtual void Render()
Render the overlay.
vtkOpenVRCameraPose * GetSavedCameraPose(int i)