VTK  9.5.20250718
vtkAxisGridActorInternal.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
13#ifndef vtkAxisGridActorInternal_h
14#define vtkAxisGridActorInternal_h
15
16#include "vtkActor2D.h"
17
18#include "vtkNew.h" // for vtkNew
19
20VTK_ABI_NAMESPACE_BEGIN
21class vtkCellArray;
22class vtkDoubleArray;
23class vtkPoints;
24class vtkPolyData;
27
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
36
48
53
54protected:
57
58private:
59 vtkNew<vtkPolyData> PolyData;
60 vtkNew<vtkPoints> PolyDataPoints;
61 vtkNew<vtkCellArray> PolyDataLines;
63
64 vtkPoints* XTicksStart = nullptr;
65 vtkPoints* YTicksStart = nullptr;
66 vtkPoints* XTicksEnd = nullptr;
67 vtkPoints* YTicksEnd = nullptr;
68
73 void BuildGrid();
74
75 void operator=(const vtkAxisGridActorInternal&) = delete;
77};
78
79VTK_ABI_NAMESPACE_END
80#endif
a actor that draws 2D data
Definition vtkActor2D.h:145
renders a 2D grid given pairs of point positions
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetVerticalLinesBottomPoints(vtkPoints *points)
Set the point positions used to draw horizontal and vertical lines.
int RenderOpaqueGeometry(vtkViewport *) override
Build grid and render.
~vtkAxisGridActorInternal() override
void SetVerticalLinesTopPoints(vtkPoints *points)
Set the point positions used to draw horizontal and vertical lines.
static vtkAxisGridActorInternal * New()
void SetHorizontalLinesLeftPoints(vtkPoints *points)
Set the point positions used to draw horizontal and vertical lines.
void SetHorizontalLinesRightPoints(vtkPoints *points)
Set the point positions used to draw horizontal and vertical lines.
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:66