Class AbstractGeomFactoryBase

    • Constructor Detail

      • AbstractGeomFactoryBase

        public AbstractGeomFactoryBase()
    • Method Detail

      • getGlobalSplineApproximationRatio

        @Pure
        public static double getGlobalSplineApproximationRatio()
        The maximum distance that the line segments used to approximate the curved segments are allowed to deviate from any point on the original curve.

        The replied value is the one shared (and may be overridden) by the geometry factories.

        The default value of the ratio is specified by GeomConstants.SPLINE_APPROXIMATION_RATIO.

        Returns:
        the maximal distance for approximating curves with segments.
        Since:
        14.0
        See Also:
        GeomConstants.SPLINE_APPROXIMATION_RATIO
      • setGlobalSplineApproximationRatio

        public static void setGlobalSplineApproximationRatio​(Double distance)
        Change the maximum distance that the line segments used to approximate the curved segments are allowed to deviate from any point on the original curve.

        The replied value is the one shared (and may be overridden) by the geometry factories.

        The default value of the ratio is specified by GeomConstants.SPLINE_APPROXIMATION_RATIO.

        Parameters:
        distance - the maximal distance for approximating curves with segments. If the argument value is null or NaN, the default value is assumed.
        Since:
        14.0
        See Also:
        GeomConstants.SPLINE_APPROXIMATION_RATIO
      • setSplineApproximationRatio

        public void setSplineApproximationRatio​(Double distance)
        Description copied from interface: GeomFactoryBase
        Change the maximum distance that the line segments used to approximate the curved segments are allowed to deviate from any point on the original curve.

        This function changes the ratio defined within the current factory. The other factories and the global value are not changed. For changing the global value, you must call setGlobalSplineApproximationRatio(Double).

        Specified by:
        setSplineApproximationRatio in interface GeomFactoryBase
        Parameters:
        distance - the maximal distance for approximating curves with segments. If the argument value is null or NaN, the global definition of the ratio is used by this factory.