Public Member Functions | Private Attributes | List of all members
cartographer::io::Image Class Reference

#include <image.h>

Public Member Functions

UniqueCairoSurfacePtr GetCairoSurface ()
 
const Uint8Color GetPixel (int x, int y) const
 
int height () const
 
 Image (UniqueCairoSurfacePtr surface)
 
 Image (int width, int height)
 
void Rotate90DegreesClockwise ()
 
void SetPixel (int x, int y, const Uint8Color &color)
 
int width () const
 
void WritePng (FileWriter *const file_writer)
 

Private Attributes

int height_
 
std::vector< uint32pixels_
 
int width_
 

Detailed Description

Definition at line 49 of file image.h.

Constructor & Destructor Documentation

◆ Image() [1/2]

cartographer::io::Image::Image ( UniqueCairoSurfacePtr  surface)
explicit

Definition at line 52 of file image.cc.

◆ Image() [2/2]

cartographer::io::Image::Image ( int  width,
int  height 
)

Definition at line 49 of file image.cc.

Member Function Documentation

◆ GetCairoSurface()

UniqueCairoSurfacePtr cartographer::io::Image::GetCairoSurface ( )

Definition at line 99 of file image.cc.

◆ GetPixel()

const Uint8Color cartographer::io::Image::GetPixel ( int  x,
int  y 
) const

Definition at line 91 of file image.cc.

◆ height()

int cartographer::io::Image::height ( ) const
inline

Definition at line 68 of file image.h.

◆ Rotate90DegreesClockwise()

void cartographer::io::Image::Rotate90DegreesClockwise ( )

Definition at line 67 of file image.cc.

◆ SetPixel()

void cartographer::io::Image::SetPixel ( int  x,
int  y,
const Uint8Color color 
)

Definition at line 95 of file image.cc.

◆ width()

int cartographer::io::Image::width ( ) const
inline

Definition at line 67 of file image.h.

◆ WritePng()

void cartographer::io::Image::WritePng ( FileWriter *const  file_writer)

Definition at line 78 of file image.cc.

Member Data Documentation

◆ height_

int cartographer::io::Image::height_
private

Definition at line 72 of file image.h.

◆ pixels_

std::vector<uint32> cartographer::io::Image::pixels_
private

Definition at line 73 of file image.h.

◆ width_

int cartographer::io::Image::width_
private

Definition at line 71 of file image.h.


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


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:59