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

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

Inherits asposebarcode.Assist.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 :return: returns Rectangle bounding this Quadrangle. More...
 
- Public Member Functions inherited from asposebarcode.Assist.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 asposebarcode.Assist.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 asposebarcode.Recognition.Quadrangle.__init__ (   self,
  leftTop,
  rightTop,
  rightBottom,
  leftBottom 
)

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

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

Member Function Documentation

◆ construct()

def asposebarcode.Recognition.Quadrangle.construct ( args)
static

◆ contains()

def asposebarcode.Recognition.Quadrangle.contains (   self,
  pt 
)

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

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

◆ containsPoint()

def asposebarcode.Recognition.Quadrangle.containsPoint (   self,
  x,
  y 
)

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

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

◆ containsQuadrangle()

def asposebarcode.Recognition.Quadrangle.containsQuadrangle (   self,
  quad 
)

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

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

◆ containsRectangle()

def asposebarcode.Recognition.Quadrangle.containsRectangle (   self,
  rect 
)

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

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

◆ EMPTY()

def asposebarcode.Recognition.Quadrangle.EMPTY ( )
static

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

◆ equals()

def asposebarcode.Recognition.Quadrangle.equals (   self,
  other 
)

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

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

◆ getBoundingRectangle()

def asposebarcode.Recognition.Quadrangle.getBoundingRectangle (   self)

Creates Rectangle bounding this Quadrangle :return: returns Rectangle bounding this Quadrangle.

◆ getLeftBottom()

def asposebarcode.Recognition.Quadrangle.getLeftBottom (   self)

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

◆ getLeftTop()

def asposebarcode.Recognition.Quadrangle.getLeftTop (   self)

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

◆ getRightBottom()

def asposebarcode.Recognition.Quadrangle.getRightBottom (   self)

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

◆ getRightTop()

def asposebarcode.Recognition.Quadrangle.getRightTop (   self)

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

◆ hashCode()

def asposebarcode.Recognition.Quadrangle.hashCode (   self)

Returns the hash code for this instance.

:return: A 32-bit signed integer hash code.

◆ init()

def asposebarcode.Recognition.Quadrangle.init (   self)

◆ isEmpty()

def asposebarcode.Recognition.Quadrangle.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 asposebarcode.Recognition.Quadrangle.setLeftBottom (   self,
  value 
)

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

◆ setLeftTop()

def asposebarcode.Recognition.Quadrangle.setLeftTop (   self,
  value 
)

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

◆ setRightBottom()

def asposebarcode.Recognition.Quadrangle.setRightBottom (   self,
  value 
)

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

◆ setRightTop()

def asposebarcode.Recognition.Quadrangle.setRightTop (   self,
  value 
)

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

◆ toString()

def asposebarcode.Recognition.Quadrangle.toString (   self)

Returns a human-readable string representation of this Quadrangle.

:return: A string that represents this Quadrangle.

Member Data Documentation

◆ javaClassName

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

◆ leftBottom

asposebarcode.Recognition.Quadrangle.leftBottom

◆ leftTop

asposebarcode.Recognition.Quadrangle.leftTop

◆ rightBottom

asposebarcode.Recognition.Quadrangle.rightBottom

◆ rightTop

asposebarcode.Recognition.Quadrangle.rightTop