VTK
vtkMapperCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMapperCollection.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 vtkMapperCollection_h
27 #define vtkMapperCollection_h
28 
29 #include "vtkRenderingCoreModule.h" // For export macro
30 #include "vtkCollection.h"
31 #include "vtkMapper.h" // Needed for direct access to mapper methods in
32  // inline functions
33 
35 {
36  public:
37  static vtkMapperCollection *New();
39  virtual void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
43  void AddItem(vtkMapper *a)
44  { this->vtkCollection::AddItem(static_cast<vtkObject *>(a)); }
46 
48 
50  { return static_cast<vtkMapper *>(this->GetNextItemAsObject()); }
52 
54 
56  { return this->Bottom ? static_cast<vtkMapper*>(this->Bottom->Item) : 0; }
58 
59  //BTX
61 
64  { return static_cast<vtkMapper *>(this->GetNextItemAsObject(cookie)); }
65  //ETX
67 
68 protected:
71 
72 private:
73  // hide the standard AddItem from the user and the compiler.
74  void AddItem(vtkObject *o)
75  { this->vtkCollection::AddItem(o); }
76 
77 private:
78  vtkMapperCollection(const vtkMapperCollection&); // Not implemented.
79  void operator=(const vtkMapperCollection&); // Not implemented.
80 };
81 
82 #endif
a list of mappers
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
abstract base class for most VTK objects
Definition: vtkObject.h:61
void PrintSelf(ostream &os, vtkIndent indent)
vtkMapper * GetNextMapper(vtkCollectionSimpleIterator &cookie)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkCollection * New()
void AddItem(vtkMapper *a)
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:89
void AddItem(vtkObject *)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
#define VTKRENDERINGCORE_EXPORT
vtkObject * GetNextItemAsObject()