osgCal::TextureLayersFlatten Class Reference

List of all members.

Classes

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

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]


Member Enumeration Documentation

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::destroy (  )  [static]

OSGCAL_EXPORT void osgCal::TextureLayersFlatten::flushTextureCacheForAllBRT (  ) 

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

References technics_.

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

References technics_.

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

References orgLayers_.

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

References outputTexture_.

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 
)

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

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

References outputTexture_.

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

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


Member Data Documentation

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

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

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

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

Referenced by getOrgLayer().

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

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

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


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

Generated on Wed Aug 19 01:36:27 2009 for osgCal by  doxygen 1.5.9