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
26class vtkPoints2D;
27
29{
30public:
31 static vtkTestNewVar* New();
32
33 vtkTypeMacro(vtkTestNewVar, vtkObject);
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
40
47
55
56protected:
58 ~vtkTestNewVar() override;
59
61
62private:
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:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
represent and manipulate 2D points
Definition: vtkPoints2D.h:34
Tests instantiations of the vtkNew class template.
Definition: vtkTestNewVar.h:29
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
Definition: vtkTestNewVar.h:60
int vtkIdType
Definition: vtkType.h:332