Class AbstractGLRenderer
- java.lang.Object
- 
- jadex.extension.envsupport.observer.graphics.opengl.AbstractGLRenderer
 
- 
- All Implemented Interfaces:
- IGLRenderer
 - Direct Known Subclasses:
- EllipseGLRenderer,- RectangleGLRenderer,- RegularPolygonGLRenderer,- TexturedRectangleGLRenderer,- TriangleGLRenderer
 
 public abstract class AbstractGLRenderer extends java.lang.Object implements IGLRenderer 
- 
- 
Constructor SummaryConstructors Constructor Description AbstractGLRenderer()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voiddraw(DrawableCombiner dc, Primitive primitive, java.lang.Object obj, ViewportJOGL vp)Draws the primitive.voidprepareAndExecuteDraw(DrawableCombiner dc, Primitive primitive, java.lang.Object obj, ViewportJOGL vp)Prepares the object for rendering to a JOGL viewportstatic booleansetupDCMatrix(DrawableCombiner dc, java.lang.Object obj, boolean enablePos, boolean enableSize, boolean enableRot, ViewportJOGL vp)Sets the basic matrix for the combiner, call can be skipped if alternative draw method is required.protected booleansetupMatrix(DrawableCombiner dc, Primitive primitive, java.lang.Object obj, javax.media.opengl.GL gl, IViewport vp)Sets up the transformation matrix before drawing.
 
- 
- 
- 
Method Detail- 
prepareAndExecuteDrawpublic final void prepareAndExecuteDraw(DrawableCombiner dc, Primitive primitive, java.lang.Object obj, ViewportJOGL vp) Prepares the object for rendering to a JOGL viewport- Specified by:
- prepareAndExecuteDrawin interface- IGLRenderer
- Parameters:
- dc- the DrawableCombiner drawing the object
- primitive- the primitive being drawn
- obj- the object being drawn
- vp- the viewport
 
 - 
setupMatrixprotected boolean setupMatrix(DrawableCombiner dc, Primitive primitive, java.lang.Object obj, javax.media.opengl.GL gl, IViewport vp) Sets up the transformation matrix before drawing.- Parameters:
- obj- object being drawn
- g- graphics context
- Returns:
- true, if the setup was successful
 
 - 
setupDCMatrixpublic static final boolean setupDCMatrix(DrawableCombiner dc, java.lang.Object obj, boolean enablePos, boolean enableSize, boolean enableRot, ViewportJOGL vp) Sets the basic matrix for the combiner, call can be skipped if alternative draw method is required.- Parameters:
- obj- object being drawn
- gl- the viewport context
- enablePos- enables position setup
- enableSize- enables size setup
- enableRot- enables rotation setup
 
 - 
drawpublic abstract void draw(DrawableCombiner dc, Primitive primitive, java.lang.Object obj, ViewportJOGL vp) Draws the primitive.- Specified by:
- drawin interface- IGLRenderer
- Parameters:
- dc- the DrawableCombiner drawing the object
- primitive- the primitive being drawn
- obj- the object being drawn
- vp- the viewport
 
 
- 
 
-