com.eteks.sweethome3d.j3d
Class Ground3D
java.lang.Object
javax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Group
javax.media.j3d.BranchGroup
com.eteks.sweethome3d.j3d.Object3DBranch
com.eteks.sweethome3d.j3d.Ground3D
public class Ground3D
- extends Object3DBranch
Root of a the 3D ground.
- Author:
- Emmanuel Puybaret
| Fields inherited from class javax.media.j3d.Node |
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
|
Constructor Summary |
Ground3D(Home home,
float groundOriginX,
float groundOriginY,
float groundWidth,
float groundDepth,
boolean waitTextureLoadingEnd)
Creates a 3D ground for the given home. |
|
Method Summary |
void |
addAreaGeometry(Shape3D groundShape,
HomeTexture groundTexture,
Area area,
float elevation)
Adds to ground shape the geometry matching the given area. |
void |
update()
Updates ground coloring and texture attributes from home ground color and texture. |
| Methods inherited from class javax.media.j3d.Group |
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds |
| Methods inherited from class javax.media.j3d.Node |
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
| Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ground3D
public Ground3D(Home home,
float groundOriginX,
float groundOriginY,
float groundWidth,
float groundDepth,
boolean waitTextureLoadingEnd)
- Creates a 3D ground for the given
home.
update
public void update()
- Updates ground coloring and texture attributes from home ground color and texture.
- Specified by:
update in class Object3DBranch
addAreaGeometry
public void addAreaGeometry(Shape3D groundShape,
HomeTexture groundTexture,
Area area,
float elevation)
- Adds to ground shape the geometry matching the given area.