Skip to content

Class AbstractTwoPointTool#

ClassList > AbstractTwoPointTool

Inherits the following classes: CaptureTool

Inherited by the following classes: ArrowTool, CircleCountTool, CircleTool, InvertTool, LineTool, MarkerTool, PixelateTool, RectangleTool, SelectionTool

Public Functions#

Type Name
AbstractTwoPointTool (QObject * parent=nullptr)
QRect boundingRect () override const
bool closeOnButtonPressed () override const
const QColor & color ()
bool isSelectable () override const
bool isValid () override const
QRect mousePreviewRect (const CaptureContext & context) override const
void move (const QPoint & pos) override
void paintMousePreview (QPainter & painter, const CaptureContext & context) override
const QPair< QPoint, QPoint > points () const
const QPoint * pos () override
bool showMousePreview () override const
int size () override const

Protected Attributes#

Type Name
bool m_supportsDiagonalAdj = = false
bool m_supportsOrthogonalAdj = = false

Protected Functions#

Type Name
void copyParams (const AbstractTwoPointTool * from, AbstractTwoPointTool * to)
void setPadding (int padding)

Public Functions Documentation#

function AbstractTwoPointTool#

explicit AbstractTwoPointTool::AbstractTwoPointTool (
    QObject * parent=nullptr

function boundingRect#

QRect AbstractTwoPointTool::boundingRect () override const

function closeOnButtonPressed#

bool AbstractTwoPointTool::closeOnButtonPressed () override const

function color#

inline const QColor & AbstractTwoPointTool::color () 

function isSelectable#

bool AbstractTwoPointTool::isSelectable () override const

function isValid#

bool AbstractTwoPointTool::isValid () override const

function mousePreviewRect#

QRect AbstractTwoPointTool::mousePreviewRect (
    const CaptureContext & context
) override const

function move#

void AbstractTwoPointTool::move (
    const QPoint & pos
) override

function paintMousePreview#

void AbstractTwoPointTool::paintMousePreview (
    QPainter & painter,
    const CaptureContext & context
) override

function points#

inline const QPair< QPoint, QPoint > AbstractTwoPointTool::points () const

function pos#

const QPoint * AbstractTwoPointTool::pos () override

function showMousePreview#

bool AbstractTwoPointTool::showMousePreview () override const

function size#

inline int AbstractTwoPointTool::size () override const

Protected Attributes Documentation#

variable m_supportsDiagonalAdj#

bool AbstractTwoPointTool::m_supportsDiagonalAdj;

variable m_supportsOrthogonalAdj#

bool AbstractTwoPointTool::m_supportsOrthogonalAdj;

Protected Functions Documentation#

function copyParams#

void AbstractTwoPointTool::copyParams (
    const AbstractTwoPointTool * from,
    AbstractTwoPointTool * to

function setPadding#

inline void AbstractTwoPointTool::setPadding (
    int padding