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 "vtkCollection.h"
30 
31 #include "vtkTransform.h" // Needed for inline methods
32 
34 {
35 public:
37  static vtkTransformCollection *New();
38 
40  void AddItem(vtkTransform *);
41 
44  vtkTransform *GetNextItem();
45 
46  //BTX
48 
51  return static_cast<vtkTransform *>(this->GetNextItemAsObject(cookie));};
52  //ETX
54 
55 protected:
58 
59 
60 private:
61  // hide the standard AddItem from the user and the compiler.
62  void AddItem(vtkObject *o)
63  {
64  this->vtkCollection::AddItem(o);
65  }
66 
67 private:
68  vtkTransformCollection(const vtkTransformCollection&); // Not implemented.
69  void operator=(const vtkTransformCollection&); // Not implemented.
70 };
71 
72 //----------------------------------------------------------------------------
74 {
75  this->vtkCollection::AddItem(t);
76 }
77 
78 //----------------------------------------------------------------------------
80 {
81  return static_cast<vtkTransform *>(this->GetNextItemAsObject());
82 }
83 
84 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:46
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkTransform * GetNextTransform(vtkCollectionSimpleIterator &cookie)
void AddItem(vtkTransform *)
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:58
static vtkCollection * New()
maintain a list of transforms
#define VTK_COMMON_EXPORT
void AddItem(vtkObject *)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:51
vtkObject * GetNextItemAsObject()