Class ObjectVertex
Object
ObjectVertex
A vertex in a merge graph representing an object (and an associated payload).
-
Constructor Summary
ConstructorsConstructorDescriptionObjectVertex
(ObjectMask object, double payload) Creates a newObjectVertex
instance. -
Method Summary
Modifier and TypeMethodDescriptionTheObjectMask
represented by this vertex.double
The payload associated with this vertex.int
Gets the number of voxels in the object.toString()
-
Constructor Details
-
ObjectVertex
Creates a newObjectVertex
instance.- Parameters:
object
- TheObjectMask
represented by this vertex.payload
- The payload associated with this vertex.
-
-
Method Details
-
numberVoxels
public int numberVoxels()Gets the number of voxels in the object.This value is calculated lazily on the first call to this method.
- Returns:
- the number of voxels in the
ObjectMask
-
toString
-
getObject
TheObjectMask
represented by this vertex. -
getPayload
public double getPayload()The payload associated with this vertex.
-