VTK  9.7.1
vtkArcGridActorInternal.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 vtkArcGridActorInternal_h
16 #define vtkArcGridActorInternal_h
17 
18 #include "vtkActor2D.h"
19 
20 #include "vtkNew.h" // for vtkNew
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkCellArray;
24 class vtkDoubleArray;
25 class vtkPoints;
26 class vtkPolyData;
27 class vtkPolyDataMapper;
29 
31 {
32 public:
34  static vtkArcGridActorInternal* New();
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 
77 protected:
79  ~vtkArcGridActorInternal() override;
80 
81 private:
82  void operator=(const vtkArcGridActorInternal&) = delete;
84 
88  bool HasData();
89 
94  void BuildGrid(vtkViewport* viewport);
95 
96  vtkNew<vtkPolyData> PolyData;
97  vtkNew<vtkPolyDataMapper2D> GridMapper;
98 
99  vtkPoints* TicksStart = nullptr;
100 
101  double Center[2] = { 0.5, 0.5 };
102  double Angle = 90;
103  int Resolution = 10;
104 };
105 
106 VTK_ABI_NAMESPACE_END
107 #endif
renders a concentric list of arcs on overlay.
~vtkArcGridActorInternal() override
abstract specification for Viewports
Definition: vtkViewport.h:46
a actor that draws 2D data
Definition: vtkActor2D.h:35
static vtkArcGridActorInternal * New()
int RenderOverlay(vtkViewport *) override
Build the arcs and render them as overlay.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:71
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
map vtkPolyData to graphics primitives
object to represent cell connectivity
Definition: vtkCellArray.h:177
draw vtkPolyData onto the image plane
represent and manipulate 3D points
Definition: vtkPoints.h:30