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, leftTop, rightTop, rightBottom, leftBottom)
 Initializes a new instance of the Quadrangle structure with the describing points. More...
 
def init (self)
 
def getLeftTop (self)
 Gets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region. More...
 
def setLeftTop (self, value)
 Gets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region. More...
 
def getRightTop (self)
 Gets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region. More...
 
def setRightTop (self, value)
 Gets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region. More...
 
def getRightBottom (self)
 Gets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region. More...
 
def setRightBottom (self, value)
 Gets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region. More...
 
def getLeftBottom (self)
 Gets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region. More...
 
def setLeftBottom (self, value)
 Gets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region. More...
 
def isEmpty (self)
 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. More...
 
def contains (self, pt)
 Determines if the specified Point is contained within this Quadrangle structure. More...
 
def containsPoint (self, x, y)
 Determines if the specified point is contained within this Quadrangle structure. More...
 
def containsQuadrangle (self, quad)
 Determines if the specified Quadrangle is contained or intersect this Quadrangle structure. More...
 
def containsRectangle (self, rect)
 Determines if the specified Rectangle is contained or intersect this Quadrangle structure. More...
 
def equals (self, other)
 Returns a value indicating whether this instance is equal to a specified Quadrangle value. More...
 
def hashCode (self)
 Returns the hash code for this instance. More...
 
def toString (self)
 Returns a human-readable string representation of this Quadrangle. More...
 
def getBoundingRectangle (self)
 Creates Rectangle bounding this Quadrangle. More...
 
- Public Member Functions inherited from BaseJavaClass
def __init__ (self, javaClass)
 
def getJavaClass (self)
 
def setJavaClass (self, javaClass)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 

Static Public Member Functions

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

Public Attributes

 leftTop
 
 rightTop
 
 rightBottom
 
 leftBottom
 
- 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,
  leftTop,
  rightTop,
  rightBottom,
  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()

def construct ( args)
static

◆ contains()

def contains (   self,
  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()

def containsPoint (   self,
  x,
  y 
)

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

Parameters
x The x point cordinate.
y The y point cordinate.
Returns
: Returns true if point is contained within this Quadrangle structure otherwise, false.

◆ containsQuadrangle()

def containsQuadrangle (   self,
  quad 
)

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

Parameters
quad The Quadrangle to test.
Returns
: Returns true if Quadrangle is contained or intersect this Quadrangle structure otherwise, false.

◆ containsRectangle()

def containsRectangle (   self,
  rect 
)

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

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

◆ EMPTY()

def EMPTY ( )
static

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

◆ equals()

def equals (   self,
  other 
)

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

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

◆ getBoundingRectangle()

def getBoundingRectangle (   self)

Creates Rectangle bounding this Quadrangle.

Returns
: returns Rectangle bounding this Quadrangle

◆ getLeftBottom()

def getLeftBottom (   self)

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

◆ getLeftTop()

def getLeftTop (   self)

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

◆ getRightBottom()

def getRightBottom (   self)

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

◆ getRightTop()

def getRightTop (   self)

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

◆ hashCode()

def hashCode (   self)

Returns the hash code for this instance.

Returns
: A 32-bit signed integer hash code.

◆ init()

def init (   self)

Reimplemented from BaseJavaClass.

◆ isEmpty()

def isEmpty (   self)

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()

def setLeftBottom (   self,
  value 
)

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

◆ setLeftTop()

def setLeftTop (   self,
  value 
)

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

◆ setRightBottom()

def setRightBottom (   self,
  value 
)

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

◆ setRightTop()

def setRightTop (   self,
  value 
)

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

◆ toString()

def 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