VTK
vtkInformationIntegerVectorKey.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInformationIntegerVectorKey.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 =========================================================================*/
22 #ifndef vtkInformationIntegerVectorKey_h
23 #define vtkInformationIntegerVectorKey_h
24 
25 #include "vtkCommonCoreModule.h" // For export macro
26 #include "vtkInformationKey.h"
27 
28 #include "vtkCommonInformationKeyManager.h" // Manage instances of this type.
29 
31 {
32 public:
34  void PrintSelf(ostream& os, vtkIndent indent);
35 
36  vtkInformationIntegerVectorKey(const char* name, const char* location,
37  int length=-1);
39 
41 
44  static vtkInformationIntegerVectorKey* MakeKey(const char* name, const char* location,
45  int length=-1)
46  {
48  }
50 
52 
55  void Set(vtkInformation* info, int* value, int length);
58  int Get(vtkInformation* info, int idx);
59  void Get(vtkInformation* info, int* value);
62 
66  virtual void ShallowCopy(vtkInformation* from, vtkInformation* to);
67 
69  virtual void Print(ostream& os, vtkInformation* info);
70 
71 protected:
72  // The required length of the vector value (-1 is no restriction).
74 
79 
80 private:
82  void operator=(const vtkInformationIntegerVectorKey&); // Not implemented.
83 };
84 
85 #endif
vtkCommonInformationKeyManager.h
VTKCOMMONCORE_EXPORT
#define VTKCOMMONCORE_EXPORT
Definition: vtkCommonCoreModule.h:15
vtkInformationIntegerVectorKey::Get
void Get(vtkInformation *info, int *value)
vtkInformationIntegerVectorKey::Print
virtual void Print(ostream &os, vtkInformation *info)
vtkInformationIntegerVectorKey::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::length
GLuint GLsizei GLsizei * length
Definition: vtkgl.h:11992
vtkInformationIntegerVectorKey::Get
int Get(vtkInformation *info, int idx)
vtkgl::name
GLuint const GLchar * name
Definition: vtkgl.h:11983
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkCommonCoreModule.h
vtkInformationIntegerVectorKey::Set
void Set(vtkInformation *info)
vtkInformationIntegerVectorKey::Length
int Length(vtkInformation *info)
vtkInformationIntegerVectorKey::Set
void Set(vtkInformation *info, int *value, int length)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkInformationIntegerVectorKey::GetWatchAddress
int * GetWatchAddress(vtkInformation *info)
vtkInformationIntegerVectorKey::Append
void Append(vtkInformation *info, int value)
vtkInformationIntegerVectorKey::vtkInformationIntegerVectorKey
vtkInformationIntegerVectorKey(const char *name, const char *location, int length=-1)
vtkInformationIntegerVectorKey::MakeKey
static vtkInformationIntegerVectorKey * MakeKey(const char *name, const char *location, int length=-1)
Definition: vtkInformationIntegerVectorKey.h:44
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkInformationIntegerVectorKey::Get
int * Get(vtkInformation *info)
vtkgl::location
GLint location
Definition: vtkgl.h:12002
vtkInformationIntegerVectorKey
Key for integer vector values.
Definition: vtkInformationIntegerVectorKey.h:31
vtkInformationKey.h
vtkInformationIntegerVectorKey::~vtkInformationIntegerVectorKey
~vtkInformationIntegerVectorKey()
vtkInformationIntegerVectorKey::RequiredLength
int RequiredLength
Definition: vtkInformationIntegerVectorKey.h:73
vtkInformationKey
Superclass for vtkInformation keys.
Definition: vtkInformationKey.h:38
vtkInformationIntegerVectorKey::ShallowCopy
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)