osgCal::TextureLayersFlatten Class Reference

List of all members.

Public Types

enum  PIXELOP {
  PIXELOP_DECAL, PIXELOP_NORMAL, PIXELOP_OVERLAY, PIXELOP_LINEARDODGE,
  PIXELOP_MULTIPLY
}

Public Member Functions

 TextureLayersFlatten ()
virtual ~TextureLayersFlatten ()
void init (int width, int height, std::vector< Layer > &layers, osg::Group *on, osg::Texture2D *myOutputTexture, osg::Texture2D *colorMask, osg::Texture2D *maskOn, osg::Texture2D *alphaPart=NULL, bool bUseOldLayersParams=true)
const std::vector< Layer > & getOrgLayer () const
BaseRenderTechnicgetBaseRenderTechnic (unsigned int _index)
int getNbBaseRenderTechnics () const
osg::Texture2D * getOutputTexture ()
void setOutputTexture (osg::Texture2D *_tex)
OSGCAL_EXPORT void flushTextureCacheForAllBRT ()

Static Public Member Functions

static void resetBinCounter ()
static void destroy ()

Protected Member Functions

void setupLastColorMaskPass (osg::Group *on)
void setupAlphaPartPass (osg::Group *on, osg::Texture2D *textureToPutAlphaOn)

Protected Attributes

std::vector< BaseRenderTechnic * > technics_
std::vector< LayerorgLayers_
osg::ref_ptr< osg::Texture2D > outputTexture_
osg::ref_ptr< osg::Texture2D > colorMask_
osg::ref_ptr< osg::Texture2D > maskOn_
osg::ref_ptr< osg::Texture2D > alphaPart_
osg::ref_ptr< osg::MatrixTransform > modelview_abs_
osg::ref_ptr< osg::Projection > projection_
int width_
int height_
osg::ref_ptr< Quadquads_ [4]

Classes

class  BaseRenderTechnic
class  DecalRenderTechnic
class  Layer
class  LinearDodgeRenderTechnic
class  MultiplyRenderTechnic
class  MyGeometry
class  NormalRenderTechnic
class  OverlayRenderTechnic
class  Quad
class  QuadParams

Member Enumeration Documentation

enum osgCal::TextureLayersFlatten::PIXELOP

Enumerator:
PIXELOP_DECAL 
PIXELOP_NORMAL 
PIXELOP_OVERLAY 
PIXELOP_LINEARDODGE 
PIXELOP_MULTIPLY 


Constructor & Destructor Documentation

osgCal::TextureLayersFlatten::TextureLayersFlatten (  ) 

virtual osgCal::TextureLayersFlatten::~TextureLayersFlatten (  )  [virtual]


Member Function Documentation

static void osgCal::TextureLayersFlatten::resetBinCounter (  )  [static]

static void osgCal::TextureLayersFlatten::destroy (  )  [static]

void osgCal::TextureLayersFlatten::init ( int  width,
int  height,
std::vector< Layer > &  layers,
osg::Group *  on,
osg::Texture2D *  myOutputTexture,
osg::Texture2D *  colorMask,
osg::Texture2D *  maskOn,
osg::Texture2D *  alphaPart = NULL,
bool  bUseOldLayersParams = true 
)

const std::vector<Layer>& osgCal::TextureLayersFlatten::getOrgLayer (  )  const [inline]

BaseRenderTechnic* osgCal::TextureLayersFlatten::getBaseRenderTechnic ( unsigned int  _index  )  [inline]

int osgCal::TextureLayersFlatten::getNbBaseRenderTechnics (  )  const [inline]

osg::Texture2D* osgCal::TextureLayersFlatten::getOutputTexture (  )  [inline]

void osgCal::TextureLayersFlatten::setOutputTexture ( osg::Texture2D *  _tex  )  [inline]

OSGCAL_EXPORT void osgCal::TextureLayersFlatten::flushTextureCacheForAllBRT (  ) 

void osgCal::TextureLayersFlatten::setupLastColorMaskPass ( osg::Group *  on  )  [protected]

void osgCal::TextureLayersFlatten::setupAlphaPartPass ( osg::Group *  on,
osg::Texture2D *  textureToPutAlphaOn 
) [protected]


Member Data Documentation

std::vector<BaseRenderTechnic*> osgCal::TextureLayersFlatten::technics_ [protected]

std::vector<Layer> osgCal::TextureLayersFlatten::orgLayers_ [protected]

osg::ref_ptr<osg::Texture2D> osgCal::TextureLayersFlatten::outputTexture_ [protected]

osg::ref_ptr<osg::Texture2D> osgCal::TextureLayersFlatten::colorMask_ [protected]

osg::ref_ptr<osg::Texture2D> osgCal::TextureLayersFlatten::maskOn_ [protected]

osg::ref_ptr<osg::Texture2D> osgCal::TextureLayersFlatten::alphaPart_ [protected]

osg::ref_ptr<osg::MatrixTransform> osgCal::TextureLayersFlatten::modelview_abs_ [protected]

osg::ref_ptr<osg::Projection> osgCal::TextureLayersFlatten::projection_ [protected]

int osgCal::TextureLayersFlatten::width_ [protected]

int osgCal::TextureLayersFlatten::height_ [protected]

osg::ref_ptr<Quad> osgCal::TextureLayersFlatten::quads_[4] [protected]


The documentation for this class was generated from the following file:
Generated on Tue Jan 23 01:48:37 2007 for osgCal by  doxygen 1.5.1