|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.chart3d.j3d.JC3DUniverse
This class provides low-level methods to build the Java 3D scene graph.
An instance of this class is created in JCChart3dUniverse
.
Field Summary | |
protected com.klg.jclass.chart3d.j3d.JCTransformGroup |
tgViewPlatform
|
Constructor Summary | |
JC3DUniverse()
Creates the Java3D scene graph with view platform. |
Method Summary | |
void |
addAmbientLight()
Adds an AmbientLight to the scene graph. |
void |
addBackground()
Adds a Background with default characteristics to the scene graph. |
void |
addBehavior(Behavior behavior)
Adds a specified Behavior to the scene graph. |
void |
addContent(com.klg.jclass.chart3d.j3d.JCBranchGroup bg)
Adds a BranchGroup containing the 3D chart to the scene graph. |
void |
addDirectionalLight()
Adds a DirectionalLight with default characteristics to the scene graph. |
void |
addFog(Fog fog)
Adds a Fog object to the scene graph. |
void |
addLighting(Light light)
Adds a Light object to the scene graph. |
void |
addLinearFog(Color3f fogColor)
Adds a LinearFog object to the scene graph. |
void |
addPointLight()
Adds a PointLight with default characteristics to the scene graph. |
void |
addSpotLight()
Adds a SpotLight with default characteristics to the scene graph. |
void |
adjustFogDistance(double z)
Changes the front and back distances of the fog by the specified value. |
com.klg.jclass.chart3d.j3d.JCBranchGroup |
createSceneGraph(Canvas3D canvas)
Creates the Java3D scene graph. |
void |
enableFog(boolean flag)
Displays or hides the fog. |
Background |
getBackgroundNode()
Returns the Background object. |
BoundingSphere |
getBoundingSphere()
Returns the BoundingSphere associated with Fog ,
Light , and Background objects in the virtual universe. |
protected com.klg.jclass.chart3d.j3d.JCCanvas3D |
getCanvas3D()
|
com.klg.jclass.chart3d.j3d.JCBranchGroup |
getContent()
Returns the BranchGroup containing the 3D chart. |
protected Point3d |
getEyeCoordinate()
|
Fog |
getFog()
Returns the last Fog object that was added. |
double |
getFogBackDistance()
Returns the back distance of the fog. |
void |
getFogColor(Color3f color3f)
Returns the color of the fog. |
double |
getFogFrontDistance()
Returns the front distance of the fog. |
ArrayList |
getLighting()
Returns an ArrayList containing references to all of the Light objects
in the scene graph. |
Locale |
getLocale()
Returns the Locale object for the virtual universe. |
com.klg.jclass.chart3d.j3d.JCBranchGroup |
getSceneBranchGroup()
Returns the BranchGroup containing the scene graph. |
double |
getViewPlatformDistance()
|
protected com.klg.jclass.chart3d.j3d.JCTransformGroup |
getViewPlatformTransformGroup()
|
boolean |
isFogEnabled()
Returns the display state of the fog. |
void |
removeAllContent()
Removes the BranchGroup containing the 3D chart from the scene graph. |
void |
removeBackground()
Removes the Background object from the scene graph. |
void |
removeFog()
Removes any Fog object from the scene graph. |
void |
removeLighting()
Removes all Light objects from the scene graph. |
void |
setFogBackDistance(double back)
Sets the back distance of the fog. |
void |
setFogColor(Color3f color3f)
Sets the color of the fog. |
void |
setFogFrontDistance(double front)
Sets the front distance of the fog. |
void |
setSceneAntialiasing(boolean flag)
Enables or disables full scene antialiasing. |
void |
setViewPlatformDistance(double vpDistance)
|
void |
setViewPlatformRotation(double angleX,
double angleY,
double angleZ)
Adjust the orientation of the view platform so that the plotcube appears to be rotated in the specified x,y, and z angles. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.chart3d.j3d.JCTransformGroup tgViewPlatform
Constructor Detail |
public JC3DUniverse()
Method Detail |
public com.klg.jclass.chart3d.j3d.JCBranchGroup createSceneGraph(Canvas3D canvas)
canvas
- the Canvas3D
in which the chart is rendered
JCBranchGroup
containing the scene graphprotected com.klg.jclass.chart3d.j3d.JCCanvas3D getCanvas3D()
public BoundingSphere getBoundingSphere()
BoundingSphere
associated with Fog
,
Light
, and Background
objects in the virtual universe.
BoundingSphere
objectprotected com.klg.jclass.chart3d.j3d.JCTransformGroup getViewPlatformTransformGroup()
public com.klg.jclass.chart3d.j3d.JCBranchGroup getSceneBranchGroup()
BranchGroup
containing the scene graph.
BranchGroup
containing the scene graphpublic void setViewPlatformDistance(double vpDistance)
public double getViewPlatformDistance()
protected Point3d getEyeCoordinate()
public void addFog(Fog fog)
Fog
object to the scene graph.
fog
- the Fog
object to be addedpublic void addLinearFog(Color3f fogColor)
LinearFog
object to the scene graph. Any existing Fog
object is replaced.
fogColor
- the color of the fog to be addedpublic void removeFog()
Fog
object from the scene graph.
public Fog getFog()
Fog
object that was added.
Fog
object added to the scene graphpublic void enableFog(boolean flag)
flag
- true
to show the fog, false
to hide the fogpublic boolean isFogEnabled()
true
if the fog is visible, false
if the fog is hiddenpublic void setFogColor(Color3f color3f)
color3f
- the desired color of the fogpublic void getFogColor(Color3f color3f)
color3f
- the color of the fogpublic double getFogFrontDistance()
public double getFogBackDistance()
public void setFogFrontDistance(double front)
front
- the front distance of the fog (in meters)public void setFogBackDistance(double back)
back
- the back distance of the fog (in meters)public void adjustFogDistance(double z)
z
- the value (in meters) by which the front and back distances are to be changedpublic void addBehavior(Behavior behavior)
Behavior
to the scene graph.
behavior
- the Behavior
object to be addedpublic void addContent(com.klg.jclass.chart3d.j3d.JCBranchGroup bg)
BranchGroup
containing the 3D chart to the scene graph.
bg
- the BranchGroup
to be addedpublic void removeAllContent()
BranchGroup
containing the 3D chart from the scene graph.
public com.klg.jclass.chart3d.j3d.JCBranchGroup getContent()
BranchGroup
containing the 3D chart.
BranchGroup
containing the 3D chartpublic void addLighting(Light light)
Light
object to the scene graph.
light
- the Light
object to be addedpublic void removeLighting()
Light
objects from the scene graph.
public ArrayList getLighting()
ArrayList
containing references to all of the Light
objects
in the scene graph.
ArrayList
containing references to all Light
objectspublic void addAmbientLight()
AmbientLight
to the scene graph.
public void addSpotLight()
SpotLight
with default characteristics to the scene graph.
public void addDirectionalLight()
DirectionalLight
with default characteristics to the scene graph.
public void addPointLight()
PointLight
with default characteristics to the scene graph.
public void addBackground()
Background
with default characteristics to the scene graph.
public void removeBackground()
Background
object from the scene graph.
public Background getBackgroundNode()
Background
object.
Background
objectpublic void setSceneAntialiasing(boolean flag)
flag
- true
to enable full scene antialiasing, false
to disablepublic Locale getLocale()
Locale
object for the virtual universe.
Locale
objectpublic void setViewPlatformRotation(double angleX, double angleY, double angleZ)
angleX
- rotation about the x axis in degreesangleY
- rotation about the y axis in degreesangleZ
- rotation about the z axis in degrees
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |