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

vtkProp3DCollection.h

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

Generated on Mon Jan 21 23:07:35 2008 for VTK by  doxygen 1.4.3-20050530