VTK-m  2.1
Public Member Functions | Private Attributes | List of all members
vtkm::rendering::View3D Class Reference

A view for a 3D data set. More...

#include <View3D.h>

Inheritance diagram for vtkm::rendering::View3D:
vtkm::rendering::View

Public Member Functions

 View3D (const vtkm::rendering::Scene &scene, const vtkm::rendering::Mapper &mapper, const vtkm::rendering::Canvas &canvas, const vtkm::rendering::Color &backgroundColor=vtkm::rendering::Color(0, 0, 0, 1), const vtkm::rendering::Color &foregroundColor=vtkm::rendering::Color(1, 1, 1, 1))
 
 View3D (const vtkm::rendering::Scene &scene, const vtkm::rendering::Mapper &mapper, const vtkm::rendering::Canvas &canvas, const vtkm::rendering::Camera &camera, const vtkm::rendering::Color &backgroundColor=vtkm::rendering::Color(0, 0, 0, 1), const vtkm::rendering::Color &foregroundColor=vtkm::rendering::Color(1, 1, 1, 1))
 
void Paint () override
 Render a scene and store the result in the canvas' buffers. More...
 
void RenderScreenAnnotations () override
 
void RenderWorldAnnotations () override
 
- Public Member Functions inherited from vtkm::rendering::View
 View (const vtkm::rendering::Scene &scene, const vtkm::rendering::Mapper &mapper, const vtkm::rendering::Canvas &canvas, const vtkm::rendering::Color &backgroundColor=vtkm::rendering::Color(0, 0, 0, 1), const vtkm::rendering::Color &foregroundColor=vtkm::rendering::Color(1, 1, 1, 1))
 
 View (const vtkm::rendering::Scene &scene, const vtkm::rendering::Mapper &mapper, const vtkm::rendering::Canvas &canvas, const vtkm::rendering::Camera &camera, const vtkm::rendering::Color &backgroundColor=vtkm::rendering::Color(0, 0, 0, 1), const vtkm::rendering::Color &foregroundColor=vtkm::rendering::Color(1, 1, 1, 1))
 
virtual ~View ()
 
const vtkm::rendering::SceneGetScene () const
 Specify the scene object holding the objects to render. More...
 
vtkm::rendering::SceneGetScene ()
 Specify the scene object holding the objects to render. More...
 
void SetScene (const vtkm::rendering::Scene &scene)
 Specify the scene object holding the objects to render. More...
 
const vtkm::rendering::MapperGetMapper () const
 Specify the mapper object determining how objects are rendered. More...
 
vtkm::rendering::MapperGetMapper ()
 Specify the mapper object determining how objects are rendered. More...
 
const vtkm::rendering::CanvasGetCanvas () const
 Specify the canvas object that holds the buffer to render into. More...
 
vtkm::rendering::CanvasGetCanvas ()
 Specify the canvas object that holds the buffer to render into. More...
 
const vtkm::rendering::WorldAnnotatorGetWorldAnnotator () const
 
const vtkm::rendering::CameraGetCamera () const
 Specify the perspective from which to render a scene. More...
 
vtkm::rendering::CameraGetCamera ()
 Specify the perspective from which to render a scene. More...
 
void SetCamera (const vtkm::rendering::Camera &camera)
 Specify the perspective from which to render a scene. More...
 
const vtkm::rendering::ColorGetBackgroundColor () const
 Specify the color used where nothing is rendered. More...
 
void SetBackgroundColor (const vtkm::rendering::Color &color)
 Specify the color used where nothing is rendered. More...
 
void SetForegroundColor (const vtkm::rendering::Color &color)
 Specify the color of foreground elements. More...
 
bool GetWorldAnnotationsEnabled () const
 
void SetWorldAnnotationsEnabled (bool val)
 
void SetRenderAnnotationsEnabled (bool val)
 
bool GetRenderAnnotationsEnabled () const
 
void RenderAnnotations ()
 
void SaveAs (const std::string &fileName) const
 Save the rendered image. More...
 
void SetAxisColor (vtkm::rendering::Color c)
 
void ClearTextAnnotations ()
 
void AddTextAnnotation (std::unique_ptr< vtkm::rendering::TextAnnotation > ann)
 
void ClearAdditionalAnnotations ()
 
void AddAdditionalAnnotation (std::function< void(void)> ann)
 

Private Attributes

vtkm::rendering::LineRendererBatcher LineBatcher
 
vtkm::rendering::BoundingBoxAnnotation BoxAnnotation
 
vtkm::rendering::AxisAnnotation3D XAxisAnnotation
 
vtkm::rendering::AxisAnnotation3D YAxisAnnotation
 
vtkm::rendering::AxisAnnotation3D ZAxisAnnotation
 
vtkm::rendering::ColorBarAnnotation ColorBarAnnotation
 

Additional Inherited Members

- Protected Member Functions inherited from vtkm::rendering::View
void SetupForWorldSpace (bool viewportClip=true)
 
void SetupForScreenSpace (bool viewportClip=false)
 
- Protected Attributes inherited from vtkm::rendering::View
vtkm::rendering::Color AxisColor = vtkm::rendering::Color::white
 
bool WorldAnnotationsEnabled = true
 
bool RenderAnnotationsEnabled = true
 

Detailed Description

A view for a 3D data set.

Constructor & Destructor Documentation

◆ View3D() [1/2]

vtkm::rendering::View3D::View3D ( const vtkm::rendering::Scene scene,
const vtkm::rendering::Mapper mapper,
const vtkm::rendering::Canvas canvas,
const vtkm::rendering::Color backgroundColor = vtkm::rendering::Color(0, 0, 0, 1),
const vtkm::rendering::Color foregroundColor = vtkm::rendering::Color(1, 1, 1, 1) 
)

◆ View3D() [2/2]

vtkm::rendering::View3D::View3D ( const vtkm::rendering::Scene scene,
const vtkm::rendering::Mapper mapper,
const vtkm::rendering::Canvas canvas,
const vtkm::rendering::Camera camera,
const vtkm::rendering::Color backgroundColor = vtkm::rendering::Color(0, 0, 0, 1),
const vtkm::rendering::Color foregroundColor = vtkm::rendering::Color(1, 1, 1, 1) 
)

Member Function Documentation

◆ Paint()

void vtkm::rendering::View3D::Paint ( )
overridevirtual

Render a scene and store the result in the canvas' buffers.

Implements vtkm::rendering::View.

◆ RenderScreenAnnotations()

void vtkm::rendering::View3D::RenderScreenAnnotations ( )
overridevirtual

Implements vtkm::rendering::View.

◆ RenderWorldAnnotations()

void vtkm::rendering::View3D::RenderWorldAnnotations ( )
overridevirtual

Implements vtkm::rendering::View.

Member Data Documentation

◆ BoxAnnotation

vtkm::rendering::BoundingBoxAnnotation vtkm::rendering::View3D::BoxAnnotation
private

◆ ColorBarAnnotation

vtkm::rendering::ColorBarAnnotation vtkm::rendering::View3D::ColorBarAnnotation
private

◆ LineBatcher

vtkm::rendering::LineRendererBatcher vtkm::rendering::View3D::LineBatcher
private

◆ XAxisAnnotation

vtkm::rendering::AxisAnnotation3D vtkm::rendering::View3D::XAxisAnnotation
private

◆ YAxisAnnotation

vtkm::rendering::AxisAnnotation3D vtkm::rendering::View3D::YAxisAnnotation
private

◆ ZAxisAnnotation

vtkm::rendering::AxisAnnotation3D vtkm::rendering::View3D::ZAxisAnnotation
private

The documentation for this class was generated from the following file: