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); }
75  void Set(vtkInformation* info, vtkQuadratureSchemeDefinition *value, int i);
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 
101  vtkQuadratureSchemeDefinition *Get(vtkInformation* info, int idx);
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
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)=0
Copy the entry associated with this key from one information object to another.
Represents an XML element and those nested inside.
virtual void DeepCopy(vtkInformation *from, vtkInformation *to)
Duplicate (new instance created) the entry associated with this key from one information object to an...
Store vtkAlgorithm input/output information.
An Elemental data type that holds a definition of a numerical quadrature scheme.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Print(vtkInformation *info)
Print the key's value in an information object to a stream.
Superclass for vtkInformation keys.
a simple class to control print indentation
Definition: vtkIndent.h:39
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)