Engauge Digitizer  2
Public Member Functions | List of all members
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. More...
 
 PointMatchPixel (const PointMatchPixel &other)
 Copy constructor. More...
 
PointMatchPixeloperator= (const PointMatchPixel &other)
 Assignment operator. More...
 
bool pixelIsOn () const
 True/false if pixel is on/off. More...
 
int xOffset () const
 X position relative to the center of the point. More...
 
int yOffset () const
 Y position relative to the center of the point. More...
 

Detailed Description

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

Definition at line 12 of file PointMatchPixel.h.

Constructor & Destructor Documentation

◆ PointMatchPixel() [1/2]

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

Single basic constructor.

Definition at line 8 of file PointMatchPixel.cpp.

11  :
12  m_posOffset (xOffset, yOffset),
13  m_pixelIsOn (pixelIsOn)
14 {

◆ PointMatchPixel() [2/2]

PointMatchPixel::PointMatchPixel ( const PointMatchPixel other)

Copy constructor.

Definition at line 16 of file PointMatchPixel.cpp.

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

Member Function Documentation

◆ operator=()

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

Assignment operator.

Definition at line 23 of file PointMatchPixel.cpp.

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

◆ pixelIsOn()

bool PointMatchPixel::pixelIsOn ( ) const

True/false if pixel is on/off.

Definition at line 32 of file PointMatchPixel.cpp.

34 {
35  return m_pixelIsOn;

◆ xOffset()

int PointMatchPixel::xOffset ( ) const

X position relative to the center of the point.

Definition at line 37 of file PointMatchPixel.cpp.

39 {
40  return m_posOffset.x();

◆ yOffset()

int PointMatchPixel::yOffset ( ) const

Y position relative to the center of the point.

Definition at line 42 of file PointMatchPixel.cpp.

44 {
45  return m_posOffset.y();

The documentation for this class was generated from the following files:
PointMatchPixel::pixelIsOn
bool pixelIsOn() const
True/false if pixel is on/off.
Definition: PointMatchPixel.cpp:32
PointMatchPixel::xOffset
int xOffset() const
X position relative to the center of the point.
Definition: PointMatchPixel.cpp:37
PointMatchPixel::yOffset
int yOffset() const
Y position relative to the center of the point.
Definition: PointMatchPixel.cpp:42