MWAWPictBitmapColor Class Reference

a bitmap of Vec3u to store true color bitmap More...

#include <MWAWPictBitmap.hxx>

Inheritance diagram for MWAWPictBitmapColor:
MWAWPictBitmap MWAWPict

Public Member Functions

virtual SubType getSubType () const
 return the picture subtype
virtual int cmp (MWAWPict const &a) const
 
a virtual function used to obtain a strict order,

must be redefined in the subs class

virtual bool valid () const
 returns true if the picture is valid
 MWAWPictBitmapColor (Vec2i const &sz)
 the constructor
Vec2i const & size () const
 the picture size
int numRows () const
 the number of rows
int numColumns () const
 the number of columns
MWAWColor get (int i, int j) const
 returns a cell content
MWAWColor const * getRow (int j) const
 returns the cells content of a row
void set (int i, int j, MWAWColor const &v)
 sets a cell contents
void setRow (int j, MWAWColor const *val)
 sets all cell contents of a row
void setColumn (int i, MWAWColor const *val)
 sets all cell contents of a column
- Public Member Functions inherited from MWAWPictBitmap
virtual Type getType () const
 returns the picture type
virtual bool getBinary (WPXBinaryData &res, std::string &s) const
 returns the final WPXBinary data
- Public Member Functions inherited from MWAWPict
virtual ~MWAWPict ()
 virtual destructor
Box2f getBdBox () const
 returns the bdbox of the picture
void setBdBox (Box2f const &box)
 sets the bdbox of the picture

Protected Member Functions

virtual bool createFileData (WPXBinaryData &result) const
 the function which creates the result file
- Protected Member Functions inherited from MWAWPictBitmap
 MWAWPictBitmap (Vec2i const &sz)
 protected constructor: use check to construct a picture
- Protected Member Functions inherited from MWAWPict
void extendBDBox (float val)
 udaptes the bdbox, by extended it by (val-previousVal)
 MWAWPict ()
 protected constructor must not be called directly
 MWAWPict (MWAWPict const &p)
 protected constructor must not be called directly
MWAWPictoperator= (MWAWPict const &p)
 protected operator= must not be called directly

Protected Attributes

MWAWPictBitmapContainer
< MWAWColor
m_data
 the data

Additional Inherited Members

- Public Types inherited from MWAWPictBitmap
enum  SubType { BW, Indexed, Color }
 the picture subtype: blackwhite, indexed, color More...
- Static Protected Member Functions inherited from MWAWPict
static Box2f getBdBox (int numPt, Vec2f const *pt)
 computes the minimum and maximum of a list of point

Detailed Description

a bitmap of Vec3u to store true color bitmap

Constructor & Destructor Documentation

MWAWPictBitmapColor::MWAWPictBitmapColor ( Vec2i const &  sz)
inline

the constructor

Member Function Documentation

virtual int MWAWPictBitmapColor::cmp ( MWAWPict const &  a) const
inlinevirtual

a virtual function used to obtain a strict order,

must be redefined in the subs class

Reimplemented from MWAWPictBitmap.

bool MWAWPictBitmapColor::createFileData ( WPXBinaryData &  result) const
protectedvirtual

the function which creates the result file

Implements MWAWPictBitmap.

MWAWColor MWAWPictBitmapColor::get ( int  i,
int  j 
) const
inline

returns a cell content

MWAWColor const* MWAWPictBitmapColor::getRow ( int  j) const
inline

returns the cells content of a row

virtual SubType MWAWPictBitmapColor::getSubType ( ) const
inlinevirtual

return the picture subtype

Implements MWAWPictBitmap.

int MWAWPictBitmapColor::numColumns ( ) const
inline

the number of columns

int MWAWPictBitmapColor::numRows ( ) const
inline

the number of rows

void MWAWPictBitmapColor::set ( int  i,
int  j,
MWAWColor const &  v 
)
inline

sets a cell contents

Referenced by CWGraph::sendBitmap().

void MWAWPictBitmapColor::setColumn ( int  i,
MWAWColor const *  val 
)
inline

sets all cell contents of a column

void MWAWPictBitmapColor::setRow ( int  j,
MWAWColor const *  val 
)
inline

sets all cell contents of a row

Vec2i const& MWAWPictBitmapColor::size ( ) const
inline

the picture size

virtual bool MWAWPictBitmapColor::valid ( ) const
inlinevirtual

returns true if the picture is valid

Reimplemented from MWAWPictBitmap.

Member Data Documentation

MWAWPictBitmapContainer<MWAWColor> MWAWPictBitmapColor::m_data
protected

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

Generated on Wed May 22 2013 18:12:46 for libmwaw by doxygen 1.8.1.2