VTK
vtkInformationVariantVectorKey.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInformationVariantVectorKey.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 vtkInformationVariantVectorKey_h
26 #define vtkInformationVariantVectorKey_h
27 
28 #include "vtkCommonCoreModule.h" // For export macro
29 #include "vtkInformationKey.h"
30 
31 #include "vtkCommonInformationKeyManager.h" // Manage instances of this type.
32 
33 class vtkVariant;
34 
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
41  vtkInformationVariantVectorKey(const char* name, const char* location,
42  int length=-1);
44 
46 
49  static vtkInformationVariantVectorKey* MakeKey(const char* name, const char* location,
50  int length=-1)
51  {
53  }
55 
57 
62  const vtkVariant& Get(vtkInformation* info, int idx) const;
64  int Length(vtkInformation* info) const;
66 
70  virtual void ShallowCopy(vtkInformation* from, vtkInformation* to);
71 
73  virtual void Print(ostream& os, vtkInformation* info);
74 
75 protected:
76  // The required length of the vector value (-1 is no restriction).
78 
79 private:
81  void operator=(const vtkInformationVariantVectorKey&); // Not implemented.
82 };
83 
84 #endif
vtkCommonInformationKeyManager.h
VTKCOMMONCORE_EXPORT
#define VTKCOMMONCORE_EXPORT
Definition: vtkCommonCoreModule.h:15
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkInformationVariantVectorKey::Get
const vtkVariant * Get(vtkInformation *info) const
vtkInformationVariantVectorKey::Print
virtual void Print(ostream &os, vtkInformation *info)
vtkInformationVariantVectorKey::Get
void Get(vtkInformation *info, vtkVariant *value) const
vtkInformationVariantVectorKey::Append
void Append(vtkInformation *info, const vtkVariant &value)
vtkgl::length
GLuint GLsizei GLsizei * length
Definition: vtkgl.h:11992
vtkgl::name
GLuint const GLchar * name
Definition: vtkgl.h:11983
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkCommonCoreModule.h
vtkInformationVariantVectorKey::vtkInformationVariantVectorKey
vtkInformationVariantVectorKey(const char *name, const char *location, int length=-1)
vtkInformationVariantVectorKey::Set
void Set(vtkInformation *info, const vtkVariant *value, int length)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkInformationVariantVectorKey
Key for variant vector values.
Definition: vtkInformationVariantVectorKey.h:36
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:79
vtkInformationVariantVectorKey::ShallowCopy
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)
vtkInformationVariantVectorKey::Length
int Length(vtkInformation *info) const
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkInformationVariantVectorKey::Get
const vtkVariant & Get(vtkInformation *info, int idx) const
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkInformationVariantVectorKey::MakeKey
static vtkInformationVariantVectorKey * MakeKey(const char *name, const char *location, int length=-1)
Definition: vtkInformationVariantVectorKey.h:49
vtkInformationVariantVectorKey::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkgl::location
GLint location
Definition: vtkgl.h:12002
vtkInformationKey.h
vtkInformationKey
Superclass for vtkInformation keys.
Definition: vtkInformationKey.h:38
vtkInformationVariantVectorKey::RequiredLength
int RequiredLength
Definition: vtkInformationVariantVectorKey.h:77
vtkInformationVariantVectorKey::~vtkInformationVariantVectorKey
~vtkInformationVariantVectorKey()