oevislib_net  0.14.3.0
Loading...
Searching...
No Matches

Container that encapsulate information about the shape of a region. More...

Inheritance diagram for oevislib_net.ShapeRegion:

Public Member Functions

 ShapeRegion ()
 Creates a new empty ShapeRegion tagged as 'Region'.
 ShapeRegion (ShapeRegionType inTag)
 Creates a new ShapeRegion object using the provided tag.
 ShapeRegion (Region inRegion)
 Creates a new ShapeRegion using the provided Region.
 ShapeRegion (Rectangle2D inRectangle)
 Creates a new ShapeRegion using the provided rectangle.
 ShapeRegion (Circle2D inCircle)
 Constructs a new ShapeRegion object given a Circle2D.
 ShapeRegion (Path inPolygon)
 Constructs a new Shape Region object given a Path.
 ShapeRegion (Ring2D inRing)
 Constructs a new ShapeRegion object given a Ring2D.
 ShapeRegion (Ellipse2D inEllipse)
 Constructs a new ShapeRegion object given an Ellipse2D.
bool IsEmpty ()
 Returns true if the ShapeRegion contains at least one point, false otherwise.
ShapeRegionType GetTag ()
 Returns the ShapeRegion tag.
Region GetRegion ()
 Returns the Region contained in the ShapeRegion object.
Rectangle2D GetRectangle ()
 Returns the Rectangle2D contained in the ShapeRegion object.
Circle2D GetCircle ()
 Returns the Circle2D contained in the ShapeRegion object.
Path GetPolygon ()
 Returns the Path contained in the ShapeRegion object.
Ring2D GetRing ()
 Returns the Ring2D contained in the ShapeRegion object.
Ellipse2D GetEllipse ()
 Returns the Ellipse2D contained in the ShapeRegion object.
void SetTag (ShapeRegionType inTag)
 Sets the tag of the ShapeRegion object.
void SetRegion (Region inRegion)
 Sets the Region of the ShapeRegion object.
void SetRectangle (Rectangle2D inRectangle)
 Sets the Rectangle2D of the ShapeRegion object.
void SetCircle (Circle2D inCircle)
 Sets the Circle2D of the ShapeRegion object.
void SetPolygon (Path inPolygon)
 Sets the Path of the ShapeRegion object.
void SetRing (Ring2D inRing)
 Sets the Ring2D of the ShapeRegion object.
void SetEllipse (Ellipse2D inEllipse)
 Sets the Ellipse2D of the ShapeRegion object.
ByteBuffer Serialize ()
 Serializes the ShapeRegion object.
Region ConvertToRegion (Optional< Size > inFrame=null, Optional< UCS2D > inShapeRegionAlignment=null)
 Convert the shape region into a Region object.
Box GetBoundingBox ()
 Returns the ShapeRegion's bounding box.
ShapeRegion Dilate (float inRadius)
 Computes the morphological dilation on the calling shape region, using a square kernel.
ShapeRegion Erode (float inRadius)
 Computes the morphological erosion on the calling shape region, using a square kernel.
bool Contains (Point2D inPoint)
 Returns true if the point is contained in the ShapeRegion, false otherwise.
ShapeRegion Align (UCS2D inAlignment)
 Aligns the ShapeRegion using the provided alignment.
bool Equals (ShapeRegion other)
override bool Equals (object obj)
override int GetHashCode ()
override object Clone ()
override void Dispose ()

Static Public Member Functions

static bool operator== (ShapeRegion inShapeRegion1, ShapeRegion inShapeRegion2)
static bool operator!= (ShapeRegion inShapeRegion1, ShapeRegion inShapeRegion2)
static ShapeRegion Deserialize (ByteBuffer inBuffer)
 De-serialize a ShapeRegion buffer.

Detailed Description

Container that encapsulate information about the shape of a region.