|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jbeans.j3d.modeler.scene.SceneModeler
SceneModeler is an abstract and super class of all modelers to create javax.media.j3d.BranchGroup object from data.
Serializable
,
Serialized FormField Summary | |
protected double[] |
bounds
|
protected double[] |
center
|
protected javax.swing.event.EventListenerList |
sceneListeners
|
protected java.util.Vector |
scenes
A Vector object containing the scene graph(s) representing the scene. |
Constructor Summary | |
SceneModeler()
a null-constructor. |
Method Summary | |
protected void |
addScene(javax.media.j3d.BranchGroup bGroup)
|
protected void |
addScene(int index,
javax.media.j3d.BranchGroup bGroup)
|
void |
addSceneListener(SceneGraphObjectListener l)
adds an GeometryListener to the shape |
protected void |
clearScene()
|
protected void |
detachScene()
detach the all BranchGroup in this.scenes from listeners. |
double[] |
getBounds()
|
void |
getBounds(double[] bounds)
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax). |
double[] |
getCenter()
|
double |
getLength()
|
javax.media.j3d.BranchGroup |
getScene()
Returns the current shape object. |
javax.media.j3d.BranchGroup[] |
getScenes()
Returns the current shape object. |
protected void |
model()
Construct a javax.media.j3d.Node object. |
protected abstract void |
modelScene()
|
void |
removeSceneListener(SceneGraphObjectListener l)
removes an GeometryListener from the shape. |
protected void |
setScene(javax.media.j3d.BranchGroup bGroup)
|
protected void |
update()
Update a javax.media.j3d.BranchGroup object. |
protected abstract void |
updateScene()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient javax.swing.event.EventListenerList sceneListeners
protected transient double[] bounds
protected transient double[] center
protected transient java.util.Vector scenes
Constructor Detail |
public SceneModeler()
Method Detail |
protected abstract void modelScene()
protected abstract void updateScene()
protected void model()
protected void update()
protected void clearScene()
protected void setScene(javax.media.j3d.BranchGroup bGroup)
protected void addScene(javax.media.j3d.BranchGroup bGroup)
protected void addScene(int index, javax.media.j3d.BranchGroup bGroup)
public javax.media.j3d.BranchGroup getScene()
public javax.media.j3d.BranchGroup[] getScenes()
public void addSceneListener(SceneGraphObjectListener l)
public void removeSceneListener(SceneGraphObjectListener l)
protected void detachScene()
public double[] getBounds()
public void getBounds(double[] bounds)
public double[] getCenter()
public double getLength()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |