An implementation of the PPM file format.
More...
#include <PPMIO.hpp>
|
void | readLine (ifstream &in, char *buffer) |
|
An implementation of the PPM file format.
Definition at line 59 of file PPMIO.hpp.
◆ PPMIO() [1/2]
◆ PPMIO() [2/2]
lvr2::PPMIO::PPMIO |
( |
string |
filename | ) |
|
◆ ~PPMIO()
virtual lvr2::PPMIO::~PPMIO |
( |
| ) |
|
|
inlinevirtual |
◆ getHeight()
int lvr2::PPMIO::getHeight |
( |
| ) |
const |
|
inline |
◆ getPixels()
unsigned char* lvr2::PPMIO::getPixels |
( |
| ) |
const |
|
inline |
◆ getWidth()
int lvr2::PPMIO::getWidth |
( |
| ) |
const |
|
inline |
◆ readLine()
void lvr2::PPMIO::readLine |
( |
ifstream & |
in, |
|
|
char * |
buffer |
|
) |
| |
|
private |
Reads a new line from the given stream that is no comment
- Parameters
-
in | The stream to read from |
buffer | The extracted information |
Definition at line 150 of file PPMIO.cpp.
◆ setDataArray()
void lvr2::PPMIO::setDataArray |
( |
unsigned char * |
array, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
◆ write()
void lvr2::PPMIO::write |
( |
string |
filename | ) |
|
◆ m_height
int lvr2::PPMIO::m_height |
|
private |
◆ m_pixels
unsigned char* lvr2::PPMIO::m_pixels |
|
private |
◆ m_width
The documentation for this class was generated from the following files: