Impact Vision SDK  11.8.1
VisionSDK.VisionRect Class Reference

This class represents an oriented Rectangle
The Rectangle is represented by a VisionOrigin and a VisionSize.
The origin is considered the upper left vertices More...

Inheritance diagram for VisionSDK.VisionRect:
VisionSDK.VisionShape VisionSDK.IVisionGeometricShape VisionSDK.VisionObject VisionSDK.IVisionGeometricShape

Public Member Functions

 VisionRect ()
 Constructor More...
 
- Public Member Functions inherited from VisionSDK.VisionShape
 VisionShape ()
 Constructor More...
 
virtual void addHole (VisionShape hole)
 This method adds a hole to the Shape More...
 
virtual Boolean isAnHole ()
 Indicate if this shape is a hole of another shape More...
 
virtual Geometry GetGeometricShape (IVisionGeometricShapesIllustrator geometricShapeIllustrator, VisionOrigin origin=null, VisionCalibration calibration=null)
 
- Public Member Functions inherited from VisionSDK.VisionObject
override string ToString ()
 
string ToJson ()
 
override int GetHashCode ()
 
override bool Equals (object obj)
 

Static Public Member Functions

static VisionRect Create (VisionOrigin origin, VisionSize size)
 Class method to instantiate a VisionRect object with the specified parameters More...
 
static VisionRect Create (double x, double y, double w, double h, double a)
 Class method to instantiate a VisionRect object with the specified parameters More...
 
static VisionRect Create (double x, double y, double w, double h)
 Class method to instantiate a VisionRect object with the specified parameters and an Origin Angle of 0 More...
 
static VisionRect CreateZero ()
 Class method to instantiate a VisionRect object with all the parameters set to 0 More...
 

Properties

VisionOrigin Origin [get, set]
 The Origin More...
 
VisionSize Size [get, set]
 The Size More...
 
- Properties inherited from VisionSDK.VisionShape
List< VisionShape > Holes [get]
 The Holes of this shape More...
 

Additional Inherited Members

- Protected Attributes inherited from VisionSDK.VisionShape
List< VisionShape > holes
 

Detailed Description

This class represents an oriented Rectangle
The Rectangle is represented by a VisionOrigin and a VisionSize.
The origin is considered the upper left vertices

Constructor & Destructor Documentation

VisionSDK.VisionRect.VisionRect ( )

Constructor

Member Function Documentation

static VisionRect VisionSDK.VisionRect.Create ( VisionOrigin  origin,
VisionSize  size 
)
static

Class method to instantiate a VisionRect object with the specified parameters

Parameters
originThe Origin of the Rectangle
sizeThe Size of the Rectangle
Returns
A VisionRect Object
static VisionRect VisionSDK.VisionRect.Create ( double  x,
double  y,
double  w,
double  h,
double  a 
)
static

Class method to instantiate a VisionRect object with the specified parameters

Parameters
xThe x coordinate of the Origin Point
yThe y coordinate of the Origin Point
wThe Width of the Size
hThe Height of the Size
aThe Angle Value in Radians
Returns
A VisionRect Object
static VisionRect VisionSDK.VisionRect.Create ( double  x,
double  y,
double  w,
double  h 
)
static

Class method to instantiate a VisionRect object with the specified parameters and an Origin Angle of 0

Parameters
xThe x coordinate of the Origin Point
yThe y coordinate of the Origin Point
wThe Width of the Size
hThe Height of the Size
Returns
A VisionRect Object
static VisionRect VisionSDK.VisionRect.CreateZero ( )
static

Class method to instantiate a VisionRect object with all the parameters set to 0

Returns
A VisionRect Object

Property Documentation

VisionOrigin VisionSDK.VisionRect.Origin
getset

The Origin

VisionSize VisionSDK.VisionRect.Size
getset

The Size

HTML Footer Datalogic Automation, Inc.    ©2016 Datalogic Automation Inc. All Rights Reserved