VTK  9.2.6
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 =========================================================================*/
23 #ifndef vtkTestNewVar_h
24 #define vtkTestNewVar_h
25 
26 #include "vtkNew.h"
27 #include "vtkObject.h"
28 
29 class vtkPoints2D;
30 
31 class vtkTestNewVar : public vtkObject
32 {
33 public:
34  static vtkTestNewVar* New();
35 
36  vtkTypeMacro(vtkTestNewVar, vtkObject);
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
43 
50 
58 
59 protected:
60  vtkTestNewVar();
61  ~vtkTestNewVar() override;
62 
64 
65 private:
66  vtkTestNewVar(const vtkTestNewVar&) = delete;
67  void operator=(const vtkTestNewVar&) = delete;
68 };
69 
70 #endif
Tests instantiations of the vtkNew class template.
Definition: vtkTestNewVar.h:31
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkNew< vtkPoints2D > Points
Definition: vtkTestNewVar.h:63
vtkObject * GetPoints()
This is just for testing - return the points as a vtkObject so that it can be assigned to a vtkSmartP...
int vtkIdType
Definition: vtkType.h:332
a simple class to control print indentation
Definition: vtkIndent.h:39
represent and manipulate 2D points
Definition: vtkPoints2D.h:36
vtkIdType GetPointsRefCount()
Get the reference count for the points object.
~vtkTestNewVar() override
static vtkTestNewVar * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject * GetPoints2()
This is just for testing - return the points as a vtkObject so that it can be assigned to a vtkSmartP...