Version: 1.0
Public Member Functions | Public Attributes | List of all members
pixel Struct Reference

#include <pixel_set.h>

Public Member Functions

 pixel ()
 
 pixel (const YAML::Node &node)
 
 pixel (std::string name, std::vector< int > coords)
 
auto size () const
 
auto & operator[] (size_t i)
 
auto & operator[] (size_t i) const
 
int GetDx () const
 
int GetDy () const
 
bool operator== (const pixel &rhs) const
 
void ShiftX (int s)
 
YAML::Node Serialize () const
 
void Deserialize (const YAML::Node &node)
 

Public Attributes

std::vector< int > coords_
 
std::string name_
 

Detailed Description

Definition at line 22 of file pixel_set.h.

Constructor & Destructor Documentation

◆ pixel() [1/3]

pixel::pixel ( )
inline

Definition at line 26 of file pixel_set.h.

◆ pixel() [2/3]

pixel::pixel ( const YAML::Node &  node)
inline

Definition at line 27 of file pixel_set.h.

◆ pixel() [3/3]

pixel::pixel ( std::string  name,
std::vector< int >  coords 
)
inline

Definition at line 30 of file pixel_set.h.

Member Function Documentation

◆ Deserialize()

void pixel::Deserialize ( const YAML::Node &  node)
inline

Definition at line 66 of file pixel_set.h.

◆ GetDx()

int pixel::GetDx ( ) const
inline

Definition at line 37 of file pixel_set.h.

◆ GetDy()

int pixel::GetDy ( ) const
inline

Definition at line 38 of file pixel_set.h.

◆ operator==()

bool pixel::operator== ( const pixel rhs) const
inline

Definition at line 41 of file pixel_set.h.

◆ operator[]() [1/2]

auto& pixel::operator[] ( size_t  i)
inline

Definition at line 33 of file pixel_set.h.

◆ operator[]() [2/2]

auto& pixel::operator[] ( size_t  i) const
inline

Definition at line 34 of file pixel_set.h.

◆ Serialize()

YAML::Node pixel::Serialize ( ) const
inline

Definition at line 55 of file pixel_set.h.

◆ ShiftX()

void pixel::ShiftX ( int  s)
inline

Definition at line 51 of file pixel_set.h.

◆ size()

auto pixel::size ( ) const
inline

Definition at line 32 of file pixel_set.h.

Member Data Documentation

◆ coords_

std::vector<int> pixel::coords_

Definition at line 23 of file pixel_set.h.

◆ name_

std::string pixel::name_

Definition at line 24 of file pixel_set.h.


The documentation for this struct was generated from the following file: