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