VTK  9.3.20240423
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
17VTK_ABI_NAMESPACE_BEGIN
18class vtkPoints2D;
19VTK_ABI_NAMESPACE_END
20
22{
23public:
24 static vtkTestNewVar* New();
25
26 vtkTypeMacro(vtkTestNewVar, vtkObject);
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
33
40
48
49protected:
51 ~vtkTestNewVar() override;
52
54
55private:
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
Allocate and hold a VTK object.
Definition vtkNew.h:160
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkTestNewVar() override
static vtkTestNewVar * New()
vtkIdType GetPointsRefCount()
Get the reference count for the points object.
vtkObject * GetPoints2()
This is just for testing - return the points as a vtkObject so that it can be assigned to a vtkSmartP...
vtkObject * GetPoints()
This is just for testing - return the points as a vtkObject so that it can be assigned to a vtkSmartP...
vtkNew< vtkPoints2D > Points
int vtkIdType
Definition vtkType.h:315