java.lang.Object
de.grogra.imp3d.objects.ArrayPoint
- All Implemented Interfaces:
Cloud.Point
,CloudContext
,Manageable
,Serializable
,Cloneable
Minimal implementation of a point in a arraycloud. Its Manageable type enables proper
copies of CloudArray/List as the Point needs to be copied
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArrayPoint.Type
protected Cloud
protected float[]
static final SCOType.Field
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fieldModified
(PersistenceField field, int[] indices, Transaction t) getCloud()
int
getStamp()
Returns a stamp for this object.void
void
setPos
(float[] f) float[]
toFloat()
-
Field Details
-
pos
protected float[] pos -
parent
-
$TYPE
-
pos$FIELD
-
-
Constructor Details
-
ArrayPoint
public ArrayPoint() -
ArrayPoint
public ArrayPoint(float[] f)
-
-
Method Details
-
getCloud
- Specified by:
getCloud
in interfaceCloud.Point
- Specified by:
getCloud
in interfaceCloudContext
-
toFloat
public float[] toFloat()- Specified by:
toFloat
in interfaceCloud.Point
-
setCloud
- Specified by:
setCloud
in interfaceCloud.Point
-
setPos
public void setPos(float[] f) -
fieldModified
- Specified by:
fieldModified
in interfaceManageable
-
getStamp
public int getStamp()Description copied from interface:Manageable
Returns a stamp for this object. Each modification to this object increments the stamp. The initial stamp is non-negative.- Specified by:
getStamp
in interfaceManageable
- Returns:
- a stamp
-
manageableReadResolve
- Specified by:
manageableReadResolve
in interfaceManageable
-
manageableWriteReplace
- Specified by:
manageableWriteReplace
in interfaceManageable
-
getManageableType
- Specified by:
getManageableType
in interfaceManageable
-