Go to the documentation of this file.
10 #ifndef vtk_m_rendering_AxisAnnotation2D_h
11 #define vtk_m_rendering_AxisAnnotation2D_h
43 std::vector<std::unique_ptr<TextAnnotation>>
Labels;
73 this->MajorTickSizeX = xlen;
74 this->MajorTickSizeY = ylen;
75 this->MajorTickOffset = offset;
80 this->MinorTickSizeX = xlen;
81 this->MinorTickSizeY = ylen;
82 this->MinorTickOffset = offset;
104 for (
auto& label : this->Labels)
108 void SetRangeForAutoTicks(
const vtkm::Range& range);
111 this->SetRangeForAutoTicks(
vtkm::Range(lower, upper));
114 void SetMajorTicks(
const std::vector<vtkm::Float64>& positions,
115 const std::vector<vtkm::Float64>& proportions);
117 void SetMinorTicks(
const std::vector<vtkm::Float64>& positions,
118 const std::vector<vtkm::Float64>& proportions);
127 #endif // vtk_m_rendering_AxisAnnotation2D_h
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
std::vector< vtkm::Float64 > PositionsMinor
Definition: AxisAnnotation2D.h:48
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:86
void SetLogarithmic(bool l)
Definition: AxisAnnotation2D.h:60
void SetMinorTickSize(vtkm::Float64 xlen, vtkm::Float64 ylen, vtkm::Float64 offset)
Definition: AxisAnnotation2D.h:78
void SetMoreOrLessTickAdjustment(int offset)
Definition: AxisAnnotation2D.h:62
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
Represents the image space that is the target of rendering.
Definition: Canvas.h:35
std::vector< vtkm::Float64 > ProportionsMinor
Definition: AxisAnnotation2D.h:49
void SetLabelAlignment(TextAnnotation::HorizontalAlignment h, TextAnnotation::VerticalAlignment v)
Definition: AxisAnnotation2D.h:95
void SetMajorTickSize(vtkm::Float64 xlen, vtkm::Float64 ylen, vtkm::Float64 offset)
Definition: AxisAnnotation2D.h:68
TextAnnotation::HorizontalAlignment AlignH
Definition: AxisAnnotation2D.h:41
Definition: AxisAnnotation2D.h:29
TextAnnotation::VerticalAlignment AlignV
Definition: AxisAnnotation2D.h:42
int MoreOrLessTickAdjustment
Definition: AxisAnnotation2D.h:51
Definition: WorldAnnotator.h:27
void SetLineWidth(vtkm::Float32 lw)
Definition: AxisAnnotation2D.h:66
vtkm::Float64 PosY1
Definition: AxisAnnotation2D.h:34
std::vector< vtkm::Float64 > PositionsMajor
Definition: AxisAnnotation2D.h:45
VerticalAlignment
Definition: TextAnnotation.h:33
vtkm::Float32 LineWidth
Definition: AxisAnnotation2D.h:37
void SetRangeForAutoTicks(vtkm::Float64 lower, vtkm::Float64 upper)
Definition: AxisAnnotation2D.h:109
std::vector< vtkm::Float64 > ProportionsMajor
Definition: AxisAnnotation2D.h:46
float Float32
Base type to use for 32-bit floating-point numbers.
Definition: Types.h:157
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:161
std::vector< std::unique_ptr< TextAnnotation > > Labels
Definition: AxisAnnotation2D.h:43
Specifies the viewport for a rendering.
Definition: Camera.h:37
void SetColor(vtkm::rendering::Color c)
Definition: AxisAnnotation2D.h:64
vtkm::Float64 MajorTickSizeY
Definition: AxisAnnotation2D.h:32
HorizontalAlignment
Definition: TextAnnotation.h:27
Definition: AxisAnnotation.h:24
void SetLabelFontScale(vtkm::Float32 s)
Definition: AxisAnnotation2D.h:101
Represent a continuous scalar range of values.
Definition: Range.h:31