Geometrize  1.0
C++ library for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes | List of all members
geometrize::Scanline Class Reference

The Scanline class represents a scanline, a row of pixels running across a bitmap. More...

#include <scanline.h>

Public Member Functions

 Scanline ()=default
 Scanline Creates a new scanline (members are uninitialized) More...
 
 Scanline (std::int32_t y, std::int32_t x1, std::int32_t x2)
 Scanline Creates a new scanline. More...
 
 ~Scanline ()=default
 
Scanlineoperator= (const Scanline &)=default
 
 Scanline (const Scanline &)=default
 

Public Attributes

std::int32_t y
 The y-coordinate of the scanline. More...
 
std::int32_t x1
 The leftmost x-coordinate of the scanline. More...
 
std::int32_t x2
 The rightmost x-coordinate of the scanline. More...
 

Detailed Description

The Scanline class represents a scanline, a row of pixels running across a bitmap.

Author
Sam Twidale (https://samcodes.co.uk/)

Constructor & Destructor Documentation

geometrize::Scanline::Scanline ( )
default

Scanline Creates a new scanline (members are uninitialized)

geometrize::Scanline::Scanline ( std::int32_t  y,
std::int32_t  x1,
std::int32_t  x2 
)

Scanline Creates a new scanline.

Parameters
yThe y-coordinate.
x1The leftmost x-coordinate.
x2The rightmost x-coordinate.
11 : y{y}, x1{x1}, x2{x2} {}
std::int32_t x2
The rightmost x-coordinate of the scanline.
Definition: scanline.h:35
std::int32_t y
The y-coordinate of the scanline.
Definition: scanline.h:33
std::int32_t x1
The leftmost x-coordinate of the scanline.
Definition: scanline.h:34
geometrize::Scanline::~Scanline ( )
default
geometrize::Scanline::Scanline ( const Scanline )
default

Member Function Documentation

Scanline& geometrize::Scanline::operator= ( const Scanline )
default

Member Data Documentation

std::int32_t geometrize::Scanline::x1

The leftmost x-coordinate of the scanline.

std::int32_t geometrize::Scanline::x2

The rightmost x-coordinate of the scanline.

std::int32_t geometrize::Scanline::y

The y-coordinate of the scanline.


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