|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.PointCloud
@Equality public class PointCloud
Represents an unordered set of data positions forming part of a plot. An iterator over the points is provided. Instances of this class may also be compared for equality: if instances compare equal, the iterators will dispense the same positions, though not necessarily in the same order.
The unordered semantics of this class is imposed by the equality requirement. Most of the ordering could be restored by rewording the contract a bit differently if that becomes useful, but at time of writing it's not needed.
Constructor Summary | |
---|---|
PointCloud(SubCloud subCloud)
Constructs a point cloud from a single subcloud. |
|
PointCloud(SubCloud[] subClouds)
Constructs a point cloud from an array of subclouds. |
Method Summary | |
---|---|
Iterable<double[]> |
createDataPosIterable(DataStore dataStore)
Returns an iterable over data positions. |
boolean |
equals(Object o)
|
SubCloud[] |
getSubClouds()
Returns an array of the subclouds in this point cloud. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PointCloud(SubCloud[] subClouds)
subClouds
- array of cloud componentspublic PointCloud(SubCloud subCloud)
subCloud
- cloud componentMethod Detail |
---|
public Iterable<double[]> createDataPosIterable(DataStore dataStore)
dataDimCount
-element arrays
giving position in data space. The same double[]
array object is returned each time with different contents,
so beware of storing it between iterations.
dataStore
- data storage object
public SubCloud[] getSubClouds()
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |