|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.earth.model.graph.ProjectorObject
de.fhg.igd.earth.model.graph.ModelGraphObject
de.fhg.igd.earth.model.graph.Node
de.fhg.igd.earth.model.graph.Leaf
de.fhg.igd.earth.model.graph.Shape
de.fhg.igd.earth.model.graph.Primitive
de.fhg.igd.earth.model.graph.Cone
This class represents a cone (graphic object, leaf). A cone is defined by it's radius and it's height. Also you can define divisions. As higher the division value as smoother the cone will be created. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
| Field Summary | |
private float |
height_
height |
private float |
radius_
radius |
private int |
xdivision_
x-division |
private int |
ydivision_
y-division |
| Fields inherited from class de.fhg.igd.earth.model.graph.Shape |
CULL_BACKFACE, CULL_FRONTFACE, CULL_NONE, STYLE_SOLID, STYLE_TEXTURE, STYLE_WIRE_FRAME |
| Fields inherited from class de.fhg.igd.earth.model.graph.Leaf |
|
| Fields inherited from class de.fhg.igd.earth.model.graph.Node |
boundless_, collidable_, icon_, parent_, pickable_ |
| Fields inherited from class de.fhg.igd.earth.model.graph.ProjectorObject |
projectorObject_ |
| Constructor Summary | |
Cone()
Creates and initializes a default cone. |
|
Cone(float rad,
float h,
int xdiv,
int ydiv)
Creates and initializes a cone with the given values. |
|
| Method Summary | |
protected void |
calcBoundingBox(cBoundingBox boundingBox)
Calculates the bounding box of this cone. |
Object |
clone()
Clones this cone |
float |
getHeight()
Returns the height |
float |
getRadius()
Returns the radius |
int |
getSubType()
Returns SUBTYPE_CONE |
int |
getType()
Returns TYPE_LEAF |
int |
getXdiv()
Returns the xdivision |
int |
getYdiv()
Returns the ydivision |
boolean |
setHeight(float h)
Sets a new height (blocked by mutable). |
boolean |
setRadius(float rad)
Sets a new radius (blocked by mutable). |
boolean |
setXdivision(int xdiv)
Sets a new xdivision (blocked by mutable). |
boolean |
setYdiv(int ydiv)
Sets a new ydivision (blocked by mutable). |
| Methods inherited from class de.fhg.igd.earth.model.graph.Shape |
getColor, getCullingMode, getHighLight, getHighLightColor, getImage, getStyle, getTransparency, setColor, setCullingMode, setHighLight, setHighLightColor, setImage, setStyle, setTransparency |
| Methods inherited from class de.fhg.igd.earth.model.graph.Leaf |
createLeafList, createSubGroupList, createSubNodeList, detach, getVisible, searchDown, searchDown, searchDown, searchDown, searchDownInserter, searchDownInserter, setMutable, setVisible |
| Methods inherited from class de.fhg.igd.earth.model.graph.Node |
broadcastCreation, broadcastResetChanges, createParentGroupList, delete, delete, getBoundingBox, getBoundless, getBranchGroup, getCollidable, getGroup, getIcon, getLeafList, getModelGraph, getParent, getParentGroupList, getPickable, getSubGroupList, getSubNodeList, isFocused, move, move, moveTo, publishChanges, resetProjectorObject, searchUp, searchUp, searchUp, searchUp, setBoundless, setCollidable, setIcon, setParent, setPickable |
| Methods inherited from class de.fhg.igd.earth.model.graph.ModelGraphObject |
anyChanges, anySubChanges, getChanges, getChanges, getInfoTable, getInfoTableElements, getInfoTableKeys, getInfoTableSize, getInfoTableValues, getMutable, getName, getSubChanges, getSubChanges, getSubTypeName, getTimeStamp, getTrace, getTraceable, putInfo, resetChanges, setChanges, setInfoTable, setName, setSubChanges, setTrace, VectorClone |
| Methods inherited from class de.fhg.igd.earth.model.graph.ProjectorObject |
getProjectorObject, setProjectorObject |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private float radius_
private float height_
private int xdivision_
private int ydivision_
| Constructor Detail |
public Cone()
public Cone(float rad,
float h,
int xdiv,
int ydiv)
rad - Radiush - Heightxdiv - xdivisionydiv - ydivision| Method Detail |
protected void calcBoundingBox(cBoundingBox boundingBox)
calcBoundingBox in class NodeboundingBox - which will be combined withpublic int getType()
getType in class ModelGraphObjectpublic int getSubType()
getSubType in class ModelGraphObjectpublic boolean setRadius(float rad)
rad - Radius
true on success.public float getRadius()
public boolean setHeight(float h)
h - Height
true on success.public float getHeight()
public boolean setXdivision(int xdiv)
xdiv - xdivision
true on success.public int getXdiv()
public boolean setYdiv(int ydiv)
ydiv - ydivision
true on success.public int getYdiv()
public Object clone()
clone in class Primitive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||