vtk
Class vtkDoubleArray

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

public class vtkDoubleArray
extends vtkDataArray
implements java.io.Serializable

vtkDoubleArray - dynamic, self-adjusting array of double. vtkDoubleArray is an array of values of type double. It provides methods for insertion and retrieval of values and will automatically resize itself to hold new data. JavaBean wrapper for vtkDoubleArray 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
  vtkDoubleArray()
           
protected vtkDoubleArray(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 int getDataType()
          Get the data at a particular index.
 vtkDoubleArray getThisDoubleArray()
           
 double getValue(int id0)
          Set the data at a particular index.
 int insertNextValue(double id0)
          Get the address of a particular data index.
 void insertValue(int id0, double 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 setNumberOfValues(int id0)
          Insert data at a specified position in the array.
 void setValue(int id0, double id1)
          Specify the number of values for this object to hold.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
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

vtkDoubleArray

public vtkDoubleArray()

vtkDoubleArray

protected vtkDoubleArray(int dmy)
Method Detail

getThisDoubleArray

public vtkDoubleArray getThisDoubleArray()

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 double 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,
                     double 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,
                        double id1)
Insert data at the end of the array. Return its location in the array.


insertNextValue

public int insertNextValue(double 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.


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.