SpanGrid Class

Public Class SpanGrid
This language is not supported or no code example is available.
public class SpanGrid
This language is not supported or no code example is available.
public ref class SpanGrid 
This language is not supported or no code example is available.
public class SpanGrid
This language is not supported or no code example is available.
Name Description
Public constructor SpanGrid(List<Poly2d>, double) Creates a grid from a list of polys
Public constructor SpanGrid(SpanGrid) Copy constructor
Public constructor SpanGrid(int, int, Point, double) Constructor
Top
Name Description
Public property Bottom
Public property Gridsize The gridsize of the spangrid
Public property Height Height of grid
Public property Left
Public property Pos Origin of low left corner of grid
Public property Right
Public property Top
Public property Width Width of grid
Top
Methods
 
Name Description
Public method Area() The area of the grid
Public method BoxArea(int, int, int, int) Calculates the pixel area inside the box
Public method Centroid() Calculates the center of gravity
Public method Clear() Clears the grid
Public method Count(int) Returns the number of intervals at row y
Public method CropRectangle()
Public method ExtractRegions()
Public method GetInterval(int, int) Gets the interval at row y and column pos
Public method GridToWorld(int, int, out double, out double) Convert grid coordinate gx,gy to world coordinate wx,wy
Public method Insert(int, Interval) Inserts an interval s into the grid at row y
Public method Insert(List<Poly2d>, int, int)
Public method Insert(SpanGrid, int, int) Inserts the grid g into the grid at position dy,dx
Public method Insert(int, int, int) Inserts an interval represented by x1,x2 at row y
Public method Invert(int, int, int, int)
Public method IsSet(int, int) Checks if a pixel i set in the grid
Public method Nest(SpanGrid, Point, Rectangle, ref Point, int) Nest a grid inside this grid using a bottom left fill algorithm. NOTE! The part is not inserted in the grid!
Public method NestOnRow(SpanGrid, Point, ref Point)
Public method Overlap(SpanGrid, int, int) Checks if two grids overlaps and sets the separation distance
Public method Overlap(SpanGrid, int, int, out int) Checks if two grids overlaps and sets the separation distance
Public method Overlap(int, Interval, out int) Checks if an interval overlaps the grid and sets the separation distance
Public method OverlapArea(SpanGrid)
Public method OverlapArea(int, int, int)
Public method OverlapFromRight(SpanGrid, int, int, out int)
Public method OverlapFromRight(int, Interval, out int)
Public method Reset() Removes all intervals but keeps the size
Public method ScanContour()
Public method WorldToGrid(double, double, out int, out int) Convert world coordinate wx,wy to grid coordinate gx,gy
Top
Classes
 
Name Description
Public class Interval
Top
Fields
 
Name Description
Public field cg
Top
IGS.Genamo.SpanGrid

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition