Module nurbs.editor

Class NURBSDisplay2D

java.lang.Object
de.grogra.nurbseditor2d.NURBSDisplay2D
All Implemented Interfaces:
EventListener, javax.media.opengl.GLEventListener

public class NURBSDisplay2D extends Object implements javax.media.opengl.GLEventListener
  • Field Details

    • gl

      public static javax.media.opengl.GL gl
    • panel

      public static javax.media.opengl.GLJPanel panel
    • gs

      public static GraphState gs
  • Constructor Details

    • NURBSDisplay2D

      public NURBSDisplay2D(javax.media.opengl.GLJPanel panel, GraphState gs)
  • Method Details

    • setGeometry

      public static void setGeometry(String g)
    • getGeometry

      public static String getGeometry()
    • pixelToCoordinate

      public static Point2f pixelToCoordinate(Point input)
    • drawLine

      public void drawLine(Tuple3f origin, Tuple3f end, Tuple3f color)
    • display

      public void display(javax.media.opengl.GLAutoDrawable drawable)
      Specified by:
      display in interface javax.media.opengl.GLEventListener
    • init

      public void init(javax.media.opengl.GLAutoDrawable drawable)
      Specified by:
      init in interface javax.media.opengl.GLEventListener
    • reshape

      public void reshape(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
      Specified by:
      reshape in interface javax.media.opengl.GLEventListener
    • drawCircle

      public static void drawCircle(Point3f point, Color3f color)
    • drawCurve

      public void drawCurve(NURBSCurve nurbs)
    • drawRectangle

      public void drawRectangle(Polygon quad)
    • drawTriangle

      public static void drawTriangle(Polygon triangle)
    • drawCircle

      public static void drawCircle(Point2f[] params)
    • displayChanged

      public void displayChanged(javax.media.opengl.GLAutoDrawable arg0, boolean arg1, boolean arg2)
      Specified by:
      displayChanged in interface javax.media.opengl.GLEventListener