krita

KisSubPerspectiveGrid Class Reference

List of all members.

Detailed Description

Definition at line 37 of file kis_perspective_grid.h.


Public Member Functions

 KisSubPerspectiveGrid (KisPerspectiveGridNodeSP topLeft, KisPerspectiveGridNodeSP topRight, KisPerspectiveGridNodeSP bottomRight, KisPerspectiveGridNodeSP bottomLeft)
KisPoint topBottomVanishingPoint ()
KisPoint leftRightVanishingPoint ()
KisSubPerspectiveGridleftGrid ()
void setLeftGrid (KisSubPerspectiveGrid *g)
KisSubPerspectiveGridrightGrid ()
void setRightGrid (KisSubPerspectiveGrid *g)
KisSubPerspectiveGridtopGrid ()
void setTopGrid (KisSubPerspectiveGrid *g)
KisSubPerspectiveGridbottomGrid ()
void setBottomGrid (KisSubPerspectiveGrid *g)
const KisPerspectiveGridNodeSP topLeft () const
KisPerspectiveGridNodeSP topLeft ()
const KisPerspectiveGridNodeSP topRight () const
KisPerspectiveGridNodeSP topRight ()
const KisPerspectiveGridNodeSP bottomLeft () const
KisPerspectiveGridNodeSP bottomLeft ()
const KisPerspectiveGridNodeSP bottomRight () const
KisPerspectiveGridNodeSP bottomRight ()
int subdivisions () const
int index () const
bool contains (const KisPoint p) const

Member Function Documentation

int KisSubPerspectiveGrid::index (  )  const [inline]

Return the index of the subgrid, the value is automaticaly set when the KisSubPerspectiveGrid, it is usefull for drawing the perspective grid, to avoid drawing twice the same border, or points.

Definition at line 65 of file kis_perspective_grid.h.

bool KisSubPerspectiveGrid::contains ( const KisPoint  p  )  const

Returns:
true if the point p is contain by the grid

Definition at line 30 of file kis_perspective_grid.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys