VTK
vtkOverrideInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOverrideInformation.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 __vtkOverrideInformation_h
27 #define __vtkOverrideInformation_h
28 
29 #include "vtkObject.h"
30 
31 class vtkObjectFactory;
32 
34 {
35 public:
36  static vtkOverrideInformation* New();
39  virtual void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
45  const char* GetClassOverrideName()
46  {
47  return this->ClassOverrideName;
48  }
50 
52 
56  {
57  return this->ClassOverrideWithName;
58  }
60 
62 
64  const char* GetDescription()
65  {
66  return this->Description;
67  }
69 
71 
73  {
74  return this->ObjectFactory;
75  }
76  // Description:
77  // Set the class override name
78  vtkSetStringMacro(ClassOverrideName);
79  // Set the class override with name
80  vtkSetStringMacro(ClassOverrideWithName);
81  // Set the description
82  vtkSetStringMacro(Description);
83 protected:
84  virtual void SetObjectFactory(vtkObjectFactory*);
86 
87 private:
90  // allow the object factory to set the values in this
91  // class, but only the object factory
92 //BTX
93  friend class vtkObjectFactory;
94 //ETX
95 
96  char* ClassOverrideName;
97  char* ClassOverrideWithName;
98  char* Description;
99  vtkObjectFactory* ObjectFactory;
100 private:
101  vtkOverrideInformation(const vtkOverrideInformation&); // Not implemented.
102  void operator=(const vtkOverrideInformation&); // Not implemented.
103 };
104 
105 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:60
const char * GetClassOverrideWithName()
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_COMMON_EXPORT
vtkObjectFactory * GetObjectFactory()
abstract base class for vtkObjectFactories
Factory object override information.
static vtkObject * New()