Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Rendering/vtkProp3DCollection.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkProp3DCollection.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00030 #ifndef __vtkProp3DCollection_h 00031 #define __vtkProp3DCollection_h 00032 00033 #include "vtkPropCollection.h" 00034 #include "vtkProp3D.h" // Needed for inline methods 00035 00036 class VTK_RENDERING_EXPORT vtkProp3DCollection : public vtkPropCollection 00037 { 00038 public: 00039 static vtkProp3DCollection *New(); 00040 vtkTypeRevisionMacro(vtkProp3DCollection,vtkPropCollection); 00041 virtual void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 void AddItem(vtkProp3D *p); 00045 00047 vtkProp3D *GetNextProp3D(); 00048 00050 vtkProp3D *GetLastProp3D(); 00051 00052 protected: 00053 vtkProp3DCollection() {}; 00054 ~vtkProp3DCollection() {}; 00055 00056 00057 private: 00058 // hide the standard AddItem from the user and the compiler. 00059 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00060 void AddItem(vtkProp *o) { this->vtkPropCollection::AddItem(o); }; 00061 00062 private: 00063 vtkProp3DCollection(const vtkProp3DCollection&); // Not implemented. 00064 void operator=(const vtkProp3DCollection&); // Not implemented. 00065 }; 00066 00067 inline void vtkProp3DCollection::AddItem(vtkProp3D *a) 00068 { 00069 this->vtkCollection::AddItem((vtkObject *)a); 00070 } 00071 00072 inline vtkProp3D *vtkProp3DCollection::GetNextProp3D() 00073 { 00074 return static_cast<vtkProp3D *>(this->GetNextItemAsObject()); 00075 } 00076 00077 inline vtkProp3D *vtkProp3DCollection::GetLastProp3D() 00078 { 00079 if ( this->Bottom == NULL ) 00080 { 00081 return NULL; 00082 } 00083 else 00084 { 00085 return static_cast<vtkProp3D *>(this->Bottom->Item); 00086 } 00087 } 00088 00089 #endif 00090 00091 00092 00093 00094