00001 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 * 00003 * $Id: vtkPaletteAmbientColor.h,v 1.1 2004/06/02 11:35:08 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_AMBIENT_COLOR_H_ 00017 # define VTK_PALETTE_AMBIENT_COLOR_H_ 00018 # include "vtkPaletteColorBase.h" 00019 00020 VTK_EXTENSIONS_PALETTE_NAMESPACE_BEGIN 00021 00032 class VTK_EXTENSIONS_PALETTE_EXPORT vtkPaletteAmbientColor 00033 : public vtkPaletteColorBase 00034 { 00035 public: 00036 static vtkPaletteAmbientColor* New (void); 00037 vtkTypeRevisionMacro (vtkPaletteAmbientColor, vtkPaletteColorBase); 00038 00040 int GetType (void) const; 00041 00042 //BTX 00044 const vtkXMLChType* GetTagName (void) const; 00045 //ETX 00046 00048 virtual vtkAbstractPaletteMaterial* GetParent (void) const; 00049 00050 //BTX 00051 static const vtkXMLChType* const ambientString; 00052 //ETX 00053 00054 protected: 00055 vtkPaletteAmbientColor (void); 00056 ~vtkPaletteAmbientColor() {} 00057 00058 virtual void SetParent (vtkAbstractPaletteMaterial* a) 00059 { this->Superclass::SetParent(a); } 00060 00061 private: 00062 void SetParent (vtkPaletteElement* a) 00063 { this->Superclass::SetParent(a); } 00064 00065 private: 00071 vtkPaletteAmbientColor (const vtkPaletteAmbientColor&); 00072 void operator= (const vtkPaletteAmbientColor&); 00074 }; 00075 00076 // ---------------------------------------------------------------------------- 00077 inline vtkAbstractPaletteMaterial* 00078 vtkPaletteAmbientColor::GetParent(void) const 00079 { 00080 return 00081 vtkAbstractPaletteMaterial::SafeDownCast(this->Superclass::GetParent()); 00082 } 00083 00084 // ---------------------------------------------------------------------------- 00085 inline int 00086 vtkPaletteAmbientColor::GetType (void) const 00087 { 00088 return VTK_PALETTE_AMBIENT; 00089 } 00090 00091 inline const vtkXMLChType* 00092 vtkPaletteAmbientColor::GetTagName (void) const 00093 { 00094 return vtkPaletteAmbientColor::ambientString; 00095 } 00096 00097 VTK_EXTENSIONS_PALETTE_NAMESPACE_END 00098 00099 #endif /* VTK_PALETTE_AMBIENT_COLOR_H_ */ 00100 /* 00101 * End of: $Id: vtkPaletteAmbientColor.h,v 1.1 2004/06/02 11:35:08 xpxqx Exp $. 00102 * 00103 */