Class Wireframeable

    • Field Detail

      • wireframeColor

        protected Color wireframeColor
      • wireframeWidth

        protected float wireframeWidth
      • wireframeDisplayed

        protected boolean wireframeDisplayed
      • wireframeColorFromPolygonPoints

        protected boolean wireframeColorFromPolygonPoints
      • faceDisplayed

        protected boolean faceDisplayed
      • polygonWireframeDepthTrick

        protected boolean polygonWireframeDepthTrick
      • polygonOffsetFillEnable

        protected boolean polygonOffsetFillEnable
      • polygonOffsetFactor

        protected float polygonOffsetFactor
      • polygonOffsetUnit

        protected float polygonOffsetUnit
    • Constructor Detail

      • Wireframeable

        public Wireframeable()
        Initialize the wireframeable with a white color and width of 1 for wires, hidden wireframe, and displayed faces.
    • Method Detail

      • isWireframeColorFromPolygonPoints

        public boolean isWireframeColorFromPolygonPoints()
      • setWireframeColorFromPolygonPoints

        public void setWireframeColorFromPolygonPoints​(boolean wireframeColorFromPolygonPoints)
      • setWireframeColor

        public void setWireframeColor​(Color color)
        Set the wireframe color.
      • setWireframeDisplayed

        public void setWireframeDisplayed​(boolean status)
        Set the wireframe display status to on or off.
      • setWireframeWidth

        public void setWireframeWidth​(float width)
        Set the wireframe width.
      • setFaceDisplayed

        public void setFaceDisplayed​(boolean status)
        Set the face display status to on or off.
      • getWireframeColor

        public Color getWireframeColor()
        Get the wireframe color.
      • getWireframeDisplayed

        public boolean getWireframeDisplayed()
        Get the wireframe display status to on or off.
      • getWireframeWidth

        public float getWireframeWidth()
        Get the wireframe width.
      • getFaceDisplayed

        public boolean getFaceDisplayed()
        Get the face display status to on or off.
      • polygonOffseFillEnable

        protected void polygonOffseFillEnable​(IPainter painter)
      • polygonOffsetFillDisable

        protected void polygonOffsetFillDisable​(IPainter painter)
      • polygonOffsetLineEnable

        protected void polygonOffsetLineEnable​(IPainter painter)
      • polygonOffsetLineDisable

        protected void polygonOffsetLineDisable​(IPainter painter)
      • isPolygonOffsetFillEnable

        public boolean isPolygonOffsetFillEnable()
      • setPolygonOffsetFillEnable

        public void setPolygonOffsetFillEnable​(boolean polygonOffsetFillEnable)
        Enable offset fill, which let a polygon with a wireframe render cleanly without weird depth uncertainty between face polygon and wireframe polygon.
      • getPolygonOffsetFactor

        public float getPolygonOffsetFactor()
      • setPolygonOffsetFactor

        public void setPolygonOffsetFactor​(float polygonOffsetFactor)
      • getPolygonOffsetUnit

        public float getPolygonOffsetUnit()
      • setPolygonOffsetUnit

        public void setPolygonOffsetUnit​(float polygonOffsetUnit)
      • setPolygonWireframeDepthTrick

        public void setPolygonWireframeDepthTrick​(boolean polygonWireframeDepthTrick)
        May be used as alternative to setPolygonOffsetFillEnable(boolean) in case it is not supported by underlying OpenGL version (Polygon offset appears as off version 2).
      • isPolygonWireframeDepthTrick

        public boolean isPolygonWireframeDepthTrick()
      • applyDepthRangeForUnderlying

        protected void applyDepthRangeForUnderlying​(IPainter painter)
      • applyDepthRangeForOverlying

        protected void applyDepthRangeForOverlying​(IPainter painter)