VTK-m  2.2
Public Member Functions | Protected Attributes | List of all members
vtkm::rendering::AxisAnnotation2D Class Reference

#include <AxisAnnotation2D.h>

Inheritance diagram for vtkm::rendering::AxisAnnotation2D:
vtkm::rendering::AxisAnnotation

Public Member Functions

 AxisAnnotation2D ()
 
 AxisAnnotation2D (const AxisAnnotation2D &)=delete
 
AxisAnnotation2Doperator= (const AxisAnnotation2D &)=delete
 
void SetLogarithmic (bool l)
 
void SetMoreOrLessTickAdjustment (int offset)
 
void SetColor (vtkm::rendering::Color c)
 
void SetLineWidth (vtkm::Float32 lw)
 
void SetMajorTickSize (vtkm::Float64 xlen, vtkm::Float64 ylen, vtkm::Float64 offset)
 
void SetMinorTickSize (vtkm::Float64 xlen, vtkm::Float64 ylen, vtkm::Float64 offset)
 
void SetScreenPosition (vtkm::Float64 x0, vtkm::Float64 y0, vtkm::Float64 x1, vtkm::Float64 y1)
 
void SetLabelAlignment (TextAnnotation::HorizontalAlignment h, TextAnnotation::VerticalAlignment v)
 
void SetLabelFontScale (vtkm::Float32 s)
 
void SetRangeForAutoTicks (const vtkm::Range &range)
 
void SetRangeForAutoTicks (vtkm::Float64 lower, vtkm::Float64 upper)
 
void SetMajorTicks (const std::vector< vtkm::Float64 > &positions, const std::vector< vtkm::Float64 > &proportions)
 
void SetMinorTicks (const std::vector< vtkm::Float64 > &positions, const std::vector< vtkm::Float64 > &proportions)
 
void Render (const vtkm::rendering::Camera &camera, const vtkm::rendering::WorldAnnotator &worldAnnotator, vtkm::rendering::Canvas &canvas) override
 
- Public Member Functions inherited from vtkm::rendering::AxisAnnotation
 AxisAnnotation ()=default
 
virtual ~AxisAnnotation ()=default
 

Protected Attributes

vtkm::Float64 MajorTickSizeX
 
vtkm::Float64 MajorTickSizeY
 
vtkm::Float64 MajorTickOffset
 
vtkm::Float64 MinorTickSizeX
 
vtkm::Float64 MinorTickSizeY
 
vtkm::Float64 MinorTickOffset
 
vtkm::Float64 PosX0
 
vtkm::Float64 PosY0
 
vtkm::Float64 PosX1
 
vtkm::Float64 PosY1
 
vtkm::Range TickRange
 
vtkm::Float32 FontScale
 
vtkm::Float32 LineWidth
 
vtkm::rendering::Color Color
 
bool Logarithmic
 
TextAnnotation::HorizontalAlignment AlignH
 
TextAnnotation::VerticalAlignment AlignV
 
std::vector< std::unique_ptr< TextAnnotation > > Labels
 
std::vector< vtkm::Float64PositionsMajor
 
std::vector< vtkm::Float64ProportionsMajor
 
std::vector< vtkm::Float64PositionsMinor
 
std::vector< vtkm::Float64ProportionsMinor
 
int MoreOrLessTickAdjustment
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkm::rendering::AxisAnnotation
static void CalculateTicks (const vtkm::Range &range, bool minor, std::vector< vtkm::Float64 > &positions, std::vector< vtkm::Float64 > &proportions, int modifyTickQuantity)
 
static void CalculateTicksLogarithmic (const vtkm::Range &range, bool minor, std::vector< vtkm::Float64 > &positions, std::vector< vtkm::Float64 > &proportions)
 

Constructor & Destructor Documentation

◆ AxisAnnotation2D() [1/2]

vtkm::rendering::AxisAnnotation2D::AxisAnnotation2D ( )

◆ AxisAnnotation2D() [2/2]

vtkm::rendering::AxisAnnotation2D::AxisAnnotation2D ( const AxisAnnotation2D )
delete

Member Function Documentation

◆ operator=()

AxisAnnotation2D& vtkm::rendering::AxisAnnotation2D::operator= ( const AxisAnnotation2D )
delete

◆ Render()

void vtkm::rendering::AxisAnnotation2D::Render ( const vtkm::rendering::Camera camera,
const vtkm::rendering::WorldAnnotator worldAnnotator,
vtkm::rendering::Canvas canvas 
)
overridevirtual

◆ SetColor()

void vtkm::rendering::AxisAnnotation2D::SetColor ( vtkm::rendering::Color  c)
inline

◆ SetLabelAlignment()

void vtkm::rendering::AxisAnnotation2D::SetLabelAlignment ( TextAnnotation::HorizontalAlignment  h,
TextAnnotation::VerticalAlignment  v 
)
inline

◆ SetLabelFontScale()

void vtkm::rendering::AxisAnnotation2D::SetLabelFontScale ( vtkm::Float32  s)
inline

◆ SetLineWidth()

