Go to the documentation of this file.
10 #ifndef vtk_m_rendering_View_h
11 #define vtk_m_rendering_View_h
112 virtual void Paint() = 0;
113 virtual void RenderScreenAnnotations() = 0;
114 virtual void RenderWorldAnnotations() = 0;
116 void RenderAnnotations();
119 void SaveAs(
const std::string& fileName)
const;
125 void ClearTextAnnotations();
128 void AddTextAnnotation(std::unique_ptr<vtkm::rendering::TextAnnotation> ann);
131 void ClearAdditionalAnnotations();
134 void AddAdditionalAnnotation(std::function<
void(
void)> ann);
137 void SetupForWorldSpace(
bool viewportClip =
true);
139 void SetupForScreenSpace(
bool viewportClip =
false);
143 bool WorldAnnotationsEnabled =
true;
144 bool RenderAnnotationsEnabled =
true;
153 #endif //vtk_m_rendering_View_h
void SetRenderAnnotationsEnabled(bool val)
Definition: View.h:108
Representation of a color.
Definition: Color.h:29
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_RENDERING_EXPORT
Definition: vtkm_rendering_export.h:44
static Color white
Definition: Color.h:141
Converts data into commands to a rendering system.
Definition: Mapper.h:29
Represents the image space that is the target of rendering.
Definition: Canvas.h:35
#define VTKM_CONT
Definition: ExportMacros.h:57
Definition: WorldAnnotator.h:27
bool GetWorldAnnotationsEnabled() const
Definition: View.h:103
The abstract class representing the view of a rendering scene.
Definition: View.h:31
bool GetRenderAnnotationsEnabled() const
Definition: View.h:109
Specifies the viewport for a rendering.
Definition: Camera.h:37
A simple collection of things to render.
Definition: Scene.h:30
std::unique_ptr< InternalData > Internal
Definition: View.h:147
void SetWorldAnnotationsEnabled(bool val)
Definition: View.h:106