Class SelectableScatter

    • Field Detail

      • isHighlighted

        protected boolean[] isHighlighted
      • highlightColor

        protected Color highlightColor
      • projection

        protected Coord3d[] projection
    • Constructor Detail

      • SelectableScatter

        public SelectableScatter​(Coord3d[] coordinates,
                                 Color[] colors)
    • 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 Scatter
      • getProjection

        public Coord3d[] getProjection()
      • getHighlightColor

        public Color getHighlightColor()
      • setHighlightColor

        public void setHighlightColor​(Color highlightColor)
      • setHighlighted

        public void setHighlighted​(int id,
                                   boolean value)
      • getHighlighted

        public boolean getHighlighted​(int id)
      • resetHighlighting

        public void resetHighlighting()
      • setData

        public void setData​(Coord3d[] coordinates)
        Set the coordinates of the point.
        Overrides:
        setData in class Scatter
        Parameters:
        xyz - point's coordinates