SilentEye 0.4.1
Public Types | Public Member Functions | Private Member Functions | Private Attributes

SEFormatBMP::ImageBMP Class Reference

#include <imagebmp.h>

Inheritance diagram for SEFormatBMP::ImageBMP:
SilentEyeFramework::Image SilentEyeFramework::Media

List of all members.

Public Types

enum  HeaderPosition { TOP = 1, BOTTOM = 2, SIGNATURE = 3 }
enum  DataDistribution { INLINE = 1, EQUI = 2 }

Public Member Functions

 ImageBMP ()
 ~ImageBMP ()
 ImageBMP (const QString &filePath)
 ImageBMP (const QPixmap &pixmap, QString filePath="Pixmap")
 ImageBMP (const Image &image)
 ImageBMP (Image *image)
unsigned short int nbBits () const
bool setNbBits (const unsigned short int nb)
void setColorUsed (bool r=true, bool g=true, bool b=true)
void setDistribution (DataDistribution)
void setHeaderPosition (HeaderPosition)
quint32 capacity () const
bool loadData ()
bool saveToDir (QString &outputDirPath)

Private Member Functions

bool hideData ()
int changeColor (int color, const int val)
int computeDistributionStep (quint32 size)
QPoint * computeHeaderPosition ()
bool isBetweenPoint (const QPoint &, const QPoint &, const QPoint &)
QPoint computeNewPosition (const QPoint &, int, bool=false)

Private Attributes

QPointer< Loggerm_logger
QImage m_img
unsigned short int m_nbBits
bool m_useRed
bool m_useGreen
bool m_useBlue
int m_nbColorUsed
HeaderPosition m_headerPosition
DataDistribution m_distribution
unsigned short int m_swap
int m_blockWidth
int m_blockHeight
int m_blockInnerPos

Detailed Description

Definition at line 29 of file imagebmp.h.


Member Enumeration Documentation

Enumerator:
INLINE 
EQUI 

Definition at line 33 of file imagebmp.h.

Enumerator:
TOP 
BOTTOM 
SIGNATURE 

Definition at line 32 of file imagebmp.h.


Constructor & Destructor Documentation

SEFormatBMP::ImageBMP::ImageBMP ( )
SEFormatBMP::ImageBMP::~ImageBMP ( )

Definition at line 85 of file imagebmp.cpp.

References m_logger.

SEFormatBMP::ImageBMP::ImageBMP ( const QString &  filePath)
SEFormatBMP::ImageBMP::ImageBMP ( const QPixmap &  pixmap,
QString  filePath = "Pixmap" 
)
SEFormatBMP::ImageBMP::ImageBMP ( const Image image)
SEFormatBMP::ImageBMP::ImageBMP ( Image image)

Member Function Documentation

quint32 SEFormatBMP::ImageBMP::capacity ( ) const [virtual]
int SEFormatBMP::ImageBMP::changeColor ( int  color,
const int  val 
) [private]

Definition at line 421 of file imagebmp.cpp.

References m_swap.

Referenced by hideData().

int SEFormatBMP::ImageBMP::computeDistributionStep ( quint32  size) [private]
QPoint * SEFormatBMP::ImageBMP::computeHeaderPosition ( ) [private]
QPoint SEFormatBMP::ImageBMP::computeNewPosition ( const QPoint &  oldPos,
int  step,
bool  first = false 
) [private]
bool SEFormatBMP::ImageBMP::hideData ( ) [private]
bool SEFormatBMP::ImageBMP::isBetweenPoint ( const QPoint &  ref,
const QPoint &  start,
const QPoint &  end 
) [private]

Definition at line 525 of file imagebmp.cpp.

Referenced by hideData(), and loadData().

bool SEFormatBMP::ImageBMP::loadData ( ) [virtual]
unsigned short int SEFormatBMP::ImageBMP::nbBits ( ) const

Definition at line 90 of file imagebmp.cpp.

Referenced by loadData().

bool SEFormatBMP::ImageBMP::saveToDir ( QString &  outputDirPath) [virtual]
void SEFormatBMP::ImageBMP::setColorUsed ( bool  r = true,
bool  g = true,
bool  b = true 
)

Definition at line 94 of file imagebmp.cpp.

References m_nbColorUsed, m_useBlue, m_useGreen, and m_useRed.

Referenced by SEFormatBMP::SEFormatBmp::updateImage().

void SEFormatBMP::ImageBMP::setDistribution ( DataDistribution  value)

Definition at line 108 of file imagebmp.cpp.

References m_distribution.

Referenced by SEFormatBMP::SEFormatBmp::updateImage().

void SEFormatBMP::ImageBMP::setHeaderPosition ( HeaderPosition  value)

Definition at line 113 of file imagebmp.cpp.

References m_headerPosition.

Referenced by SEFormatBMP::SEFormatBmp::updateImage().

bool SEFormatBMP::ImageBMP::setNbBits ( const unsigned short int  nb)

Definition at line 118 of file imagebmp.cpp.

References SilentEyeFramework::Media::m_isLoaded, and m_nbBits.

Referenced by SEFormatBMP::SEFormatBmp::updateImage().


Member Data Documentation

Definition at line 48 of file imagebmp.h.

Referenced by computeDistributionStep(), and computeNewPosition().

Definition at line 49 of file imagebmp.h.

Referenced by computeDistributionStep(), and computeNewPosition().

Definition at line 47 of file imagebmp.h.

Referenced by computeDistributionStep(), and computeNewPosition().

Definition at line 45 of file imagebmp.h.

Referenced by computeDistributionStep(), and setDistribution().

Definition at line 44 of file imagebmp.h.

Referenced by computeHeaderPosition(), hideData(), loadData(), and setHeaderPosition().

QImage SEFormatBMP::ImageBMP::m_img [private]

Definition at line 38 of file imagebmp.h.

Referenced by hideData(), loadData(), and saveToDir().

unsigned short int SEFormatBMP::ImageBMP::m_nbBits [private]
unsigned short int SEFormatBMP::ImageBMP::m_swap [private]

Definition at line 46 of file imagebmp.h.

Referenced by changeColor(), and hideData().

Definition at line 42 of file imagebmp.h.

Referenced by hideData(), loadData(), and setColorUsed().

Definition at line 41 of file imagebmp.h.

Referenced by hideData(), loadData(), and setColorUsed().

Definition at line 40 of file imagebmp.h.

Referenced by hideData(), loadData(), and setColorUsed().


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