jhpro.engine3d
Class FacetedObject
- java.lang.Object
-
- jhpro.engine3d.FacetedObject
-
- All Implemented Interfaces:
- java.io.Serializable
public class FacetedObject extends java.lang.Object implements java.io.SerializableA drawing object- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description FacetedObject()FacetedObject(int[][] verts, int[][] vi)FacetedObject(int v_p, int f_p, int n_p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcreateVectorIndex(int f_p, int n_p)voiddescribe()Describe the objectjava.awt.ColorgetFillColor()Get fill colorjava.awt.ColorgetPenColor()Get pen colorbooleangetShading()booleangetSolidRendering()Want solid rendering?intgetTransperancy()Get alpha value between 0 and 255voidsetFillColor(java.awt.Color fillC)Color of fill (when no shading)voidsetPenColor(java.awt.Color fillC)Pen color to draw the objectvoidsetPointData(double[] p)voidsetPointData(double x, double y, double z)voidsetShading(boolean shading)Shad or not the objectvoidsetSolidRendering(boolean solid)Fill or not fill the objectvoidsetTransperancy(int transperancy)Set alpha value between 0- and 255voidsetVectorIndex(int val)
-
-
-
Constructor Detail
-
FacetedObject
public FacetedObject()
-
FacetedObject
public FacetedObject(int[][] verts, int[][] vi)
-
FacetedObject
public FacetedObject(int v_p, int f_p, int n_p)
-
-
Method Detail
-
createVectorIndex
public void createVectorIndex(int f_p, int n_p)
-
setPointData
public void setPointData(double[] p)
-
setPointData
public void setPointData(double x, double y, double z)
-
setVectorIndex
public void setVectorIndex(int val)
-
setSolidRendering
public void setSolidRendering(boolean solid)
Fill or not fill the object- Parameters:
solid-
-
setTransperancy
public void setTransperancy(int transperancy)
Set alpha value between 0- and 255- Parameters:
transperancy-
-
getTransperancy
public int getTransperancy()
Get alpha value between 0 and 255- Returns:
-
setShading
public void setShading(boolean shading)
Shad or not the object- Parameters:
solid-
-
getShading
public boolean getShading()
-
setFillColor
public void setFillColor(java.awt.Color fillC)
Color of fill (when no shading)- Parameters:
fillC-
-
setPenColor
public void setPenColor(java.awt.Color fillC)
Pen color to draw the object- Parameters:
solid-
-
getSolidRendering
public boolean getSolidRendering()
Want solid rendering?- Returns:
-
getPenColor
public java.awt.Color getPenColor()
Get pen color- Returns:
-
getFillColor
public java.awt.Color getFillColor()
Get fill color- Returns:
-
describe
public void describe()
Describe the object
-
-
DMelt 3.0 © DataMelt by jWork.ORG