Engauge Digitizer 2
Loading...
Searching...
No Matches
PointMatchPixel Class Reference

Single on or off pixel out of the pixels that define the point match mode's candidate point. More...

#include <PointMatchPixel.h>

Collaboration diagram for PointMatchPixel:
Collaboration graph

Public Member Functions

 PointMatchPixel (int xOffset, int yOffset, bool pixelIsOn)
 Single basic constructor.
 PointMatchPixel (const PointMatchPixel &other)
 Copy constructor.
PointMatchPixeloperator= (const PointMatchPixel &other)
 Assignment operator.
bool pixelIsOn () const
 True/false if pixel is on/off.
int xOffset () const
 X position relative to the center of the point.
int yOffset () const
 Y position relative to the center of the point.

Detailed Description

Single on or off pixel out of the pixels that define the point match mode's candidate point.

Definition at line 13 of file PointMatchPixel.h.

Constructor & Destructor Documentation

◆ PointMatchPixel() [1/2]

PointMatchPixel::PointMatchPixel ( int xOffset,
int yOffset,
bool pixelIsOn )

Single basic constructor.

Definition at line 9 of file PointMatchPixel.cpp.

11 :
12 m_posOffset (xOffset, yOffset),
13 m_pixelIsOn (pixelIsOn)
14{
15}
int yOffset() const
Y position relative to the center of the point.
bool pixelIsOn() const
True/false if pixel is on/off.
int xOffset() const
X position relative to the center of the point.

◆ PointMatchPixel() [2/2]

PointMatchPixel::PointMatchPixel ( const PointMatchPixel & other)

Copy constructor.

Definition at line 17 of file PointMatchPixel.cpp.

17 :
18 m_posOffset (other.xOffset(),
19 other.yOffset()),
20 m_pixelIsOn (other.pixelIsOn ())
21{
22}

Member Function Documentation

◆ operator=()

PointMatchPixel & PointMatchPixel::operator= ( const PointMatchPixel & other)

Assignment operator.

Definition at line 24 of file PointMatchPixel.cpp.

25{
26 m_posOffset = QPoint (other.xOffset(),
27 other.yOffset());
28 m_pixelIsOn = other.pixelIsOn();
29
30 return *this;
31}

◆ pixelIsOn()

bool PointMatchPixel::pixelIsOn ( ) const

True/false if pixel is on/off.

Definition at line 33 of file PointMatchPixel.cpp.

34{
35 return m_pixelIsOn;
36}

◆ xOffset()

int PointMatchPixel::xOffset ( ) const

X position relative to the center of the point.

Definition at line 38 of file PointMatchPixel.cpp.

39{
40 return m_posOffset.x();
41}

◆ yOffset()

int PointMatchPixel::yOffset ( ) const

Y position relative to the center of the point.

Definition at line 43 of file PointMatchPixel.cpp.

44{
45 return m_posOffset.y();
46}

The documentation for this class was generated from the following files: