Fit curves to streets settings.
@example:
# Settings class specifying parameters for fitting curves to straight street segments
segments = ce.getObjectsFrom(ce.scene, ce.isGraphSegment)
settings = SimplifyGraphSettings()
settings.setCurveThresholdAngle(10)
ce.simplifyGraph(segments, settings)
Methods defined here:
getCurveThresholdAngle
getCurveThresholdSegmentLength(self):
Gets CurveThresholdSegmentLength field. Maximum length of a single curve input segment.
@return: Value of CurveThresholdSegmentLength field. [float]
getCurveThresholdSegmentLength
getCurveThresholdSegmentLength(self):
Gets CurveThresholdSegmentLength field. Maximum length of a single curve input segment.
@return: Value of CurveThresholdSegmentLength field. [float]
getMaximumSimplifiedSegmentLength
getMaximumSimplifiedSegmentLength(self):
Gets MaximumSimplifiedSegmentLength field. Maximum length of the output straight or curve segment.
@return: Value of MaximumSimplifiedSegmentLength field. [float]
getSimplifyCurves
getSimplifyCurves(self):
Gets SimplifyCurves field. Enables curve simplification.
@return: Value of SimplifyCurves field. [True/False]
getSimplifyStraightSections
getSimplifyStraightSections(self):
Gets SimplifyStraightSections field. Enables straight section simplification.
@return: Value of SimplifyStraightSections field. [True/False]
getStraightThresholdAngle
getStraightThresholdAngle(self):
Gets StraightThresholdAngle field. Angle in degrees. Streets with a lower angle than this are combined to straight segments.
@return: Value of StraightThresholdAngle field. [float]
setCurveThresholdAngle
setCurveThresholdAngle(self, floatValue):
Sets CurveThresholdAngle field. Angle in degrees. Streets with a higher angle than this form boundaries between fitted curves.
@param floatValue: the new value. [float]
setCurveThresholdSegmentLength
setCurveThresholdSegmentLength(self, floatValue):
Sets CurveThresholdSegmentLength field. Maximum length of a single curve input segment.
@param floatValue: the new value. [float]
setMaximumSimplifiedSegmentLength
setMaximumSimplifiedSegmentLength(self, floatValue):
Sets MaximumSimplifiedSegmentLength field. Maximum length of the output straight or curve segment.
@param floatValue: the new value. [float]
setSimplifyCurves
setSimplifyCurves(self, booleanValue):
Sets SimplifyCurves field. Enables curve simplification.
@param booleanValue: the new value. [True/False]
setSimplifyStraightSections
setSimplifyStraightSections(self, booleanValue):
Sets SimplifyStraightSections field. Enables straight section simplification.
@param booleanValue: the new value. [True/False]
setStraightThresholdAngle
setStraightThresholdAngle(self, floatValue):
Sets StraightThresholdAngle field. Angle in degrees. Streets with a lower angle than this are combined to straight segments.
@param floatValue: the new value. [float]