Depth of Field  0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
SimplePBO Class Reference

#include <simplePBO.h>

List of all members.

Public Member Functions

 SimplePBO (void)
 ~SimplePBO (void)
void initCuda (void *h_volume, cudaExtent volumeSize)
void resize (int w, int h)
void bind ()
void release ()
void runCuda (int time)
void cleanupCuda ()
void handleRotation (int timediff, int dx, int dy)
void handleTranslation (int timediff, int dx, int dy)
void handleZoom (int timediff, int dy)
void setXRotation (int angle)
void setYRotation (int angle)
void setZRotation (int angle)
void setViewChanged (bool changed)

Public Attributes

bool volren
int dataset
float alpha

Detailed Description

SimplePBO encapsulates pixel buffer object and 2d texturing. It runs cuda and launches the kernel as well. Reference: http://drdobbs.com/cpp/222600097 (took source and adapted it to this class)


Constructor & Destructor Documentation

SimplePBO::SimplePBO ( void  )
SimplePBO::~SimplePBO ( void  )

Member Function Documentation

void SimplePBO::bind ( )

bind OpenGL PBO

void SimplePBO::cleanupCuda ( )

cleanup cuda Buffers

void SimplePBO::handleRotation ( int  timediff,
int  dx,
int  dy 
)
void SimplePBO::handleTranslation ( int  timediff,
int  dx,
int  dy 
)
void SimplePBO::handleZoom ( int  timediff,
int  dy 
)
void SimplePBO::initCuda ( void *  h_volume,
cudaExtent  volumeSize 
)

initialize Cuda

void SimplePBO::release ( )

release OpenGL PBO

void SimplePBO::resize ( int  w,
int  h 
)

resize window

void SimplePBO::runCuda ( int  time)

run the cuda kernel

void SimplePBO::setViewChanged ( bool  changed)
void SimplePBO::setXRotation ( int  angle)
void SimplePBO::setYRotation ( int  angle)
void SimplePBO::setZRotation ( int  angle)

Member Data Documentation

float SimplePBO::alpha
int SimplePBO::dataset
bool SimplePBO::volren

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