Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

Blob2D class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Blob2D Class Reference

#include <OBLOB2.H>

List of all members.

Public Methods

 Blob2D ()
 Blob2D (Blob2D &)
 ~Blob2D ()
Blob2D & operator= (Blob2D &)
void resize (short left, short top, short w, short h)
int extend_to (short x, short y)
int extend_to (short x1, short y1, short x2, short y2)
char * bitmap_ptr ()
char * buf_ptr ()
int buf_pitch ()
unsigned char * p (short x, short y, int autoExtend=1)
void fill_area (short x1, short y1, short x2, short y2, unsigned char color, int autoExtend=1)
void auto_clip (short *pLeft, short *pTop, short *pWidth, short *pHeight, int autoResize=1)
void clear ()
int is_clear ()

Public Attributes

Bitmapptr
unsigned int alloc_size
short left_edge
short top_edge
short width
short height


Constructor & Destructor Documentation

Blob2D::Blob2D  
 

Definition at line 15 of file OBLOB2.CPP.

References alloc_size, DEFAULT_BLOB2D_SIZE, height, Bitmap::init(), left_edge, mem_add, ptr, top_edge, and width.

Blob2D::Blob2D Blob2D &   
 

Definition at line 22 of file OBLOB2.CPP.

References alloc_size, err_when, height, left_edge, mem_add, ptr, top_edge, and width.

Blob2D::~Blob2D  
 

Definition at line 37 of file OBLOB2.CPP.

References mem_del, and ptr.


Member Function Documentation

void Blob2D::auto_clip short *    pLeft,
short *    pTop,
short *    pWidth,
short *    pHeight,
int    autoResize = 1
 

Definition at line 277 of file OBLOB2.CPP.

References alloc_size, BACKGROUND_COLOR, Bitmap::get_pitch(), Bitmap::get_ptr(), height, left_edge, mem_resize, ptr, resize(), Bitmap::size(), top_edge, and width.

char* Blob2D::bitmap_ptr   [inline]
 

Definition at line 32 of file OBLOB2.H.

int Blob2D::buf_pitch   [inline]
 

Definition at line 34 of file OBLOB2.H.

References Bitmap::get_pitch().

char* Blob2D::buf_ptr   [inline]
 

Definition at line 33 of file OBLOB2.H.

References Bitmap::bitmap.

void Blob2D::clear  
 

Definition at line 349 of file OBLOB2.CPP.

References err_when, height, Bitmap::init(), left_edge, ptr, top_edge, and width.

int Blob2D::extend_to short    x1,
short    y1,
short    x2,
short    y2
 

Definition at line 205 of file OBLOB2.CPP.

References height, left_edge, resize(), top_edge, and width.

int Blob2D::extend_to short    x,
short    y
 

Definition at line 172 of file OBLOB2.CPP.

References height, left_edge, resize(), top_edge, and width.

Referenced by fill_area(), and p().

void Blob2D::fill_area short    x1,
short    y1,
short    x2,
short    y2,
unsigned char    color,
int    autoExtend = 1
 

Definition at line 251 of file OBLOB2.CPP.

References extend_to(), Bitmap::get_ptr(), height, left_edge, ptr, top_edge, and width.

Referenced by resize().

int Blob2D::is_clear   [inline]
 

Definition at line 41 of file OBLOB2.H.

References height, and width.

Blob2D & Blob2D::operator= Blob2D &   
 

Definition at line 41 of file OBLOB2.CPP.

References alloc_size, err_when, height, left_edge, mem_add, mem_del, ptr, Bitmap::size(), top_edge, and width.

unsigned char * Blob2D::p short    x,
short    y,
int    autoExtend = 1
 

Definition at line 238 of file OBLOB2.CPP.

References extend_to(), Bitmap::get_ptr(), height, left_edge, NULL, ptr, top_edge, and width.

void Blob2D::resize short    left,
short    top,
short    w,
short    h
 

Definition at line 63 of file OBLOB2.CPP.

References alloc_size, BACKGROUND_COLOR, DEFAULT_BLOB2D_INC, err_when, fill_area(), Bitmap::get_pitch(), Bitmap::get_ptr(), height, Bitmap::init(), left_edge, mem_add, mem_del, mem_resize, ptr, Bitmap::size(), top_edge, and width.

Referenced by auto_clip(), and extend_to().


Member Data Documentation

unsigned int Blob2D::alloc_size
 

Definition at line 15 of file OBLOB2.H.

Referenced by auto_clip(), Blob2D(), operator=(), and resize().

short Blob2D::height
 

Definition at line 19 of file OBLOB2.H.

Referenced by auto_clip(), Blob2D(), clear(), extend_to(), fill_area(), is_clear(), operator=(), p(), and resize().

short Blob2D::left_edge
 

Definition at line 16 of file OBLOB2.H.

Referenced by auto_clip(), Blob2D(), clear(), extend_to(), fill_area(), operator=(), p(), and resize().

Bitmap* Blob2D::ptr
 

Definition at line 14 of file OBLOB2.H.

Referenced by auto_clip(), Blob2D(), clear(), fill_area(), operator=(), p(), resize(), and ~Blob2D().

short Blob2D::top_edge
 

Definition at line 17 of file OBLOB2.H.

Referenced by auto_clip(), Blob2D(), clear(), extend_to(), fill_area(), operator=(), p(), and resize().

short Blob2D::width
 

Definition at line 18 of file OBLOB2.H.

Referenced by auto_clip(), Blob2D(), clear(), extend_to(), fill_area(), is_clear(), operator=(), p(), and resize().


The documentation for this class was generated from the following files:
Generated on Fri Aug 23 01:39:01 2002 for VirtualU by doxygen1.2.17