Class DrawSkeleton

java.lang.Object
Jcg.viewer.DrawSkeleton
Direct Known Subclasses:
DrawMesh

public abstract class DrawSkeleton extends Object
Abstract class defining methods for drawing a graph in 3D
Author:
Luca Castelli Aleardi (Ecole Polytechnique, INF555 and INF562), 2012
  • Field Details

  • Constructor Details

    • DrawSkeleton

      public DrawSkeleton()
  • Method Details

    • drawSegment

      public abstract void drawSegment(Point_3 p, Point_3 q)
      Draw a segment between two points
    • drawVertex

      public abstract void drawVertex(Point_3 p)
      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

      public void drawBoundingBox(Point_3[] box)
      Draw the X, Y and Z axis
    • round

      public static double round(double x, int precision)
      Return the value after truncation
    • computeBoundingBox

      public Point_3[] computeBoundingBox()
      Compute the scale factor (depending on the max distance of the point set)