com.yobotics.simulationconstructionset.util.ground
Class CombinedTerrainObject
java.lang.Object
com.yobotics.simulationconstructionset.util.ground.CombinedTerrainObject
- All Implemented Interfaces:
- TerrainObject, GroundProfile, HeightMap
- Direct Known Subclasses:
- SimpleBoxEnvironment, SimpleCombinedTerrainObjectsEnvironment
public class CombinedTerrainObject
- extends java.lang.Object
- implements TerrainObject
Method Summary |
void |
addBox(double xStart,
double yStart,
double xEnd,
double yEnd,
double height)
|
void |
addBox(double xStart,
double yStart,
double xEnd,
double yEnd,
double height,
AppearanceDefinition appearance)
|
void |
addBox(double xStart,
double yStart,
double xEnd,
double yEnd,
double zStart,
double zEnd)
|
void |
addBox(double xStart,
double yStart,
double xEnd,
double yEnd,
double zStart,
double zEnd,
AppearanceDefinition appearance)
|
void |
addCone(double xMiddle,
double yMiddle,
double bottomRadius,
double topRadius,
double height)
|
void |
addCone(double xMiddle,
double yMiddle,
double bottomRadius,
double topRadius,
double height,
AppearanceDefinition appearance)
|
void |
addRamp(double xStart,
double yStart,
double xEnd,
double yEnd,
double height)
|
void |
addRamp(double xStart,
double yStart,
double xEnd,
double yEnd,
double height,
AppearanceDefinition appearance)
|
void |
addRotatableBox(Box3d box,
AppearanceDefinition appearanceDefinition)
|
void |
addRotatableTable(javax.media.j3d.Transform3D configuration,
double xLength,
double yWidth,
double zLength,
double tableTopThickness)
|
void |
addRotatedRamp(double xStart,
double yStart,
double xEnd,
double yEnd,
double height,
double degrees,
AppearanceDefinition appearance)
|
void |
addStaticLinkGraphics(Graphics3DObject linkGraphics)
|
void |
addTable(double xStart,
double yStart,
double xEnd,
double yEnd,
double zStart,
double zEnd)
|
void |
addTerrainObject(TerrainObject object)
|
void |
addYawableBox(javax.media.j3d.Transform3D configuration,
double xLength,
double yWidth,
double zHeight,
AppearanceDefinition appearance)
Deprecated. |
void |
closestIntersectionAndNormalAt(double x,
double y,
double z,
javax.vecmath.Point3d intersection,
javax.vecmath.Vector3d normal)
|
void |
closestIntersectionTo(double x,
double y,
double z,
javax.vecmath.Point3d intersection)
|
BoundingBox3d |
getBoundingBox()
|
Graphics3DObject |
getLinkGraphics()
|
java.lang.String |
getName()
|
java.util.ArrayList<TerrainObject> |
getTerrainObjects()
|
double |
getXMax()
|
double |
getXMin()
|
double |
getXTiles()
|
double |
getYMax()
|
double |
getYMin()
|
double |
getYTiles()
|
double |
getZMax()
|
double |
getZMin()
|
double |
heightAt(double xWorldCoord,
double yWorldCoord,
double zWorldCoord)
|
boolean |
isClose(double x,
double y,
double z)
|
void |
surfaceNormalAt(double xWorld,
double yWorld,
double zWorld,
javax.vecmath.Vector3d normal)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CombinedTerrainObject
public CombinedTerrainObject(java.lang.String name)
getName
public java.lang.String getName()
addBox
public void addBox(double xStart,
double yStart,
double xEnd,
double yEnd,
double height,
AppearanceDefinition appearance)
addBox
public void addBox(double xStart,
double yStart,
double xEnd,
double yEnd,
double zStart,
double zEnd)
addBox
public void addBox(double xStart,
double yStart,
double xEnd,
double yEnd,
double zStart,
double zEnd,
AppearanceDefinition appearance)
addYawableBox
@Deprecated
public void addYawableBox(javax.media.j3d.Transform3D configuration,
double xLength,
double yWidth,
double zHeight,
AppearanceDefinition appearance)
- Deprecated.
addRotatableBox
public void addRotatableBox(Box3d box,
AppearanceDefinition appearanceDefinition)
addBox
public void addBox(double xStart,
double yStart,
double xEnd,
double yEnd,
double height)
addCone
public void addCone(double xMiddle,
double yMiddle,
double bottomRadius,
double topRadius,
double height,
AppearanceDefinition appearance)
addCone
public void addCone(double xMiddle,
double yMiddle,
double bottomRadius,
double topRadius,
double height)
addRotatedRamp
public void addRotatedRamp(double xStart,
double yStart,
double xEnd,
double yEnd,
double height,
double degrees,
AppearanceDefinition appearance)
addRamp
public void addRamp(double xStart,
double yStart,
double xEnd,
double yEnd,
double height,
AppearanceDefinition appearance)
addRamp
public void addRamp(double xStart,
double yStart,
double xEnd,
double yEnd,
double height)
addTable
public void addTable(double xStart,
double yStart,
double xEnd,
double yEnd,
double zStart,
double zEnd)
addRotatableTable
public void addRotatableTable(javax.media.j3d.Transform3D configuration,
double xLength,
double yWidth,
double zLength,
double tableTopThickness)
addTerrainObject
public void addTerrainObject(TerrainObject object)
addStaticLinkGraphics
public void addStaticLinkGraphics(Graphics3DObject linkGraphics)
getTerrainObjects
public java.util.ArrayList<TerrainObject> getTerrainObjects()
getLinkGraphics
public Graphics3DObject getLinkGraphics()
- Specified by:
getLinkGraphics
in interface TerrainObject
heightAt
public double heightAt(double xWorldCoord,
double yWorldCoord,
double zWorldCoord)
- Specified by:
heightAt
in interface GroundProfile
- Specified by:
heightAt
in interface HeightMap
surfaceNormalAt
public void surfaceNormalAt(double xWorld,
double yWorld,
double zWorld,
javax.vecmath.Vector3d normal)
- Specified by:
surfaceNormalAt
in interface GroundProfile
closestIntersectionTo
public void closestIntersectionTo(double x,
double y,
double z,
javax.vecmath.Point3d intersection)
- Specified by:
closestIntersectionTo
in interface GroundProfile
closestIntersectionAndNormalAt
public void closestIntersectionAndNormalAt(double x,
double y,
double z,
javax.vecmath.Point3d intersection,
javax.vecmath.Vector3d normal)
- Specified by:
closestIntersectionAndNormalAt
in interface GroundProfile
isClose
public boolean isClose(double x,
double y,
double z)
- Specified by:
isClose
in interface GroundProfile
getXMin
public double getXMin()
- Specified by:
getXMin
in interface HeightMap
getYMin
public double getYMin()
- Specified by:
getYMin
in interface HeightMap
getXMax
public double getXMax()
- Specified by:
getXMax
in interface HeightMap
getYMax
public double getYMax()
- Specified by:
getYMax
in interface HeightMap
getZMax
public double getZMax()
getZMin
public double getZMin()
getXTiles
public double getXTiles()
- Specified by:
getXTiles
in interface HeightMap
getYTiles
public double getYTiles()
- Specified by:
getYTiles
in interface HeightMap
getBoundingBox
public BoundingBox3d getBoundingBox()
- Specified by:
getBoundingBox
in interface TerrainObject