VTK
9.2.6
Common
Core
vtkInformationDoubleVectorKey.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkInformationDoubleVectorKey.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
=========================================================================*/
45
#ifndef vtkInformationDoubleVectorKey_h
46
#define vtkInformationDoubleVectorKey_h
47
48
#include "vtkCommonCoreModule.h"
// For export macro
49
#include "
vtkInformationKey.h
"
50
51
#include "
vtkCommonInformationKeyManager.h
"
// Manage instances of this type.
52
53
class
VTKCOMMONCORE_EXPORT
vtkInformationDoubleVectorKey
:
public
vtkInformationKey
54
{
55
public
:
56
vtkTypeMacro(
vtkInformationDoubleVectorKey
,
vtkInformationKey
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
58
59
vtkInformationDoubleVectorKey
(
const
char
*
name
,
const
char
*
location
,
int
length
= -1);
60
~vtkInformationDoubleVectorKey
()
override
;
61
67
static
VTK_NEWINSTANCE
vtkInformationDoubleVectorKey
*
MakeKey
(
68
const
char
*
name
,
const
char
*
location
,
int
length
= -1)
69
{
70
return
new
vtkInformationDoubleVectorKey
(
name
,
location
,
length
);
71
}
72
74
78
void
Append
(
vtkInformation
*
info
,
double
value
);
79
void
Set
(
vtkInformation
*
info
,
const
double
*
value
,
int
length
);
80
double
*
Get
(
vtkInformation
*
info
);
81
double
Get
(
vtkInformation
*
info
,
int
idx);
82
void
Get
(
vtkInformation
*
info
,
double
*
value
);
83
int
Length
(
vtkInformation
*
info
);
85
91
void
ShallowCopy
(
vtkInformation
* from,
vtkInformation
* to)
override
;
92
96
void
Print
(ostream& os,
vtkInformation
*
info
)
override
;
97
98
protected
:
99
// The required length of the vector value (-1 is no restriction).
100
int
RequiredLength
;
101
102
private
:
103
vtkInformationDoubleVectorKey
(
const
vtkInformationDoubleVectorKey
&) =
delete
;
104
void
operator=(
const
vtkInformationDoubleVectorKey
&) =
delete
;
105
};
106
107
#endif
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:119
vtkInformationDoubleVectorKey
Key for double vector values.
Definition:
vtkInformationDoubleVectorKey.h:54
vtkInformationDoubleVectorKey::~vtkInformationDoubleVectorKey
~vtkInformationDoubleVectorKey() override
vtkInformationDoubleVectorKey::Set
void Set(vtkInformation *info, const double *value, int length)
Get/Set the value associated with this key in the given information object.
vtkInformationDoubleVectorKey::vtkInformationDoubleVectorKey
vtkInformationDoubleVectorKey(const char *name, const char *location, int length=-1)
vtkInformationDoubleVectorKey::Get
double Get(vtkInformation *info, int idx)
Get/Set the value associated with this key in the given information object.
vtkInformationDoubleVectorKey::ShallowCopy
void ShallowCopy(vtkInformation *from, vtkInformation *to) override
Copy the entry associated with this key from one information object to another.
vtkInformationDoubleVectorKey::Length
int Length(vtkInformation *info)
Get/Set the value associated with this key in the given information object.
vtkInformationDoubleVectorKey::RequiredLength
int RequiredLength
Definition:
vtkInformationDoubleVectorKey.h:100
vtkInformationDoubleVectorKey::Get
void Get(vtkInformation *info, double *value)
Get/Set the value associated with this key in the given information object.
vtkInformationDoubleVectorKey::Append
void Append(vtkInformation *info, double value)
Get/Set the value associated with this key in the given information object.
vtkInformationDoubleVectorKey::Get
double * Get(vtkInformation *info)
Get/Set the value associated with this key in the given information object.
vtkInformationDoubleVectorKey::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationDoubleVectorKey::MakeKey
static vtkInformationDoubleVectorKey * MakeKey(const char *name, const char *location, int length=-1)
This method simply returns a new vtkInformationDoubleVectorKey, given a name, a location and a requir...
Definition:
vtkInformationDoubleVectorKey.h:67
vtkInformationDoubleVectorKey::Print
void Print(ostream &os, vtkInformation *info) override
Print the key's value in an information object to a stream.
vtkInformationKey
Superclass for vtkInformation keys.
Definition:
vtkInformationKey.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:183
vtkX3D::location
@ location
Definition:
vtkX3D.h:412
vtkX3D::info
@ info
Definition:
vtkX3D.h:382
vtkX3D::length
@ length
Definition:
vtkX3D.h:399
vtkX3D::value
@ value
Definition:
vtkX3D.h:226
vtkX3D::name
@ name
Definition:
vtkX3D.h:225
vtkCommonInformationKeyManager.h
vtkInformationKey.h
VTK_NEWINSTANCE
#define VTK_NEWINSTANCE
Definition:
vtkWrappingHints.h:44
Generated on Tue Feb 14 2023 06:31:37 for VTK by
1.9.1