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 =========================================================================*/
27 #ifndef vtkOverrideInformation_h
28 #define vtkOverrideInformation_h
29 
30 #include "vtkCommonCoreModule.h" // For export macro
31 #include "vtkObject.h"
32 
33 class vtkObjectFactory;
34 
35 class VTKCOMMONCORE_EXPORT vtkOverrideInformation : public vtkObject
36 {
37 public:
38  static vtkOverrideInformation* New();
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 
50  const char* GetClassOverrideName()
51  {
52  return this->ClassOverrideName;
53  }
54 
61  {
62  return this->ClassOverrideWithName;
63  }
64 
69  const char* GetDescription()
70  {
71  return this->Description;
72  }
73 
78  {
79  return this->ObjectFactory;
80  }
81 
83 
86  vtkSetStringMacro(ClassOverrideName);
87 
91  vtkSetStringMacro(ClassOverrideWithName);
92 
96  vtkSetStringMacro(Description);
98 
99 protected:
100  virtual void SetObjectFactory(vtkObjectFactory*);
101 
102 private:
104  ~vtkOverrideInformation() VTK_OVERRIDE;
105  // allow the object factory to set the values in this
106  // class, but only the object factory
107 
108  friend class vtkObjectFactory;
109 
110  char* ClassOverrideName;
111  char* ClassOverrideWithName;
112  char* Description;
113  vtkObjectFactory* ObjectFactory;
114 private:
115  vtkOverrideInformation(const vtkOverrideInformation&) VTK_DELETE_FUNCTION;
116  void operator=(const vtkOverrideInformation&) VTK_DELETE_FUNCTION;
117 };
118 
119 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetClassOverrideWithName()
Returns the name of the class that will override the class.
const char * GetDescription()
Return a human readable or GUI displayable description of this override.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkObjectFactory * GetObjectFactory()
Return the specific object factory that this override occurs in.
abstract base class for vtkObjectFactories
Factory object override information.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
const char * GetClassOverrideName()
Returns the name of the class being overriden.