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 
61  void Resize(vtkInformation* info, int n);
66  int Length(vtkInformation* info){ return this->Size(info); }
83  int from,
84  int to,
85  int n);
86 
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 
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
vtkInformationQuadratureSchemeDefinitionVectorKey::SetRange
void SetRange(vtkInformation *info, vtkQuadratureSchemeDefinition **source, int from, int to, int n)
Copy n values from the range in source defined by [from from+n-1] into the range in this vector defin...
vtkInformationQuadratureSchemeDefinitionVectorKey::RestoreState
int RestoreState(vtkInformation *info, vtkXMLDataElement *element)
Load key/value pairs from an XML state representation created with SaveState.
vtkX3D::value
@ value
Definition: vtkX3D.h:220
vtkInformationQuadratureSchemeDefinitionVectorKey::GetRange
void GetRange(vtkInformation *info, vtkQuadratureSchemeDefinition **dest, int from, int to, int n)
Copy n values from the range in this vector defined by [from from+n-1] into the range in the destinat...
vtkInformationQuadratureSchemeDefinitionVectorKey::SaveState
int SaveState(vtkInformation *info, vtkXMLDataElement *element)
Generate an XML representation of the object.
vtkInformationQuadratureSchemeDefinitionVectorKey::Length
int Length(vtkInformation *info)
Definition: vtkInformationQuadratureSchemeDefinitionVectorKey.h:66
vtkInformationQuadratureSchemeDefinitionVectorKey::DeepCopy
void DeepCopy(vtkInformation *from, vtkInformation *to) override
Duplicate (new instance created) the entry associated with this key from one information object to an...
vtkInformationQuadratureSchemeDefinitionVectorKey::Set
void Set(vtkInformation *info, vtkQuadratureSchemeDefinition *value, int i)
Set element i of the vector to value.
vtkInformationQuadratureSchemeDefinitionVectorKey::Resize
void Resize(vtkInformation *info, int n)
Resize (extend) the vector to hold n objects.
vtkQuadratureSchemeDefinition
Definition: vtkQuadratureSchemeDefinition.h:46
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:825
vtkInformationQuadratureSchemeDefinitionVectorKey::vtkInformationQuadratureSchemeDefinitionVectorKey
vtkInformationQuadratureSchemeDefinitionVectorKey(const char *name, const char *location)
The name of the static instance and the class in which it is defined(location) should be passed to th...
vtkInformationQuadratureSchemeDefinitionVectorKey::Print
void Print(ostream &os, vtkInformation *info) override
Print the key's value in an information object to a stream.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition: vtkXMLDataElement.h:37
vtkInformationQuadratureSchemeDefinitionVectorKey::~vtkInformationQuadratureSchemeDefinitionVectorKey
~vtkInformationQuadratureSchemeDefinitionVectorKey() override
vtkInformationQuadratureSchemeDefinitionVectorKey::Append
void Append(vtkInformation *info, vtkQuadratureSchemeDefinition *value)
Put the value on the back of the vector, with reference counting.
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::location
@ location
Definition: vtkX3D.h:406
vtkInformationQuadratureSchemeDefinitionVectorKey::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationKey.h
vtkInformationQuadratureSchemeDefinitionVectorKey::Clear
void Clear(vtkInformation *info)
Clear the vector.
vtkInformationQuadratureSchemeDefinitionVectorKey
Key for vtkQuadratureSchemeDefinition vector values.
Definition: vtkInformationQuadratureSchemeDefinitionVectorKey.h:37
vtkInformationKey
Superclass for vtkInformation keys.
Definition: vtkInformationKey.h:42
vtkInformationQuadratureSchemeDefinitionVectorKey::Get
vtkQuadratureSchemeDefinition * Get(vtkInformation *info, int idx)
Get the vtkQuadratureSchemeDefinition at a specific location in the vector.
vtkInformationQuadratureSchemeDefinitionVectorKey::ShallowCopy
void ShallowCopy(vtkInformation *from, vtkInformation *to) override
Copy the entry associated with this key from one information object to another.
vtkInformationQuadratureSchemeDefinitionVectorKey::Size
int Size(vtkInformation *info)
Get the vector's length.