VTK
vtkTransformCollection.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTransformCollection.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=========================================================================*/
27#ifndef vtkTransformCollection_h
28#define vtkTransformCollection_h
29
30#include "vtkCommonTransformsModule.h" // For export macro
31#include "vtkCollection.h"
32
33#include "vtkTransform.h" // Needed for inline methods
34
35class VTKCOMMONTRANSFORMS_EXPORT vtkTransformCollection : public vtkCollection
36{
37public:
40
44 void AddItem(vtkTransform *);
45
50 vtkTransform *GetNextItem();
51
57 return static_cast<vtkTransform *>(this->GetNextItemAsObject(cookie));};
58
59protected:
61 ~vtkTransformCollection() VTK_OVERRIDE {}
62
63
64private:
65 // hide the standard AddItem from the user and the compiler.
66 void AddItem(vtkObject *o)
67 {
69 }
70
71private:
72 vtkTransformCollection(const vtkTransformCollection&) VTK_DELETE_FUNCTION;
73 void operator=(const vtkTransformCollection&) VTK_DELETE_FUNCTION;
74};
75
76//----------------------------------------------------------------------------
78{
80}
81
82//----------------------------------------------------------------------------
84{
85 return static_cast<vtkTransform *>(this->GetNextItemAsObject());
86}
87
88#endif
89// VTK-HeaderTest-Exclude: vtkTransformCollection.h
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
void AddItem(vtkObject *)
Add an object to the list.
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
abstract base class for most VTK objects
Definition: vtkObject.h:60
maintain a list of transforms
static vtkTransformCollection * New()
vtkTransform * GetNextTransform(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
void AddItem(vtkTransform *)
Add a Transform to the list.
vtkTransform * GetNextItem()
Get the next Transform in the list.
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:61
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47