Section: Visualization Toolkit Common Classes
To create an instance of class vtkInformationObjectBaseVectorKey, simply invoke its constructor as follows
obj = vtkInformationObjectBaseVectorKey
obj
is an instance of the vtkInformationObjectBaseVectorKey class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkInformationObjectBaseVectorKey = obj.NewInstance ()
vtkInformationObjectBaseVectorKey = obj.SafeDownCast (vtkObject o)
vtkInformationObjectBaseVectorKey = obj.(string name, string location, string requiredClass)
- The name of the static instance and the class in which
it is defined(location) should be passed to the constructor.
Providing "requiredClass" name one can insure that only
objects of type "requiredClass" are stored in vectors
associated with the instance of this key type created.
These should be string literals as they are not coppied.
~vtkInformationObjectBaseVectorKey = obj.()
- The name of the static instance and the class in which
it is defined(location) should be passed to the constructor.
Providing "requiredClass" name one can insure that only
objects of type "requiredClass" are stored in vectors
associated with the instance of this key type created.
These should be string literals as they are not coppied.
obj.Clear (vtkInformation info)
- Clear the vector.
obj.Resize (vtkInformation info, int n)
- Resize (extend) the vector to hold n objects. Any new elements
created will be null initialized.
int = obj.Size (vtkInformation info)
- Get the vector's length.
int = obj.Length (vtkInformation info)
- Put the value on the back of the vector, with ref counting.
obj.Append (vtkInformation info, vtkObjectBase value)
- Put the value on the back of the vector, with ref counting.
obj.Set (vtkInformation info, vtkObjectBase value, int i)
- Set element i of the vector to value. Resizes the vector
if needed.
vtkObjectBase = obj.Get (vtkInformation info, int idx)
- Get the vtkObjectBase at a specific location in the vector.
obj.ShallowCopy (vtkInformation from, vtkInformation to)
- Copy the entry associated with this key from one information
object to another. If there is no entry in the first information
object for this key, the value is removed from the second.