You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.3 KiB
71 lines
2.3 KiB
2 years ago
|
/*=========================================================================
|
||
|
|
||
|
Program: Visualization Toolkit
|
||
|
Module: $RCSfile: vtkRenderWindowCollection.h,v $
|
||
|
|
||
|
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
|
||
|
All rights reserved.
|
||
|
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
|
||
|
|
||
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||
|
PURPOSE. See the above copyright notice for more information.
|
||
|
|
||
|
=========================================================================*/
|
||
|
// .NAME vtkRenderWindowCollection - a list of RenderWindows
|
||
|
// .SECTION Description
|
||
|
// vtkRenderWindowCollection represents and provides methods to manipulate a
|
||
|
// list of RenderWindows. The list is unsorted and duplicate entries are
|
||
|
// not prevented.
|
||
|
|
||
|
// .SECTION see also
|
||
|
// vtkRenderWindow vtkCollection
|
||
|
|
||
|
#ifndef __vtkRenderWindowCollection_h
|
||
|
#define __vtkRenderWindowCollection_h
|
||
|
|
||
|
#include "vtkCollection.h"
|
||
|
#include "vtkRenderWindow.h" // Needed for static cast
|
||
|
|
||
|
class VTK_RENDERING_EXPORT vtkRenderWindowCollection : public vtkCollection
|
||
|
{
|
||
|
public:
|
||
|
static vtkRenderWindowCollection *New();
|
||
|
vtkTypeRevisionMacro(vtkRenderWindowCollection,vtkCollection);
|
||
|
virtual void PrintSelf(ostream& os, vtkIndent indent);
|
||
|
|
||
|
// Description:
|
||
|
// Add a RenderWindow to the list.
|
||
|
void AddItem(vtkRenderWindow *a) {
|
||
|
this->vtkCollection::AddItem((vtkObject *)a);};
|
||
|
|
||
|
// Description:
|
||
|
// Get the next RenderWindow in the list. Return NULL when at the end of the
|
||
|
// list.
|
||
|
vtkRenderWindow *GetNextItem() {
|
||
|
return static_cast<vtkRenderWindow *>(this->GetNextItemAsObject());};
|
||
|
|
||
|
//BTX
|
||
|
// Description:
|
||
|
// Reentrant safe way to get an object in a collection. Just pass the
|
||
|
// same cookie back and forth.
|
||
|
vtkRenderWindow *GetNextRenderWindow(vtkCollectionSimpleIterator &cookie) {
|
||
|
return static_cast<vtkRenderWindow *>(this->GetNextItemAsObject(cookie));};
|
||
|
//ETX
|
||
|
|
||
|
protected:
|
||
|
vtkRenderWindowCollection() {};
|
||
|
~vtkRenderWindowCollection() {};
|
||
|
|
||
|
private:
|
||
|
// hide the standard AddItem from the user and the compiler.
|
||
|
void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
|
||
|
|
||
|
private:
|
||
|
vtkRenderWindowCollection(const vtkRenderWindowCollection&); // Not implemented.
|
||
|
void operator=(const vtkRenderWindowCollection&); // Not implemented.
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|