VTK  9.1.0
vtkTestNewVar.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTestNewVar.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
20 #ifndef vtkTestNewVar_h
21 #define vtkTestNewVar_h
22 
23 #include "vtkNew.h"
24 #include "vtkObject.h"
25 
26 class vtkPoints2D;
27 
28 class vtkTestNewVar : public vtkObject
29 {
30 public:
31  static vtkTestNewVar* New();
32 
33  vtkTypeMacro(vtkTestNewVar, vtkObject);
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
40 
47 
55 
56 protected:
58  ~vtkTestNewVar() override;
59 
61 
62 private:
63  vtkTestNewVar(const vtkTestNewVar&) = delete;
64  void operator=(const vtkTestNewVar&) = delete;
65 };
66 
67 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract base class for most VTK objects
Definition: vtkObject.h:63
represent and manipulate 2D points
Definition: vtkPoints2D.h:34
Tests instantiations of the vtkNew class template.
Definition: vtkTestNewVar.h:29
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:60
int vtkIdType
Definition: vtkType.h:332