java.lang.Object
de.grogra.nurbseditor2d.NURBSDisplay2D
- All Implemented Interfaces:
EventListener
,javax.media.opengl.GLEventListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic javax.media.opengl.GL
static GraphState
static javax.media.opengl.GLJPanel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
display
(javax.media.opengl.GLAutoDrawable drawable) void
displayChanged
(javax.media.opengl.GLAutoDrawable arg0, boolean arg1, boolean arg2) static void
drawCircle
(Point2f[] params) static void
drawCircle
(Point3f point, Color3f color) void
drawCurve
(NURBSCurve nurbs) void
void
drawRectangle
(Polygon quad) static void
drawTriangle
(Polygon triangle) static String
void
init
(javax.media.opengl.GLAutoDrawable drawable) static Point2f
pixelToCoordinate
(Point input) void
reshape
(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height) static void
-
Field Details
-
gl
public static javax.media.opengl.GL gl -
panel
public static javax.media.opengl.GLJPanel panel -
gs
-
-
Constructor Details
-
NURBSDisplay2D
-
-
Method Details
-
setGeometry
-
getGeometry
-
pixelToCoordinate
-
drawLine
-
display
public void display(javax.media.opengl.GLAutoDrawable drawable) - Specified by:
display
in interfacejavax.media.opengl.GLEventListener
-
init
public void init(javax.media.opengl.GLAutoDrawable drawable) - Specified by:
init
in interfacejavax.media.opengl.GLEventListener
-
reshape
public void reshape(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height) - Specified by:
reshape
in interfacejavax.media.opengl.GLEventListener
-
drawCircle
-
drawCurve
-
drawRectangle
-
drawTriangle
-
drawCircle
-
displayChanged
public void displayChanged(javax.media.opengl.GLAutoDrawable arg0, boolean arg1, boolean arg2) - Specified by:
displayChanged
in interfacejavax.media.opengl.GLEventListener
-