|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--javax.media.j3d.Canvas3D | +--jhu.htm3D.htm3DCapturingCanvas3D
Class CapturingCanvas3D, using the instructions from the Java3D FAQ pages on how to capture a still image in jpeg format. If the writeJPEG_ flag is set to true, the next update() writes a file, htm3DCaptureX.jpg where X is a number count.
Inner classes inherited from class java.awt.Canvas |
java.awt.Canvas.AccessibleAWTCanvas |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
Field Summary | |
boolean |
writeJPEG_
Flag that triggers the capture |
Fields inherited from class javax.media.j3d.Canvas3D |
active, added, AMBIENTLIGHT_DIRTY, anisotropicDegreeMax, antialiasingSet, appearance, appHandle, ARB_MULTISAMPLE, ARB_TRANSPOSE_MATRIX, attributeBin, ATTRIBUTEBIN_BIT, ATTRIBUTEBIN_DIRTY, BACKGROUND_DIRTY, BACKGROUND_IMAGE_DIRTY, byteBuffer, canvasBit, canvasDirty, canvasViewCache, canvasViewEventCatcher, coloringAttributes, COLORINGATTRS_DIRTY, ctx, ctxChanged, ctxEyeLightingEnable, ctxReset, ctxTimeStamp, currentAppear, currentLights, currentMaterial, curStateToUpdate, cvDirtyMask, cvLock, depthBufferEnableOverride, depthBufferWriteEnable, depthBufferWriteEnableOverride, dirtyDlistPerRinfoList, dirtyMaskLock, dirtyRenderAtomList, dirtyRenderMoleculeList, displayListResourceFreeList, doubleBufferAvailable, doubleBufferEnable, drawingSurfaceObject, enableMask, ENV_STATE_MASK, environmentSet, ENVIRONMENTSET_BIT, evaluateLock, eventCatcher, EXT_ABGR, EXT_BGR, EXT_COMPILED_VERTEX_ARRAYS, EXT_MULTI_DRAW_ARRAYS, EXT_RESCALE_NORMAL, EXT_SEPARATE_SPECULAR_COLOR, extensionsSupported, EYE_IN_IMAGE_PLATE_DIRTY, FIELD_ALL, FIELD_LEFT, FIELD_RIGHT, firstPaintCalled, fog, FOG_DIRTY, fogOn, frameCount, fullscreenHeight, fullScreenMode, fullscreenWidth, gfxCreationLock, graphics2D, graphicsConfiguration, graphicsContext3D, imageReady, isRunning, isRunningStatus, leftManualEyeInImagePlate, lightBin, LIGHTBIN_BIT, LIGHTBIN_DIRTY, lightChanged, LIGHTENABLES_DIRTY, lights, lineAttributes, LINEATTRS_DIRTY, localEyeLightingEnable, material, MATERIAL_DIRTY, modelClip, MODELCLIP_DIRTY, modelMatrix, MONOSCOPIC_VIEW_POLICY_DIRTY, monoscopicViewPolicy, MOVED_OR_RESIZED_DIRTY, multiTexAccelerated, nativeGraphicsVersion, nativeWSobj, needToRebuildDisplayList, newPosition, newSize, NOCHANGE, numActiveTexUnit, numTexUnitSupported, offScreen, offScreenBuffer, offScreenCanvasClippedLoc, offScreenCanvasClippedSize, offScreenCanvasLoc, offScreenCanvasSize, offScreenRendering, parent, pendingView, pointAttributes, POINTATTRS_DIRTY, polygonAttributes, POLYGONATTRS_DIRTY, queryProps, ra, raIsVisible, RECREATEDDRAW, reEvaluateCanvasCmd, renderingAttrs, renderMolecule, RENDERMOLECULE_BIT, RENDERMOLECULE_DIRTY, RESETSURFACE, RESIZE, resizeGraphics2D, rightManualEyeInImagePlate, rightStereoPass, sceneAmbient, sceneAntialiasingAvailable, sceneAntialiasingMultiSamplesAvailable, screen, stateUpdateMask, STEREO_DIRTY, stereoAvailable, stereoEnable, SUN_CONSTANT_DATA, SUN_GLOBAL_ALPHA, SUN_MULTI_DRAW_ARRAYS, swapDone, texAttrs, texCoordGeneration, texLinearMode, texture, TEXTURE_3D, TEXTURE_ANISOTROPIC_FILTER, TEXTURE_COLOR_TABLE, TEXTURE_COMBINE, TEXTURE_COMBINE_DOT3, TEXTURE_COMBINE_SUBTRACT, TEXTURE_CUBE_MAP, TEXTURE_DETAIL, TEXTURE_FILTER4, TEXTURE_LERP, TEXTURE_LOD_OFFSET, TEXTURE_LOD_RANGE, TEXTURE_MULTI_TEXTURE, TEXTURE_REGISTER_COMBINERS, TEXTURE_SHARPEN, textureBin, TEXTUREBIN_BIT, TEXTUREBIN_DIRTY, textureBoundaryWidthMax, textureColorTableSize, textureExtendedFeatures, textureIdResourceFreeList, TEXTURESETTINGBIN_DIRTY, texUnitState, texUnitStateMap, TOGGLEFULLSCREEN, transparency, TRANSPARENCY_BIT, TRANSPARENCYATTRS_DIRTY, useDoubleBuffer, useSharedCtx, useStereo, validCanvas, validCtx, vfPlanesValid, vid, view, VIEW_INFO_DIRTY, viewFrustum, visible, visInfo, visInfoTable, vpcToEc, VWORLD_SCALE_DIRTY, vworldToEc, waiting, waitingForOffScreenRendering, window |
Fields inherited from class java.awt.Component |
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, newEventsOnly, ownedWindowK, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, width, windowClosingException, windowListenerK, x, y |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
htm3DCapturingCanvas3D(java.awt.GraphicsConfiguration gc)
|
Method Summary | |
void |
postSwap()
|
Methods inherited from class javax.media.j3d.Canvas3D |
|
Methods inherited from class java.awt.Canvas |
constructComponentName, getAccessibleContext, postsOldMouseEvents |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkGD, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createChildHierarchyEvents, createHierarchyEvents, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, dispatchEventImpl, doLayout, enable, enable, enableEvents, enableInputMethods, eventEnabled, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getAlignmentX, getAlignmentY, getBackground, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocationOnScreen_NoTreeLock, getMaximumSize, getMinimumSize, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getPreferredSize, getToolkit, getToolkitImpl, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, layout, lightweightPaint, lightweightPrint, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, numListening, paintAll, paintHeavyweightComponents, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, printHeavyweightComponents, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean writeJPEG_
Constructor Detail |
public htm3DCapturingCanvas3D(java.awt.GraphicsConfiguration gc)
Method Detail |
public void postSwap()
postSwap
in class javax.media.j3d.Canvas3D
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |