Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGMakeTransparentGraphOp.cpp File Reference

#include <OSGBlendChunk.h>
#include <OSGMakeTransparentGraphOp.h>
#include <OSGPolygonChunk.h>
#include <OSGSimpleMaterial.h>

Go to the source code of this file.

Namespaces

namespace  osg

Classes

struct  Type2Type< T >

Functions

template<typename T>
next (T t)
template<typename Chunk>
Chunk::Ptr getOrAddChunk (ChunkMaterialPtr cm, Type2Type< Chunk >=Type2Type< Chunk >())


Function Documentation

template<typename T>
T next t  ) 
 

Definition at line 62 of file OSGMakeTransparentGraphOp.cpp.

Referenced by osg::HalfEdgeGraph::calcOptPrim(), osg::NodeGraph::Node::release(), osg::MergeGraphOp::traverse(), and osg::MaterialMergeGraphOp::traverse().

00063 {
00064     return ++t;
00065 }

template<typename Chunk>
Chunk::Ptr getOrAddChunk ChunkMaterialPtr  cm,
Type2Type< Chunk >  = Type2Type<Chunk>()
 

Definition at line 169 of file OSGMakeTransparentGraphOp.cpp.

References osg::beginEditCP(), and osg::endEditCP().

00170                                                                          {
00171     osg::StateChunkPtr stateChunk = cm->find(Chunk::getClassType());
00172     typename Chunk::Ptr chunk = Chunk::Ptr::dcast(stateChunk);
00173     if (!chunk) {
00174         chunk = Chunk::create();
00175         beginEditCP(cm);
00176         cm->addChunk(chunk);
00177         endEditCP(cm);
00178     }
00179     return chunk;
00180 }


Generated on Thu Aug 25 04:12:21 2005 for OpenSG by  doxygen 1.4.3