vtk
Class vtkIdTypeArray

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkDataArray
              extended byvtk.vtkIdTypeArray
All Implemented Interfaces:
java.io.Serializable

public class vtkIdTypeArray
extends vtkDataArray
implements java.io.Serializable

vtkIdTypeArray - dynamic, self-adjusting integer array. vtkIdTypeArray is an array of integer numbers. It provides methods for insertion and retrieval of integer values, and will automatically resize itself to hold new data. JavaBean wrapper for vtkIdTypeArray object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkIdTypeArray()
           
protected vtkIdTypeArray(int dmy)
           
 
Method Summary
 int allocate(int id0, int id1)
          Allocate memory for this array.
 void deepCopy(vtkDataArray id0)
          Deep copy of another integer array.
 java.lang.String getClassName()
          Return the class name as a string.
 int getDataType()
          Return the size of the data type.
 int getDataTypeSize()
          Resize object to just fit data requirement.
 vtkIdTypeArray getThisIdTypeArray()
           
 int getValue(int id0)
          Set the data at a particular index.
 void initialize()
          Release storage and reset array to initial state.
 int insertNextValue(int id0)
          Insert data at the end of the array.
 void insertValue(int id0, int id1)
          Insert data at a specified position in the array.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void resize(int id0)
          Resize the array while conserving the data.
 void setNumberOfTuples(int id0)
          Set the number of n-tuples in the array.
 void setNumberOfValues(int id0)
          Specify the number of values for this object to hold.
 void setValue(int id0, int id1)
          Specify the number of values for this object to hold.
 void squeeze()
          Resize the array while conserving the data.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkDataArray
computeRange, copyComponent, createDataArray, createDefaultLookupTable, fillComponent, getActualMemorySize, getComponent, getData, getDataTypeMax, getDataTypeMin, getDataTypeRange, getLookupTable, getMaxId, getMaxNorm, getName, getNumberOfComponents, getNumberOfComponentsMaxValue, getNumberOfComponentsMinValue, getNumberOfTuples, getRange, getRange, getRange, getRange, getSize, getThisDataArray, getTuple1, getTuple2, getTuple3, getTuple4, getTuple9, getTuples, getTuples, insertComponent, insertNextTuple1, insertNextTuple2, insertNextTuple3, insertNextTuple4, insertNextTuple9, insertTuple1, insertTuple2, insertTuple3, insertTuple4, insertTuple9, reset, setComponent, setLookupTable, setName, setNumberOfComponents, setTuple1, setTuple2, setTuple3, setTuple4, setTuple9
 
Methods inherited from class vtk.vtkObject
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getMTime, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay, unRegister
 
Methods inherited from class vtk.vtkObjectBase
addPropertyChangeListener, finalize, getReferenceCount, getThisObjectBase, isTypeOf, removePropertyChangeListener, setReferenceCount, VTKDelete
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changes

protected java.beans.PropertyChangeSupport changes
Constructor Detail

vtkIdTypeArray

public vtkIdTypeArray()

vtkIdTypeArray

protected vtkIdTypeArray(int dmy)
Method Detail

getThisIdTypeArray

public vtkIdTypeArray getThisIdTypeArray()

getClassName

public java.lang.String getClassName()
Description copied from class: vtkObjectBase
Return the class name as a string. This method is defined in all subclasses of vtkObjectBase with the vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
getClassName in class vtkDataArray

isA

public int isA(java.lang.String id0)
Description copied from class: vtkObjectBase
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
isA in class vtkDataArray

allocate

public int allocate(int id0,
                    int id1)
Allocate memory for this array. Delete old storage only if necessary. Note that ext is no longer used.

Overrides:
allocate in class vtkDataArray

initialize

public void initialize()
Release storage and reset array to initial state.

Overrides:
initialize in class vtkDataArray

getDataType

public int getDataType()
Return the size of the data type.

Overrides:
getDataType in class vtkDataArray

getDataTypeSize

public int getDataTypeSize()
Resize object to just fit data requirement. Reclaims extra memory.

Overrides:
getDataTypeSize in class vtkDataArray

squeeze

public void squeeze()
Resize the array while conserving the data.

Overrides:
squeeze in class vtkDataArray

resize

public void resize(int id0)
Resize the array while conserving the data.

Overrides:
resize in class vtkDataArray

setNumberOfTuples

public void setNumberOfTuples(int id0)
Set the number of n-tuples in the array.

Overrides:
setNumberOfTuples in class vtkDataArray

getValue

public int getValue(int id0)
Set the data at a particular index. Does not do range checking. Make sure you use the method SetNumberOfValues() before inserting data.


setValue

public void setValue(int id0,
                     int id1)
Specify the number of values for this object to hold. Does an allocation as well as setting the MaxId ivar. Used in conjunction with SetValue() method for fast insertion.


setNumberOfValues

public void setNumberOfValues(int id0)
Specify the number of values for this object to hold. Does an allocation as well as setting the MaxId ivar. Used in conjunction with SetValue() method for fast insertion.


insertValue

public void insertValue(int id0,
                        int id1)
Insert data at a specified position in the array.


insertNextValue

public int insertNextValue(int id0)
Insert data at the end of the array. Return its location in the array.


deepCopy

public void deepCopy(vtkDataArray id0)
Deep copy of another integer array.

Overrides:
deepCopy in class vtkDataArray

VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkDataArray


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.