Module imp3d

Interface Cloud

All Superinterfaces:
CloudContext, Disposable, DisposableField, NodeContext, ProducingNode
All Known Subinterfaces:
BoundedCloud
All Known Implementing Classes:
CloudArray, CloudGraph, CloudGraphBase, CloudList

public interface Cloud extends CloudContext, NodeContext, Disposable, DisposableField
Abstract object that represent the data structure of a cloud of objects.
  • 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

      void setPoints(Cloud.Point[] p)
    • addPoints

      void addPoints(Cloud.Point[] p)
    • addPoint

      void addPoint(Cloud.Point p)
    • remove

      Cloud.Point remove(Object i)
    • remove

      Cloud.Point[] remove(Object[] i)
    • removeAll

      void removeAll()
    • pop

    • peek

      Cloud.Point peek()
    • push

      void push(Cloud.Point p)
    • 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

      Cloud.Point[] floatsToPoint(float[] f)