Interface IRenderArea
- All Known Subinterfaces:
IRenderAreaExaminer,IRenderAreaInteractive
- All Known Implementing Classes:
RenderArea,RenderArea,RenderAreaExaminer,RenderAreaExaminer,RenderAreaInteractive,RenderAreaInteractive,RenderAreaOrbiter,RenderAreaOrbiter
public interface IRenderArea
Interface for basic render area.
-
Method Summary
Modifier and TypeMethodDescriptionvoidactivateStereo(boolean activated) Activates or deactivates raw stereo.voiddispose()Dispose area resources.Gets the antialiasing mode.floatGets the antialiasing quality value.Gets the parent component of this render area.Gets the GLRenderAction used for rendering.intGets delay for supersampling when "still" (not interacting).floatGets quality for supersampling when "still" (not interacting).Gets the global transparency algorithm to use when rendering.booleanGets availability of raw stereo.voidSchedules a redraw for some time in the near future.voidSets the antialiasing mode.voidsetAntialiasingQuality(float quality) Sets the antialiasing quality value.voidSets the GLRenderAction used for rendering.voidsetSceneGraph(SoNode sceneGraph) Sets the scene graph.voidsetStillSuperSamplingDelay(int delay) Sets delay for supersampling when "still" (not interacting).voidsetStillSuperSamplingQuality(float quality) Sets quality for supersampling when "still" (not interacting).voidSets the global transparency algorithm to use when rendering.
-
Method Details
-
getComponent
Component getComponent()Gets the parent component of this render area.- Returns:
- the parent component
-
setSceneGraph
Sets the scene graph. This is the Open Inventor scene which will be traversed for rendering and event processing.- Parameters:
sceneGraph- the scene graph
-
getGLRenderAction
SoGLRenderAction getGLRenderAction()Gets the GLRenderAction used for rendering.- Returns:
- the GLRenderAction used for rendering
-
setGLRenderAction
Sets the GLRenderAction used for rendering.- Parameters:
ra- the GLRenderAction used for rendering
-
getTransparencyType
SoGLRenderAction.TransparencyTypes getTransparencyType()Gets the global transparency algorithm to use when rendering.- Returns:
- the global transparency algorithm
-
setTransparencyType
Sets the global transparency algorithm to use when rendering.- Parameters:
type- the global transparency algorithm
-
getAntialiasingQuality
float getAntialiasingQuality()Gets the antialiasing quality value.- Returns:
- the antialiasing quality, factor in the range [0.0,1.0].
-
setAntialiasingQuality
void setAntialiasingQuality(float quality) Sets the antialiasing quality value.Default value is 0.0. The value 0.0 turns off antialiasing.
- Parameters:
quality- The quality is a factor in the range [0.0,1.0].
-
getAntialiasingMode
SoSceneManager.AntialiasingModes getAntialiasingMode()Gets the antialiasing mode.- Returns:
- the antialiasing algorithm
-
setAntialiasingMode
Sets the antialiasing mode.Default value is NO_ANTIALIASING which turns off antialiasing.
- Parameters:
mode- the antialiasing algorithm.
-
getStillSuperSamplingQuality
float getStillSuperSamplingQuality()Gets quality for supersampling when "still" (not interacting).- Returns:
- the quality for supersampling, factor in the range [0.0,1.0].
-
setStillSuperSamplingQuality
void setStillSuperSamplingQuality(float quality) Sets quality for supersampling when "still" (not interacting).When quality is greater than 0, still images will be automatically supersampled. Default value is 0.0. Use the value 0.0 to turn off still supersampling. 0.5 is a typical value.
- Parameters:
quality- The quality is a factor in the range [0.0,1.0].
-
getStillSuperSamplingDelay
int getStillSuperSamplingDelay()Gets delay for supersampling when "still" (not interacting).- Returns:
- the delay for supersampling in milliseconds.
-
setStillSuperSamplingDelay
void setStillSuperSamplingDelay(int delay) Sets delay for supersampling when "still" (not interacting).If greater than 0, images will be supersampled after the specified delay. Default value is 0. The delay is in milliseconds.
- Parameters:
delay- The delay for supersampling in milliseconds.
-
scheduleRedraw
void scheduleRedraw()Schedules a redraw for some time in the near future. -
activateStereo
void activateStereo(boolean activated) Activates or deactivates raw stereo.- Parameters:
activated- true to activate raw stereo
-
isRawStereoAvailable
boolean isRawStereoAvailable()Gets availability of raw stereo.- Returns:
- true if the raw stereo is available
-
dispose
void dispose()Dispose area resources.
-