VTK
dox
Common
Core
Testing
Cxx
vtkTestNewVar.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTestNewVar.cxx
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
=========================================================================*/
21
#ifndef vtkTestNewVar_h
22
#define vtkTestNewVar_h
23
24
#include "
vtkObject.h
"
25
#include "
vtkNew.h
"
26
27
class
vtkPoints2D
;
28
29
class
vtkTestNewVar
:
public
vtkObject
30
{
31
public
:
32
static
vtkTestNewVar
*
New
();
33
34
vtkTypeMacro(
vtkTestNewVar
,
vtkObject
)
35
void
PrintSelf
(ostream& os,
vtkIndent
indent) VTK_OVERRIDE;
36
40
vtkIdType
GetPointsRefCount
();
41
47
vtkObject
*
GetPoints
();
48
49
protected
:
50
vtkTestNewVar
();
51
~vtkTestNewVar
();
52
53
vtkNew<vtkPoints2D>
Points
;
54
55
private
:
56
vtkTestNewVar
(
const
vtkTestNewVar
&) VTK_DELETE_FUNCTION;
57
void
operator=(
const
vtkTestNewVar
&) VTK_DELETE_FUNCTION;
58
};
59
60
#endif
vtkPoints2D
represent and manipulate 2D points
Definition:
vtkPoints2D.h:36
vtkTestNewVar::vtkTestNewVar
vtkTestNewVar()
vtkTestNewVar::GetPoints
vtkObject * GetPoints()
This is just for testing - return the points as a vtkObject so that it can be assigned to a vtkSmartP...
vtkIdType
int vtkIdType
Definition:
vtkType.h:287
vtkTestNewVar
Definition:
vtkTestNewVar.h:29
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:59
vtkTestNewVar::~vtkTestNewVar
~vtkTestNewVar()
vtkTestNewVar::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkNew< vtkPoints2D >
vtkTestNewVar::Points
vtkNew< vtkPoints2D > Points
Definition:
vtkTestNewVar.h:53
vtkTestNewVar::GetPointsRefCount
vtkIdType GetPointsRefCount()
Get the reference count for the points object.
vtkObject.h
vtkNew.h
vtkTestNewVar::New
static vtkTestNewVar * New()
Generated by
1.8.17