void vtkm::rendering::AxisAnnotation2D::SetLineWidth ( vtkm::Float32  lw)
inline

◆ SetLogarithmic()

void vtkm::rendering::AxisAnnotation2D::SetLogarithmic ( bool  l)
inline

◆ SetMajorTicks()

void vtkm::rendering::AxisAnnotation2D::SetMajorTicks ( const std::vector< vtkm::Float64 > &  positions,
const std::vector< vtkm::Float64 > &  proportions 
)

◆ SetMajorTickSize()

void vtkm::rendering::AxisAnnotation2D::SetMajorTickSize ( vtkm::Float64  xlen,
vtkm::Float64  ylen,
vtkm::Float64  offset 
)
inline

offset of 0 means the tick is inside the frame offset of 1 means the tick is outside the frame offset of 0.5 means the tick is centered on the frame

◆ SetMinorTicks()

void vtkm::rendering::AxisAnnotation2D::SetMinorTicks ( const std::vector< vtkm::Float64 > &  positions,
const std::vector< vtkm::Float64 > &  proportions 
)

◆ SetMinorTickSize()

void vtkm::rendering::AxisAnnotation2D::SetMinorTickSize ( vtkm::Float64  xlen,
vtkm::Float64  ylen,
vtkm::Float64  offset 
)
inline

◆ SetMoreOrLessTickAdjustment()

void vtkm::rendering::AxisAnnotation2D::SetMoreOrLessTickAdjustment ( int  offset)
inline

◆ SetRangeForAutoTicks() [1/2]

void vtkm::rendering::AxisAnnotation2D::SetRangeForAutoTicks ( const vtkm::Range range)

◆ SetRangeForAutoTicks() [2/2]

void vtkm::rendering::AxisAnnotation2D::SetRangeForAutoTicks ( vtkm::Float64  lower,
vtkm::Float64  upper 
)
inline

◆ SetScreenPosition()

void vtkm::rendering::AxisAnnotation2D::SetScreenPosition ( vtkm::Float64  x0,
vtkm::Float64  y0,
vtkm::Float64  x1,
vtkm::Float64  y1 
)
inline
Todo:
: rename, since it might be screen OR world position?

Member Data Documentation

◆ AlignH

TextAnnotation::HorizontalAlignment vtkm::rendering::AxisAnnotation2D::AlignH
protected

◆ AlignV

TextAnnotation::VerticalAlignment vtkm::rendering::AxisAnnotation2D::AlignV
protected

◆ Color

vtkm::rendering::Color vtkm::rendering::AxisAnnotation2D::Color
protected

◆ FontScale

vtkm::Float32 vtkm::rendering::AxisAnnotation2D::FontScale
protected

◆ Labels

std::vector<std::unique_ptr<TextAnnotation> > vtkm::rendering::AxisAnnotation2D::Labels
protected

◆ LineWidth

vtkm::Float32 vtkm::rendering::AxisAnnotation2D::LineWidth
protected

◆ Logarithmic

bool vtkm::rendering::AxisAnnotation2D::Logarithmic
protected

◆ MajorTickOffset

vtkm::Float64 vtkm::rendering::AxisAnnotation2D::MajorTickOffset
protected

◆ MajorTickSizeX

vtkm::Float64 vtkm::rendering::AxisAnnotation2D::MajorTickSizeX
protected

◆ MajorTickSizeY

vtkm::Float64 vtkm::rendering::AxisAnnotation2D::MajorTickSizeY
protected

◆ MinorTickOffset

vtkm::Float64 vtkm::rendering::AxisAnnotation2D::MinorTickOffset
protected

◆ MinorTickSizeX

vtkm::Float64 vtkm::rendering::AxisAnnotation2D::MinorTickSizeX
protected

◆ MinorTickSizeY

vtkm::Float64 vtkm::rendering::AxisAnnotation2D::MinorTickSizeY
protected

◆ MoreOrLessTickAdjustment

int vtkm::rendering::AxisAnnotation2D::MoreOrLessTickAdjustment
protected

◆ PositionsMajor

std::vector<vtkm::Float64> vtkm::rendering::AxisAnnotation2D::PositionsMajor
protected

◆ PositionsMinor

std::vector<vtkm::Float64> vtkm::rendering::AxisAnnotation2D::PositionsMinor
protected

◆ PosX0

vtkm::Float64 vtkm::rendering::AxisAnnotation2D::PosX0
protected

◆ PosX1

vtkm::Float64 vtkm::rendering::AxisAnnotation2D::PosX1
protected

◆ PosY0

vtkm::Float64 vtkm::rendering::AxisAnnotation2D::PosY0
protected

◆ PosY1

vtkm::Float64 vtkm::rendering::AxisAnnotation2D::PosY1
protected

◆ ProportionsMajor

std::vector<vtkm::Float64> vtkm::rendering::AxisAnnotation2D::ProportionsMajor
protected

◆ ProportionsMinor

std::vector<vtkm::Float64> vtkm::rendering::AxisAnnotation2D::ProportionsMinor
protected

◆ TickRange

vtkm::Range vtkm::rendering::AxisAnnotation2D::TickRange
protected

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