Documentation of 'jhpro.engine3d.FacetedObject' Java class
FacetedObject
jhpro.engine3d

Class FacetedObject

  • All Implemented Interfaces:
    java.io.Serializable


    public class FacetedObject
    extends java.lang.Object
    implements java.io.Serializable
    A drawing object
    See Also:
    Serialized Form
    • Field Detail

      • verticies

        public double[][] verticies
      • vindex

        public int[][] vindex
    • 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

You see the box below because you did not login.