#include <ApiGraphics/Image3D.h>
Inheritance diagram for Image3D:
Public Member Functions | |
Image3D (int w=0, int h=0, int d=0, Color *data=NULL) | |
Image3D (QString fileName) | |
virtual bool | loaded () const |
virtual void | destroy () |
Image3D< Color > | clone () const |
void | save (QString dirName, QString subDirName) const |
virtual GLint | defaultTexFormat () const |
virtual void | loadTexture3D (GLint texFormat, GLenum target=GL_TEXTURE_3D) const |
void | setBorderColor (Color border) |
void | setWrapMode (WrapMode wrapMode) |
void | setupBorder (WrapMode wrapMode, Color border) |
Color & | texel (int i, int j, int k) |
const Color & | texel (int i, int j, int k) const |
Color & | operator() (int i, int j, int k) |
const Color & | operator() (int i, int j, int k) const |
Color | sample (int i, int j, int k) const |
Color | interp (float x, float y, float z) const |
Color | operator() (float x, float y, float z) const |
Static Public Member Functions | |
static Image3D< Color > | readTexture (Texture *tex) |
It is parameterized by the data type representing colors (number of channels and type used per channel). Useful types for color representations are defined in ColorTypes.h
: Float1
, Float2
, Float3
, Float4
, UByte3
, UByte4
, UInt3
, UInt4
.