HOG2
Public Member Functions | Private Attributes | List of all members
BitMapPic Class Reference

#include <BitMap.h>

Public Member Functions

 BitMapPic (int w, int h)
 
 BitMapPic (const char *file)
 
 ~BitMapPic ()
 
 BitMapPic (const BitMapPic &b)
 
BitMapPicoperator= (const BitMapPic &b)
 
int GetWidth ()
 
int GetHeight ()
 
void Save (const char *file)
 
void SetPixel (int x, int y, uint8_t redByte, uint8_t greenByte, uint8_t blueByte, uint8_t alphaByte=0)
 
void GetPixel (int x, int y, uint8_t &redByte, uint8_t &greenByte, uint8_t &blueByte, uint8_t &alphaByte) const
 
uint8_t * GetBytes ()
 

Private Attributes

uint32_t width
 
uint32_t height
 
uint8_t * image
 

Detailed Description

Definition at line 46 of file BitMap.h.

Constructor & Destructor Documentation

◆ BitMapPic() [1/3]

BitMapPic::BitMapPic ( int  w,
int  h 
)

Definition at line 14 of file BitMap.cpp.

References height, image, and width.

◆ BitMapPic() [2/3]

BitMapPic::BitMapPic ( const char *  file)

Definition at line 19 of file BitMap.cpp.

References height, image, and width.

◆ ~BitMapPic()

BitMapPic::~BitMapPic ( )

Definition at line 139 of file BitMap.cpp.

References height, image, and width.

◆ BitMapPic() [3/3]

BitMapPic::BitMapPic ( const BitMapPic b)

Definition at line 129 of file BitMap.cpp.

References height, image, and width.

Member Function Documentation

◆ GetBytes()

uint8_t* BitMapPic::GetBytes ( )
inline

Definition at line 59 of file BitMap.h.

References image.

Referenced by InitTextures().

◆ GetHeight()

int BitMapPic::GetHeight ( )
inline

Definition at line 55 of file BitMap.h.

References height.

Referenced by InitTextures().

◆ GetPixel()

void BitMapPic::GetPixel ( int  x,
int  y,
uint8_t &  redByte,
uint8_t &  greenByte,
uint8_t &  blueByte,
uint8_t &  alphaByte 
) const

Definition at line 202 of file BitMap.cpp.

References image, and width.

◆ GetWidth()

int BitMapPic::GetWidth ( )
inline

Definition at line 54 of file BitMap.h.

References width.

Referenced by InitTextures().

◆ operator=()

BitMapPic & BitMapPic::operator= ( const BitMapPic b)

Definition at line 150 of file BitMap.cpp.

References height, image, and width.

◆ Save()

void BitMapPic::Save ( const char *  file)

Definition at line 169 of file BitMap.cpp.

References height, image, and width.

Referenced by InitTextures().

◆ SetPixel()

void BitMapPic::SetPixel ( int  x,
int  y,
uint8_t  redByte,
uint8_t  greenByte,
uint8_t  blueByte,
uint8_t  alphaByte = 0 
)

Definition at line 193 of file BitMap.cpp.

References image, and width.

Referenced by VoxelGrid::GetImage().

Member Data Documentation

◆ height

uint32_t BitMapPic::height
private

Definition at line 62 of file BitMap.h.

Referenced by BitMapPic(), GetHeight(), operator=(), Save(), and ~BitMapPic().

◆ image

uint8_t* BitMapPic::image
private

Definition at line 63 of file BitMap.h.

Referenced by BitMapPic(), GetBytes(), GetPixel(), operator=(), Save(), SetPixel(), and ~BitMapPic().

◆ width

uint32_t BitMapPic::width
private

Definition at line 62 of file BitMap.h.

Referenced by BitMapPic(), GetPixel(), GetWidth(), operator=(), Save(), SetPixel(), and ~BitMapPic().


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