- All Superinterfaces:
CloudContext
,Disposable
,DisposableField
,NodeContext
,ProducingNode
- All Known Subinterfaces:
BoundedCloud
- All Known Implementing Classes:
CloudArray
,CloudGraph
,CloudGraphBase
,CloudList
Abstract object that represent the data structure of a cloud of objects.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPoints
(Cloud.Point[] p) void
dispose
(boolean removeNode) boolean
editable()
A cloud is editable if it is possible to add and remove points.floatsToPoint
(float[] f) int
boolean
isEmpty()
To be part of the graph a cloud need to be added to a node.peek()
float[]
Convenience methods as most points are/or can be represented as arrays of floatspop()
void
push
(Cloud.Point p) void
void
setPoints
(Cloud.Point[] p) Methods inherited from interface de.grogra.imp3d.objects.CloudContext
getCloud
Methods inherited from interface de.grogra.util.Disposable
dispose
Methods inherited from interface de.grogra.persistence.DisposableField
disposeField
Methods inherited from interface de.grogra.imp.objects.NodeContext
getNode, setNode
Methods inherited from interface de.grogra.imp.objects.ProducingNode
produceNode
-
Method Details
-
isEmpty
boolean isEmpty()To be part of the graph a cloud need to be added to a node. This return the cloudNode associated to this cloud if any. -
getPoints
Cloud.Point[] getPoints() -
setPoints
-
addPoints
-
addPoint
-
remove
-
remove
-
removeAll
void removeAll() -
pop
Cloud.Point pop() -
peek
Cloud.Point peek() -
push
-
getNumberOfPoints
int getNumberOfPoints() -
createNew
Cloud createNew() -
dispose
void dispose(boolean removeNode) -
editable
boolean editable()A cloud is editable if it is possible to add and remove points. Being able to setPoint does not make the cloud editable as is change either all or none of hte points. -
pointsToFloat
float[] pointsToFloat()Convenience methods as most points are/or can be represented as arrays of floats -
floatsToPoint
-