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

# Rendering/vtkVolumeCollection.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkVolumeCollection.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 =========================================================================*/
    00045 #ifndef __vtkVolumeC_h
    00046 #define __vtkVolumeC_h
    00047
    00048 #include "vtkPropCollection.h"
    00049
    00050 #include "vtkVolume.h"  // Needed for static cast
    00051
    00052 class VTK_RENDERING_EXPORT vtkVolumeCollection : public vtkPropCollection
    00053 {
    00054  public:
    00055   static vtkVolumeCollection *New();
    00056   vtkTypeRevisionMacro(vtkVolumeCollection,vtkPropCollection);
    00057   virtual void PrintSelf(ostream& os, vtkIndent indent);
    00058
    00060
    00061   void AddItem(vtkVolume *a) {
    00062     this->vtkCollection::AddItem((vtkObject *)a);};
    00064
    00066
    00068   vtkVolume *GetNextVolume() {
    00069       return static_cast<vtkVolume *>(this->GetNextItemAsObject());};
    00071
    00072
    00075   vtkVolume *GetNextItem() { return this->GetNextVolume(); };
    00076
    00077 protected:
    00078   vtkVolumeCollection() {};
    00079   ~vtkVolumeCollection() {};
    00080
    00081 private:
    00082   // hide the standard AddItem from the user and the compiler.
    00083   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
    00084   void AddItem(vtkProp *o) { this->vtkPropCollection::AddItem(o); };
    00085
    00086 private:
    00087   vtkVolumeCollection(const vtkVolumeCollection&);  // Not implemented.
    00088   void operator=(const vtkVolumeCollection&);  // Not implemented.
    00089 };
    00090
    00091
    00092 #endif
    00093
    00094
    00095
    00096
    00097