de.grogra.stl
public class MaterialiseSTLColorModel extends java.lang.Object implements STLColorModel
| Modifier and Type | Field and Description |
|---|---|
protected int |
baseColor |
protected boolean |
useFacetColors |
| Constructor and Description |
|---|
MaterialiseSTLColorModel(int rgb) |
MaterialiseSTLColorModel(int rgb,
boolean enableFacets) |
| Modifier and Type | Method and Description |
|---|---|
void |
enableFacetColors(boolean enabled) |
boolean |
facetColorsEnabled() |
void |
formatHeader(byte[] header) |
int |
formatRGB(int rgb) |
int |
getBaseColor() |
int |
getDefaultRGB() |
void |
setBaseColor(int baseColor) |
public MaterialiseSTLColorModel(int rgb)
public MaterialiseSTLColorModel(int rgb,
boolean enableFacets)
public void enableFacetColors(boolean enabled)
enabled - the useFacetColors to setpublic boolean facetColorsEnabled()
public void formatHeader(byte[] header)
formatHeader in interface STLColorModelpublic int formatRGB(int rgb)
formatRGB in interface STLColorModelpublic int getBaseColor()
public int getDefaultRGB()
getDefaultRGB in interface STLColorModelpublic void setBaseColor(int baseColor)
baseColor - the baseColor to set