CudaFramework Class Reference

Collaboration diagram for CudaFramework:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CudaFramework ()
 Constructor.
 ~CudaFramework ()
 Destructor.
int getCanvasW ()
 Get Canvas Width.
int getCanvasH ()
 Get Canvas Height.
CudaImage< PixRGB< float > > & getCanvas ()
 Get the canvas.
Point2D< int > getPoint (int i)
 Get point with index i.
MemoryPolicy getMP ()
 Get the Memory policy.
int getDev ()
 Get the device.
int getLockAtt ()
 Get the lock Attributes.
bool getCanvasModified ()
 Get if canvas is modified.
int getW ()
 Get image total width.
int getH ()
 Get Image total height.
void setMP (MemoryPolicy mp)
 Sets the memory policy.
void setDev (int dev)
 Sets the device.
void setMutexDestroy ()
 Sets the pthread mutex to destroy.
void setMutexUnlock ()
 Sets the pthread mutex to unlock.
void setCanvasModified (bool new_state)
 Sets the canvas modified to new state.
void setPoint (int i, Point2D< int > pt)
 Sets the Point with index i to coordinates in pt.
void setW (int W)
 Sets the total width as W.
void setH (int H)
 Sets the total height as H.
void updateCanvas (int i, CudaImage< PixRGB< float > > &src)
 Updates the canvas with index i and image stored in src.
void startFramework (int w, int h, int dev, MemoryPolicy mp)
 Starts the framework with width w , height h , cuda device dev and memory policy mp.
void drawRectangle_centrepoint (Point2D< int > centre_point, const PixRGB< float > color, const int w, const int h, const int rad)
 Draws a rectangle on the canvas with centre point as input.
void drawRectangle_topleftpoint (Point2D< int > topleft_point, const PixRGB< float > color, const int w, const int h, const int rad)
 Draws a rectangle on the canvas with top left point as input.
void setText (const char *text, Point2D< int > text_coord, const PixRGB< float > color, const PixRGB< float > bgcolor, const SimpleFont &f, bool transparent_background)
 Sets the text on the text patch which is in place pasted on the canvas.
void initTextLayer (int w, int h)
 Initialises the text patch with width w and height h.

Detailed Description

Definition at line 73 of file CudaFramework.H.


Constructor & Destructor Documentation

CudaFramework::CudaFramework (  ) 

Constructor.

Definition at line 72 of file CudaFramework.C.

CudaFramework::~CudaFramework (  ) 

Destructor.

Definition at line 79 of file CudaFramework.C.


Member Function Documentation

void CudaFramework::drawRectangle_centrepoint ( Point2D< int >  centre_point,
const PixRGB< float >  color,
const int  w,
const int  h,
const int  rad 
)

Draws a rectangle on the canvas with centre point as input.

Definition at line 232 of file CudaFramework.C.

References Dims::Dims(), Point2D< T >::i, and Rectangle::Rectangle().

void CudaFramework::drawRectangle_topleftpoint ( Point2D< int >  topleft_point,
const PixRGB< float >  color,
const int  w,
const int  h,
const int  rad 
)

Draws a rectangle on the canvas with top left point as input.

Definition at line 250 of file CudaFramework.C.

References Dims::Dims(), and Rectangle::Rectangle().

CudaImage< PixRGB< float > > & CudaFramework::getCanvas (  ) 

Get the canvas.

Definition at line 113 of file CudaFramework.C.

int CudaFramework::getCanvasH (  ) 

Get Canvas Height.

Definition at line 106 of file CudaFramework.C.

References CudaImage< T >::getHeight().

bool CudaFramework::getCanvasModified (  ) 

Get if canvas is modified.

Definition at line 147 of file CudaFramework.C.

int CudaFramework::getCanvasW (  ) 

Get Canvas Width.

Definition at line 99 of file CudaFramework.C.

References CudaImage< T >::getWidth().

int CudaFramework::getDev (  ) 

Get the device.

Definition at line 126 of file CudaFramework.C.

int CudaFramework::getH (  ) 

Get Image total height.

Definition at line 92 of file CudaFramework.C.

int CudaFramework::getLockAtt (  ) 

Get the lock Attributes.

Definition at line 140 of file CudaFramework.C.

MemoryPolicy CudaFramework::getMP (  ) 

Get the Memory policy.

Definition at line 133 of file CudaFramework.C.

Point2D< int > CudaFramework::getPoint ( int  i  ) 

Get point with index i.

Definition at line 120 of file CudaFramework.C.

int CudaFramework::getW (  ) 

Get image total width.

Definition at line 85 of file CudaFramework.C.

void CudaFramework::initTextLayer ( int  w,
int  h 
)

Initialises the text patch with width w and height h.

Definition at line 271 of file CudaFramework.C.

References NO_INIT.

void CudaFramework::setCanvasModified ( bool  new_state  ) 

Sets the canvas modified to new state.

Definition at line 168 of file CudaFramework.C.

void CudaFramework::setDev ( int  dev  ) 

Sets the device.

Definition at line 182 of file CudaFramework.C.

void CudaFramework::setH ( int  H  ) 

Sets the total height as H.

Definition at line 203 of file CudaFramework.C.

void CudaFramework::setMP ( MemoryPolicy  mp  ) 

Sets the memory policy.

Definition at line 189 of file CudaFramework.C.

void CudaFramework::setMutexDestroy (  ) 

Sets the pthread mutex to destroy.

Definition at line 154 of file CudaFramework.C.

void CudaFramework::setMutexUnlock (  ) 

Sets the pthread mutex to unlock.

Definition at line 161 of file CudaFramework.C.

void CudaFramework::setPoint ( int  i,
Point2D< int >  pt 
)

Sets the Point with index i to coordinates in pt.

Definition at line 175 of file CudaFramework.C.

void CudaFramework::setText ( const char *  text,
Point2D< int >  text_coord,
const PixRGB< float >  color,
const PixRGB< float >  bgcolor,
const SimpleFont f,
bool  transparent_background 
)

Sets the text on the text patch which is in place pasted on the canvas.

Definition at line 260 of file CudaFramework.C.

References cudaInplacePaste(), and writeText().

void CudaFramework::setW ( int  W  ) 

Sets the total width as W.

Definition at line 196 of file CudaFramework.C.

void CudaFramework::startFramework ( int  w,
int  h,
int  dev,
MemoryPolicy  mp 
)

Starts the framework with width w , height h , cuda device dev and memory policy mp.

Definition at line 220 of file CudaFramework.C.

References ZEROS.

void CudaFramework::updateCanvas ( int  i,
CudaImage< PixRGB< float > > &  src 
)

Updates the canvas with index i and image stored in src.

Definition at line 210 of file CudaFramework.C.

References cudaInplacePaste().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:18 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3