VTK  9.3.20240329
vtkTestNewVar.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
11 #ifndef vtkTestNewVar_h
12 #define vtkTestNewVar_h
13 
14 #include "vtkNew.h"
15 #include "vtkObject.h"
16 
17 VTK_ABI_NAMESPACE_BEGIN
18 class vtkPoints2D;
19 VTK_ABI_NAMESPACE_END
20 
21 class vtkTestNewVar : public vtkObject
22 {
23 public:
24  static vtkTestNewVar* New();
25 
26  vtkTypeMacro(vtkTestNewVar, vtkObject);
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
33 
40 
48 
49 protected:
51  ~vtkTestNewVar() override;
52 
54 
55 private:
56  vtkTestNewVar(const vtkTestNewVar&) = delete;
57  void operator=(const vtkTestNewVar&) = delete;
58 };
59 
60 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
abstract base class for most VTK objects
Definition: vtkObject.h:162
represent and manipulate 2D points
Definition: vtkPoints2D.h:27
Tests instantiations of the vtkNew class template.
Definition: vtkTestNewVar.h:22
vtkObject * GetPoints()
This is just for testing - return the points as a vtkObject so that it can be assigned to a vtkSmartP...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkTestNewVar() override
vtkIdType GetPointsRefCount()
Get the reference count for the points object.
static vtkTestNewVar * New()
vtkObject * GetPoints2()
This is just for testing - return the points as a vtkObject so that it can be assigned to a vtkSmartP...
vtkNew< vtkPoints2D > Points
Definition: vtkTestNewVar.h:53
int vtkIdType
Definition: vtkType.h:315