VTK  9.4.20241221
vtkPolarAxesActor2D.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
24#ifndef vtkPolarAxesActor2D_h
25#define vtkPolarAxesActor2D_h
26
27#include "vtkActor2D.h"
28#include "vtkRenderingAnnotationModule.h" // For export macro
29
30#include "vtkNew.h" // for vtkNew
31#include "vtkSetGet.h" // for macros
32
33VTK_ABI_NAMESPACE_BEGIN
36class vtkTextProperty;
37
38class VTKRENDERINGANNOTATION_EXPORT vtkPolarAxesActor2D : public vtkActor2D
39{
40public:
43
47 void PrintSelf(ostream& os, vtkIndent indent) override;
48
53
56 int RenderOverlay(vtkViewport* viewport) override;
57
64 int RenderOpaqueGeometry(vtkViewport*) override { return 1; }
65
70 vtkTypeBool HasOpaqueGeometry() override { return 0; }
71
78
82 void GetActors2D(vtkPropCollection* pc) override;
83
85
91
93
97 void SetNumberOfAxes(int number);
100
102
106 void SetNumberOfAxesTicks(int number);
109
111
115 void SetAxesLength(double length);
118
120
124 void SetStartAngle(double angle);
127
129
133 void SetEndAngle(double angle);
134 double GetEndAngle();
136
138
142 void SetOrigin(double x, double y);
143 void SetOrigin(double origin[2]) { this->SetOrigin(origin[0], origin[1]); }
144 void GetOrigin(double origin[2]);
146
147protected:
149 ~vtkPolarAxesActor2D() override = default;
150
151private:
153 void operator=(const vtkPolarAxesActor2D&) = delete;
154
157};
158
159VTK_ABI_NAMESPACE_END
160
161#endif
a actor that draws 2D data
Definition vtkActor2D.h:145
renders a concentric list of arcs on overlay.
a simple class to control print indentation
Definition vtkIndent.h:108
Allocate and hold a VTK object.
Definition vtkNew.h:167
Display polar axes in Viewport 2D space.
void PrintSelf(ostream &os, vtkIndent indent) override
Print own members and call Superclass.
void GetOrigin(double origin[2])
Set the origin of the radial measurement, in normalized viewport coordinates.
void SetNumberOfAxes(int number)
Set/Get the number of Axes to use.
void SetEndAngle(double angle)
Set the angle for the last radial axis.
void GetActors2D(vtkPropCollection *pc) override
Append the underlying 2D actors to the collection.
void SetOrigin(double x, double y)
Set the origin of the radial measurement, in normalized viewport coordinates.
vtkTypeBool HasOpaqueGeometry() override
No opaque geometry for this actor.
int RenderOpaqueGeometry(vtkViewport *) override
Overriden as a no-op.
void SetAxesTextProperty(vtkTextProperty *property)
Set/Get the text property for the axes.
static vtkPolarAxesActor2D * New()
void SetNumberOfAxesTicks(int number)
Set/Get the number of ticks for each axis.
void SetAxesLength(double length)
Set/Get the length of each axis in viewport coordinates.
double GetAxesLength()
Set/Get the length of each axis in viewport coordinates.
double GetEndAngle()
Set the angle for the last radial axis.
void SetStartAngle(double angle)
Set the angle for the main radial axis.
int RenderOverlay(vtkViewport *viewport) override
Standard vtkProp render methods.
void SetOrigin(double origin[2])
Set the origin of the radial measurement, in normalized viewport coordinates.
int GetNumberOfAxesTicks()
Set/Get the number of ticks for each axis.
vtkTypeBool HasTranslucentPolygonalGeometry() override
No translucent geometry for this actor.
vtkTextProperty * GetAxesTextProperty()
Set/Get the text property for the axes.
double GetStartAngle()
Set the angle for the main radial axis.
~vtkPolarAxesActor2D() override=default
int GetNumberOfAxes()
Set/Get the number of Axes to use.
an ordered list of Props
vtkRadialGridActor2D displays in overlay a list of vtkAxisActor2D sharing a same origin and rotating ...
represent text properties.
abstract specification for Viewports
Definition vtkViewport.h:65
int vtkTypeBool
Definition vtkABI.h:64