version 3.3

VRS::TileableNoiseTexture3DGL Class Reference

#include <vrs/opengl/tileablenoisetexturegl.h>

Inheritance diagram for VRS::TileableNoiseTexture3DGL:

VRS::ImageTexture3DGL VRS::Texture3DGL VRS::TextureGL VRS::Texture VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 TileableNoiseTexture3DGL (unsigned int sizeS, unsigned int sizeT, unsigned int sizeR, double frequencyS=1.0, double frequencyT=1.0, double frequencyR=1.0, double overlapS=0.5, double overlapT=0.5, double overlapR=0.5, const Vector &offset=Vector::origin, Image::LayerSequence layerSequence=Image::A, int dataType=Image::U8, TextureGL::WrapMode wrapS=TextureGL::REPEAT, TextureGL::WrapMode wrapT=TextureGL::REPEAT, TextureGL::WrapMode wrapR=TextureGL::REPEAT, TextureGL::FilterMode minFilter=TextureGL::TRILINEAR, TextureGL::FilterMode magFilter=TextureGL::LINEAR, GLfloat anisotropic=1.0, const std::string &filename="")
 especially for 3D textures, tileable noise images take some time to create.
 TileableNoiseTexture3DGL (const std::string &filename)
 reads a previously stored 3D-noise texture from a file
 TileableNoiseTexture3DGL (const SO< Iterator< SO< Image > > > &noiseImages)
 generates 3D-noise texture from arbitrary noise image input
 VRS_TYPEINFO (TileableNoiseTexture3DGL, ImageTexture3DGL)
 VRS_SERIALIZABLE (TileableNoiseTexture3DGL)

Static Public Member Functions

static SO< Iterator< SO< Image > > > createTileableNoise3D (unsigned int sizeS=128, unsigned int sizeT=128, unsigned int sizeR=128, double frequencyS=1.0, double frequencyT=1.0, double frequencyR=1.0, double overlapS=0.5, double overlapT=0.5, double overlapR=0.5, const Vector &offset=Vector::origin, Image::LayerSequence layerSequence=Image::A, int dataType=Image::U8, const std::string &filename="")
 creates a 3d noise-image the 'filename' parameter cannot be used to read a file.
static SO< Iterator< SO< Image > > > createTileableNoise3D (const std::string &filename)
 reads a previously stored 3D-noise image from a file
static void writeNoise (const std::string &pathToFile, SO< Iterator< VRS::SO< VRS::Image > > > images)
 writes 3D-noise texture to file "pathToFile". existing one will be overwritten.

Protected Member Functions

 TileableNoiseTexture3DGL ()


Constructor & Destructor Documentation

VRS::TileableNoiseTexture3DGL::TileableNoiseTexture3DGL ( unsigned int  sizeS,
unsigned int  sizeT,
unsigned int  sizeR,
double  frequencyS = 1.0,
double  frequencyT = 1.0,
double  frequencyR = 1.0,
double  overlapS = 0.5,
double  overlapT = 0.5,
double  overlapR = 0.5,
const Vector offset = Vector::origin,
Image::LayerSequence  layerSequence = Image::A,
int  dataType = Image::U8,
TextureGL::WrapMode  wrapS = TextureGL::REPEAT,
TextureGL::WrapMode  wrapT = TextureGL::REPEAT,
TextureGL::WrapMode  wrapR = TextureGL::REPEAT,
TextureGL::FilterMode  minFilter = TextureGL::TRILINEAR,
TextureGL::FilterMode  magFilter = TextureGL::LINEAR,
GLfloat  anisotropic = 1.0,
const std::string &  filename = "" 
)

especially for 3D textures, tileable noise images take some time to create.

as there are no image types with support for 3D images, the 'filename'-parameter can be used to write the image to a file. if the string is empty, no file is written. the written image format is a 3D-version of the pgm-format (portable greyscale map), so there is no compression (file's size is (width*height*depth bytes + a few bytes of header-information) only 8-bit color-values are supported for reading and writing creates a 3d noise texture the 'filename' parameter cannot be used to read a file. existing files are overwritten.

VRS::TileableNoiseTexture3DGL::TileableNoiseTexture3DGL ( const std::string &  filename  ) 

reads a previously stored 3D-noise texture from a file

VRS::TileableNoiseTexture3DGL::TileableNoiseTexture3DGL ( const SO< Iterator< SO< Image > > > &  noiseImages  ) 

generates 3D-noise texture from arbitrary noise image input

VRS::TileableNoiseTexture3DGL::TileableNoiseTexture3DGL (  )  [protected]


Member Function Documentation

static SO<Iterator<SO<Image> > > VRS::TileableNoiseTexture3DGL::createTileableNoise3D ( unsigned int  sizeS = 128,
unsigned int  sizeT = 128,
unsigned int  sizeR = 128,
double  frequencyS = 1.0,
double  frequencyT = 1.0,
double  frequencyR = 1.0,
double  overlapS = 0.5,
double  overlapT = 0.5,
double  overlapR = 0.5,
const Vector offset = Vector::origin,
Image::LayerSequence  layerSequence = Image::A,
int  dataType = Image::U8,
const std::string &  filename = "" 
) [static]

creates a 3d noise-image the 'filename' parameter cannot be used to read a file.

existing files are overwritten.

static SO<Iterator<SO<Image> > > VRS::TileableNoiseTexture3DGL::createTileableNoise3D ( const std::string &  filename  )  [static]

reads a previously stored 3D-noise image from a file

static void VRS::TileableNoiseTexture3DGL::writeNoise ( const std::string &  pathToFile,
SO< Iterator< VRS::SO< VRS::Image > > >  images 
) [static]

writes 3D-noise texture to file "pathToFile". existing one will be overwritten.

VRS::TileableNoiseTexture3DGL::VRS_TYPEINFO ( TileableNoiseTexture3DGL  ,
ImageTexture3DGL   
)

VRS::TileableNoiseTexture3DGL::VRS_SERIALIZABLE ( TileableNoiseTexture3DGL   ) 


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

Generated on Wed May 23 06:00:23 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact