Go to the documentation of this file.
10 #ifndef vtk_m_rendering_AxisAnnotation2D_h
11 #define vtk_m_rendering_AxisAnnotation2D_h
13 #include <vtkm/rendering/vtkm_rendering_export.h>
43 std::vector<std::unique_ptr<TextAnnotation>>
Labels;
76 this->MajorTickSizeX = xlen;
77 this->MajorTickSizeY = ylen;
78 this->MajorTickOffset = offset;
83 this->MinorTickSizeX = xlen;
84 this->MinorTickSizeY = ylen;
85 this->MinorTickOffset = offset;
107 for (
unsigned int i = 0; i < this->Labels.size(); i++)
108 this->Labels[i]->SetScale(s);
111 void SetRangeForAutoTicks(
const vtkm::Range& range);
114 this->SetRangeForAutoTicks(
vtkm::Range(lower, upper));
117 void SetMajorTicks(
const std::vector<vtkm::Float64>& positions,
118 const std::vector<vtkm::Float64>& proportions);
120 void SetMinorTicks(
const std::vector<vtkm::Float64>& positions,
121 const std::vector<vtkm::Float64>& proportions);
130 #endif // vtk_m_rendering_AxisAnnotation2D_h
It's a color!
Definition: Color.h:28
Groups connected points that have the same field value.
Definition: Atomic.h:19
std::vector< vtkm::Float64 > PositionsMinor
Definition: AxisAnnotation2D.h:49
vtkm::rendering::Color Color
Definition: AxisAnnotation2D.h:38
void SetScreenPosition(vtkm::Float64 x0, vtkm::Float64 y0, vtkm::Float64 x1, vtkm::Float64 y1)
Definition: AxisAnnotation2D.h:89
void SetLogarithmic(bool l)
Definition: AxisAnnotation2D.h:63
void SetMinorTickSize(vtkm::Float64 xlen, vtkm::Float64 ylen, vtkm::Float64 offset)
Definition: AxisAnnotation2D.h:81
void SetMoreOrLessTickAdjustment(int offset)
Definition: AxisAnnotation2D.h:65
vtkm::Float32 FontScale
Definition: AxisAnnotation2D.h:36
vtkm::Range TickRange
Definition: AxisAnnotation2D.h:35
vtkm::Float64 MinorTickSizeY
Definition: AxisAnnotation2D.h:33
bool Logarithmic
Definition: AxisAnnotation2D.h:39
std::vector< vtkm::Float64 > ProportionsMinor
Definition: AxisAnnotation2D.h:50
void SetLabelAlignment(TextAnnotation::HorizontalAlignment h, TextAnnotation::VerticalAlignment v)
Definition: AxisAnnotation2D.h:98
void SetMajorTickSize(vtkm::Float64 xlen, vtkm::Float64 ylen, vtkm::Float64 offset)
Definition: AxisAnnotation2D.h:71
TextAnnotation::HorizontalAlignment AlignH
Definition: AxisAnnotation2D.h:41
Definition: AxisAnnotation2D.h:29
TextAnnotation::VerticalAlignment AlignV
Definition: AxisAnnotation2D.h:42
int MoreOrLessTickAdjustment
Definition: AxisAnnotation2D.h:52
Definition: WorldAnnotator.h:27
void SetLineWidth(vtkm::Float32 lw)
Definition: AxisAnnotation2D.h:69
vtkm::Float64 PosY1
Definition: AxisAnnotation2D.h:34
std::vector< vtkm::Float64 > PositionsMajor
Definition: AxisAnnotation2D.h:46
VerticalAlignment
Definition: TextAnnotation.h:33
vtkm::Float32 LineWidth
Definition: AxisAnnotation2D.h:37
void SetRangeForAutoTicks(vtkm::Float64 lower, vtkm::Float64 upper)
Definition: AxisAnnotation2D.h:112
std::vector< vtkm::Float64 > ProportionsMajor
Definition: AxisAnnotation2D.h:47
float Float32
Definition: Types.h:154
double Float64
Definition: Types.h:155
std::vector< std::unique_ptr< TextAnnotation > > Labels
Definition: AxisAnnotation2D.h:43
void SetColor(vtkm::rendering::Color c)
Definition: AxisAnnotation2D.h:67
vtkm::Float64 MajorTickSizeY
Definition: AxisAnnotation2D.h:32
HorizontalAlignment
Definition: TextAnnotation.h:27
Definition: AxisAnnotation.h:24
void SetLabelFontScale(vtkm::Float32 s)
Definition: AxisAnnotation2D.h:104
Represent a continuous scalar range of values.
Definition: Range.h:31