Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

vtkPaletteElementStack.h

Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 * 00003 * $Id: vtkPaletteElementStack.h,v 1.1 2004/06/02 11:35:09 xpxqx Exp $ 00004 * 00005 * Copyright (c) 2004 Sean McInerney 00006 * All rights reserved. 00007 * 00008 * See Copyright.txt or http://vtkextensions.sourceforge.net/Copyright.html 00009 * 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 */ 00016 #ifndef VTK_PALETTE_ELEMENT_STACK_H_ 00017 # define VTK_PALETTE_ELEMENT_STACK_H_ 00018 # include "vtkExtensionsObjectStack.h" 00019 // (Covarient return from some virtual methods) 00020 # include "vtkPaletteElement.h" 00021 00022 VTK_EXTENSIONS_PALETTE_NAMESPACE_BEGIN 00023 00037 class VTK_EXTENSIONS_PALETTE_EXPORT vtkPaletteElementStack 00038 : public vtkExtensionsObjectStack 00039 { 00040 public: 00041 static vtkPaletteElementStack* New (void); 00042 vtkTypeRevisionMacro (vtkPaletteElementStack, vtkExtensionsObjectStack); 00043 00050 virtual vtkPaletteElement* Top (void) const 00051 { return static_cast<vtkPaletteElement*>(this->Superclass::Top()); } 00052 00062 virtual int Push (vtkPaletteElement* element) 00063 { return this->Superclass::Push(element); } 00064 00065 protected: 00066 vtkPaletteElementStack (void) {} 00067 ~vtkPaletteElementStack() {} 00068 00069 private: 00072 int Push (vtkExtensionsObject* object) 00073 { return this->Superclass::Push(object); } 00076 private: 00082 vtkPaletteElementStack (const vtkPaletteElementStack&); 00083 void operator= (const vtkPaletteElementStack&); 00085 }; 00086 00087 VTK_EXTENSIONS_PALETTE_NAMESPACE_END 00088 00089 #endif /* VTK_PALETTE_ELEMENT_STACK_H_ */ 00090 /* 00091 * End of: $Id: vtkPaletteElementStack.h,v 1.1 2004/06/02 11:35:09 xpxqx Exp $. 00092 * 00093 */

Generated on Tue Aug 10 03:38:22 2004 for vtkExtensions by doxygen 1.3.7