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

#include <View1D.h>

Inheritance diagram for vtkm::rendering::View1D:
vtkm::rendering::View

Public Member Functions

 View1D (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))
 
 View1D (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))
 
 ~View1D ()
 
void Paint () override
 
void RenderScreenAnnotations () override
 
void RenderWorldAnnotations () override
 
void RenderColorLegendAnnotations ()
 
void EnableLegend ()
 
void DisableLegend ()
 
void SetLegendLabelColor (vtkm::rendering::Color c)
 
void SetLogX (bool l)
 
void SetLogY (bool l)
 
- 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_CONT vtkm::rendering::SceneGetScene () const
 
VTKM_CONT vtkm::rendering::SceneGetScene ()
 
VTKM_CONT void SetScene (const vtkm::rendering::Scene &scene)
 
const VTKM_CONT vtkm::rendering::MapperGetMapper () const
 
VTKM_CONT vtkm::rendering::MapperGetMapper ()
 
const VTKM_CONT vtkm::rendering::CanvasGetCanvas () const
 
VTKM_CONT vtkm::rendering::CanvasGetCanvas ()
 
const VTKM_CONT vtkm::rendering::WorldAnnotatorGetWorldAnnotator () const
 
const VTKM_CONT vtkm::rendering::CameraGetCamera () const
 
VTKM_CONT vtkm::rendering::CameraGetCamera ()
 
VTKM_CONT void SetCamera (const vtkm::rendering::Camera &camera)
 
const VTKM_CONT vtkm::rendering::ColorGetBackgroundColor () const
 
VTKM_CONT void SetBackgroundColor (const vtkm::rendering::Color &color)
 
VTKM_CONT void SetForegroundColor (const vtkm::rendering::Color &color)
 
VTKM_CONT bool GetWorldAnnotationsEnabled () const
 
VTKM_CONT void SetWorldAnnotationsEnabled (bool val)
 
VTKM_CONT void SetRenderAnnotationsEnabled (bool val)
 
VTKM_CONT bool GetRenderAnnotationsEnabled ()
 
void RenderAnnotations ()
 
void SaveAs (const std::string &fileName) const
 
VTKM_CONT void SetAxisColor (vtkm::rendering::Color c)
 
VTKM_CONT void ClearTextAnnotations ()
 
VTKM_CONT void AddTextAnnotation (std::unique_ptr< vtkm::rendering::TextAnnotation > ann)
 
VTKM_CONT void ClearAdditionalAnnotations ()
 
VTKM_CONT void AddAdditionalAnnotation (std::function< void(void)> ann)
 

Private Member Functions

void UpdateCameraProperties ()
 

Private Attributes

vtkm::rendering::AxisAnnotation2D HorizontalAxisAnnotation
 
vtkm::rendering::AxisAnnotation2D VerticalAxisAnnotation
 
vtkm::rendering::ColorLegendAnnotation Legend
 
bool LegendEnabled = true
 
bool LogX = false
 
bool LogY = false
 

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
 

Constructor & Destructor Documentation

◆ View1D() [1/2]

vtkm::rendering::View1D::View1D ( 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) 
)

◆ View1D() [2/2]

vtkm::rendering::View1D::View1D ( 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) 
)

◆ ~View1D()

vtkm::rendering::View1D::~View1D ( )

Member Function Documentation

◆ DisableLegend()

void vtkm::rendering::View1D::DisableLegend ( )

◆ EnableLegend()

void vtkm::rendering::View1D::EnableLegend ( )

◆ Paint()

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

Implements vtkm::rendering::View.

◆ RenderColorLegendAnnotations()

void vtkm::rendering::View1D::RenderColorLegendAnnotations ( )

◆ RenderScreenAnnotations()

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

Implements vtkm::rendering::View.

◆ RenderWorldAnnotations()

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

Implements vtkm::rendering::View.

◆ SetLegendLabelColor()

void vtkm::rendering::View1D::SetLegendLabelColor ( vtkm::rendering::Color  c)
inline

◆ SetLogX()

void vtkm::rendering::View1D::SetLogX ( bool  l)
inline

◆ SetLogY()

void vtkm::rendering::View1D::SetLogY ( bool  l)
inline

◆ UpdateCameraProperties()

void vtkm::rendering::View1D::UpdateCameraProperties ( )
private

Member Data Documentation

◆ HorizontalAxisAnnotation

vtkm::rendering::AxisAnnotation2D vtkm::rendering::View1D::HorizontalAxisAnnotation
private

◆ Legend

vtkm::rendering::ColorLegendAnnotation vtkm::rendering::View1D::Legend
private

◆ LegendEnabled

bool vtkm::rendering::View1D::LegendEnabled = true
private

◆ LogX

bool vtkm::rendering::View1D::LogX = false
private

◆ LogY

bool vtkm::rendering::View1D::LogY = false
private

◆ VerticalAxisAnnotation

vtkm::rendering::AxisAnnotation2D vtkm::rendering::View1D::VerticalAxisAnnotation
private

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