#include <VolumeBuffer.h>
Public Types | |
| enum | BlendMode { BLEND_NONE = 0, BLEND_ADDITIVE } |
Public Member Functions | |
| VolumeBuffer (GLenum format, int width, int height, int depth, int banks) | |
| ~VolumeBuffer () | |
| int | setData (unsigned char *data, int bank=0) |
| void | set2DData (unsigned char *data, int bank=0) |
| void | setWrapMode (GLint mode, int bank=0) |
| void | setFiltering (GLint mode, int bank=0) |
| void | setBlendMode (BlendMode mode) |
| GLuint | getTexture (int bank=0) |
| int | getWidth () |
| int | getHeight () |
| int | getDepth () |
| void | drawSlice (float z) |
| void | drawOneSlice () |
| void | drawZSlice (int iz) |
| void | drawXSlice (int ix) |
| void | drawYSlice (int iy) |
| GLuint | create2DTextures (GLenum internalformat) |
| GLuint | create2DTexturesZ (GLenum internalformat) |
| GLuint | create2DTexturesX (GLenum internalformat) |
| GLuint | create2DTexturesY (GLenum internalformat) |
| GLuint | create2DTexturesZscale1 (GLenum internalformat) |
| GLuint | create2DTexturesZscale2 (GLenum internalformat) |
| GLuint | create2DTexturesZscale3 (GLenum internalformat) |
| int | readRawFile (char *filename) |
| int | readScale1File (char *filename) |
| int | readScale2File (char *filename) |
| int | readScale3File (char *filename) |
Public Attributes | |
| unsigned char * | m_volume_data_raw |
| unsigned char * | m_volume_data_rgba |
| unsigned char * | m_scale1_raw |
| unsigned char * | m_scale1_rgba |
| unsigned char * | m_scale2_raw |
| unsigned char * | m_scale2_rgba |
| unsigned char * | m_scale3_raw |
| unsigned char * | m_scale3_rgba |
| f3dVectorF | vertex [8] |
| f3dVectorF | normal [6] |
| GLuint * | m_tex_z |
| GLuint * | m_tex_x |
| GLuint * | m_tex_y |
| GLuint * | m_tex_z_s1 |
| GLuint * | m_tex_z_s2 |
| GLuint * | m_tex_z_s3 |
Definition at line 20 of file VolumeBuffer.h.
| VolumeBuffer::VolumeBuffer | ( | GLenum | format, | |
| int | width, | |||
| int | height, | |||
| int | depth, | |||
| int | banks | |||
| ) |
| VolumeBuffer::~VolumeBuffer | ( | ) |
Definition at line 130 of file VolumeBuffer.cpp.
| GLuint VolumeBuffer::create2DTextures | ( | GLenum | internalformat | ) |
Definition at line 240 of file VolumeBuffer.cpp.
| GLuint VolumeBuffer::create2DTexturesX | ( | GLenum | internalformat | ) |
Definition at line 452 of file VolumeBuffer.cpp.
| GLuint VolumeBuffer::create2DTexturesY | ( | GLenum | internalformat | ) |
Definition at line 501 of file VolumeBuffer.cpp.
| GLuint VolumeBuffer::create2DTexturesZ | ( | GLenum | internalformat | ) |
Definition at line 256 of file VolumeBuffer.cpp.
| GLuint VolumeBuffer::create2DTexturesZscale1 | ( | GLenum | internalformat | ) |
Definition at line 305 of file VolumeBuffer.cpp.
| GLuint VolumeBuffer::create2DTexturesZscale2 | ( | GLenum | internalformat | ) |
Definition at line 354 of file VolumeBuffer.cpp.
| GLuint VolumeBuffer::create2DTexturesZscale3 | ( | GLenum | internalformat | ) |
Definition at line 403 of file VolumeBuffer.cpp.
| void VolumeBuffer::drawOneSlice | ( | ) |
Definition at line 610 of file VolumeBuffer.cpp.
| void VolumeBuffer::drawSlice | ( | float | z | ) |
Definition at line 597 of file VolumeBuffer.cpp.
| void VolumeBuffer::drawXSlice | ( | int | ix | ) |
Definition at line 638 of file VolumeBuffer.cpp.
| void VolumeBuffer::drawYSlice | ( | int | iy | ) |
Definition at line 653 of file VolumeBuffer.cpp.
| void VolumeBuffer::drawZSlice | ( | int | iz | ) |
Definition at line 623 of file VolumeBuffer.cpp.
| int VolumeBuffer::getDepth | ( | ) | [inline] |
Definition at line 45 of file VolumeBuffer.h.
| int VolumeBuffer::getHeight | ( | ) | [inline] |
Definition at line 44 of file VolumeBuffer.h.
| GLuint VolumeBuffer::getTexture | ( | int | bank = 0 |
) | [inline] |
Definition at line 41 of file VolumeBuffer.h.
| int VolumeBuffer::getWidth | ( | ) | [inline] |
Definition at line 43 of file VolumeBuffer.h.
| int VolumeBuffer::readRawFile | ( | char * | filename | ) |
Definition at line 668 of file VolumeBuffer.cpp.
| int VolumeBuffer::readScale1File | ( | char * | filename | ) |
Definition at line 705 of file VolumeBuffer.cpp.
| int VolumeBuffer::readScale2File | ( | char * | filename | ) |
Definition at line 742 of file VolumeBuffer.cpp.
| int VolumeBuffer::readScale3File | ( | char * | filename | ) |
Definition at line 779 of file VolumeBuffer.cpp.
| void VolumeBuffer::set2DData | ( | unsigned char * | data, | |
| int | bank = 0 | |||
| ) |
Definition at line 588 of file VolumeBuffer.cpp.
| void VolumeBuffer::setBlendMode | ( | BlendMode | mode | ) | [inline] |
Definition at line 36 of file VolumeBuffer.h.
| int VolumeBuffer::setData | ( | unsigned char * | data, | |
| int | bank = 0 | |||
| ) |
Definition at line 567 of file VolumeBuffer.cpp.
| void VolumeBuffer::setFiltering | ( | GLint | mode, | |
| int | bank = 0 | |||
| ) |
Definition at line 559 of file VolumeBuffer.cpp.
| void VolumeBuffer::setWrapMode | ( | GLint | mode, | |
| int | bank = 0 | |||
| ) |
Definition at line 550 of file VolumeBuffer.cpp.
| unsigned char* VolumeBuffer::m_scale1_raw |
Definition at line 71 of file VolumeBuffer.h.
| unsigned char* VolumeBuffer::m_scale1_rgba |
Definition at line 72 of file VolumeBuffer.h.
| unsigned char* VolumeBuffer::m_scale2_raw |
Definition at line 74 of file VolumeBuffer.h.
| unsigned char* VolumeBuffer::m_scale2_rgba |
Definition at line 75 of file VolumeBuffer.h.
| unsigned char* VolumeBuffer::m_scale3_raw |
Definition at line 77 of file VolumeBuffer.h.
| unsigned char* VolumeBuffer::m_scale3_rgba |
Definition at line 78 of file VolumeBuffer.h.
| GLuint* VolumeBuffer::m_tex_x |
Definition at line 84 of file VolumeBuffer.h.
| GLuint* VolumeBuffer::m_tex_y |
Definition at line 85 of file VolumeBuffer.h.
| GLuint* VolumeBuffer::m_tex_z |
Definition at line 83 of file VolumeBuffer.h.
| GLuint* VolumeBuffer::m_tex_z_s1 |
Definition at line 87 of file VolumeBuffer.h.
| GLuint* VolumeBuffer::m_tex_z_s2 |
Definition at line 88 of file VolumeBuffer.h.
| GLuint* VolumeBuffer::m_tex_z_s3 |
Definition at line 89 of file VolumeBuffer.h.
| unsigned char* VolumeBuffer::m_volume_data_raw |
Definition at line 67 of file VolumeBuffer.h.
| unsigned char* VolumeBuffer::m_volume_data_rgba |
Definition at line 68 of file VolumeBuffer.h.
| f3dVectorF VolumeBuffer::normal[6] |
Definition at line 80 of file VolumeBuffer.h.
| f3dVectorF VolumeBuffer::vertex[8] |
Definition at line 80 of file VolumeBuffer.h.
1.5.9