Class ScatterMultiColor

    • Field Detail

      • coordinates

        protected Coord3d[] coordinates
      • colors

        protected Color[] colors
      • width

        protected float width
    • Constructor Detail

      • ScatterMultiColor

        public ScatterMultiColor​(Coord3d[] coordinates,
                                 ColorMapper mapper)
      • ScatterMultiColor

        public ScatterMultiColor​(Coord3d[] coordinates,
                                 Color[] colors,
                                 ColorMapper mapper,
                                 float width)
    • Method Detail

      • clear

        public void clear()
      • draw

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

        protected void doDrawPoints​(IPainter painter)
      • setData

        public void setData​(Coord3d[] coordinates)
        Set the coordinates of the point.
        Parameters:
        xyz - point's coordinates
      • getData

        public Coord3d[] getData()
      • setColors

        public void setColors​(Color[] colors)
      • setWidth

        public void setWidth​(float width)
        Set the width of the point.
        Parameters:
        width - point's width