Class DrawableGeometryNode


  • public class DrawableGeometryNode
    extends DrawableNode
    A specific type of DrawableNode that is able to draw a rw::geometry::Geometry.
    • Constructor Detail

      • DrawableGeometryNode

        public DrawableGeometryNode​(long cPtr,
                                    boolean cMemoryOwn)
    • Method Detail

      • setColor

        public void setColor​(double r,
                             double g,
                             double b,
                             double alpha)
        sets the RGBA color of the geometry
        Parameters:
        r - [in] red [0;1]
        g - [in] green [0;1]
        b - [in] blue [0;1]
        alpha - [in] opasity value [0;1], 0 is completely transparent
      • setColor

        public void setColor​(Vector3D rgb)
        sets the RGB color of the geometry
        Parameters:
        rgb - [in] red, green and blue must be between [0;1]
      • setAlpha

        public void setAlpha​(double alpha)
        sets the alpha value
        Parameters:
        alpha - [in] between [0;1], 0 is completely transparent
      • getColor

        public Vector3D getColor()
        get the RGB color
        Returns:
        RGB color
      • getAlpha

        public double getAlpha()
        get alpha value
        Returns:
        alpha
      • addLines

        public void addLines​(VectorLine lines)
        add lines to this geometry
        Parameters:
        lines - [in] list of line segments that should be added
      • addLine

        public void addLine​(Vector3D v1,
                            Vector3D v2)
        add a single line segment to this geometry render
        Parameters:
        v1 - [in] line segment vertice 1
        v2 - [in] line segment vertice 2
      • addGeometry

        public void addGeometry​(GeometryPtr geom)
        add a geometry to this render
        Parameters:
        geom - [in] a geometry that should be rendered
      • addFrameAxis

        public void addFrameAxis​(double size)
        add a frame axis to this geometry
        Parameters:
        size - [in] length of the frame axis's