![]() |
Computational Embodied Neuroscience Simulator
1.1
3D simulation library
|
Use a byte vector as a matrix. More...
#include <cens_pixelmap.h>
Public Member Functions | |
CENSPixelMap () | |
CENSPixelMap (const CENSPixelMap ©) | |
CENSPixelMap & | operator= (const CENSPixelMap ©) |
CENSPixelMap (std::string imgfile) | |
~CENSPixelMap () | |
GLubyte | operator() (int row, int col, int channel) |
void | setData (Blob &data, int width, int height) |
void | setData (GLubyte *pixels, int width, int height) |
const GLubyte * | getData () const |
Blob & | getBlob () |
int | getWidth () const |
int | getHeight () const |
Private Attributes | |
Blob | m_pxData |
int | m_pxWidth |
int | m_pxHeight |
bool | isLoaded |
Use a byte vector as a matrix.
Encapsulates a byte vector so that it can be managed as a matrix given width and height. For instance a 800x600 image stored as a 480000 bytes vector can be used as a [800,600] matrix.
Definition at line 40 of file cens_pixelmap.h.
|
inline |
Definition at line 43 of file cens_pixelmap.h.
|
inline |
Definition at line 45 of file cens_pixelmap.h.
References isLoaded, m_pxData, m_pxHeight, and m_pxWidth.
|
inline |
Definition at line 64 of file cens_pixelmap.h.
|
inline |
Definition at line 75 of file cens_pixelmap.h.
|
inline |
Definition at line 102 of file cens_pixelmap.h.
Referenced by cens::CENSGraphics::getCameraPixelMap(), and cens::CENSGraphics::saveCameraPixelMap().
|
inline |
Definition at line 95 of file cens_pixelmap.h.
Referenced by cens::CENSGraphicsShape::buildAsBox(), cens::CENSGraphicsShape::buildAsConvex(), cens::CENSGraphicsShape::buildAsPlane(), cens::CENSGraphicsShape::buildAsSoft(), cens::CENSGraphicsShape::buildAsSphere(), cens::CENSEngine::localCreateRigidBody(), cens::CENSEngine::localCreateSoftBody(), cens::CENSEngine::localImportRigidBody(), and cens::CENSEngine::localLinkSoftBody().
|
inline |
Definition at line 104 of file cens_pixelmap.h.
Referenced by cens::CENSGraphicsShape::buildAsBox(), cens::CENSGraphicsShape::buildAsConvex(), cens::CENSGraphicsShape::buildAsPlane(), cens::CENSGraphicsShape::buildAsSoft(), and cens::CENSGraphicsShape::buildAsSphere().
|
inline |
Definition at line 103 of file cens_pixelmap.h.
Referenced by cens::CENSGraphicsShape::buildAsBox(), cens::CENSGraphicsShape::buildAsConvex(), cens::CENSGraphicsShape::buildAsPlane(), cens::CENSGraphicsShape::buildAsSoft(), and cens::CENSGraphicsShape::buildAsSphere().
|
inline |
Definition at line 78 of file cens_pixelmap.h.
|
inline |
Definition at line 54 of file cens_pixelmap.h.
References isLoaded, m_pxData, m_pxHeight, and m_pxWidth.
|
inline |
Definition at line 82 of file cens_pixelmap.h.
|
inline |
Definition at line 89 of file cens_pixelmap.h.
|
private |
Definition at line 112 of file cens_pixelmap.h.
Referenced by CENSPixelMap(), and operator=().
|
private |
Definition at line 109 of file cens_pixelmap.h.
Referenced by CENSPixelMap(), and operator=().
|
private |
Definition at line 111 of file cens_pixelmap.h.
Referenced by CENSPixelMap(), and operator=().
|
private |
Definition at line 110 of file cens_pixelmap.h.
Referenced by CENSPixelMap(), and operator=().