VTK
vtkVolumeCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVolumeCollection.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef vtkVolumeCollection_h
28 #define vtkVolumeCollection_h
29 
30 #include "vtkRenderingCoreModule.h" // For export macro
31 #include "vtkPropCollection.h"
32 
33 #include "vtkVolume.h" // Needed for static cast
34 
35 class VTKRENDERINGCORE_EXPORT vtkVolumeCollection : public vtkPropCollection
36 {
37  public:
38  static vtkVolumeCollection *New();
40  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
41 
45  void AddItem(vtkVolume *a)
46  { this->vtkCollection::AddItem(a); }
47 
53  { return static_cast<vtkVolume *>(this->GetNextItemAsObject()); }
54 
55 
62  { return this->GetNextVolume(); }
63 
69  { return static_cast<vtkVolume *>(this->GetNextItemAsObject(cookie)); }
70 
71 protected:
74 
75 private:
76  // hide the standard AddItem from the user and the compiler.
77  void AddItem(vtkObject *o)
78  { this->vtkCollection::AddItem(o); }
79  void AddItem(vtkProp *o)
80  { this->vtkPropCollection::AddItem(o); }
81 
82 private:
83  vtkVolumeCollection(const vtkVolumeCollection&) VTK_DELETE_FUNCTION;
84  void operator=(const vtkVolumeCollection&) VTK_DELETE_FUNCTION;
85 };
86 
87 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:50
abstract base class for most VTK objects
Definition: vtkObject.h:59
vtkVolume * GetNextVolume(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
vtkVolume * GetNextItem()
Access routine provided for compatibility with previous versions of VTK.
a list of Props
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a list of volumes
vtkVolume * GetNextVolume()
Get the next Volume in the list.
void AddItem(vtkObject *)
Add an object to the list.
void AddItem(vtkProp *a)
Add an Prop to the list.
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
static vtkPropCollection * New()
void AddItem(vtkVolume *a)
Add a Volume to the list.