|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.earth.view.Projector de.fhg.igd.earth.view.JavaProjector
This is an abstract class that represents a Java3D projector. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
Field Summary | |
private boolean |
autoFocus_
|
protected javax.media.j3d.Canvas3D |
canvas3D_
|
protected boolean |
checkDetailLevels_
|
protected Vector |
detachedBranchGroups_
|
protected Vector |
detailGroups_
|
protected float |
distance_
|
protected Vector |
distanceDetailGroups_
|
private boolean |
dlod_
|
protected JLabel |
fpsLabel_
|
private long |
frameNumber_
|
private long |
frameTime_
|
private boolean |
lod_
|
protected javax.media.j3d.BoundingSphere |
mainBounds_
|
protected boolean |
newUniverse
|
protected JLabel |
positionLabel_
|
protected javax.media.j3d.View |
view_
|
protected JSlider |
zoomSlider_
|
protected JComponent |
zoomSliderPanel_
|
Fields inherited from class de.fhg.igd.earth.view.Projector |
container_, containerHeight_, containerWidth_, enabled_, firstTime_, model_, projectorManager_ |
Constructor Summary | |
JavaProjector(JComponent container)
Creates an instance of this class |
Method Summary | |
void |
addFPSLabel(JLabel label)
adds the frames per second label (GUI) |
private void |
addGlobalLights(javax.media.j3d.BranchGroup objRoot)
adds default global lights to the J3D branch group |
void |
addPositionLabel(JLabel label)
adds the geo position label (GUI) |
private void |
autoFocus()
calculates the focus |
void |
calcFPS()
calculates the frames per second |
private void |
checkBranchGroupDetached(Node node)
Checks if the branch group of the given node is already detached |
protected void |
checkErasedChildren(Group group)
Checks for erased children in the given group |
protected abstract boolean |
checkLatchGroup(Node node)
update LATCH GROUP |
void |
delete()
Deletes this projector |
void |
enableAutoFocus(boolean b)
Enables or Disables the AutoFocus |
void |
enableDLOD(boolean b)
Enables or Disables the DistanceLevelOfDetail |
void |
enableLOD(boolean b)
Enables or Disables the LevelOfDetail |
JSlider |
getZoomSlider()
gets the zoom slider (GUI) |
private void |
insertChild(Node node,
javax.media.j3d.Node jNode)
Inserts a new NODE into the J3D model node (jNode) |
private boolean |
loopLinkExists(ModelGraphObject mgObject)
Returns true if the given model graph object has a projector link. |
protected abstract cMatrix4d |
PixelTransformer(cMatrix4d x)
This mehtod is called by updateTransformGroup() to transform a matrix for a special projector. |
protected abstract cPoint3d[] |
PixelTransformer(cPoint3d[] x)
This mehtod is called by updateTransformGroup() to transform a point field for a special projector. |
protected abstract cVector3f[] |
PixelTransformer(cVector3f[] x)
This mehtod is called by updateTransformGroup() to transform a vector field for a special projector. |
private void |
reinsertDetachedBranchGroups()
Reinserts the detached branch group into the J3D model |
void |
renderOnce()
Calls the render engine to render one frame |
void |
resizeContainer(int x,
int y)
GUI |
void |
saveSnapshot()
|
private void |
setAppearance(Shape shape,
javax.media.j3d.Appearance app,
javax.media.j3d.PolygonAttributes pa)
sets the appearance (app) and the polygon attributes (pa) of a shape |
void |
setDistance(float distance)
sets the distance form center |
void |
setLOD(int level)
set the level of detail |
void |
setPositionLabel(String text)
sets the position label |
protected abstract void |
setViewPosition(double longitude,
double latitude)
sets the view position |
void |
setZoomSliderPanel(JComponent container)
sets the zoom slider panel (GUI) |
void |
update()
updates the projector |
private void |
update(Node node)
update NODE |
private void |
updateAppearance(Shape shape)
updates the appearance of a shape |
protected void |
updateBranchGroup(BranchGroup branchGroup)
update BRANCH GROUP |
protected void |
updateGroup(Group group)
update GROUP |
protected abstract void |
updateModelGraph(ModelGraph model)
update MODEL GRAPH |
protected void |
updatePolygon(Polygon polygon)
update POLYGON |
protected void |
updatePrimitive(Primitive primitive)
update PRIMITIVE |
protected void |
updateSwitchGroup(SwitchGroup switchGroup)
update SWITCH GROUP |
protected void |
updateText(Text text)
update TEXT |
protected void |
updateTransformGroup(TransformGroup transformGroup)
update TRANSFORM GROUP |
Methods inherited from class de.fhg.igd.earth.view.Projector |
getIdentName, resizePanelEvent, setModel, setProjectorManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.media.j3d.Canvas3D canvas3D_
protected javax.media.j3d.View view_
protected Vector detachedBranchGroups_
protected boolean newUniverse
protected Vector detailGroups_
protected Vector distanceDetailGroups_
protected boolean checkDetailLevels_
protected float distance_
protected javax.media.j3d.BoundingSphere mainBounds_
protected JSlider zoomSlider_
protected JComponent zoomSliderPanel_
protected JLabel positionLabel_
protected JLabel fpsLabel_
private boolean lod_
private boolean dlod_
private boolean autoFocus_
private long frameNumber_
private long frameTime_
Constructor Detail |
public JavaProjector(JComponent container)
Method Detail |
public void resizeContainer(int x, int y)
resizeContainer
in class Projector
public void saveSnapshot()
public void renderOnce()
public void setLOD(int level)
level
- public void setDistance(float distance)
distance
- public void update()
update
in class Projector
private void update(Node node)
node
- protected abstract void updateModelGraph(ModelGraph model)
model
- protected abstract boolean checkLatchGroup(Node node)
node
- protected void checkErasedChildren(Group group)
group
- protected void updateBranchGroup(BranchGroup branchGroup)
branchGroup
- protected void updateGroup(Group group)
group
- protected void updateTransformGroup(TransformGroup transformGroup)
transformGroup
- protected void updateSwitchGroup(SwitchGroup switchGroup)
switchGroup
- protected void updatePolygon(Polygon polygon)
polygon
- protected void updatePrimitive(Primitive primitive)
primitive
- protected void updateText(Text text)
text
- private void setAppearance(Shape shape, javax.media.j3d.Appearance app, javax.media.j3d.PolygonAttributes pa)
shape
- app
- pa
- private void updateAppearance(Shape shape)
shape
- private void insertChild(Node node, javax.media.j3d.Node jNode)
node
- jNode
- private void checkBranchGroupDetached(Node node)
node
- private void reinsertDetachedBranchGroups()
private boolean loopLinkExists(ModelGraphObject mgObject)
private void addGlobalLights(javax.media.j3d.BranchGroup objRoot)
protected abstract cMatrix4d PixelTransformer(cMatrix4d x)
protected abstract cPoint3d[] PixelTransformer(cPoint3d[] x)
protected abstract cVector3f[] PixelTransformer(cVector3f[] x)
public void setZoomSliderPanel(JComponent container)
public JSlider getZoomSlider()
public void addPositionLabel(JLabel label)
public void addFPSLabel(JLabel label)
public void calcFPS()
private void autoFocus()
protected abstract void setViewPosition(double longitude, double latitude)
longitude
- latitude
- public void setPositionLabel(String text)
text
- public void enableLOD(boolean b)
public void enableDLOD(boolean b)
public void enableAutoFocus(boolean b)
public void delete()
delete
in class Projector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |