VTK  9.1.0
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 "vtkCommonInformationKeyManager.h" // Manage instances of this type.
30#include "vtkInformationKey.h"
31
32class vtkInformationQuadratureSchemeDefinitionVectorValue;
35
37 : public vtkInformationKey
38{
39public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
43
48 //
51
60 void Resize(vtkInformation* info, int n);
65 int Length(vtkInformation* info) { return this->Size(info); }
81 vtkInformation* info, vtkQuadratureSchemeDefinition** source, int from, int to, int n);
82
89 vtkInformation* info, vtkQuadratureSchemeDefinition** dest, int from, int to, int n);
90
95
96 // _escription:
97 // Get a pointer to the first vtkQuadratureSchemeDefinition in the vector. We are
98 // uysing a vector of smart pointers so this is not easy to
99 // implement.
100 // vtkQuadratureSchemeDefinition **Get(vtkInformation* info);
101
103
108 void ShallowCopy(vtkInformation* from, vtkInformation* to) override;
109 void DeepCopy(vtkInformation* from, vtkInformation* to) override;
111
115 void Print(ostream& os, vtkInformation* info) override;
116
117 // note: I had wanted to make the following interface in vtkInformationKey
118 // with a default implementation that did nothing. but we decided that
119 // vtkInformationKey class is too important a class to add such an interface
120 // without a thorough design review. we don't have budget for such a review.
121
133
134private:
139 void CreateQuadratureSchemeDefinition();
145 vtkInformationQuadratureSchemeDefinitionVectorValue* GetQuadratureSchemeDefinitionVector(
147
148 //
151 void operator=(const vtkInformationQuadratureSchemeDefinitionVectorKey&) = delete;
152};
153
154#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
Superclass for vtkInformation keys.
void Append(vtkInformation *info, vtkQuadratureSchemeDefinition *value)
Put the value on the back of the vector, with reference counting.
void Print(ostream &os, vtkInformation *info) override
Print the key's value in an information object to a stream.
vtkQuadratureSchemeDefinition * Get(vtkInformation *info, int idx)
Get the vtkQuadratureSchemeDefinition at a specific location in the vector.
void Set(vtkInformation *info, vtkQuadratureSchemeDefinition *value, int i)
Set element i of the vector to value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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...
void ShallowCopy(vtkInformation *from, vtkInformation *to) override
Copy the entry associated with this key from one information object to another.
int RestoreState(vtkInformation *info, vtkXMLDataElement *element)
Load key/value pairs from an XML state representation created with SaveState.
int SaveState(vtkInformation *info, vtkXMLDataElement *element)
Generate an XML representation of the object.
void Clear(vtkInformation *info)
Clear the vector.
int Size(vtkInformation *info)
Get the vector's length.
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...
void DeepCopy(vtkInformation *from, vtkInformation *to) override
Copy the entry associated with this key from one information object to another.
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() override
The name of the static instance and the class in which it is defined(location) should be passed to th...
void Resize(vtkInformation *info, int n)
Resize (extend) the vector to hold n objects.
Store vtkAlgorithm input/output information.
An Elemental data type that holds a definition of a numerical quadrature scheme.
Represents an XML element and those nested inside.
@ location
Definition: vtkX3D.h:412
@ info
Definition: vtkX3D.h:382
@ value
Definition: vtkX3D.h:226
@ name
Definition: vtkX3D.h:225
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)