Class SelectableSphere

    • Field Detail

      • PRECISION

        protected int PRECISION
      • isHighlighted

        protected boolean isHighlighted
    • Constructor Detail

      • SelectableSphere

        public SelectableSphere()
      • SelectableSphere

        public SelectableSphere​(Coord3d position,
                                float radius,
                                int slicing,
                                Color color)
    • Method Detail

      • draw

        public void draw​(IPainter painter)
        Description copied from class: Drawable
        Call OpenGL2 routines for rendering the object.
        Specified by:
        draw in interface IGLRenderer
        Overrides:
        draw in class Sphere
      • setPosition

        public void setPosition​(Coord3d position)
        Description copied from class: Sphere
        Set the position of the Sphere and the dimensions of its boundingbox. Note that this position will be use to translate the object before drawing it (meaning a glTranslate(position) is performed right after the Translate.execute).
        Overrides:
        setPosition in class Sphere
      • setVolume

        public void setVolume​(float radius)
        Description copied from class: Sphere
        Set the radius of the sphere, and the dimensions of its boundingbox.
        Overrides:
        setVolume in class Sphere
        Parameters:
        radius - sphere radius
      • buildAnchors

        protected void buildAnchors()
      • buildAnchors

        protected List<Coord3d> buildAnchors​(Coord3d position,
                                             float radius)
      • setHighlighted

        public void setHighlighted​(boolean value)
      • isHighlighted

        public boolean isHighlighted()
      • resetHighlighting

        public void resetHighlighting()