NetTopologySuite
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
NetTopologySuite.Noding.ScaledNoder Class Reference

Wraps a INoder and transforms its input into the integer domain. This is intended for use with Snap-Rounding noders, which typically are only intended to work in the integer domain. Offsets can be provided to increase the number of digits of available precision. More...

Inheritance diagram for NetTopologySuite.Noding.ScaledNoder:
NetTopologySuite.Noding.INoder

Public Member Functions

 ScaledNoder (INoder noder, double scaleFactor)
 Initializes a new instance of the ScaledNoder class. More...
 
 ScaledNoder (INoder noder, double scaleFactor, double offsetX, double offsetY)
 
IList< ISegmentStringGetNodedSubstrings ()
 
void ComputeNodes (IList< ISegmentString > inputSegStrings)
 

Properties

bool IsIntegerPrecision [get]
 

Detailed Description

Wraps a INoder and transforms its input into the integer domain. This is intended for use with Snap-Rounding noders, which typically are only intended to work in the integer domain. Offsets can be provided to increase the number of digits of available precision.

Clients should be aware that rescaling can involve loss of precision, which can cause zero-length line segments to be created. These in turn can cause problems when used to build a planar graph. This situation should be checked for and collapsed segments removed if necessary.

Constructor & Destructor Documentation

NetTopologySuite.Noding.ScaledNoder.ScaledNoder ( INoder  noder,
double  scaleFactor 
)

Initializes a new instance of the ScaledNoder class.

Parameters
noder
scaleFactor
NetTopologySuite.Noding.ScaledNoder.ScaledNoder ( INoder  noder,
double  scaleFactor,
double  offsetX,
double  offsetY 
)

Parameters
noder
scaleFactor
offsetX
offsetY

Member Function Documentation

void NetTopologySuite.Noding.ScaledNoder.ComputeNodes ( IList< ISegmentString inputSegStrings)

Parameters
inputSegStrings

Implements NetTopologySuite.Noding.INoder.

IList<ISegmentString> NetTopologySuite.Noding.ScaledNoder.GetNodedSubstrings ( )

Returns

Implements NetTopologySuite.Noding.INoder.

Property Documentation

bool NetTopologySuite.Noding.ScaledNoder.IsIntegerPrecision
get


The documentation for this class was generated from the following file: