|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprocessing.core.PImage
processing.core.PGraphics
processing.core.PGraphics3D
processing.opengl.PGraphicsOpenGL
igeo.p.PIGraphicsGL
public class PIGraphicsGL
A child class of Processing's PGraphic to draw on Processing using OpenGL. This class also manages the IServer to manage all the objects in iGeo.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class processing.opengl.PGraphicsOpenGL |
---|
processing.opengl.PGraphicsOpenGL.ImageCache, processing.opengl.PGraphicsOpenGL.TessCallback |
Field Summary | |
---|---|
boolean |
finished
|
IGraphics |
igg
|
boolean |
looping
|
com.sun.opengl.util.j2d.Overlay |
overlay
To draw Java2D graphic over OpenGL graphic. |
static java.awt.Color |
overlayBG
Background color of overlay should be transparent. |
boolean |
overwritePAppletFinish
To show iGeo correctly in Processing's basic mode, this needs to be true. |
boolean |
overwritePAppletLoop
To show iGeo correctly in Processing's basic mode, this needs to be true. |
IPanel |
panel
|
Fields inherited from class processing.opengl.PGraphicsOpenGL |
---|
BIG_ENDIAN, colorBuffer, context, drawable, gl, glu, lightArray, pixelBuffer, projectionFloats, tessCallback, tobj, zeroBuffer |
Fields inherited from class processing.core.PGraphics3D |
---|
bottomScreen, camera, cameraAspect, cameraFar, cameraFOV, cameraInv, cameraNear, cameraX, cameraY, cameraZ, currentLightFalloffConstant, currentLightFalloffLinear, currentLightFalloffQuadratic, currentLightSpecular, forwardTransform, leftScreen, lightCount, lightDiffuse, lightFalloffConstant, lightFalloffLinear, lightFalloffQuadratic, lightNormal, lightPosition, lightSpecular, lightSpotAngle, lightSpotAngleCos, lightSpotConcentration, lightTriangleNorm, lightType, line, LINE_FIELD_COUNT, lineCount, lines, manipulatingCamera, MAX_LIGHTS, modelview, modelviewInv, nearPlane, pathCount, pathLength, pathOffset, POINT_FIELD_COUNT, pointCount, points, projection, reverseTransform, rightScreen, s_enableAccurateTextures, shapeFirst, shapeLast, shapeLastPlusClipped, sizeChanged, smoothTriangle, STROKE_COLOR, tempLightingContribution, TEXTURE_INDEX, textures, topScreen, TRI_COLOR_COUNT, TRI_DIFFUSE_A, TRI_DIFFUSE_B, TRI_DIFFUSE_G, TRI_DIFFUSE_R, TRI_SPECULAR_B, TRI_SPECULAR_G, TRI_SPECULAR_R, triangle, TRIANGLE_FIELD_COUNT, triangleColors, triangleCount, triangles, VERTEX1, VERTEX2, VERTEX3, vertexOrder, zbuffer |
Fields inherited from class processing.core.PGraphics |
---|
ambientB, ambientG, ambientR, backgroundA, backgroundAi, backgroundAlpha, backgroundB, backgroundBi, backgroundColor, backgroundG, backgroundGi, backgroundR, backgroundRi, bezierBasisInverse, bezierBasisMatrix, bezierDetail, bezierDrawMatrix, bezierInited, calcA, calcAi, calcAlpha, calcB, calcBi, calcColor, calcG, calcGi, calcR, calcRi, colorMode, colorModeA, colorModeX, colorModeY, colorModeZ, cosLUT, curveBasisMatrix, curveDetail, curveDrawMatrix, curveInited, curveTightness, curveToBezierMatrix, curveVertexCount, curveVertices, DEFAULT_STROKE_CAP, DEFAULT_STROKE_JOIN, DEFAULT_STROKE_WEIGHT, edge, ellipseMode, emissiveB, emissiveG, emissiveR, fill, fillA, fillAi, fillAlpha, fillB, fillBi, fillColor, fillG, fillGi, fillR, fillRi, height1, hints, image, imageMode, NORMAL_MODE_AUTO, NORMAL_MODE_SHAPE, NORMAL_MODE_VERTEX, normalMode, normalX, normalY, normalZ, path, pixelCount, primarySurface, raw, rectMode, settingsInited, shape, shapeMode, shininess, SINCOS_LENGTH, SINCOS_PRECISION, sinLUT, smooth, specularB, specularG, specularR, sphereDetailU, sphereDetailV, stroke, strokeA, strokeAi, strokeAlpha, strokeB, strokeBi, strokeCap, strokeColor, strokeG, strokeGi, strokeJoin, strokeR, strokeRi, strokeWeight, textAlign, textAlignY, textBreakCount, textBreakStart, textBreakStop, textBuffer, textFont, textLeading, textMode, textSize, textureImage, textureMode, textureU, textureV, textWidthBuffer, textX, textY, textZ, tint, tintA, tintAi, tintAlpha, tintB, tintBi, tintColor, tintG, tintGi, tintR, tintRi, vertexCount, vertices, warnings, width1 |
Fields inherited from class processing.core.PImage |
---|
cacheMap, format, height, modified, mx1, mx2, my1, my2, parent, pixels, saveImageFormats, width |
Fields inherited from interface processing.core.PConstants |
---|
A, AB, ADD, AG, ALPHA, ALPHA_MASK, ALT, AMBIENT, AR, ARC, ARGB, ARROW, B, BACKSPACE, BASELINE, BEEN_LIT, BEVEL, BLEND, BLUE_MASK, BLUR, BOTTOM, BOX, BURN, CENTER, CENTER_DIAMETER, CENTER_RADIUS, CHATTER, CLOSE, CMYK, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CUSTOM, DA, DARKEST, DB, DEG_TO_RAD, DELETE, DG, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_ACCURATE_TEXTURES, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_OPENGL_2X_SMOOTH, DISABLE_OPENGL_ERROR_REPORT, DODGE, DOWN, DR, DXF, EB, EDGE, EG, ELLIPSE, ENABLE_ACCURATE_TEXTURES, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_2X_SMOOTH, ENABLE_OPENGL_4X_SMOOTH, ENABLE_OPENGL_ERROR_REPORT, ENTER, EPSILON, ER, ERODE, ERROR_BACKGROUND_IMAGE_FORMAT, ERROR_BACKGROUND_IMAGE_SIZE, ERROR_PUSHMATRIX_OVERFLOW, ERROR_PUSHMATRIX_UNDERFLOW, ERROR_TEXTFONT_NULL_PFONT, ESC, EXCLUSION, G, GIF, GRAY, GREEN_MASK, HALF_PI, HAND, HARD_LIGHT, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LEFT, LIGHTEST, LINE, LINES, LINUX, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MOVE, MULTIPLY, NORMAL, NORMALIZED, NX, NY, NZ, OPAQUE, OPEN, OPENGL, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, platformNames, POINT, POINTS, POLYGON, POSTERIZE, PROBLEM, PROJECT, QUAD, QUAD_STRIP, QUADS, QUARTER_PI, R, RAD_TO_DEG, RADIUS, RECT, RED_MASK, REPLACE, RETURN, RGB, RIGHT, ROUND, SA, SB, SCREEN, SG, SHAPE, SHIFT, SHINE, SOFT_LIGHT, SPB, SPG, SPHERE, SPOT, SPR, SQUARE, SR, SUBTRACT, SW, TAB, TARGA, TEXT, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, TX, TY, TZ, U, UP, V, VERTEX_FIELD_COUNT, VW, VX, VY, VZ, WAIT, WHITESPACE, WINDOWS, X, Y, Z |
Constructor Summary | |
---|---|
PIGraphicsGL()
|
Method Summary | |
---|---|
void |
draw()
|
void |
drawIG()
Drawing all the iGeo objects through IPanel. |
void |
loop()
|
void |
noLoop()
|
void |
post()
|
void |
pre()
|
void |
setGLProperties()
|
void |
setParent(processing.core.PApplet parent)
setParent is called by Processing in the initialization process of Processing. |
void |
start()
|
void |
stop()
|
Methods inherited from class processing.opengl.PGraphicsOpenGL |
---|
addLine, addTriangle, allocate, ambientFromCalc, ambientLight, ambientLight, backgroundImpl, backgroundImpl, beginDraw, beginGL, bindTexture, canDraw, clamp, detainContext, directionalLight, emissiveFromCalc, endDraw, endGL, endShapeLighting, fillFromCalc, filter, filter, get, get, getContext, getImpl, hint, lightDirection, lightFalloff, lightPosition, lightSpecular, loadPixels, mask, mask, noSmooth, pointLight, releaseContext, renderLines, renderPoints, renderTriangles, report, resize, set, set, setRasterPos, shininess, smooth, specularFromCalc, spotLight, strokeCap, strokeJoin, strokeWeight, textAscent, textCharImpl, textCharShapeImpl, textDescent, textFont, textModeCheck, textWidthImpl, updatePixels, updateProjection |
Methods inherited from class processing.core.PGraphics3D |
---|
addLineBreak, addLineWithClip, addLineWithoutClip, addPoint, addPolygonTriangles, addTriangleWithClip, addTriangleWithoutClip, applyMatrix, applyMatrix, applyMatrix, applyMatrix, arcImpl, beginCamera, beginShape, box, camera, camera, defaultSettings, ellipseImpl, endCamera, endShape, endShapeCameraToScreen, endShapeFill, endShapeModelToCamera, endShapeStroke, flush, frustum, getMatrix, getMatrix, interpolateClipVertex, is2D, is3D, lights, modelX, modelY, modelZ, noLights, ortho, ortho, perspective, perspective, popMatrix, printCamera, printMatrix, printProjection, pushMatrix, rawLines, rawPoints, rawTriangles, render, renderLineVertices, resetMatrix, rotate, rotate, rotateX, rotateY, rotateZ, scale, scale, scale, screenX, screenX, screenY, screenY, screenZ, setMatrix, setMatrix, setSize, skewX, skewY, sort, sphere, texture, translate, translate, vertex, vertex |
Methods inherited from class processing.core.PGraphics |
---|
alpha, ambient, ambient, ambient, applyMatrix, arc, background, background, background, background, background, background, background, backgroundFromCalc, beginRaw, beginShape, bezier, bezier, bezierDetail, bezierInit, bezierInitCheck, bezierPoint, bezierTangent, bezierVertex, bezierVertex, bezierVertexCheck, blue, box, breakShape, brightness, checkSettings, color, color, color, color, color, color, color, color, color, colorCalc, colorCalc, colorCalc, colorCalc, colorCalc, colorCalc, colorCalcARGB, colorMode, colorMode, colorMode, colorMode, curve, curve, curveDetail, curveInit, curveInitCheck, curvePoint, curveTangent, curveTightness, curveVertex, curveVertex, curveVertexCheck, curveVertexSegment, curveVertexSegment, defaultFontOrDeath, defaultFontOrDeath, displayable, dispose, edge, ellipse, ellipseMode, emissive, emissive, emissive, endRaw, endShape, fill, fill, fill, fill, fill, fill, getMatrix, getStyle, getStyle, green, hue, image, image, image, imageImpl, imageMode, lerpColor, lerpColor, line, line, noFill, normal, noStroke, noTint, point, point, popStyle, pushStyle, quad, reapplySettings, rect, rect, rect, rectImpl, rectImpl, rectImpl, rectMode, red, saturation, setMatrix, setPath, setPrimary, shape, shape, shape, shapeMode, showDepthWarning, showDepthWarningXYZ, showException, showMethodWarning, showMissingWarning, showVariationWarning, showWarning, specular, specular, specular, sphereDetail, sphereDetail, splineForward, stroke, stroke, stroke, stroke, stroke, stroke, strokeFromCalc, style, text, text, text, text, text, text, text, text, text, text, text, text, text, text, textAlign, textAlign, textCharModelImpl, textCharScreenImpl, textFont, textLeading, textLineAlignImpl, textLineImpl, textMode, textSentence, textSentenceBreak, textSize, textureMode, textWidth, textWidth, textWidth, tint, tint, tint, tint, tint, tint, tintFromCalc, triangle, vertex, vertex, vertex, vertexCheck, vertexTexture |
Methods inherited from class processing.core.PImage |
---|
blend, blend, blendColor, blurAlpha, blurARGB, blurRGB, buildBlurKernel, checkAlpha, clone, copy, copy, dilate, get, getCache, getImage, init, isModified, loadTIFF, removeCache, save, saveImageIO, saveTGA, saveTIFF, setCache, setImpl, setModified, setModified, updatePixels, updatePixelsImpl |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public IPanel panel
public IGraphics igg
public com.sun.opengl.util.j2d.Overlay overlay
public static java.awt.Color overlayBG
public boolean overwritePAppletFinish
public boolean finished
public boolean overwritePAppletLoop
public boolean looping
Constructor Detail |
---|
public PIGraphicsGL()
Method Detail |
---|
public void setParent(processing.core.PApplet parent)
setParent
in class processing.core.PGraphics
parent
- parent PApplet of Processing.public void setGLProperties()
public void pre()
public void draw()
public void drawIG()
public void post()
public void loop()
public void noLoop()
public void start()
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |