1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
Usage
vtkVoidArray is an array of pointers to void. It provides
methods for insertion and retrieval of these pointers
values, and will automatically resize itself to hold new
data.
To create an instance of class vtkVoidArray, simply invoke
its constructor as follows
obj = vtkVoidArray
Methods
The class vtkVoidArray has several methods that can be used.
They are listed below. Note that the documentation is
translated automatically from the VTK sources, and may not
be completely intelligible. When in doubt, consult the VTK
website. In the methods listed below, obj is an instance of
the vtkVoidArray class.
* string = obj.GetClassName ()
* int = obj.IsA (string name)
* vtkVoidArray = obj.NewInstance ()
* vtkVoidArray = obj.SafeDownCast (vtkObject o)
* int = obj.Allocate (vtkIdType sz, vtkIdType ext) -
Allocate memory for this array. Delete old storage only if
necessary. Note that the parameter ext is no longer used.
* obj.Initialize () - Release storage and reset array to
initial state.
* int = obj.GetDataType () - Return the size of the data
contained in the array.
* int = obj.GetDataTypeSize () - Set the number of void*
pointers held in the array.
* obj.SetNumberOfPointers (vtkIdType number) - Get the
number of void* pointers held in the array.
* vtkIdType = obj.GetNumberOfPointers () - Get the void*
pointer at the ith location.
* obj.Reset () - Resize the array to just fit the inserted
memory. Reclaims extra memory.
* obj.Squeeze () - Get the address of a particular data
index. Performs no checks to verify that the memory has
been allocated etc.
* obj.DeepCopy (vtkVoidArray va) - Deep copy of another void
array.
* FreeMat_Documentation
* Visualization_Toolkit_Common_Classes
* Generated on Thu Jul 25 2013 17:18:30 for FreeMat by
doxygen_ 1.8.1.1
|