Class BasicMarkerShape.Shape

    • Field Detail

      • name

        protected java.lang.String name
      • shapeType

        protected java.lang.String shapeType
      • quadric

        protected com.jogamp.opengl.glu.GLUquadric quadric
      • isInitialized

        protected boolean isInitialized
      • displayListCacheKey

        protected java.lang.Object displayListCacheKey
      • applyOrientation

        protected boolean applyOrientation
        Indicates that the shape must apply heading, pitch, and roll.
    • Constructor Detail

      • Shape

        protected Shape()
    • Method Detail

      • doRender

        protected abstract void doRender​(DrawContext dc,
                                         Marker marker,
                                         Vec4 point,
                                         double radius,
                                         int[] dlResource)
      • drawShape

        protected abstract int drawShape​(DrawContext dc,
                                         double radius)
      • initialize

        protected void initialize​(DrawContext dc)
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Disposes of any internal resources allocated by the object.
        Specified by:
        dispose in interface Disposable
      • getName

        public java.lang.String getName()
      • isApplyOrientation

        public boolean isApplyOrientation()
        Indicates whether or not the shape applies heading, pitch, and roll when it draws itself. Even if this field is true, the shape may not apply all of the rotations.
        Returns:
        true if orientation is applied to the rendered shape, false if not.
      • setApplyOrientation

        public void setApplyOrientation​(boolean applyOrientation)
        Specifies whether or not the shape applies heading, pitch, and roll when it renders.
        Parameters:
        applyOrientation - true if the shape must apply heading, pitch, and roll (if they are supported by the shape), false if it the shape must not apply this orientation.
      • computeOrientationVector

        protected Vec4 computeOrientationVector​(DrawContext dc,
                                                Vec4 point,
                                                Vec4 normal,
                                                Angle heading,
                                                Angle pitch)
        Compute a direction vector given a point, heading and pitch.
        Parameters:
        dc - current draw context
        point - point at which to compute direction vector
        normal - surface normal at point
        heading - desired heading
        pitch - desired pitch
        Returns:
        A vector pointing in the direction of the desired heading and pitch
      • createDisplayList

        protected int[] createDisplayList​(DrawContext dc,
                                          double radius)