00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00030
#ifndef __vtkCullerC_h
00031
#define __vtkCullerC_h
00032
00033
#include "vtkCollection.h"
00034
#include "vtkCuller.h"
00035
00036 class VTK_RENDERING_EXPORT vtkCullerCollection :
public vtkCollection
00037 {
00038
public:
00039
static vtkCullerCollection *
New();
00040 vtkTypeRevisionMacro(vtkCullerCollection,
vtkCollection);
00041
virtual void PrintSelf(ostream& os,
vtkIndent indent);
00042
00044
00045 void AddItem(
vtkCuller *a) {
00046 this->vtkCollection::AddItem((
vtkObject *)a);};
00048
00050
00051 vtkCuller *GetNextItem() {
00052
return static_cast<vtkCuller *>(this->
GetNextItemAsObject());};
00054
00056
vtkCuller *GetLastItem();
00057
00058
protected:
00059 vtkCullerCollection() {};
00060 ~vtkCullerCollection() {};
00061
00062
00063
private:
00064
00065
void AddItem(
vtkObject *o) { this->vtkCollection::AddItem(o); };
00066
00067
private:
00068 vtkCullerCollection(
const vtkCullerCollection&);
00069
void operator=(
const vtkCullerCollection&);
00070 };
00071
00072
00073 inline vtkCuller *
vtkCullerCollection::GetLastItem()
00074 {
00075
if ( this->Bottom == NULL )
00076 {
00077
return NULL;
00078 }
00079
else
00080 {
00081
return static_cast<vtkCuller *>(this->Bottom->
Item);
00082 }
00083 }
00084
00085
#endif
00086
00087
00088
00089
00090