java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.imp.registry.EmbeddedSharedObject
de.grogra.imp3d.objects.CloudArray
- All Implemented Interfaces:
NodeContext,ProducingNode,BoundedCloud,Cloud,CloudContext,DisposableField,Manageable,Shareable,Disposable
- Direct Known Subclasses:
CloudList
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.grogra.imp.registry.EmbeddedSharedObject
EmbeddedSharedObject.GetExtFromMimeTypeNested classes/interfaces inherited from interface de.grogra.imp3d.objects.Cloud
Cloud.Point -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CloudArray.Typeprotected Nodestatic final SCOType.Field -
Constructor Summary
ConstructorsConstructorDescriptionCloudArray(float[] f) CloudArray(Node cnode, float[] f) CloudArray(String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPoints(Cloud.Point[] p) static CloudArraycreate(Aggregate a, Cloud.Point p) voiddispose()voiddispose(boolean removeNode) voidbooleaneditable()A cloud is editable if it is possible to add and remove points.floatsToPoint(float[] f) floatReturns the center x position of this point cloud.floatReturns the center y position of this point cloud.floatReturns the center z position of this point cloud.getCloud()floatfloatfloatSerialization managementfloatfloatfloatgetNode()intThe java class name of the object typefloat[]Warning, this do NOT copy the array.booleanTrue if the object is not "empty" as its persistence depends how the mimetype write content, a java object with some value could be defined as "empty"booleanisEmpty()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 floatsfloat[]pointsToFloat(Cloud.Point[] points) pop()Add Object to graphvoidpush(Cloud.Point p) voidvoidvoidsetPoints(float[] p) voidsetPoints(Cloud.Point[] p) Methods inherited from class de.grogra.imp.registry.EmbeddedSharedObject
getProvider, getProvider, initProvider, manageableReadResolve, manageableWriteReplaceMethods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getStamp, removeReference
-
Field Details
-
cloudNode
-
$TYPE
-
points$FIELD
-
-
Constructor Details
-
CloudArray
public CloudArray() -
CloudArray
public CloudArray(float[] f) -
CloudArray
-
CloudArray
-
-
Method Details
-
editable
public boolean editable()Description copied from interface:CloudA 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. -
setNode
- Specified by:
setNodein interfaceNodeContext
-
getNode
- Specified by:
getNodein interfaceNodeContext
-
isEmpty
public boolean isEmpty()Description copied from interface:CloudTo 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
-
setPoints
-
setPoints
public void setPoints(float[] p) -
getPointsAsFloat
public float[] getPointsAsFloat()Warning, this do NOT copy the array. Modify with care. -
getNumberOfPoints
public int getNumberOfPoints()- Specified by:
getNumberOfPointsin interfaceCloud
-
getMinimumX
public float getMinimumX()- Specified by:
getMinimumXin interfaceBoundedCloud
-
getMinimumY
public float getMinimumY()- Specified by:
getMinimumYin interfaceBoundedCloud
-
getMinimumZ
public float getMinimumZ()- Specified by:
getMinimumZin interfaceBoundedCloud
-
getMaximumX
public float getMaximumX()- Specified by:
getMaximumXin interfaceBoundedCloud
-
getMaximumY
public float getMaximumY()- Specified by:
getMaximumYin interfaceBoundedCloud
-
getMaximumZ
public float getMaximumZ()- Specified by:
getMaximumZin interfaceBoundedCloud
-
dispose
public void dispose(boolean removeNode) -
dispose
public void dispose()- Specified by:
disposein interfaceDisposable
-
createNew
-
pointsToFloat
public float[] pointsToFloat()Description copied from interface:CloudConvenience methods as most points are/or can be represented as arrays of floats- Specified by:
pointsToFloatin interfaceCloud
-
pointsToFloat
-
floatsToPoint
- Specified by:
floatsToPointin interfaceCloud
-
addPoint
-
addPoints
-
remove
-
remove
-
removeAll
public void removeAll() -
peek
-
pop
-
push
-
getCloud
- Specified by:
getCloudin interfaceCloudContext
-
getMimeType
Serialization management- Specified by:
getMimeTypein classEmbeddedSharedObject
-
getExtension
- Specified by:
getExtensionin classEmbeddedSharedObject
-
getResourceDirectoryName
- Specified by:
getResourceDirectoryNamein classEmbeddedSharedObject
-
getObjectType
Description copied from class:EmbeddedSharedObjectThe java class name of the object type- Specified by:
getObjectTypein classEmbeddedSharedObject
-
hasContent
public boolean hasContent()Description copied from class:EmbeddedSharedObjectTrue if the object is not "empty" as its persistence depends how the mimetype write content, a java object with some value could be defined as "empty"- Specified by:
hasContentin classEmbeddedSharedObject
-
disposeField
public void disposeField()- Specified by:
disposeFieldin interfaceDisposableField
-
create
-
produceNode
Add Object to graph- Specified by:
produceNodein interfaceProducingNode
-
getCenter
- Specified by:
getCenterin interfaceBoundedCloud
-
getCenterX
public float getCenterX()Returns the center x position of this point cloud.- Returns:
- The center x position of this point cloud
-
getCenterY
public float getCenterY()Returns the center y position of this point cloud.- Returns:
- The center y position of this point cloud
-
getCenterZ
public float getCenterZ()Returns the center z position of this point cloud.- Returns:
- The center z position of this point cloud
-
getManageableType
- Specified by:
getManageableTypein interfaceManageable- Overrides:
getManageableTypein classEmbeddedSharedObject
-