|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vtk.vtkObjectBase vtk.vtkObject vtk.vtkFieldData
vtkFieldData - represent and manipulate fields of data. vtkFieldData represents and manipulates fields of data. The model of a field is a m x n matrix of data values, where m is the number of tuples, and n is the number of components. (A tuple is a row of n components in the matrix.) The field is assumed to be composed of a set of one or more data arrays, where the data in the arrays are of different types (e.g., int, double, char, etc.), and there may be variable numbers of components in each array. Note that each data array is assumed to be "m" in length (i.e., number of tuples), which typically corresponds to the number of points or cells in a dataset. Also, each data array must have a character-string name. (This is used to manipulate data.) There are two ways of manipulating and interfacing to fields. You can do it generically by manipulating components/tuples via a double-type data exchange, or you can do it by grabbing the arrays and manipulating them directly. The former is simpler but performs type conversion, which is bad if your data has non-castable types like (void) pointers, or you lose information as a result of the cast. The, more efficient method means managing each array in the field. Using this method you can create faster, more efficient algorithms that do not lose information. JavaBean wrapper for vtkFieldData object.
vtkDataArray
,
vtkAttribueData
,
vtkPointData
,
Serialized FormField Summary | |
protected java.beans.PropertyChangeSupport |
changes
|
Fields inherited from class vtk.vtkObjectBase |
vtkId |
Constructor Summary | |
|
vtkFieldData()
|
protected |
vtkFieldData(int dmy)
|
Method Summary | |
int |
addArray(vtkDataArray id0)
Add an array to the array list. |
int |
allocate(int id0,
int id1)
Allocate data for each array. |
void |
allocateArrays(int id0)
AllocateOfArrays actually sets the number of vtkDataArray pointers in the vtkFieldData object, not the number of used pointers (arrays). |
void |
copyAllOff()
Turn off copying of all data. |
void |
copyAllOn()
Turn on copying of all data. |
void |
copyFieldOff(java.lang.String id0)
Turn on copying of all data. |
void |
copyFieldOn(java.lang.String id0)
Turn on/off the copying of the field specified by name. |
void |
copyStructure(vtkFieldData id0)
Copy data array structure from a given field. |
void |
deepCopy(vtkFieldData id0)
Copy a field by creating new data arrays (i.e., duplicate storage). |
int |
getActualMemorySize()
Return the memory in kilobytes consumed by this field data. |
vtkDataArray |
getArray(int id0)
Return the ith array in the field. |
vtkDataArray |
getArray(java.lang.String id0)
|
java.lang.String |
getArrayName(int id0)
Pass entire arrays of input data through to output. |
java.lang.String |
getClassName()
Return the class name as a string. |
double |
getComponent(int id0,
int id1)
Get the component value at the ith tuple (or row) and jth component (or column). |
void |
getField(vtkIdList id0,
vtkFieldData id1)
Get a field from a list of ids. |
int |
getMTime()
Check object's components for modified times. |
int |
getNumberOfArrays()
Get the number of arrays of data available. |
int |
getNumberOfComponents()
Get the number of components in the field. |
int |
getNumberOfTuples()
Get the number of tuples in the field. |
vtkFieldData |
getThisFieldData()
|
void |
initialize()
Release all data but do not delete object. |
void |
insertComponent(int id0,
int id1,
double id2)
Insert the component value at the ith tuple (or row) and jth component (or column). |
int |
isA(java.lang.String id0)
Return 1 if this class is the same type of (or a subclass of) the named class. |
void |
passData(vtkFieldData id0)
Pass entire arrays of input data through to output. |
void |
removeArray(java.lang.String id0)
Return the ith array in the field. |
void |
reset()
Resets each data array in the field (Reset() does not release memory but it makes the arrays look like they are empty.) |
void |
setComponent(int id0,
int id1,
double id2)
Set the component value at the ith tuple (or row) and jth component (or column). |
void |
setNumberOfTuples(int id0)
Set the number of tuples for each data array in the field. |
void |
shallowCopy(vtkFieldData id0)
Copy a field by reference counting the data arrays. |
void |
squeeze()
Squeezes each data array in the field (Squeeze() reclaims unused memory.) |
protected void |
VTKCastInit()
|
void |
VTKInit()
|
Methods inherited from class vtk.vtkObject |
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, 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 |
protected java.beans.PropertyChangeSupport changes
Constructor Detail |
public vtkFieldData()
protected vtkFieldData(int dmy)
Method Detail |
public vtkFieldData getThisFieldData()
public java.lang.String getClassName()
vtkObjectBase
getClassName
in class vtkObject
public int isA(java.lang.String id0)
vtkObjectBase
isA
in class vtkObject
public void initialize()
public int allocate(int id0, int id1)
public void copyStructure(vtkFieldData id0)
public void allocateArrays(int id0)
public int getNumberOfArrays()
public int addArray(vtkDataArray id0)
public void removeArray(java.lang.String id0)
public vtkDataArray getArray(int id0)
public vtkDataArray getArray(java.lang.String id0)
public java.lang.String getArrayName(int id0)
public void passData(vtkFieldData id0)
public void copyFieldOn(java.lang.String id0)
public void copyFieldOff(java.lang.String id0)
public void copyAllOn()
public void copyAllOff()
public void deepCopy(vtkFieldData id0)
public void shallowCopy(vtkFieldData id0)
public void squeeze()
public void reset()
public int getActualMemorySize()
public int getMTime()
getMTime
in class vtkObject
public void getField(vtkIdList id0, vtkFieldData id1)
public int getNumberOfComponents()
public int getNumberOfTuples()
public void setNumberOfTuples(int id0)
public double getComponent(int id0, int id1)
public void setComponent(int id0, int id1, double id2)
public void insertComponent(int id0, int id1, double id2)
public void VTKInit()
VTKInit
in class vtkObject
protected void VTKCastInit()
VTKCastInit
in class vtkObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |