Method Summary |
|
public void | addLight(Light light) Appends the specified light to this graphics context's list of lights.
Adding a null Light object to the list will result
in a NullPointerException. |
public void | addSound(Sound sound) Appends the specified sound to this graphics context's list of sounds.
Adding a sound to the list of sounds implicitly starts the
sound playing. |
public void | clear() Clear the Canvas3D to the color or image specified by the
current background node. |
void | doAddLight(Light light) |
void | doAddSound(Sound sound) |
void | doClear() |
void | doDraw(Geometry geometry) |
void | doFlush(boolean wait) |
void | doInsertLight(Light light, int index) |
void | doInsertSound(Sound sound, int index) |
void | doMultiplyModelTransform(Transform3D t) |
void | doReadRaster(Raster raster) |
void | doRemoveLight(int index) |
void | doRemoveSound(int index) |
void | doSetAppearance(Appearance appearance) |
void | doSetAuralAttributes(AuralAttributes attributes) |
void | doSetBackground(Background background) |
void | doSetBufferOverride(boolean bufferOverride) |
void | doSetFog(Fog fog) |
void | doSetFrontBufferRendering(boolean frontBufferRendering) |
void | doSetHiRes(HiResCoord hiRes) |
void | doSetLight(Light light, int index) |
void | doSetModelClip(ModelClip modelClip) |
void | doSetModelTransform(Transform3D t) |
void | doSetSound(Sound sound, int index) |
void | doSetStereoMode(int stereoMode) |
public void | draw(Geometry geometry) Draw the specified Geometry component object. |
public void | draw(Shape3D shape) Draw the specified Shape3D leaf node object. |
public void | flush(boolean wait) Flushes all previously executed rendering operations to the
drawing buffer for this 3D graphics context. |
public Enumeration | getAllLights() Retrieves the enumeration object of all the lights. |
public Enumeration | getAllSounds() Retrieves the enumeration object of all the sounds. |
public Appearance | getAppearance() Retrieves the current Appearance component object. |
public AuralAttributes | getAuralAttributes() Retrieves the current AuralAttributes component object. |
public Background | getBackground() Retrieves the current Background leaf node object. |
public boolean | getBufferOverride() Returns the current buffer override flag. |
public Canvas3D | getCanvas3D() Gets the Canvas3D that created this GraphicsContext3D. |
public Fog | getFog() Retrieves the current Fog leaf node object. |
public boolean | getFrontBufferRendering() Returns the current front buffer rendering flag. |
public void | getHiRes(HiResCoord hiRes) Retrieves the current HiRes coordinate of this context. |
static Integer | getImmCommand(int command) |
public Light | getLight(int index) Retrieves the index selected light. |
public ModelClip | getModelClip() Retrieves the current ModelClip leaf node object. |
public void | getModelTransform(Transform3D t) Retrieves the current model transform. |
public Sound | getSound(int index) Retrieves the index selected sound. |
SoundScheduler | getSoundScheduler() |
public int | getStereoMode() Returns the current stereo mode. |
void | initializeState() |
public void | insertLight(Light light, int index) Inserts the specified light at the specified index location. |
public void | insertSound(Sound sound, int index) Inserts the specified sound at the specified index location.
Inserting a sound to the list of sounds implicitly starts the
sound playing. |
public boolean | isSoundPlaying(int index) Retrieves the sound playing flag. |
public void | multiplyModelTransform(Transform3D t) Multiplies the current model transform by the specified
transform and stores the result back into the current
transform. |
public int | numLights() Retrieves the current number of lights in this graphics context. |
public int | numSounds() Retrieves the current number of sounds in this graphics context. |
public void | readRaster(Raster raster) Read an image from the frame buffer and copy it into the
ImageComponent and/or DepthComponent
objects referenced by the specified Raster object.
All parameters of the Raster object and the component ImageComponent
and/or DepthComponentImage objects must be set to the desired values
prior to calling this method. |
public void | removeLight(int index) Removes the light at the specified index location. |
public void | removeSound(int index) Removes the sound at the specified index location. |
void | resetAppearance() |
synchronized void | runMonitor(int action) |
void | sendRenderMessage(boolean renderRun, int command, Object arg1, Object arg2) |
void | sendSoundMessage(int command, Object arg1, Object arg2) |
public void | setAppearance(Appearance appearance) Sets the current Appearance object to the specified
Appearance component object.
The graphics context stores a reference to the specified
Appearance object. |
public void | setAuralAttributes(AuralAttributes attributes) Sets the current AuralAttributes object to the specified
AuralAttributes component object. |
public void | setBackground(Background background) Sets the current Background to the specified Background
leaf node object.
The graphics context stores a reference to the specified
Background node. |
public void | setBufferOverride(boolean bufferOverride) Sets a flag that specifies whether the double buffering and
stereo mode from the Canvas3D are overridden. |
public void | setFog(Fog fog) Sets the current Fog to the specified Fog
leaf node object.
The graphics context stores a reference to the specified
Fog node. |
public void | setFrontBufferRendering(boolean frontBufferRendering) Sets a flag that enables or disables immediate mode rendering
into the front buffer of a double buffered Canvas3D. |
public void | setHiRes(int[] x, int[] y, int[] z) Sets the HiRes coordinate of this context to the location
specified by the parameters provided. |
public void | setHiRes(HiResCoord hiRes) Sets the HiRes coordinate of this context
to the location specified by the HiRes argument. |
public void | setLight(Light light, int index) Replaces the specified light with the light provided.
The graphics context stores a reference to each light
object in the list of lights. |
public void | setModelClip(ModelClip modelClip) Sets the current ModelClip leaf node to the specified object.
The graphics context stores a reference to the specified
ModelClip node. |
public void | setModelTransform(Transform3D t) Sets the current model transform to a copy of the specified
transform. |
public void | setSound(Sound sound, int index) Replaces the specified sound with the sound provided.
The graphics context stores a reference to each sound
object in the list of sounds. |
public void | setStereoMode(int stereoMode) Sets the stereo mode for immediate mode rendering. |
void | updateFogState(FogRetained fogRet) |
void | updateLightAndFog() |
void | updateLightState(LightRetained light) |
void | updateModelClip(Transform3D vworldToVpc) |
void | updateSoundState(SoundRetained sound) |
boolean | updateState(RenderBin rb, int geometryType) |