|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jbeans.j3d.data.AttributeArray
AttributeArray is an abstract class that defines various methods to handle n-dimensional attribute data such as scalars, vectors, tensors, etc.
Field Summary | |
protected DataArray |
data
|
Constructor Summary | |
AttributeArray()
|
|
AttributeArray(AttributeArray aa)
|
|
AttributeArray(int dataType)
Construct object with an initial data array of type dataType. |
Method Summary | |
boolean |
allocate(int numOfAtt)
Allocates the specified number (numOfAtt) of attributes. |
void |
copy(AttributeArray aa)
|
DataArray |
getData()
|
int |
getDataType()
|
int |
getDimension()
|
void |
initialize()
|
abstract AttributeArray |
makeObject()
Virtual constructor creates object of same type as this object. |
void |
reset()
Make object look empty but do not delete memory. |
void |
setData(DataArray data)
Set the data for this object. |
void |
setDataType(int dataType)
Specify the underlying data type of the object. |
void |
setDataTypeToBit()
|
void |
setDataTypeToChar()
|
void |
setDataTypeToDouble()
|
void |
setDataTypeToFloat()
|
void |
setDataTypeToInt()
|
void |
setDataTypeToLong()
|
void |
setDataTypeToShort()
|
void |
setDataTypeToString()
|
void |
squeeze()
Compact the data array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected DataArray data
Constructor Detail |
public AttributeArray(int dataType)
public AttributeArray()
public AttributeArray(AttributeArray aa)
Method Detail |
public void copy(AttributeArray aa)
public abstract AttributeArray makeObject()
public boolean allocate(int numOfAtt)
public void initialize()
public int getDimension()
public int getDataType()
public void setDataType(int dataType)
public void setData(DataArray data)
public DataArray getData()
public void setDataTypeToBit()
public void setDataTypeToChar()
public void setDataTypeToShort()
public void setDataTypeToInt()
public void setDataTypeToLong()
public void setDataTypeToFloat()
public void setDataTypeToDouble()
public void setDataTypeToString()
public void squeeze()
public void reset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |