25 #ifndef WGECOLORMAPPING_H
26 #define WGECOLORMAPPING_H
34 #include <boost/signals2/signal.hpp>
35 #include <boost/function.hpp>
39 #include "../common/WBoundingBox.h"
40 #include "../common/WSharedSequenceContainer.h"
41 #include "../common/WSharedAssociativeContainer.h"
43 #include "callbacks/WGEFunctorCallback.h"
45 #include "WGETexture.h"
46 #include "shaders/WGEShader.h"
85 typedef boost::function< void ( osg::ref_ptr< WGETexture3D >, osg::ref_ptr< WGETexture3D > ) >
TextureReplaceHandler;
102 static boost::shared_ptr< WGEColormapping >
instance();
107 typedef std::vector< osg::ref_ptr< osg::Node > >
NodeList;
120 osg::ref_ptr< WGEShader > shader = osg::ref_ptr< WGEShader >(),
size_t startTexUnit = 0 );
133 osg::ref_ptr< WGEShader > shader = osg::ref_ptr< WGEShader >(),
size_t startTexUnit = 0 );
143 static void apply( osg::ref_ptr< osg::Node > node, osg::ref_ptr< WGEShader > shader = osg::ref_ptr< WGEShader >(),
size_t startTexUnit = 0 );
154 osg::ref_ptr< WGEShader > shader = osg::ref_ptr< WGEShader >(),
size_t startTexUnit = 0 );
163 static void registerTexture( osg::ref_ptr< WGETexture3D > texture, std::string name =
"" );
181 static void replaceTexture( osg::ref_ptr< WGETexture3D > old, osg::ref_ptr< WGETexture3D > newTex, std::string name =
"" );
189 template <
typename Comparator >
190 void sort( Comparator comp );
198 template <
typename Comparator >
223 bool moveToTop( osg::ref_ptr< WGETexture3D > texture );
231 bool moveToBottom( osg::ref_ptr< WGETexture3D > texture );
239 bool moveUp( osg::ref_ptr< WGETexture3D > texture );
248 bool moveDown( osg::ref_ptr< WGETexture3D > texture );
258 bool moveTo( osg::ref_ptr< WGETexture3D > texture,
size_t idx );
349 osg::ref_ptr< WGEShader > shader = osg::ref_ptr< WGEShader >(),
size_t startTexUnit = 0 );
374 void replaceTextureInst( osg::ref_ptr< WGETexture3D > old, osg::ref_ptr< WGETexture3D > newTex, std::string name =
"" );
433 boost::signals2::signal< void( osg::ref_ptr< WGETexture3D >, osg::ref_ptr< WGETexture3D > ) >
m_replaceSignal;
451 template <
typename Comparator >
457 template <
typename Comparator >
463 #endif // WGECOLORMAPPING_H