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

# Rendering/vtkCullerCollection.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkCullerCollection.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 =========================================================================*/
    00044 #ifndef __vtkCullerC_h
    00045 #define __vtkCullerC_h
    00046
    00047 #include "vtkCollection.h"
    00048 #include "vtkCuller.h" // for inline functions
    00049
    00050 class VTK_RENDERING_EXPORT vtkCullerCollection : public vtkCollection
    00051 {
    00052  public:
    00053   static vtkCullerCollection *New();
    00054   vtkTypeRevisionMacro(vtkCullerCollection,vtkCollection);
    00055   virtual void PrintSelf(ostream& os, vtkIndent indent);
    00056
    00058
    00059   void AddItem(vtkCuller *a) {
    00060     this->vtkCollection::AddItem((vtkObject *)a);};
    00062
    00064
    00065   vtkCuller *GetNextItem() {
    00066     return static_cast<vtkCuller *>(this->GetNextItemAsObject());};
    00068
    00070   vtkCuller *GetLastItem();
    00071
    00072 protected:
    00073   vtkCullerCollection() {};
    00074   ~vtkCullerCollection() {};
    00075
    00076
    00077 private:
    00078   // hide the standard AddItem from the user and the compiler.
    00079   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
    00080
    00081 private:
    00082   vtkCullerCollection(const vtkCullerCollection&);  // Not implemented.
    00083   void operator=(const vtkCullerCollection&);  // Not implemented.
    00084 };
    00085
    00086
    00087 inline vtkCuller *vtkCullerCollection::GetLastItem()
    00088 {
    00089   if ( this->Bottom == NULL )
    00090     {
    00091     return NULL;
    00092     }
    00093   else
    00094     {
    00095     return static_cast<vtkCuller *>(this->Bottom->Item);
    00096     }
    00097 }
    00098
    00099 #endif
    00100
    00101
    00102
    00103
    00104