class BufferParameters extends AnyRef
- Alphabetic
- By Inheritance
- BufferParameters
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new BufferParameters(quadrantSegments: Int, endCapStyle: Int, joinStyle: Int, mitreLimit: Double)
Creates a set of parameters with the given parameter values.
Creates a set of parameters with the given parameter values.
- quadrantSegments
the number of quadrant segments to use
- endCapStyle
the end cap style to use
- joinStyle
the join style to use
- mitreLimit
the mitre limit to use
- new BufferParameters(quadrantSegments: Int, endCapStyle: Int)
Creates a set of parameters with the given quadrantSegments and endCapStyle values.
Creates a set of parameters with the given quadrantSegments and endCapStyle values.
- quadrantSegments
the number of quadrant segments to use
- endCapStyle
the end cap style to use
- new BufferParameters(quadrantSegments: Int)
Creates a set of parameters with the given quadrantSegments value.
Creates a set of parameters with the given quadrantSegments value.
- quadrantSegments
the number of quadrant segments to use
- new BufferParameters()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getEndCapStyle: Int
Gets the end cap style.
Gets the end cap style.
return the end cap style
- def getJoinStyle: Int
Gets the join style
Gets the join style
return the join style code
- def getMitreLimit: Double
Gets the mitre ratio limit.
Gets the mitre ratio limit.
return the limit value
- def getQuadrantSegments: Int
Gets the number of quadrant segments which will be used
Gets the number of quadrant segments which will be used
return the number of quadrant segments
- def getSimplifyFactor: Double
Gets the simplify factor.
Gets the simplify factor.
return the simplify factor
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isSingleSided: Boolean
Tests whether the buffer is to be generated on a single side only.
Tests whether the buffer is to be generated on a single side only.
return true if the generated buffer is to be single-sided
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def setEndCapStyle(endCapStyle: Int): Unit
- def setJoinStyle(joinStyle: Int): Unit
- def setMitreLimit(mitreLimit: Double): Unit
Sets the limit on the mitre ratio used for very sharp corners.
Sets the limit on the mitre ratio used for very sharp corners. The mitre ratio is the ratio of the distance from the corner to the end of the mitred offset corner. When two line segments meet at a sharp angle, a miter join will extend far beyond the original geometry. (and in the extreme case will be infinitely far.) To prevent unreasonable geometry, the mitre limit allows controlling the maximum length of the join corner. Corners with a ratio which exceed the limit will be beveled.
- mitreLimit
the mitre ratio limit
- def setQuadrantSegments(quadSegs: Int): Unit
Sets the number of line segments used to approximate an angle fillet.
Sets the number of line segments used to approximate an angle fillet.
- If quadSegs >= 1, joins are round, and quadSegs indicates the number of segments to use to approximate a quarter-circle.
- If quadSegs = 0, joins are bevelled (flat)
- If quadSegs < 0, joins are mitred, and the value of qs
indicates the mitre ration limit as
mitreLimit = |quadSegs|
For round joins, quadSegs determines the maximum error in the approximation to the true buffer curve. The default value of 8 gives less than 2% max error in the buffer distance. For a max error of < 1%, use QS = 12. For a max error of < 0.1%, use QS = 18. The error is always less than the buffer distance (in other words, the computed buffer curve is always inside the true curve).
- quadSegs
the number of segments in a fillet for a quadrant
- def setSimplifyFactor(simplifyFactor: Double): Unit
Sets the factor used to determine the simplify distance tolerance for input simplification.
Sets the factor used to determine the simplify distance tolerance for input simplification. Simplifying can increase the performance of computing buffers. Generally the simplify factor should be greater than 0. Values between 0.01 and .1 produce relatively good accuracy for the generate buffer. Larger values sacrifice accuracy in return for performance.
- simplifyFactor
a value greater than or equal to zero.
- def setSingleSided(isSingleSided: Boolean): Unit
Sets whether the computed buffer should be single-sided.
Sets whether the computed buffer should be single-sided. A single-sided buffer is constructed on only one side of each input line.
The side used is determined by the sign of the buffer distance:
- a positive distance indicates the left-hand side
- a negative distance indicates the right-hand side
The single-sided buffer of point geometries is the same as the regular buffer.
The End Cap Style for single-sided buffers is always ignored, and forced to the equivalent of CAP_FLAT.
- isSingleSided
true if a single-sided buffer should be constructed
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()