VTK  9.4.20250207
vtkArcGridActorPrivate.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
15#ifndef vtkArcGridActorPrivate_h
16#define vtkArcGridActorPrivate_h
17
18#include "vtkActor2D.h"
19
20#include "vtkNew.h" // for vtkNew
21
22VTK_ABI_NAMESPACE_BEGIN
23class vtkCellArray;
24class vtkDoubleArray;
25class vtkPoints;
26class vtkPolyData;
29
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
42 vtkSetMacro(TicksStart, vtkPoints*);
43
45
49 vtkSetMacro(Angle, double);
50 vtkGetMacro(Angle, double);
52
54
58 vtkSetVector2Macro(Center, double);
59 vtkGetVector2Macro(Center, double);
61
63
68 vtkSetMacro(Resolution, int);
69 vtkGetMacro(Resolution, int);
71
75 int RenderOverlay(vtkViewport*) override;
76
77protected:
80
81private:
82 void operator=(const vtkArcGridActorPrivate&) = delete;
84
88 bool HasData();
89
94 void BuildGrid(vtkViewport* viewport);
95
96 vtkNew<vtkPolyData> PolyData;
98
99 vtkPoints* TicksStart = nullptr;
100
101 double Center[2] = { 0.5, 0.5 };
102 double Angle = 90;
103 int Resolution = 10;
104};
105
106VTK_ABI_NAMESPACE_END
107#endif
a actor that draws 2D data
Definition vtkActor2D.h:145
renders a concentric list of arcs on overlay.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RenderOverlay(vtkViewport *) override
Build the arcs and render them as overlay.
~vtkArcGridActorPrivate() override
static vtkArcGridActorPrivate * New()
object to represent cell connectivity
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition vtkIndent.h:108
Allocate and hold a VTK object.
Definition vtkNew.h:167
represent and manipulate 3D points
Definition vtkPoints.h:139
draw vtkPolyData onto the image plane
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract specification for Viewports
Definition vtkViewport.h:65