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 =========================================================================*/
24 #ifndef vtkInformationQuadratureSchemeDefinitionVectorKey_h
25 #define vtkInformationQuadratureSchemeDefinitionVectorKey_h
26 
27 #include "vtkCommonDataModelModule.h" // For export macro
28 #include "vtkInformationKey.h"
29 #include "vtkCommonInformationKeyManager.h" // Manage instances of this type.
30 
31 class vtkInformationQuadratureSchemeDefinitionVectorValue;
32 class vtkXMLDataElement;
34 
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent);
41 
44  const char* name,
45  const char* location);
46  //
49 
51  void Clear(vtkInformation* info);
54  void Resize(vtkInformation* info, int n);
56 
57  int Size(vtkInformation* info);
58  int Length(vtkInformation* info){ return this->Size(info); }
60 
65 
68  void SetRange(vtkInformation* info,
70  int from,
71  int to,
72  int n);
74 
76 
79  void GetRange(vtkInformation *info,
81  int from,
82  int to,
83  int n);
85 
89 
90  // _escription:
91  // Get a pointer to the first vtkQuadratureSchemeDefinition in the vector. We are
92  // uysing a vector of smart pointers so this is not easy to
93  // implement.
94  // vtkQuadratureSchemeDefinition **Get(vtkInformation* info);
95 
97 
100  virtual void ShallowCopy(vtkInformation* from, vtkInformation* to);
101  virtual void DeepCopy(vtkInformation* from, vtkInformation* to);
103 
105  virtual void Print(ostream& os, vtkInformation* info);
106 
107  // note: I had wanted to make the following interface in vtkInformationKey
108  // with a defualt implementation that did nothing. but we decided that
109  // vtkInformationKey class is too important a class to add such an interface
110  // without a thorough design review. we don't have budget for such a review.
111 
115  int SaveState(vtkInformation *info, vtkXMLDataElement *element);
118  int RestoreState(vtkInformation *info, vtkXMLDataElement *element);
119 
120 private:
123  void CreateQuadratureSchemeDefinition();
126  vtkInformationQuadratureSchemeDefinitionVectorValue *GetQuadratureSchemeDefinitionVector(vtkInformation *info);
127 
128  //
130  void operator=(const vtkInformationQuadratureSchemeDefinitionVectorKey&); // Not implemented.
131 };
132 
133 #endif
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)=0
Represents an XML element and those nested inside.
virtual void DeepCopy(vtkInformation *from, vtkInformation *to)
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent)
void Print(vtkInformation *info)
Superclass for vtkInformation keys.
a simple class to control print indentation
Definition: vtkIndent.h:38
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define VTKCOMMONDATAMODEL_EXPORT