Class DrawSkeleton
java.lang.Object
Jcg.viewer.DrawSkeleton
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPoint_3[]Compute the scale factor (depending on the max distance of the point set)abstract voiddraw(int type) Draw the entire graph (or mesh)voiddrawAxis()Draw the X, Y and Z axisvoiddrawBoundingBox(Point_3[] box) Draw the X, Y and Z axisabstract voiddrawSegment(Point_3 p, Point_3 q) Draw a segment between two pointsabstract voidDraw a vertexstatic doubleround(double x, int precision) Return the value after truncation
-
Field Details
-
VERTICES_AND_EDGES
public static final int VERTICES_AND_EDGES- See Also:
-
NO_VERTICES_NO_EDGES
public static final int NO_VERTICES_NO_EDGES- See Also:
-
ONLY_EDGES
public static final int ONLY_EDGES- See Also:
-
-
Constructor Details
-
DrawSkeleton
public DrawSkeleton()
-
-
Method Details
-
drawSegment
-
drawVertex
Draw a vertex -
draw
public abstract void draw(int type) Draw the entire graph (or mesh)- Parameters:
type- indicates the rendering mode
-
drawAxis
public void drawAxis()Draw the X, Y and Z axis -
drawBoundingBox
Draw the X, Y and Z axis -
round
public static double round(double x, int precision) Return the value after truncation -
computeBoundingBox
Compute the scale factor (depending on the max distance of the point set)
-