|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.Piece
cz.cuni.jagrlib.testing.SimpleGLGraphics
public class SimpleGLGraphics
Simple GLGraphics using simple GLUT objects. Useful for testing GLGraphics interface.
| Field Summary | |
|---|---|
protected static float |
ANGLE_PER_MS
Angular speed in degrees/ms. |
protected static java.lang.String |
CATEGORY
Object category. |
static RegPiece |
reg
Static registration instance for this class. |
static int |
SOLID_BOX
Solid type: box. |
static int |
SOLID_SPHERE
Solid type: sphere. |
static int |
SOLID_TEAPOT
Solid type: teapot. |
static java.lang.String |
SOLID_TYPE
|
protected int |
solidTypeParam
Actual solid type. |
protected static java.lang.String |
TEMPLATE_NAME
Object template identifier. |
protected byte[] |
texture
|
static java.lang.String |
TEXTURE
|
static java.lang.String |
TEXTURE_TYPE
|
static int |
TEXTURE_TYPE_1
Texture type: 2D - normal. |
static int |
TEXTURE_TYPE_2
Texture type: 1D - contures. |
static int |
TEXTURE_TYPE_3
Texture type: 1D - eye plane. |
static int |
TEXTURE_TYPE_4
Texture type: 2D - environment. |
static int |
TEXTURE_TYPE_5
Texture type: 2D - environment spheric. |
protected byte[] |
texture2
|
protected int |
textureTypeParam
Actual texture type. |
protected long |
time0
Origin system time. |
| Fields inherited from class cz.cuni.jagrlib.Piece |
|---|
channels, info, pl, plugs, TEMPLATE_TYPE, userBreak |
| Fields inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
| Constructor Summary | |
|---|---|
SimpleGLGraphics()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.String key)
Gets the given property. |
void |
initRoutine(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu)
Initialization of GL context. |
void |
paintRoutine(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu)
Painting routine is launched each time when context is repainted. |
void |
reshapeRoutine(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
int x,
int y,
int width,
int height)
Reshape routine is launched when dimensions of GL context is changed. |
void |
set(java.lang.String key,
java.lang.Object value)
Sets the given property. |
static int |
setTemplate(Template t,
int ord)
General-purpose registration routine. |
| Methods inherited from class cz.cuni.jagrlib.Piece |
|---|
className, connect, findPlug, findPlug, getInfo, getInterface, getInterface, getPlug, getReg, init, isCompatible, isCompatible, isConnected, logError, logWarning, myInterface, newInputPlug, newOptOutputPlug, newOutputPlug, newPlug, noTemplates, propBegin, propBounds, propDefault, propEnd, propEnum, propManipulator, propManipulator, setProgressListener, setRegStrings, setTemplateDynamic, stop |
| Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
|---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, stringProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final float ANGLE_PER_MS
protected final long time0
public static final int SOLID_BOX
public static final int SOLID_SPHERE
public static final int SOLID_TEAPOT
public static final int TEXTURE_TYPE_1
public static final int TEXTURE_TYPE_2
public static final int TEXTURE_TYPE_3
public static final int TEXTURE_TYPE_4
public static final int TEXTURE_TYPE_5
protected int solidTypeParam
protected int textureTypeParam
protected byte[] texture
protected byte[] texture2
public static final java.lang.String SOLID_TYPE
public static final java.lang.String TEXTURE
public static final java.lang.String TEXTURE_TYPE
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String CATEGORY
public static final RegPiece reg
| Constructor Detail |
|---|
public SimpleGLGraphics()
| Method Detail |
|---|
public void paintRoutine(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu)
paintRoutine in interface GLGraphicsgl - GL commands access objectglu - GLU commands access object
public void initRoutine(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu)
initRoutine in interface GLGraphicsgl - GL commands access object.glu - GLU commands access object.
public void reshapeRoutine(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
int x,
int y,
int width,
int height)
reshapeRoutine in interface GLGraphicsgl - GL commands access objectglu - GLU commands access objectx - X position of reshaped canvasy - Y position of reshaped canvaswidth - Width of reshaped canvasheight - Height of reshaped canvas
public void set(java.lang.String key,
java.lang.Object value)
set in interface Propertyset in class DefaultPropertykey - Key string.value - The new value.Property.commit()public java.lang.Object get(java.lang.String key)
get in interface Propertyget in class DefaultPropertykey - Key string.
null.
public static int setTemplate(Template t,
int ord)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||