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 =========================================================================*/
26 #ifndef vtkVolumeCollection_h
27 #define vtkVolumeCollection_h
28 
29 #include "vtkRenderingCoreModule.h" // For export macro
30 #include "vtkPropCollection.h"
31 
32 #include "vtkVolume.h" // Needed for static cast
33 
35 {
36  public:
39  virtual void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
44  { this->vtkCollection::AddItem(a); }
46 
48 
51  { return static_cast<vtkVolume *>(this->GetNextItemAsObject()); }
53 
54 
56 
59  { return this->GetNextVolume(); }
61 
62  //BTX
64 
67  { return static_cast<vtkVolume *>(this->GetNextItemAsObject(cookie)); }
68  //ETX
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&); // Not implemented.
84  void operator=(const vtkVolumeCollection&); // Not implemented.
85 };
86 
87 #endif
vtkVolume.h
vtkVolumeCollection
a list of volumes
Definition: vtkVolumeCollection.h:35
vtkCollectionSimpleIterator
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
vtkVolume
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:50
vtkVolumeCollection::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkVolumeCollection::GetNextItem
vtkVolume * GetNextItem()
Definition: vtkVolumeCollection.h:58
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkVolumeCollection::GetNextVolume
vtkVolume * GetNextVolume(vtkCollectionSimpleIterator &cookie)
Definition: vtkVolumeCollection.h:66
vtkCollection::GetNextItemAsObject
vtkObject * GetNextItemAsObject()
Definition: vtkCollection.h:156
vtkVolumeCollection::vtkVolumeCollection
vtkVolumeCollection()
Definition: vtkVolumeCollection.h:72
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkRenderingCoreModule.h
vtkPropCollection::AddItem
void AddItem(vtkProp *a)
Definition: vtkPropCollection.h:81
vtkVolumeCollection::New
static vtkVolumeCollection * New()
vtkgl::a
GLboolean GLboolean GLboolean GLboolean a
Definition: vtkgl.h:12312
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkVolumeCollection::~vtkVolumeCollection
~vtkVolumeCollection()
Definition: vtkVolumeCollection.h:73
vtkVolumeCollection::GetNextVolume
vtkVolume * GetNextVolume()
Definition: vtkVolumeCollection.h:50
vtkCollection::AddItem
void AddItem(vtkObject *)
vtkVolumeCollection::AddItem
void AddItem(vtkVolume *a)
Definition: vtkVolumeCollection.h:43
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkPropCollection.h