|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.reprap.Attributes
public class Attributes
Small class to hold RepRap attributes that are attached to Java3D shapes as user data, primarily to record the material that things are made from.
Field Summary | |
---|---|
private javax.media.j3d.Appearance |
app
The appearance (colour) in the loading and simulation windows |
private Extruder |
e
The extruder corresponsing to this material. |
private java.lang.String |
material
The name of the material |
private STLObject |
parent
The STLObject of which this is a part |
private javax.media.j3d.BranchGroup |
part
Where this is in the STLObject of which it is a part |
Constructor Summary | |
---|---|
Attributes(java.lang.String s,
STLObject p,
javax.media.j3d.BranchGroup b,
javax.media.j3d.Appearance a)
Constructor - it is permissible to set any argument null. |
Method Summary | |
---|---|
javax.media.j3d.Appearance |
getAppearance()
|
Extruder |
getExtruder()
Find my extruder in the list (if not known) or just return it (if known). |
java.lang.String |
getMaterial()
|
STLObject |
getParent()
|
javax.media.j3d.BranchGroup |
getPart()
|
void |
setAppearance(javax.media.j3d.Appearance a)
New colour |
void |
setMaterial(java.lang.String s)
Change the material name |
void |
setParent(STLObject p)
Change the parent |
void |
setPart(javax.media.j3d.BranchGroup b)
To be used in conjunction with changing the parent |
java.lang.String |
toString()
Just say the name of the material |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String material
private STLObject parent
private javax.media.j3d.BranchGroup part
private javax.media.j3d.Appearance app
private Extruder e
Constructor Detail |
---|
public Attributes(java.lang.String s, STLObject p, javax.media.j3d.BranchGroup b, javax.media.j3d.Appearance a)
s
- The name of the materialp
- Parent STLObjectb
- Where in pa
- what it looks likeMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getMaterial()
public STLObject getParent()
public javax.media.j3d.BranchGroup getPart()
public javax.media.j3d.Appearance getAppearance()
public Extruder getExtruder()
es
- The extruders currently in the printer.
public void setMaterial(java.lang.String s)
s
- public void setParent(STLObject p)
p
- public void setPart(javax.media.j3d.BranchGroup b)
b
- public void setAppearance(javax.media.j3d.Appearance a)
a
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |