|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mascotcapsule.micro3d.v3.Effect3D
This class maintains rendering effect data. It maintains the status of light data, shading type and semitransparent function use.
Field Summary | |
static int |
NORMAL_SHADING
The shading type that indicates normal shading. |
static int |
TOON_SHADING
The shading type that indicates toon shading. |
Constructor Summary | |
Effect3D()
Generates the rendering data object. |
|
Effect3D(Light light,
int shading,
boolean isEnableTrans,
Texture tex)
Generates the rendering data object. |
Method Summary | |
Light |
getLight()
Gets the light data settings. |
int |
getShading()
Deprecated. Method to be eliminated in the near future. |
int |
getShadingType()
Gets the shading type settings. |
Texture |
getSphereMap()
Deprecated. Method to be eliminated in the near future. |
Texture |
getSphereTexture()
Gets the texture settings for the environment mapping. |
int |
getThreshold()
Deprecated. Method to be eliminated in the near future. |
int |
getThresholdHigh()
Deprecated. Method to be eliminated in the near future. |
int |
getThresholdLow()
Deprecated. Method to be eliminated in the near future. |
int |
getToonHigh()
Gets the toon shading settings of the "RGB setting when the level is above the threshold value." |
int |
getToonLow()
Gets the toon shading settings of the "RGB settings when the level is below the threshold value." |
int |
getToonThreshold()
Gets the toon shading threshold value settings. |
boolean |
isSemiTransparentEnabled()
Deprecated. Method to be eliminated in the near future. |
boolean |
isTransparency()
Gets the status settings for semitransparent function. |
void |
setLight(Light light)
Sets the light data. |
void |
setSemiTransparentEnabled(boolean isEnable)
Deprecated. Method to be eliminated in the near future. |
void |
setShading(int shading)
Deprecated. Method to be eliminated in the near future. |
void |
setShadingType(int shading)
Sets the shading type. |
void |
setSphereMap(Texture tex)
Deprecated. Method to be eliminated in the near future. |
void |
setSphereTexture(Texture tex)
Sets the texture for environment mapping. |
void |
setThreshold(int threshold,
int high,
int low)
Deprecated. Method to be eliminated in the near future. |
void |
setToonParams(int threshold,
int high,
int low)
Sets the level of the toon shading threshold value. |
void |
setTransparency(boolean isEnable)
Sets the status of the semitransparent function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NORMAL_SHADING
public static final int TOON_SHADING
Constructor Detail |
public Effect3D()
public Effect3D(Light light, int shading, boolean isEnableTrans, Texture tex)
light
- Light data (if null, no light data used)shading
- Shading typeisEnableTrans
- True if semitransparent is usedtex
- Environment texture (if null, will not be used)
java.lang.IllegalArgumentException
- When the argument shading is false.
Or, when the texture tex is not for environment mapping
(but for the model).Method Detail |
public final Light getLight()
public final void setLight(Light light)
light
- Light data.
Provides a null if light data is not used.public final int getShading()
getShadingType()
public final int getShadingType()
public final void setShading(int shading)
setShadingType(int)
public final void setShadingType(int shading)
shading
- Shading type
java.lang.IllegalArgumentException
- When argument shading is false.public final int getThreshold()
getToonThreshold()
public final int getToonThreshold()
public final int getThresholdHigh()
getToonHigh()
public final int getToonHigh()
public final int getThresholdLow()
getToonLow()
public final int getToonLow()
public final void setThreshold(int threshold, int high, int low)
setToonParams(int, int, int)
public final void setToonParams(int threshold, int high, int low)
threshold
- Threshold level(0?`255)high
- RGB setting (0?`255, 255 is 100%) when level is above thresholdlow
- RGB setting (0?`255, 255 is 100%) when level is below threshold
java.lang.IllegalArgumentException
- When an argument is a value outside its limits.public final boolean isSemiTransparentEnabled()
getShadingType()
public final boolean isTransparency()
public final void setSemiTransparentEnabled(boolean isEnable)
setTransparency(boolean)
public final void setTransparency(boolean isEnable)
isEnable
- Is semitransparent function enabled? (Enabled if true)public final Texture getSphereMap()
getSphereTexture()
public final Texture getSphereTexture()
public final void setSphereMap(Texture tex)
setSphereTexture(com.mascotcapsule.micro3d.v3.Texture)
public final void setSphereTexture(Texture tex)
tex
- Texture for environment mapping
(null if no settings)
java.lang.IllegalArgumentException
- When the texture tex is not for environment mapping (but for the model).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |