vtk
Class vtkCharArray

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

public class vtkCharArray
extends vtkDataArray
implements java.io.Serializable

vtkCharArray - dynamic, self-adjusting array of char. vtkCharArray is an array of values of type char. It provides methods for insertion and retrieval of values and will automatically resize itself to hold new data. JavaBean wrapper for vtkCharArray 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
  vtkCharArray()
           
protected vtkCharArray(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 int getDataType()
          Get the data at a particular index.
 java.lang.String getPointer(int id0)
          This method lets the user specify data to be held by the array.
 vtkCharArray getThisCharArray()
           
 char getValue(int id0)
          Set the data at a particular index.
 int insertNextValue(char id0)
          Get the address of a particular data index.
 void insertValue(int id0, char id1)
          Insert data at the end of 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 setArray(java.lang.String id0, int id1, int id2)
           
 void setNumberOfValues(int id0)
          Insert data at a specified position in the array.
 void setValue(int id0, char id1)
          Specify the number of values for this object to hold.
protected  void VTKCastInit()
           
 void VTKInit()
           
 java.lang.String writePointer(int id0, int id1)
          Get the address of a particular data index.
 
Methods inherited from class vtk.vtkDataArray
allocate, computeRange, copyComponent, createDataArray, createDefaultLookupTable, deepCopy, fillComponent, getActualMemorySize, getComponent, getData, getDataTypeMax, getDataTypeMin, getDataTypeRange, getDataTypeSize, getLookupTable, getMaxId, getMaxNorm, getName, getNumberOfComponents, getNumberOfComponentsMaxValue, getNumberOfComponentsMinValue, getNumberOfTuples, getRange, getRange, getRange, getRange, getSize, getThisDataArray, getTuple1, getTuple2, getTuple3, getTuple4, getTuple9, getTuples, getTuples, initialize, insertComponent, insertNextTuple1, insertNextTuple2, insertNextTuple3, insertNextTuple4, insertNextTuple9, insertTuple1, insertTuple2, insertTuple3, insertTuple4, insertTuple9, reset, resize, setComponent, setLookupTable, setName, setNumberOfComponents, setNumberOfTuples, setTuple1, setTuple2, setTuple3, setTuple4, setTuple9, squeeze
 
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

vtkCharArray

public vtkCharArray()

vtkCharArray

protected vtkCharArray(int dmy)
Method Detail

getThisCharArray

public vtkCharArray getThisCharArray()

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

getDataType

public int getDataType()
Get the data at a particular index.

Overrides:
getDataType in class vtkDataArray

getValue

public char 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,
                     char 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)
Insert data at a specified position in the array.


insertValue

public void insertValue(int id0,
                        char id1)
Insert data at the end of the array. Return its location in the array.


insertNextValue

public int insertNextValue(char id0)
Get the address of a particular data index. Make sure data is allocated for the number of items requested. Set MaxId according to the number of data values requested.


writePointer

public java.lang.String writePointer(int id0,
                                     int id1)
Get the address of a particular data index. Performs no checks to verify that the memory has been allocated etc.


getPointer

public java.lang.String getPointer(int id0)
This method lets the user specify data to be held by the array. The array argument is a pointer to the data. size is the size of the array supplied by the user. Set save to 1 to keep the class from deleting the array when it cleans up or reallocates memory. The class uses the actual array provided; it does not copy the data from the suppled array.


setArray

public void setArray(java.lang.String id0,
                     int id1,
                     int id2)

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.