VTK
vtkInformationQuadratureSchemeDefinitionVectorKey.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInformationQuadratureSchemeDefinitionVectorKey.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 =========================================================================*/
25 #ifndef vtkInformationQuadratureSchemeDefinitionVectorKey_h
26 #define vtkInformationQuadratureSchemeDefinitionVectorKey_h
27 
28 #include "vtkCommonDataModelModule.h" // For export macro
29 #include "vtkInformationKey.h"
30 #include "vtkCommonInformationKeyManager.h" // Manage instances of this type.
31 
32 class vtkInformationQuadratureSchemeDefinitionVectorValue;
33 class vtkXMLDataElement;
35 
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
47  const char* name,
48  const char* location);
49  //
52 
56  void Clear(vtkInformation* info);
61  void Resize(vtkInformation* info, int n);
65  int Size(vtkInformation* info);
66  int Length(vtkInformation* info){ return this->Size(info); }
81  void SetRange(vtkInformation* info,
83  int from,
84  int to,
85  int n);
86 
92  void GetRange(vtkInformation *info,
94  int from,
95  int to,
96  int n);
97 
102 
103  // _escription:
104  // Get a pointer to the first vtkQuadratureSchemeDefinition in the vector. We are
105  // uysing a vector of smart pointers so this is not easy to
106  // implement.
107  // vtkQuadratureSchemeDefinition **Get(vtkInformation* info);
108 
110 
115  void ShallowCopy(vtkInformation* from, vtkInformation* to) override;
116  void DeepCopy(vtkInformation* from, vtkInformation* to) override;
118 
122  void Print(ostream& os, vtkInformation* info) override;
123 
124  // note: I had wanted to make the following interface in vtkInformationKey
125  // with a default implementation that did nothing. but we decided that
126  // vtkInformationKey class is too important a class to add such an interface
127  // without a thorough design review. we don't have budget for such a review.
128 
134  int SaveState(vtkInformation *info, vtkXMLDataElement *element);
139  int RestoreState(vtkInformation *info, vtkXMLDataElement *element);
140 
141 private:
146  void CreateQuadratureSchemeDefinition();
152  vtkInformationQuadratureSchemeDefinitionVectorValue *GetQuadratureSchemeDefinitionVector(vtkInformation *info);
153 
154  //
156  void operator=(const vtkInformationQuadratureSchemeDefinitionVectorKey&) = delete;
157 };
158 
159 #endif
vtkCommonInformationKeyManager.h
vtkInformationKey::DeepCopy
virtual void DeepCopy(vtkInformation *from, vtkInformation *to)
Duplicate (new instance created) the entry associated with this key from one information object to an...
Definition: vtkInformationKey.h:94
vtkX3D::value
Definition: vtkX3D.h:220
vtkInformationQuadratureSchemeDefinitionVectorKey::Length
int Length(vtkInformation *info)
Definition: vtkInformationQuadratureSchemeDefinitionVectorKey.h:66
vtkQuadratureSchemeDefinition
Definition: vtkQuadratureSchemeDefinition.h:45
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:825
vtkInformationKey::Print
void Print(vtkInformation *info)
Print the key's value in an information object to a stream.
vtkInformationKey::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition: vtkXMLDataElement.h:36
vtkX3D::name
Definition: vtkX3D.h:219
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkX3D::location
Definition: vtkX3D.h:406
vtkInformationKey.h
vtkInformationQuadratureSchemeDefinitionVectorKey
Key for vtkQuadratureSchemeDefinition vector values.
Definition: vtkInformationQuadratureSchemeDefinitionVectorKey.h:36
vtkInformationKey
Superclass for vtkInformation keys.
Definition: vtkInformationKey.h:41
vtkInformationKey::ShallowCopy
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)=0
Copy the entry associated with this key from one information object to another.