|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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
This class represents a shape. A shape has got a color, a style, a transparency, an image and a cullingMode. (HighLight is under construction) Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
Field Summary | |
private Color |
color_
the color of the shape |
static int |
CULL_BACKFACE
Cull mode: Backface |
static int |
CULL_FRONTFACE
Cull mode: Frontface |
static int |
CULL_NONE
Cull mode: None |
private int |
cullingMode_
|
private boolean |
highLight_
under construction |
private Color |
highLightColor_
under construction |
private String |
image_
|
private int |
style_
the style of the shape (solid...) |
static int |
STYLE_SOLID
Style: Solid |
static int |
STYLE_TEXTURE
Style: Texture |
static int |
STYLE_WIRE_FRAME
Style: Wire Frame |
private float |
transparency_
transparency: 0.0 (no transparence) -> 1.0 (100% transparent) |
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 | |
Shape()
Creates an instance of this class. |
Method Summary | |
Object |
clone()
Clones this shape |
Color |
getColor()
Returns the color |
int |
getCullingMode()
Returns the culling mode |
boolean |
getHighLight()
under construction |
Color |
getHighLightColor()
under construction |
String |
getImage()
Returns the image filename |
int |
getStyle()
Returns the style |
float |
getTransparency()
Returns the transparency |
boolean |
setColor(Color c)
Sets the color (blocked by mutable). |
boolean |
setCullingMode(int c)
Sets the culling mode (blocked by mutable). |
boolean |
setHighLight(boolean on)
under construction |
boolean |
setHighLightColor(Color c)
under construction |
boolean |
setImage(String i)
Sets the image filename (blocked by mutable). |
boolean |
setStyle(int s)
Sets the style (blocked by mutable). |
boolean |
setTransparency(float t)
Sets the transparency (blocked by mutable). |
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, calcBoundingBox, 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, getSubType, getSubTypeName, getTimeStamp, getTrace, getTraceable, getType, 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 |
public static final int STYLE_WIRE_FRAME
public static final int STYLE_SOLID
public static final int STYLE_TEXTURE
public static final int CULL_NONE
public static final int CULL_BACKFACE
public static final int CULL_FRONTFACE
private Color color_
private Color highLightColor_
private int style_
private float transparency_
private String image_
private int cullingMode_
private boolean highLight_
Constructor Detail |
public Shape()
Method Detail |
public boolean setColor(Color c)
setColor
in class Node
c
- Color
true
on successpublic Color getColor()
public boolean setHighLightColor(Color c)
public Color getHighLightColor()
public boolean setHighLight(boolean on)
setHighLight
in class Node
on
- The new HighLight flag
true
on successpublic boolean getHighLight()
public boolean setStyle(int s)
s
- Style
true
on successpublic int getStyle()
public boolean setTransparency(float t)
t
- Transparency
true
on successpublic float getTransparency()
public boolean setImage(String i)
i
- image filename
true
on successpublic String getImage()
public boolean setCullingMode(int c)
c
- Culling mode
true
on successpublic int getCullingMode()
public Object clone()
clone
in class Leaf
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |