de.grogra.imp3d.objects
public class VoronoiCell extends Sphere implements Pickable, Renderable, Raytraceable
| Modifier and Type | Class and Description |
|---|---|
static class |
VoronoiCell.Pattern |
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
protected boolean |
showDelaunayDiagram |
static Node.NType.Field |
showDelaunayDiagram$FIELD |
protected boolean |
showDelaunayFaces |
static Node.NType.Field |
showDelaunayFaces$FIELD |
protected boolean |
showDelaunayPoints |
static Node.NType.Field |
showDelaunayPoints$FIELD |
protected boolean |
showNeighbours |
static Node.NType.Field |
showNeighbours$FIELD |
protected boolean |
showVoronoiDiagram |
static Node.NType.Field |
showVoronoiDiagram$FIELD |
protected boolean |
showVoronoiFaces |
static Node.NType.Field |
showVoronoiFaces$FIELD |
protected boolean |
showVoronoiNucleus |
static Node.NType.Field |
showVoronoiNucleus$FIELD |
protected boolean |
showVoronoiPoints |
static Node.NType.Field |
showVoronoiPoints$FIELD |
radius, radius$FIELDINFINITE_MASK, interior, interior$FIELD, shader, shader$FIELD, treatedAsInfinite$FIELD, USED_BITStransform, transform$FIELD, TRANSFORMING_MASK, transforming$FIELDADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MIME_TYPE, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELDDEFAULT_VALUE, EMPTY_MAP| Constructor and Description |
|---|
VoronoiCell() |
VoronoiCell(float radius) |
VoronoiCell(float radius,
double x,
double y,
double z) |
VoronoiCell(float radius,
double i,
double j,
double k,
double scale) |
VoronoiCell(float radius,
Tuple3d p) |
| Modifier and Type | Method and Description |
|---|---|
Point3d |
asPoint3d() |
Point3f |
asPoint3f() |
RaytracerLeaf |
createRaytracerLeaf(java.lang.Object object,
boolean asNode,
long pathId,
GraphState gs) |
void |
deleteAdjacent()
Account for the deletion of an adjacent tetrahedron.
|
void |
draw(java.lang.Object object,
boolean asNode,
RenderState rs) |
Tetrahedron |
getAdjacent()
Answer one of the adjacent tetrahedron
|
java.util.Collection<VoronoiCell> |
getNeighbours()
Answer the cleaned collection of neighbouring VoronoiCells around this one.
|
java.util.Collection<VoronoiCell> |
getNeighboursAll()
Answer the collection of neighbouring VoronoiCells around this one.
|
protected Node.NType |
getNTypeImpl()
This method returns the
Node.NType which describes the managed
fields of the class of this node. |
int |
getNumberOfNeighbours()
Answer the number of neighbouring VoronoiCells around this one.
|
int |
getNumberOfNeighboursAll()
Answer the number of neighbouring VoronoiCells around this one.
|
int |
getOrder()
Answer the number of tetrahedra adjacent to the receiver vertex in the
tetrahedralization
|
double |
getSurfaceArea()
Calculates the area of an object.
|
double |
getVolume()
Calculates the volume.
|
Point3d[] |
getVoronoiPointsArray()
returns an array of points that build the voronoi faces for this VoronoiCell
|
java.util.List<Point3d> |
getVoronoiPointsList()
returns a list of points that build the voronoi faces for this VoronoiCell
|
java.util.Set<Point3d> |
getVoronoiPointsSet()
returns a set of points that build the voronoi faces for this VoronoiCell
|
double |
getX() |
double |
getY() |
double |
getZ() |
int |
inSphere(VoronoiCell a,
VoronoiCell b,
VoronoiCell c,
VoronoiCell d)
Return +1 if the receiver lies inside the sphere passing through a, b, c,
and d; -1 if it lies outside; and 0 if the five points are cospherical.
|
protected boolean |
isAuxiliary(Point3d[] face) |
boolean |
isAuxiliaryCell() |
boolean |
isBorderCell() |
boolean |
isInternalCell() |
boolean |
isShowDelaunayDiagram() |
boolean |
isShowDelaunayFaces() |
boolean |
isShowDelaunayPoints() |
boolean |
isShowNeighbours() |
boolean |
isShowVoronoiDiagram() |
boolean |
isShowVoronoiFaces() |
boolean |
isShowVoronoiNucleus() |
boolean |
isShowVoronoiPoints() |
protected Node |
newInstance()
This method returns a new instance of the class of this
node.
|
int |
orientation(VoronoiCell a,
VoronoiCell b,
VoronoiCell c)
Answer +1 if the orientation of the receiver is positive with respect to
the plane defined by {a, b, c}, -1 if negative, or 0 if the test point is
coplanar
|
static void |
pick(float radius,
Point3d origin,
Vector3d direction,
PickList list) |
void |
pick(java.lang.Object object,
boolean asNode,
Point3d origin,
Vector3d direction,
Matrix4d t,
PickList list)
Computes intersections of a given ray with this shape.
|
void |
reset()
Reset the state associated with a tetrahedralization.
|
void |
setAdjacent(Tetrahedron tetrahedron)
Note one of the adjacent tetrahedron
|
void |
setShowDelaunayDiagram(boolean value) |
void |
setShowDelaunayFaces(boolean value) |
void |
setShowDelaunayPoints(boolean value) |
void |
setShowNeighbours(boolean value) |
void |
setShowVoronoiDiagram(boolean value) |
void |
setShowVoronoiFaces(boolean value) |
void |
setShowVoronoiNucleus(boolean value) |
void |
setShowVoronoiPoints(boolean value) |
void |
setTetrahedralization(Tetrahedralization tetrahedralization) |
java.lang.String |
toString() |
getInterior, getShader, getSymbolColor, isTreatedAsInfinite, setBackShader, setColor, setColor, setFrontShader, setInterior, setMaterial, setShader, setShaders, setTreatedAsInfinitegetLocalTransformation, getTransform, getTranslation, isTransforming, postTransform, preTransform, setRotation, setScale, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransforming, setTranslationaddEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, findRefinementType, get, getAccessor, getAccessor, getAttributes, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getShort, getSource, getStamp, getSuccessor, getSymbol, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, paramString, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setLayer, setMark, setName, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, writeReplaceaddEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBitMark, getObjectMark, setBitMark, setObjectMarkpublic static final Node.NType $TYPE
protected boolean showDelaunayDiagram
public static final Node.NType.Field showDelaunayDiagram$FIELD
protected boolean showDelaunayFaces
public static final Node.NType.Field showDelaunayFaces$FIELD
protected boolean showDelaunayPoints
public static final Node.NType.Field showDelaunayPoints$FIELD
protected boolean showNeighbours
public static final Node.NType.Field showNeighbours$FIELD
protected boolean showVoronoiDiagram
public static final Node.NType.Field showVoronoiDiagram$FIELD
protected boolean showVoronoiFaces
public static final Node.NType.Field showVoronoiFaces$FIELD
protected boolean showVoronoiNucleus
public static final Node.NType.Field showVoronoiNucleus$FIELD
protected boolean showVoronoiPoints
public static final Node.NType.Field showVoronoiPoints$FIELD
public VoronoiCell()
public VoronoiCell(float radius)
public VoronoiCell(float radius,
double x,
double y,
double z)
public VoronoiCell(float radius,
double i,
double j,
double k,
double scale)
public VoronoiCell(float radius,
Tuple3d p)
public Point3d asPoint3d()
public Point3f asPoint3f()
public RaytracerLeaf createRaytracerLeaf(java.lang.Object object, boolean asNode, long pathId, GraphState gs)
createRaytracerLeaf in interface RaytraceablecreateRaytracerLeaf in class Spherepublic final void deleteAdjacent()
public void draw(java.lang.Object object,
boolean asNode,
RenderState rs)
draw in interface Renderabledraw in class Spherepublic final Tetrahedron getAdjacent()
public java.util.Collection<VoronoiCell> getNeighbours()
public java.util.Collection<VoronoiCell> getNeighboursAll()
protected Node.NType getNTypeImpl()
NodeNode.NType which describes the managed
fields of the class of this node. This method has to be implemented
in every concrete subclass.getNTypeImpl in class Spherepublic int getNumberOfNeighbours()
public int getNumberOfNeighboursAll()
public final int getOrder()
public double getSurfaceArea()
getSurfaceArea in class Spherepublic double getVolume()
public Point3d[] getVoronoiPointsArray()
public java.util.List<Point3d> getVoronoiPointsList()
public java.util.Set<Point3d> getVoronoiPointsSet()
public double getX()
public double getY()
public double getZ()
public final int inSphere(VoronoiCell a, VoronoiCell b, VoronoiCell c, VoronoiCell d)
orientation(VoronoiCell, VoronoiCell, VoronoiCell)),
or the sign of the result will be reversed.
a - , b, c, d - the points defining the sphere, in oriented orderprotected boolean isAuxiliary(Point3d[] face)
public boolean isAuxiliaryCell()
public boolean isBorderCell()
public boolean isInternalCell()
public boolean isShowDelaunayDiagram()
public boolean isShowDelaunayFaces()
public boolean isShowDelaunayPoints()
public boolean isShowNeighbours()
public boolean isShowVoronoiDiagram()
public boolean isShowVoronoiFaces()
public boolean isShowVoronoiNucleus()
public boolean isShowVoronoiPoints()
protected Node newInstance()
NodenewInstance in class Spherepublic final int orientation(VoronoiCell a, VoronoiCell b, VoronoiCell c)
a - , b, c - the points defining the planepublic void pick(java.lang.Object object,
boolean asNode,
Point3d origin,
Vector3d direction,
Matrix4d t,
PickList list)
Pickablepick in interface Pickablepick in class Sphereobject - the object of which this shape is an attributeasNode - true iff object is a nodeorigin - the origin of the ray, in local coordinatesdirection - the direction of the ray, in local coordinatest - the transformation from local coordinates to world coordinateslist - the list to which intersections have to be addedpublic final void reset()
public final void setAdjacent(Tetrahedron tetrahedron)
tetrahedron - public void setShowDelaunayDiagram(boolean value)
public void setShowDelaunayFaces(boolean value)
public void setShowDelaunayPoints(boolean value)
public void setShowNeighbours(boolean value)
public void setShowVoronoiDiagram(boolean value)
public void setShowVoronoiFaces(boolean value)
public void setShowVoronoiNucleus(boolean value)
public void setShowVoronoiPoints(boolean value)
public void setTetrahedralization(Tetrahedralization tetrahedralization)