PPL Logo

libs/ck-libs/liveViz/liveViz0.h File Reference

Go to the source code of this file.

Data Structures

struct  liveVizRequest
 A liveVizRequest describes the basics of a client image request. More...
struct  liveVizRequest3d
 Additional 3D data associated with a 3D LiveViz request. More...
class  liveVizConfig
 liveVizConfig describes the type of images available from this parallel server--images may be color or greyscale, be pushed to the client or pulled, and may come from a set of 3d axes or be simply 2d. More...
class  imageUnit

Typedefs

typedef unsigned char byte

Functions

void liveViz0Get (const liveVizRequest &req, void *data, int dataLen)
 Called when the client requests an image as described above.
void liveViz0Deposit (const liveVizRequest &req, byte *imageData)
 Each call to liveViz, above, must eventually result in a call to this routine, which delivers an entire, finished image to the client.
void liveViz0Init (const liveVizConfig &cfg)
 Begin responding to image requests under the given configuration.
void liveViz0PollInit ()


Typedef Documentation

typedef unsigned char byte

Definition at line 14 of file liveViz0.h.


Function Documentation

void liveViz0Get ( const liveVizRequest req,
void *  data,
int  dataLen 
)

Called when the client requests an image as described above.

You must implement this routine, which will be called from a single processor. data and dataLen are additional data supplied with the CCS request. This routine is called on the processor where the request arrives; this is normally processor 0.

Definition at line 48 of file liveViz.C.

References liveVizRequestMsg::buildNew(), clientGetImageCallback, and CkCallback::send().

Referenced by getImageHandler().

void liveViz0Deposit ( const liveVizRequest req,
byte imageData 
)

void liveViz0Init ( const liveVizConfig cfg  ) 

Begin responding to image requests under the given configuration.

liveViz0Init should be called exactly once on processor 0 when your program is ready to begin processing image requests.

Definition at line 302 of file liveViz0.C.

References CcsRegisterHandler(), CmiPrintf(), getImageConfigHandler(), getImageHandler(), and liveVizConfig::getVerbose().

Referenced by liveVizInitComplete().

void liveViz0PollInit (  ) 

Definition at line 310 of file liveViz0.C.

References CcsRegisterHandler(), CmiPrintf(), getImageHandler(), and liveVizConfig::getVerbose().

Referenced by liveVizPollInit().


Generated on Sat May 26 08:08:09 2012 for Charm++ by  doxygen 1.5.5