Class Composite

    • Field Detail

      • color

        protected Color color
      • detailedToString

        protected boolean detailedToString
    • Constructor Detail

      • Composite

        public Composite()
    • Method Detail

      • add

        public void add​(List<? extends Drawable> drawables)
        Append a list of Drawables to this composite.
      • clear

        public void clear()
        Clear the list of Drawables from this composite.
      • add

        public void add​(Drawable drawable)
        Add a Drawable to this composite.
      • remove

        public void remove​(Drawable drawable)
        Remove a Drawable from this composite.
      • get

        public Drawable get​(int p)
        Get a Drawable stored by this composite.
      • size

        public int size()
        Return the number of Drawable stored by this composite.
      • draw

        public void draw​(IPainter painter)
        Delegate rendering iteratively to all Drawable of this composite.
        Specified by:
        draw in interface IGLRenderer
        Specified by:
        draw in class Drawable
      • setTransform

        public void setTransform​(Transform transform)
        Delegate transforming iteratively to all Drawable of this composite and stores the given transform for keeping the ability of retrieving it.
        Overrides:
        setTransform in class Drawable
      • getTransform

        public Transform getTransform()
        Return the transform that was affected to this composite.
        Overrides:
        getTransform in class Drawable
        Returns:
        transform
      • getBounds

        public BoundingBox3d getBounds()
        Creates and return a BoundingBox3d that embed all available Drawable bounds.
        Overrides:
        getBounds in class Drawable
        Returns:
        a bounding box
      • setFaceDisplayed

        public void setFaceDisplayed​(boolean status)
        Description copied from class: Wireframeable
        Set the face display status to on or off.
        Overrides:
        setFaceDisplayed in class Wireframeable
      • setDisplayed

        public void setDisplayed​(boolean status)
        Description copied from class: Drawable
        Set to true or false the displayed status of this object.
        Overrides:
        setDisplayed in class Drawable
      • setPolygonOffsetFillEnable

        public void setPolygonOffsetFillEnable​(boolean polygonOffsetFillEnable)
        A utility to change polygon offset fill status of a Composite containing Geometrys.
        Overrides:
        setPolygonOffsetFillEnable in class Wireframeable
        Parameters:
        composite -
        polygonOffsetFillEnable - status
      • toString

        public String toString()
        Print out information concerning all Drawable of this composite.
        Overrides:
        toString in class Drawable
      • isDetailedToString

        public boolean isDetailedToString()
      • setDetailedToString

        public void setDetailedToString​(boolean detailedToString)
        When to true, the toString() method will give the detail of each element of this composite object in a tree like layout.