CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmsdk3.Box Class Reference
Inheritance diagram for cmsdk3.Box:
[legend]
Collaboration diagram for cmsdk3.Box:
[legend]

Public Member Functions

 __init__ (self, *args)
 getUpperY (self)
 getLowerY (self)
 getLeftX (self)
 getRightX (self)
 getArea (self)
 getCMX (self)
 getCMY (self)
 getCM (self)
 getUpperLeft (self)
 getUpperRight (self)
 getLowerLeft (self)
 getLowerRight (self)
 getLineWidth (self)
 getSize (self)
 getWidth (self)
 getHeight (self)
 __sub__ (self, *args)
 __add__ (self, *args)
 move (self, dx, dy)
 moveTo (self, x, y)
 set (self, x, y, w, h, linewidth=0)
 setUpperLeft (self, point)
 setSize (self, boxsize)
 setLineWidth (self, width)
 grow (self, dw, dh)
 isPointWithin (self, *args)
 getCentreMass (self)
 hasZeroSize (self)
 equals (self, *args)
 getBoundingBox (self, otherbox)
 growToBoundingBox (self, otherbox)
 growToIncludePoint (self, point, padX=0, padY=0)
 getOverlapBox (self, otherbox)
 percentOverlap (self, otherbox)
 getDoubleSizeSameCenter (self)
 constrainTo (self, *args)
 getConstrainedCopy (self, *args)

Protected Member Functions

 _print (self)

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 upperLeft = property(_cmsdk3.Box_upperLeft_get, _cmsdk3.Box_upperLeft_set)
 size = property(_cmsdk3.Box_size_get, _cmsdk3.Box_size_set)
 lineWidth = property(_cmsdk3.Box_lineWidth_get, _cmsdk3.Box_lineWidth_set)
 name = property(_cmsdk3.Box_name_get, _cmsdk3.Box_name_set)
 comment = property(_cmsdk3.Box_comment_get, _cmsdk3.Box_comment_set)
 orientation = property(_cmsdk3.Box_orientation_get, _cmsdk3.Box_orientation_set)

Detailed Description

Definition at line 1534 of file cmsdk3.py.

Constructor & Destructor Documentation

◆ __init__()

cmsdk3.Box.__init__ ( self,
* args )

Definition at line 1538 of file cmsdk3.py.

Member Function Documentation

◆ __add__()

cmsdk3.Box.__add__ ( self,
* args )

Definition at line 1599 of file cmsdk3.py.

◆ __sub__()

cmsdk3.Box.__sub__ ( self,
* args )

Definition at line 1596 of file cmsdk3.py.

◆ _print()

cmsdk3.Box._print ( self)
protected

Definition at line 1659 of file cmsdk3.py.

◆ constrainTo()

cmsdk3.Box.constrainTo ( self,
* args )

Definition at line 1653 of file cmsdk3.py.

◆ equals()

cmsdk3.Box.equals ( self,
* args )

Definition at line 1632 of file cmsdk3.py.

◆ getArea()

cmsdk3.Box.getArea ( self)

Definition at line 1560 of file cmsdk3.py.

◆ getBoundingBox()

cmsdk3.Box.getBoundingBox ( self,
otherbox )

Definition at line 1635 of file cmsdk3.py.

◆ getCentreMass()

cmsdk3.Box.getCentreMass ( self)

Definition at line 1626 of file cmsdk3.py.

◆ getCM()

cmsdk3.Box.getCM ( self)

Definition at line 1569 of file cmsdk3.py.

◆ getCMX()

cmsdk3.Box.getCMX ( self)

Definition at line 1563 of file cmsdk3.py.

◆ getCMY()

cmsdk3.Box.getCMY ( self)

Definition at line 1566 of file cmsdk3.py.

◆ getConstrainedCopy()

cmsdk3.Box.getConstrainedCopy ( self,
* args )

Definition at line 1656 of file cmsdk3.py.

◆ getDoubleSizeSameCenter()

cmsdk3.Box.getDoubleSizeSameCenter ( self)

Definition at line 1650 of file cmsdk3.py.

◆ getHeight()

cmsdk3.Box.getHeight ( self)

Definition at line 1593 of file cmsdk3.py.

◆ getLeftX()

cmsdk3.Box.getLeftX ( self)

Definition at line 1554 of file cmsdk3.py.

◆ getLineWidth()

cmsdk3.Box.getLineWidth ( self)

Definition at line 1584 of file cmsdk3.py.

◆ getLowerLeft()

