21 #ifndef vtkOpenVROverlay_h 22 #define vtkOpenVROverlay_h 24 #include "vtkRenderingOpenVRModule.h" 47 virtual void Render();
58 return this->OverlayHandle; }
64 return this->OverlayTexture.Get(); }
70 virtual void MouseMoved(
int x,
int y);
71 virtual void MouseButtonPress(
int x,
int y);
72 virtual void MouseButtonRelease(
int x,
int y);
76 return this->LastSpot; }
78 std::vector<vtkOpenVROverlaySpot> &
GetSpots() {
91 this->SessionName =
name; }
93 return this->SessionName; }
101 this->DashboardImageFileName =
name; }
103 return this->DashboardImageFileName; }
107 virtual void WriteCameraPoses(ostream& os);
108 virtual void WriteCameraPoses();
109 virtual void ReadCameraPoses();
110 virtual void ReadCameraPoses(istream &is);
111 virtual void SaveCameraPose(
int num);
112 virtual void LoadCameraPose(
int num);
113 virtual void LoadNextCameraPose();
123 virtual void SetupSpots() {};
125 vr::IVRSystem *VRSystem;
136 std::vector<vtkOpenVROverlaySpot>
Spots;
std::string DashboardImageFileName
vtkWeakPointer< vtkOpenVRRenderWindow > Window
abstract base class for most VTK objects
vtkTextureObject * GetOverlayTexture()
Get handle to the overlay texture.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOpenVROverlaySpot * LastSpot
unsigned char * CurrentTextureData
double ActiveSpotIntensity
a simple class to control print indentation
std::string GetDashboardImageFileName()
Set/Get a file for the dashboard image.
void SetDashboardImageFileName(const std::string &name)
Set/Get a file for the dashboard image.
vtkNew< vtkTextureObject > OverlayTexture
vr::VROverlayHandle_t OverlayHandle
unsigned char * OriginalTextureData
vtkOpenVROverlaySpot * GetLastSpot()
vr::VROverlayHandle_t OverlayThumbnailHandle
std::vector< vtkOpenVROverlaySpot > & GetSpots()
abstracts an OpenGL texture object.
std::vector< vtkOpenVROverlaySpot > Spots
std::vector< vtkOpenVRCameraPose > SavedCameraPoses
vr::VROverlayHandle_t GetOverlayHandle()
Get handle to the overlay.
void SetSessionName(const std::string &name)
Set/Get a prefix for saving camera poses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
std::string GetSessionName()
Set/Get a prefix for saving camera poses.