|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--harmonic.mz.data.ModelNode
|
+--harmonic.mz.data.fields.MaterialField
This is the Material data field, for specifing how a surface reposonds to lighting.
| Field Summary | |
ColorField |
ambient
Color that is dot product'd with ambient light |
ColorField |
diffuse
Color that is dot product'd with diffuse light |
ColorField |
emissive
Color that added on to regarless of lighting |
ScalarField |
shininess
How important is the lighting angle. |
ColorField |
specular
Color that reponds to shineness exponent |
| Fields inherited from class harmonic.mz.data.ModelNode |
_fileRoot_, _thread_, ATTRIB_CONTROL_WIDGET, ATTRIB_LISTABLE, ATTRIB_PRESENTABLE, ATTRIB_PRIVATE, ATTRIB_REMOVEABLE, ATTRIB_RENAMEABLE, ATTRIB_SHOW_CONTEXT_MENU, ATTRIB_TYPE_FILTER, ATTRIB_USERGROUP, ATTRIB_VALUE_GROUP, ATTRIB_VE_LISTENER, bCustomCS, bDebug, bValid, name |
| Constructor Summary | |
MaterialField()
Constructs a MaterialField |
|
MaterialField(harmonic.meshGeom.math.Clr3f clr)
|
|
MaterialField(java.lang.String name)
Constructs a MaterialField with given name |
|
| Method Summary | |
void |
assignTo(harmonic.viewer3D.PaintAttrib ap)
Assign to a PaintAttrib |
void |
assignTo(harmonic.viewer3D.PaintStruct p)
|
void |
assignToColors(harmonic.viewer3D.PaintAttrib ap)
|
void |
assignToHighlights(harmonic.viewer3D.PaintAttrib ap)
|
java.awt.Component |
createControlWidget()
Implements abstract control widget creator by returning a MaterialEntry |
boolean |
linksChildren()
Return whether this nodes children should be skipped in file write. |
void |
setAllColors(harmonic.meshGeom.math.Clr3f clr)
Set all colors except the emissive to given color |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public ColorField ambient
public ColorField diffuse
public ColorField emissive
public ColorField specular
public ScalarField shininess
| Constructor Detail |
public MaterialField()
public MaterialField(harmonic.meshGeom.math.Clr3f clr)
public MaterialField(java.lang.String name)
| Method Detail |
public boolean linksChildren()
ModelNode
linksChildren in class ModelNodepublic void setAllColors(harmonic.meshGeom.math.Clr3f clr)
public java.awt.Component createControlWidget()
createControlWidget in class ModelNodepublic void assignTo(harmonic.viewer3D.PaintStruct p)
public void assignTo(harmonic.viewer3D.PaintAttrib ap)
public void assignToColors(harmonic.viewer3D.PaintAttrib ap)
public void assignToHighlights(harmonic.viewer3D.PaintAttrib ap)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||