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

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

Inherits BaseJavaClass.

Public Member Functions

def __init__ (self, Assist.Point leftTop, Assist.Point rightTop, Assist.Point rightBottom, Assist.Point leftBottom)
 Initializes a new instance of the Quadrangle structure with the describing points. More...
 
bool contains (self, Assist.Point pt)
 Determines if the specified Point is contained within this Quadrangle structure. More...
 
bool containsPoint (self, int x, int y)
 Determines if the specified point is contained within this Quadrangle structure. More...
 
bool containsQuadrangle (self, Quadrangle quad)
 Determines if the specified Quadrangle is contained or intersects this Quadrangle structure. More...
 
bool containsRectangle (self, Assist.Rectangle rect)
 Determines if the specified Rectangle is contained or intersects this Quadrangle structure. More...
 
bool equals (self, Quadrangle other)
 Returns a value indicating whether this instance is equal to a specified Quadrangle value. More...
 
Assist.Rectangle getBoundingRectangle (self)
 Creates Rectangle bounding this Quadrangle. More...
 
Assist.Point getLeftBottom (self)
 Gets left-bottom corner Point of Quadrangle region. More...
 
Assist.Point getLeftTop (self)
 Gets left-top corner Point of Quadrangle region. More...
 
Assist.Point getRightBottom (self)
 Gets right-bottom corner Point of Quadrangle region. More...
 
Assist.Point getRightTop (self)
 Gets right-top corner Point of Quadrangle region. More...
 
int hashCode (self)
 Returns the hash code for this instance. More...
 
None init (self)
 
bool isEmpty (self)
 Tests whether all Points of this Quadrangle have values of zero. More...
 
None setLeftBottom (self, Assist.Point value)
 Sets left-bottom corner Point of Quadrangle region. More...
 
None setLeftTop (self, Assist.Point value)
 Sets left-top corner Point of Quadrangle region. More...
 
None setRightBottom (self, Assist.Point value)
 Sets right-bottom corner Point of Quadrangle region. More...
 
None setRightTop (self, Assist.Point value)
 Sets right-top corner Point of Quadrangle region. More...
 
str toString (self)
 Returns a human-readable string representation of this Quadrangle. More...
 
- Public Member Functions inherited from BaseJavaClass
None __init__ (self, javaClass)
 
def getJavaClass (self)
 
str getJavaClassName (self)
 
bool isNull (self)
 
None printJavaClassName (self)
 
None setJavaClass (self, javaClass)
 

Static Public Member Functions

Quadrangle construct (*args)
 
Quadrangle EMPTY ()
 Represents a Quadrangle structure with its properties left uninitialized. More...
 

Public Attributes

 leftBottom
 
 leftTop
 
 rightBottom
 
 rightTop
 
- Public Attributes inherited from BaseJavaClass
 javaClass
 
 javaClassName
 

Static Public Attributes

string javaClassName = "com.aspose.mw.barcode.recognition.MwQuadrangle"
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
Assist.Point  leftTop,
Assist.Point  rightTop,
Assist.Point  rightBottom,
Assist.Point  leftBottom 
)

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

Parameters
leftTop A Point that represents the left-top corner of the Quadrangle.
rightTop A Point that represents the right-top corner of the Quadrangle.
rightBottom A Point that represents the right-bottom corner of the Quadrangle.
leftBottom A Point that represents the left-bottom corner of the Quadrangle.

Member Function Documentation

◆ construct()

Quadrangle construct ( args)
static

◆ contains()

bool contains (   self,
Assist.Point  pt 
)

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

Parameters
pt The Point to test.
Returns
: Returns true if Point is contained within this Quadrangle structure otherwise, false.

◆ containsPoint()

bool containsPoint (   self,
int  x,
int  y 
)

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

Parameters
x The x coordinate.
y The y coordinate.
Returns
True if point is contained within this Quadrangle structure, otherwise False.

◆ containsQuadrangle()

bool containsQuadrangle (   self,
Quadrangle  quad 
)

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

Parameters
quad The Quadrangle to test.
Returns
True if Quadrangle is contained or intersects this Quadrangle structure, otherwise False.

◆ containsRectangle()

bool containsRectangle (   self,
Assist.Rectangle  rect 
)

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

Parameters
rect The Rectangle to test.
Returns
: Returns true if Rectangle is contained or intersects this Quadrangle structure otherwise, false.

◆ EMPTY()

Quadrangle EMPTY ( )
static

Represents a Quadrangle structure with its properties left uninitialized.

Value: Quadrangle

◆ equals()

bool equals (   self,
Quadrangle  other 
)

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

Parameters
other A Quadrangle value to compare to this instance.
Returns
: true if obj has the same value as this instance otherwise, false.

◆ getBoundingRectangle()

Assist.Rectangle getBoundingRectangle (   self)

Creates Rectangle bounding this Quadrangle.

Returns
: returns Rectangle bounding this Quadrangle.

◆ getLeftBottom()

Assist.Point getLeftBottom (   self)

Gets left-bottom corner Point of Quadrangle region.

Returns
A left-bottom corner Point of Quadrangle region.

◆ getLeftTop()

Assist.Point getLeftTop (   self)

Gets left-top corner Point of Quadrangle region.

Returns
A left-top corner Point of Quadrangle region.

◆ getRightBottom()

Assist.Point getRightBottom (   self)

Gets right-bottom corner Point of Quadrangle region.

Returns
A right-bottom corner Point of Quadrangle region.

◆ getRightTop()

Assist.Point getRightTop (   self)

Gets right-top corner Point of Quadrangle region.

Returns
A right-top corner Point of Quadrangle region.

◆ hashCode()

int hashCode (   self)

Returns the hash code for this instance.

Returns
: A 32-bit signed integer hash code.

◆ init()

None init (   self)

Reimplemented from BaseJavaClass.

◆ isEmpty()

bool isEmpty (   self)

Tests whether all Points of this Quadrangle have values of zero.

Returns
True if all Points of this Quadrangle have values of zero, otherwise False.

◆ setLeftBottom()

None setLeftBottom (   self,
Assist.Point  value 
)

Sets left-bottom corner Point of Quadrangle region.

Parameters
valueA left-bottom corner Point of Quadrangle region.

◆ setLeftTop()

None setLeftTop (   self,
Assist.Point  value 
)

Sets left-top corner Point of Quadrangle region.

Parameters
valueA left-top corner Point of Quadrangle region

◆ setRightBottom()

None setRightBottom (   self,
Assist.Point  value 
)

Sets right-bottom corner Point of Quadrangle region.

Parameters
valueA right-bottom corner Point of Quadrangle region.

◆ setRightTop()

None setRightTop (   self,
Assist.Point  value 
)

Sets right-top corner Point of Quadrangle region.

Parameters
valueA right-top corner Point of Quadrangle region

◆ toString()

str toString (   self)

Returns a human-readable string representation of this Quadrangle.

Returns
: A string that represents this Quadrangle.

Member Data Documentation

◆ javaClassName

string javaClassName = "com.aspose.mw.barcode.recognition.MwQuadrangle"
static

◆ leftBottom

leftBottom

◆ leftTop

leftTop

◆ rightBottom

rightBottom

◆ rightTop

rightTop