Module nurbs.editor

Class NURBSDisplay3D

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

public class NURBSDisplay3D 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
  • Constructor Details

    • NURBSDisplay3D

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

    • setGeometry

      public static void setGeometry(String g)
    • getGeometry

      public static String getGeometry()
    • setRotation

      public void setRotation(int[] r)
    • getRotation

      public static int[] getRotation()
    • pixelToCoordinate

      public static Point3f pixelToCoordinate(Point3f input)
    • display

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

      public void renderObjects()
    • drawLine

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

      public void displayChanged(javax.media.opengl.GLAutoDrawable arg0, boolean arg1, boolean arg2)
      Specified by:
      displayChanged 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(Point4f p, float radius, Color3f color)
    • drawCurve

      public void drawCurve(NURBSCurve nurbs)
    • drawSurface

      public void drawSurface(NURBSSurface nurbs)