10 #ifndef vtk_m_rendering_View_h
11 #define vtk_m_rendering_View_h
13 #include <vtkm/rendering/vtkm_rendering_export.h>
30 class VTKM_RENDERING_EXPORT
View
95 virtual void Paint() = 0;
96 virtual void RenderScreenAnnotations() = 0;
97 virtual void RenderWorldAnnotations() = 0;
99 void RenderAnnotations();
101 void SaveAs(
const std::string& fileName)
const;
107 void ClearTextAnnotations();
110 void AddTextAnnotation(std::unique_ptr<vtkm::rendering::TextAnnotation> ann);
113 void ClearAdditionalAnnotations();
116 void AddAdditionalAnnotation(std::function<
void(
void)> ann);
119 void SetupForWorldSpace(
bool viewportClip =
true);
121 void SetupForScreenSpace(
bool viewportClip =
false);
125 bool WorldAnnotationsEnabled =
true;
126 bool RenderAnnotationsEnabled =
true;
135 #endif //vtk_m_rendering_View_h