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 =========================================================================*/
26 #ifndef vtkTransformCollection_h
27 #define vtkTransformCollection_h
28 
29 #include "vtkCommonTransformsModule.h" // For export macro
30 #include "vtkCollection.h"
31 
32 #include "vtkTransform.h" // Needed for inline methods
33 
35 {
36 public:
38  static vtkTransformCollection *New();
39 
41  void AddItem(vtkTransform *);
42 
45  vtkTransform *GetNextItem();
46 
47  //BTX
49 
52  return static_cast<vtkTransform *>(this->GetNextItemAsObject(cookie));};
53  //ETX
55 
56 protected:
59 
60 
61 private:
62  // hide the standard AddItem from the user and the compiler.
63  void AddItem(vtkObject *o)
64  {
65  this->vtkCollection::AddItem(o);
66  }
67 
68 private:
69  vtkTransformCollection(const vtkTransformCollection&); // Not implemented.
70  void operator=(const vtkTransformCollection&); // Not implemented.
71 };
72 
73 //----------------------------------------------------------------------------
75 {
76  this->vtkCollection::AddItem(t);
77 }
78 
79 //----------------------------------------------------------------------------
81 {
82  return static_cast<vtkTransform *>(this->GetNextItemAsObject());
83 }
84 
85 #endif
86 // VTK-HeaderTest-Exclude: vtkTransformCollection.h
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
abstract base class for most VTK objects
Definition: vtkObject.h:61
vtkTransform * GetNextTransform(vtkCollectionSimpleIterator &cookie)
void AddItem(vtkTransform *)
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:59
#define VTKCOMMONTRANSFORMS_EXPORT
static vtkCollection * New()
maintain a list of transforms
void AddItem(vtkObject *)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
vtkObject * GetNextItemAsObject()