VTK
9.2.6
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
=========================================================================*/
35
#ifndef vtkInformationDoubleVectorKey_h
36
#define vtkInformationDoubleVectorKey_h
37
38
#include "vtkCommonCoreModule.h"
// For export macro
39
#include "
vtkInformationKey.h
"
40
41
#include "
vtkCommonInformationKeyManager.h
"
// Manage instances of this type.
42
43
class
VTKCOMMONCORE_EXPORT
vtkInformationDoubleVectorKey
:
public
vtkInformationKey
44
{
45
public
:
46
vtkTypeMacro(
vtkInformationDoubleVectorKey
,
vtkInformationKey
);
47
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
48
49
vtkInformationDoubleVectorKey
(
const
char
* name,
const
char
* location,
int
length = -1);
50
~vtkInformationDoubleVectorKey
()
override
;
51
57
static
VTK_NEWINSTANCE
vtkInformationDoubleVectorKey
*
MakeKey
(
58
const
char
* name,
const
char
* location,
int
length = -1)
59
{
60
return
new
vtkInformationDoubleVectorKey
(name, location, length);
61
}
62
64
68
void
Append
(
vtkInformation
* info,
double
value);
69
void
Set
(
vtkInformation
* info,
const
double
* value,
int
length);
70
double
*
Get
(
vtkInformation
* info);
71
double
Get
(
vtkInformation
* info,
int
idx);
72
void
Get
(
vtkInformation
* info,
double
* value);
73
int
Length
(
vtkInformation
* info);
75
81
void
ShallowCopy
(
vtkInformation
* from,
vtkInformation
* to)
override
;
82
86
void
Print
(ostream& os,
vtkInformation
* info)
override
;
87
88
protected
:
89
// The required length of the vector value (-1 is no restriction).
90
int
RequiredLength
;
91
92
private
:
93
vtkInformationDoubleVectorKey
(
const
vtkInformationDoubleVectorKey
&) =
delete
;
94
void
operator=(
const
vtkInformationDoubleVectorKey
&) =
delete
;
95
};
96
97
#endif
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:49
vtkInformationDoubleVectorKey
Key for double vector values.
Definition
vtkInformationDoubleVectorKey.h:44
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::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:57
vtkInformationDoubleVectorKey::RequiredLength
int RequiredLength
Definition
vtkInformationDoubleVectorKey.h:90
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::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:83
vtkCommonInformationKeyManager.h
vtkInformationKey.h
VTK_NEWINSTANCE
#define VTK_NEWINSTANCE
Definition
vtkWrappingHints.h:44
Generated on Sat Nov 9 2024 00:00:00 for VTK by
1.9.7