VTK  9.0.1
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 =========================================================================*/
24 #ifndef vtkOverrideInformation_h
25 #define vtkOverrideInformation_h
26 
27 #include "vtkCommonCoreModule.h" // For export macro
28 #include "vtkObject.h"
29 
30 class vtkObjectFactory;
31 
32 class VTKCOMMONCORE_EXPORT vtkOverrideInformation : public vtkObject
33 {
34 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
47  const char* GetClassOverrideName() { return this->ClassOverrideName; }
48 
54  const char* GetClassOverrideWithName() { return this->ClassOverrideWithName; }
55 
60  const char* GetDescription() { return this->Description; }
61 
65  vtkObjectFactory* GetObjectFactory() { return this->ObjectFactory; }
66 
68 
71  vtkSetStringMacro(ClassOverrideName);
72 
76  vtkSetStringMacro(ClassOverrideWithName);
77 
81  vtkSetStringMacro(Description);
83 
84 protected:
86 
87 private:
89  ~vtkOverrideInformation() override;
90  // allow the object factory to set the values in this
91  // class, but only the object factory
92 
93  friend class vtkObjectFactory;
94 
95  char* ClassOverrideName;
96  char* ClassOverrideWithName;
97  char* Description;
98  vtkObjectFactory* ObjectFactory;
99 
100 private:
102  void operator=(const vtkOverrideInformation&) = delete;
103 };
104 
105 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract base class for vtkObjectFactories
abstract base class for most VTK objects
Definition: vtkObject.h:63
Factory object override information.
const char * GetClassOverrideWithName()
Returns the name of the class that will override the class.
virtual void SetObjectFactory(vtkObjectFactory *)
const char * GetDescription()
Return a human readable or GUI displayable description of this override.
vtkObjectFactory * GetObjectFactory()
Return the specific object factory that this override occurs in.
static vtkOverrideInformation * New()
const char * GetClassOverrideName()
Returns the name of the class being overridden.
void PrintSelf(ostream &os, vtkIndent indent) override
Print ObjectFactor to stream.