cmsdk3.Box.getLowerLeft ( self)

Definition at line 1578 of file cmsdk3.py.

◆ getLowerRight()

cmsdk3.Box.getLowerRight ( self)

Definition at line 1581 of file cmsdk3.py.

◆ getLowerY()

cmsdk3.Box.getLowerY ( self)

Definition at line 1551 of file cmsdk3.py.

◆ getOverlapBox()

cmsdk3.Box.getOverlapBox ( self,
otherbox )

Definition at line 1644 of file cmsdk3.py.

◆ getRightX()

cmsdk3.Box.getRightX ( self)

Definition at line 1557 of file cmsdk3.py.

◆ getSize()

cmsdk3.Box.getSize ( self)

Definition at line 1587 of file cmsdk3.py.

◆ getUpperLeft()

cmsdk3.Box.getUpperLeft ( self)

Definition at line 1572 of file cmsdk3.py.

◆ getUpperRight()

cmsdk3.Box.getUpperRight ( self)

Definition at line 1575 of file cmsdk3.py.

◆ getUpperY()

cmsdk3.Box.getUpperY ( self)

Definition at line 1548 of file cmsdk3.py.

◆ getWidth()

cmsdk3.Box.getWidth ( self)

Definition at line 1590 of file cmsdk3.py.

◆ grow()

cmsdk3.Box.grow ( self,
dw,
dh )

Definition at line 1620 of file cmsdk3.py.

◆ growToBoundingBox()

cmsdk3.Box.growToBoundingBox ( self,
otherbox )

Definition at line 1638 of file cmsdk3.py.

◆ growToIncludePoint()

cmsdk3.Box.growToIncludePoint ( self,
point,
padX = 0,
padY = 0 )

Definition at line 1641 of file cmsdk3.py.

◆ hasZeroSize()

cmsdk3.Box.hasZeroSize ( self)

Definition at line 1629 of file cmsdk3.py.

◆ isPointWithin()

cmsdk3.Box.isPointWithin ( self,
* args )

Definition at line 1623 of file cmsdk3.py.

◆ move()

cmsdk3.Box.move ( self,
dx,
dy )

Definition at line 1602 of file cmsdk3.py.

◆ moveTo()

cmsdk3.Box.moveTo ( self,
x,
y )

Definition at line 1605 of file cmsdk3.py.

◆ percentOverlap()

cmsdk3.Box.percentOverlap ( self,
otherbox )

Definition at line 1647 of file cmsdk3.py.

◆ set()

cmsdk3.Box.set ( self,
x,
y,
w,
h,
linewidth = 0 )

Definition at line 1608 of file cmsdk3.py.

◆ setLineWidth()

cmsdk3.Box.setLineWidth ( self,
width )

Definition at line 1617 of file cmsdk3.py.

◆ setSize()

cmsdk3.Box.setSize ( self,
boxsize )

Definition at line 1614 of file cmsdk3.py.

◆ setUpperLeft()

cmsdk3.Box.setUpperLeft ( self,
point )

Definition at line 1611 of file cmsdk3.py.

Property Documentation

◆ comment

cmsdk3.Box.comment = property(_cmsdk3.Box_comment_get, _cmsdk3.Box_comment_set)
static

Definition at line 1545 of file cmsdk3.py.

◆ lineWidth

cmsdk3.Box.lineWidth = property(_cmsdk3.Box_lineWidth_get, _cmsdk3.Box_lineWidth_set)
static

Definition at line 1543 of file cmsdk3.py.

◆ name

cmsdk3.Box.name = property(_cmsdk3.Box_name_get, _cmsdk3.Box_name_set)
static

Definition at line 1544 of file cmsdk3.py.

◆ orientation

cmsdk3.Box.orientation = property(_cmsdk3.Box_orientation_get, _cmsdk3.Box_orientation_set)
static

Definition at line 1546 of file cmsdk3.py.

◆ size

cmsdk3.Box.size = property(_cmsdk3.Box_size_get, _cmsdk3.Box_size_set)
static

Definition at line 1542 of file cmsdk3.py.

◆ thisown

cmsdk3.Box.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

Definition at line 1535 of file cmsdk3.py.

◆ upperLeft

cmsdk3.Box.upperLeft = property(_cmsdk3.Box_upperLeft_get, _cmsdk3.Box_upperLeft_set)
static

Definition at line 1541 of file cmsdk3.py.


The documentation for this class was generated from the following file:
  • /home/ubuntu/c/partner/psyclone2/CMSDK/src/cmsdk3.py