|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.video.model.DualColoration
public class DualColoration
Coloration implementation that uses two different Colorations based on a
divider line. Which coloration is used is based on the current vertex. If
the vertex is above the divider's value, the first Coloration is used. If it
isn't, then the second divider is used.
The divider is simply a float value that identifies where along it's axis
the divider is. It can be based on the X, Y, or Z axis.
API Stability: Stable.
Constructor Summary | |
---|---|
DualColoration()
Constructs a DualColoration. |
Method Summary | |
---|---|
void |
draw(Context options,
int number,
float[] vertex)
Causes the Coloration to be drawn. |
void |
load(net.jinx.db.Hierarchy h)
Configures this Coloration from the given Hierarchy. |
void |
setDivider(float divider)
Sets the divider. |
void |
setOne(Coloration colorOne)
Sets the Coloration that will be used as the first color. |
void |
setTwo(Coloration colorTwo)
Sets the Coloration that will be used as the second color. |
void |
setXDivider()
Sets the divider to be based on the X axis. |
void |
setYDivider()
Sets the divider to be based on the Y axis. |
void |
setZDivider()
Sets the divider to be based on the Z axis. |
void |
store(net.jinx.db.Hierarchy h)
Stores this Coloration to the given Hierarchy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DualColoration()
Method Detail |
---|
public void setXDivider()
public void setYDivider()
public void setZDivider()
public void setOne(Coloration colorOne)
colorOne
- the Coloration.public void setDivider(float divider)
divider
- the point on the axis to divide on.public void setTwo(Coloration colorTwo)
colorTwo
- the Coloration.public void draw(Context options, int number, float[] vertex)
Coloration
draw
in interface Coloration
options
- the rendering options that are being used. Implementatons
of this interface should pay attention to the color related flags.number
- the current vertex number.vertex
- the current vertex position (x, y, and z coordinates).public void load(net.jinx.db.Hierarchy h)
Coloration
load
in interface Coloration
h
- the Hierarchy to configure this Coloration from.public void store(net.jinx.db.Hierarchy h)
Coloration
store
in interface Coloration
h
- the Hierarchy to store this Coloration to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |