VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
Core
vtkInformationObjectBaseVectorKey.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkInformationObjectBaseVectorKey.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 __vtkInformationObjectBaseVectorKey_h
25
#define __vtkInformationObjectBaseVectorKey_h
26
27
#include "vtkCommonCoreModule.h"
// For export macro
28
#include "
vtkInformationKey.h
"
29
#include "
vtkCommonInformationKeyManager.h
"
// Manage instances of this type.
30
31
class
vtkInformationObjectBaseVectorValue;
32
33
class
VTKCOMMONCORE_EXPORT
vtkInformationObjectBaseVectorKey
:
public
vtkInformationKey
34
{
35
public
:
36
vtkTypeMacro(
vtkInformationObjectBaseVectorKey
,
vtkInformationKey
);
37
void
PrintSelf
(ostream& os,
vtkIndent
indent);
39
45
vtkInformationObjectBaseVectorKey
(
const
char
*
name
,
46
const
char
*
location
,
47
const
char
* requiredClass=0);
48
//
49
~
vtkInformationObjectBaseVectorKey
();
51
53
void
Clear(
vtkInformation
*
info
);
56
void
Resize(
vtkInformation
*
info
,
int
n);
58
59
int
Size(
vtkInformation
*
info
);
60
int
Length
(
vtkInformation
*
info
){
return
this->Size(info); }
62
63
void
Append(
vtkInformation
*
info
,
vtkObjectBase
*
value
);
65
void
Set(
vtkInformation
*
info
,
vtkObjectBase
*
value
,
int
i);
67
70
void
SetRange(
vtkInformation
*
info
,
71
vtkObjectBase
**
source
,
72
int
from,
73
int
to,
74
int
n);
76
78
81
void
GetRange(
vtkInformation
*
info
,
82
vtkObjectBase
**dest,
83
int
from,
84
int
to,
85
int
n);
87
89
vtkObjectBase
*Get(
vtkInformation
*
info
,
int
idx);
90
91
// _escription:
92
// Get a pointer to the first vtkObjectBase in the vector. We are
93
// uysing a vector of smart pointers so this is not easy to
94
// implement.
95
// vtkObjectBase **Get(vtkInformation* info);
96
100
virtual
void
ShallowCopy
(
vtkInformation
* from,
vtkInformation
* to);
101
103
virtual
void
Print
(ostream& os,
vtkInformation
*
info
);
104
105
protected
:
106
// The type required of all objects stored with this key.
107
const
char
*
RequiredClass
;
108
109
private
:
112
void
CreateObjectBase();
115
bool
ValidateDerivedType(
vtkInformation
*
info
,
vtkObjectBase
* aValue);
118
vtkInformationObjectBaseVectorValue *GetObjectBaseVector(
vtkInformation
*
info
);
119
120
//
121
vtkInformationObjectBaseVectorKey
(
const
vtkInformationObjectBaseVectorKey
&);
// Not implemented.
122
void
operator=(
const
vtkInformationObjectBaseVectorKey
&);
// Not implemented.
123
};
124
125
#endif
Generated on Thu May 24 2012 22:22:08 for VTK by
1.8.1