Aspose.Barcode for PHP via Java Generation and Recognition API docs

Inherits BaseJavaClass.

Public Member Functions

 __construct (Point $leftTop, Point $rightTop, Point $rightBottom, Point $leftBottom)
 
 getLeftTop ()
 
 setLeftTop (Point $value)
 
 getRightTop ()
 
 setRightTop (Point $value)
 
 getRightBottom ()
 
 setRightBottom (Point $value)
 
 getLeftBottom ()
 
 setLeftBottom (Point $value)
 
 isEmpty ()
 
 contains (Point $pt)
 
 containsPoint (int $x, int $y)
 
 containsQuadrangle (Quadrangle $quad)
 
 containsRectangle (Rectangle $rect)
 
 equals (Quadrangle $obj)
 
 hashCode ()
 
 toString ()
 
 getBoundingRectangle ()
 
- Public Member Functions inherited from BaseJavaClass
 __construct ($javaClass)
 
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Static Public Member Functions

static EMPTY ()
 
static construct (... $args)
 

Protected Member Functions

 init ()
 
- Protected Member Functions inherited from BaseJavaClass
 setJavaClass ($javaClass)
 

Private Attributes

const javaClassName = "com.aspose.mw.barcode.recognition.MwQuadrangle"
 
 $leftTop
 
 $rightTop
 
 $rightBottom
 
 $leftBottom
 

Detailed Description

Stores a set of four Points that represent a Quadrangle region.

Constructor & Destructor Documentation

◆ __construct()

Quadrangle::__construct ( Point  $leftTop,
Point  $rightTop,
Point  $rightBottom,
Point  $leftBottom 
)

Initializes a new instance of the Quadrangle structure with the describing points.

Parameters
Point$leftTopA Point that represents the left-top corner of the Quadrangle.
Point$rightTopA Point that represents the right-top corner of the Quadrangle.
Point$rightBottomA Point that represents the right-bottom corner of the Quadrangle.
Point$leftBottomA Point that represents the left-bottom corner of the Quadrangle.

Member Function Documentation

◆ construct()

static Quadrangle::construct (   $args)
static

◆ contains()

Quadrangle::contains ( Point  $pt)

Determines if the specified Point is contained within this Quadrangle structure.

Parameters
Pointpt The Point to test.
Returns
bool Returns true if Point is contained within this Quadrangle structure; otherwise, false.

◆ containsPoint()

Quadrangle::containsPoint ( int  $x,
int  $y 
)

Determines if the specified point is contained within this Quadrangle structure.

Parameters
int$xThe x point cordinate.
int$yThe y point cordinate.
Returns
bool Returns true if point is contained within this Quadrangle structure; otherwise, false.

◆ containsQuadrangle()

Quadrangle::containsQuadrangle ( Quadrangle  $quad)

Determines if the specified Quadrangle is contained or intersect this Quadrangle structure.

Parameters
Quadranglequad The Quadrangle to test.
Returns
bool Returns true if Quadrangle is contained or intersect this Quadrangle structure; otherwise, false.

◆ containsRectangle()

Quadrangle::containsRectangle ( Rectangle  $rect)

Determines if the specified Rectangle is contained or intersect this Quadrangle structure.

Parameters
Rectanglerect The Rectangle to test.
Returns
bool Returns true if Rectangle is contained or intersect this Quadrangle structure; otherwise, false.

◆ EMPTY()

static Quadrangle::EMPTY ( )
static

Represents a Quadrangle structure with its properties left uninitialized.Value: Quadrangle

◆ equals()

Quadrangle::equals ( Quadrangle  $obj)

Returns a value indicating whether this instance is equal to a specified Quadrangle value.

Parameters
Quadrangle$otherAn Quadrangle value to compare to this instance.
Returns
bool true if obj has the same value as this instance; otherwise, false.

◆ getBoundingRectangle()

Quadrangle::getBoundingRectangle ( )

Creates Rectangle bounding this Quadrangle

Returns
Rectangle returns Rectangle bounding this Quadrangle

◆ getLeftBottom()

Quadrangle::getLeftBottom ( )

Gets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region

◆ getLeftTop()

Quadrangle::getLeftTop ( )

Gets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region

◆ getRightBottom()

Quadrangle::getRightBottom ( )

Gets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region

◆ getRightTop()

Quadrangle::getRightTop ( )

Gets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region

◆ hashCode()

Quadrangle::hashCode ( )

Returns the hash code for this instance.

Returns
int A 32-bit signed integer hash code.

◆ init()

Quadrangle::init ( )
protected

Reimplemented from BaseJavaClass.

◆ isEmpty()

Quadrangle::isEmpty ( )

Tests whether all Points of this Quadrangle have values of zero.Value: Returns true if all Points of this Quadrangle have values of zero; otherwise, false.

◆ setLeftBottom()

Quadrangle::setLeftBottom ( Point  $value)

Gets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region

◆ setLeftTop()

Quadrangle::setLeftTop ( Point  $value)

Gets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region

◆ setRightBottom()

Quadrangle::setRightBottom ( Point  $value)

Gets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region

◆ setRightTop()

Quadrangle::setRightTop ( Point  $value)

Gets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region

◆ toString()

Quadrangle::toString ( )

Returns a human-readable string representation of this Quadrangle.

Returns
string A string that represents this Quadrangle.

Member Data Documentation

◆ $leftBottom

Quadrangle::$leftBottom
private

◆ $leftTop

Quadrangle::$leftTop
private

◆ $rightBottom

Quadrangle::$rightBottom
private

◆ $rightTop

Quadrangle::$rightTop
private

◆ javaClassName

const Quadrangle::javaClassName = "com.aspose.mw.barcode.recognition.MwQuadrangle"
private