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 newObjectVertexinstance. -
Method Summary
Modifier and TypeMethodDescriptionTheObjectMaskrepresented by this vertex.doubleThe payload associated with this vertex.intGets the number of voxels in the object.toString()
-
Constructor Details
-
ObjectVertex
Creates a newObjectVertexinstance.- Parameters:
object- TheObjectMaskrepresented 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
TheObjectMaskrepresented by this vertex. -
getPayload
public double getPayload()The payload associated with this vertex.
-