java.lang.Object
de.grogra.nurbseditor3d.NURBSDisplay3D
- All Implemented Interfaces:
EventListener
,javax.media.opengl.GLEventListener
-
Field Summary
-
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
(Point4f p, float radius, Color3f color) void
drawCurve
(NURBSCurve nurbs) void
void
drawSurface
(NURBSSurface nurbs) static String
static int[]
void
init
(javax.media.opengl.GLAutoDrawable drawable) static Point3f
pixelToCoordinate
(Point3f input) void
void
reshape
(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height) static void
void
setRotation
(int[] r)
-
Field Details
-
gl
public static javax.media.opengl.GL gl -
panel
public static javax.media.opengl.GLJPanel panel
-
-
Constructor Details
-
NURBSDisplay3D
-
-
Method Details
-
setGeometry
-
getGeometry
-
setRotation
public void setRotation(int[] r) -
getRotation
public static int[] getRotation() -
pixelToCoordinate
-
display
public void display(javax.media.opengl.GLAutoDrawable drawable) - Specified by:
display
in interfacejavax.media.opengl.GLEventListener
-
renderObjects
public void renderObjects() -
drawLine
-
displayChanged
public void displayChanged(javax.media.opengl.GLAutoDrawable arg0, boolean arg1, boolean arg2) - Specified by:
displayChanged
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
-
drawSurface
-