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

dox/Common/vtkOverrideInformation.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkOverrideInformation.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/ 00030 #ifndef __vtkOverrideInformation_h 00031 #define __vtkOverrideInformation_h 00032 00033 #include "vtkObject.h" 00034 00035 class vtkObjectFactory; 00036 00037 class VTK_COMMON_EXPORT vtkOverrideInformation : public vtkObject 00038 { 00039 public: 00040 static vtkOverrideInformation* New(); 00041 vtkTypeRevisionMacro(vtkOverrideInformation,vtkObject); 00043 virtual void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 00049 const char* GetClassOverrideName() 00050 { 00051 return this->ClassOverrideName; 00052 } 00054 00056 00059 const char* GetClassOverrideWithName() 00060 { 00061 return this->ClassOverrideWithName; 00062 } 00064 00066 00068 const char* GetDescription() 00069 { 00070 return this->Description; 00071 } 00073 00075 00076 vtkObjectFactory* GetObjectFactory() 00077 { 00078 return this->ObjectFactory; 00079 } 00080 // Description: 00081 // Set the class override name 00082 vtkSetStringMacro(ClassOverrideName); 00083 // Set the class override with name 00084 vtkSetStringMacro(ClassOverrideWithName); 00085 // Set the description 00086 vtkSetStringMacro(Description); 00088 protected: 00089 virtual void SetObjectFactory(vtkObjectFactory*); 00090 00091 private: 00092 vtkOverrideInformation(); 00093 ~vtkOverrideInformation(); 00094 // allow the object factory to set the values in this 00095 // class, but only the object factory 00096 //BTX 00097 friend class vtkObjectFactory; 00098 //ETX 00099 00100 char* ClassOverrideName; 00101 char* ClassOverrideWithName; 00102 char* Description; 00103 vtkObjectFactory* ObjectFactory; 00104 private: 00105 vtkOverrideInformation(const vtkOverrideInformation&); // Not implemented. 00106 void operator=(const vtkOverrideInformation&); // Not implemented. 00107 }; 00108 00109 #endif