Class AbstractShape.AbstractShapeData

    • Field Detail

      • frameNumber

        protected long frameNumber
        Identifies the frame used to calculate this entry's values.
      • referencePoint

        protected Vec4 referencePoint
        This entry's reference point.
      • referenceDistance

        protected java.lang.Double referenceDistance
        A quick-to-compute metric to determine eye distance changes that invalidate this entry's geometry.
      • vboCacheKey

        protected java.lang.Object vboCacheKey
        The GPU-resource cache key to use for this entry's VBOs, if VBOs are used.
    • Constructor Detail

      • AbstractShapeData

        protected AbstractShapeData​(DrawContext dc,
                                    long minExpiryTime,
                                    long maxExpiryTime)
        Constructs a data cache entry and initializes its globe-dependent state key for the globe in the specified draw context and capture the current vertical exaggeration. The entry becomes invalid when these values change or when the entry's expiration timer expires.
        Parameters:
        dc - the current draw context.
        minExpiryTime - the minimum number of milliseconds to use this shape before regenerating its geometry.
        maxExpiryTime - the maximum number of milliseconds to use this shape before regenerating its geometry.
    • Method Detail

      • getFrameNumber

        public long getFrameNumber()
      • setFrameNumber

        public void setFrameNumber​(long frameNumber)
      • getReferencePoint

        public Vec4 getReferencePoint()
      • setReferencePoint

        public void setReferencePoint​(Vec4 referencePoint)
      • getVboCacheKey

        public java.lang.Object getVboCacheKey()
      • setVboCacheKey

        public void setVboCacheKey​(java.lang.Object vboCacheKey)
      • getReferenceDistance

        public java.lang.Double getReferenceDistance()
      • setReferenceDistance

        public void setReferenceDistance​(java.lang.Double referenceDistance)