CL_OutlineProviderBitmap Class Reference
[clanDisplay Collision]

Bitmap outline provider. More...

#include <outline_provider_bitmap.h>

Inheritance diagram for CL_OutlineProviderBitmap:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Construction

 CL_OutlineProviderBitmap (const CL_PixelBuffer &pbuf, int alpha_limit=128, bool get_insides=true)
 Construct a contour.
 ~CL_OutlineProviderBitmap ()
Attributes

virtual std::vector< CL_Contourget_contours ()
 return the countours that make up the outline
virtual int get_width ()
 return the width of the image used as basis for outline creation.
virtual int get_height ()
 return the height of the image used as basis for outline creation.
Operations

virtual void destroy ()
 Destroys the provider.

Detailed Description

Bitmap outline provider.

A CL_OutlineProviderBitmap is used to find outlines based on the alpha channel of images.


Constructor & Destructor Documentation

CL_OutlineProviderBitmap::CL_OutlineProviderBitmap ( const CL_PixelBuffer pbuf,
int  alpha_limit = 128,
bool  get_insides = true 
)

Construct a contour.

Parameters:
pbuf PixelBuffer containing image data.
alpha_limit Minimum alpha value for a colliding pixel
get_insides Get Insides
CL_OutlineProviderBitmap::~CL_OutlineProviderBitmap (  ) 

Member Function Documentation

virtual void CL_OutlineProviderBitmap::destroy (  )  [virtual]

Destroys the provider.

Implements CL_OutlineProvider.

virtual std::vector<CL_Contour> CL_OutlineProviderBitmap::get_contours (  )  [virtual]

return the countours that make up the outline

Implements CL_OutlineProvider.

virtual int CL_OutlineProviderBitmap::get_height (  )  [virtual]

return the height of the image used as basis for outline creation.

Implements CL_OutlineProvider.

virtual int CL_OutlineProviderBitmap::get_width (  )  [virtual]

return the width of the image used as basis for outline creation.

Implements CL_OutlineProvider.


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