OpenWalnut
1.4.0
|
Class implements a manager for multiple 3D textures. More...
#include <WGEColormapping.h>
Classes | |
struct | NodeInfo |
Simple structure to store some additional node-related info like texture units and so on. More... | |
Public Types | |
enum | TextureListSignal { Registered = 0, Deregistered, Replaced, Sorted } |
Possible signals that can be subscribed for being notified about texture list changes. More... | |
typedef WSharedSequenceContainer < std::vector< osg::ref_ptr < WGETexture3D > > > | TextureContainerType |
The alias for a shared container. | |
typedef TextureContainerType::Iterator | TextureIterator |
Iterator to access the texture list. | |
typedef TextureContainerType::ConstIterator | TextureConstIterator |
Const iterator to access the texture list. | |
typedef boost::function< void(osg::ref_ptr < WGETexture3D >) > | TextureRegisterHandler |
The type of handler used for being notified about added textures. | |
typedef TextureRegisterHandler | TextureDeregisterHandler |
The type of handler used for being notified about removed textures. | |
typedef boost::function< void(osg::ref_ptr < WGETexture3D >, osg::ref_ptr < WGETexture3D >) > | TextureReplaceHandler |
The type of handler used for being notified about replaced textures. | |
typedef boost::function< void(void) > | TextureSortHandler |
The type of handler called whenever the texture list got resorted. | |
typedef std::vector < osg::ref_ptr< osg::Node > > | NodeList |
a bunch of nodes. | |
Public Member Functions | |
virtual | ~WGEColormapping () |
Destructor. | |
template<typename Comparator > | |
void | sort (Comparator comp) |
Resorts the texture list using the specified comparator. | |
template<typename Comparator > | |
void | stableSort (Comparator comp) |
Resorts the texture list using the specified comparator using a stable sorting algorithm. | |
void | sortByIndex () |
Sort the texture list by the indices that have been stored in each texture's sortIndex. | |
void | setSortIndices () |
This function sets the index of a texture in the list to this texture's WGETexture::sortIndex(). | |
void | resetSortIndices () |
Reset all sort indices. | |
bool | moveToTop (osg::ref_ptr< WGETexture3D > texture) |
Move the specified texture up in the list, directly to the top. | |
bool | moveToBottom (osg::ref_ptr< WGETexture3D > texture) |
Move the specified texture down in the list, directly to the bottom. | |
bool | moveUp (osg::ref_ptr< WGETexture3D > texture) |
Move the specified texture one item up in the list. | |
bool | moveDown (osg::ref_ptr< WGETexture3D > texture) |
Move the specified texture one item down in the list. | |
bool | moveTo (osg::ref_ptr< WGETexture3D > texture, size_t idx) |
Move the texture to the specified index. | |
size_t | size () const |
Counts the number of textures in the colormapper. | |
boost::signals2::connection | subscribeSignal (TextureListSignal signal, TextureRegisterHandler notifier) |
Subscribe to the specified signal. | |
boost::signals2::connection | subscribeSignal (TextureListSignal signal, TextureReplaceHandler notifier) |
Subscribe to the specified signal. | |
boost::signals2::connection | subscribeSignal (TextureListSignal signal, TextureSortHandler notifier) |
Subscribe to the specified signal. | |
TextureContainerType::ReadTicket | getReadTicket () |
Returns a read ticket to the texture array. | |
WBoundingBox | getBoundingBox () const |
This returns the bounding box of all the data textures. | |
WCondition::SPtr | getChangeCondition () const |
Returns the condition firing if the texture list changes (sort, replace, add or remove). | |
Static Public Member Functions | |
static boost::shared_ptr < WGEColormapping > | instance () |
Returns instance of the module factory to use to create modules. | |
static void | apply (osg::ref_ptr< osg::Node > node, WMatrix4d preTransform=WMatrix4d::identity(), osg::ref_ptr< WGEShader > shader=osg::ref_ptr< WGEShader >(), size_t startTexUnit=0) |
Apply the colormapping to the specified node. | |
static void | apply (NodeList nodes, WMatrix4d preTransform=WMatrix4d::identity(), osg::ref_ptr< WGEShader > shader=osg::ref_ptr< WGEShader >(), size_t startTexUnit=0) |
Apply the colormapping to a list of nodes using the same shader. | |
static void | apply (osg::ref_ptr< osg::Node > node, osg::ref_ptr< WGEShader > shader=osg::ref_ptr< WGEShader >(), size_t startTexUnit=0) |
Apply the colormapping to the specified node. | |
static void | apply (NodeList nodes, osg::ref_ptr< WGEShader > shader=osg::ref_ptr< WGEShader >(), size_t startTexUnit=0) |
Apply the colormapping to a list of nodes which all use the same shader. | |
static void | registerTexture (osg::ref_ptr< WGETexture3D > texture, std::string name="") |
Register the specified texture to the colormapper. | |
static void | deregisterTexture (osg::ref_ptr< WGETexture3D > texture) |
De-register the specified texture to the colormapper. | |
static void | replaceTexture (osg::ref_ptr< WGETexture3D > old, osg::ref_ptr< WGETexture3D > newTex, std::string name="") |
Replaces the specified texture with the given new one. | |
Protected Member Functions | |
WGEColormapping () | |
Default constructor. | |
void | applyInst (NodeList nodes, WMatrix4d preTransform=WMatrix4d::identity(), osg::ref_ptr< WGEShader > shader=osg::ref_ptr< WGEShader >(), size_t startTexUnit=0) |
Apply the colormapping to the specified nodes. | |
void | registerTextureInst (osg::ref_ptr< WGETexture3D > texture, std::string name) |
Register the specified texture to the colormapper. | |
void | deregisterTextureInst (osg::ref_ptr< WGETexture3D > texture) |
De-register the specified texture to the colormapper. | |
void | replaceTextureInst (osg::ref_ptr< WGETexture3D > old, osg::ref_ptr< WGETexture3D > newTex, std::string name="") |
Replaces the specified texture with the given new one. | |
void | callback (osg::Node *node) |
This callback handles all the updates needed. | |
void | textureUpdate () |
Called whenever the texture list is updated. | |
Private Types | |
typedef WSharedAssociativeContainer < std::map< osg::Node *, NodeInfo *, std::less < osg::Node * > > > | NodeInfoContainerType |
The alias for a shared container with a set of node-nodeInfo pairs. | |
Private Member Functions | |
void | updateBounds () |
Updates the bounding box information. | |
Private Attributes | |
TextureContainerType | m_textures |
The textures managed by this instance. | |
NodeInfoContainerType | m_nodeInfo |
This map is needed to keep track of several node specific settings. | |
boost::signals2::signal< void(osg::ref_ptr < WGETexture3D >) > | m_registerSignal |
Called whenever a texture got registered. | |
boost::signals2::signal< void(osg::ref_ptr < WGETexture3D >) > | m_deregisterSignal |
Called whenever a texture got removed. | |
boost::signals2::signal< void(osg::ref_ptr < WGETexture3D >, osg::ref_ptr < WGETexture3D >) > | m_replaceSignal |
Called whenever a texture got replaced. | |
boost::signals2::signal< void(void) > | m_sortSignal |
Called whenever the texture list got resorted. | |
WSharedObject< WBoundingBox > | m_boundingBox |
The bounding box of all the textures. | |
Static Private Attributes | |
static boost::shared_ptr < WGEColormapping > | m_instance = boost::shared_ptr< WGEColormapping >() |
Singleton instance of WGEColormapping. |
Class implements a manager for multiple 3D textures.
They can be applied to arbitrary osg::Node. This allows very comfortable use of dataset based colormapping. The only requirement is that your geometry/node needs to specify texture coordinates in Object Space. That means: the texture coordinates equal the regular 3D grid of the texture.
Definition at line 54 of file WGEColormapping.h.
typedef WSharedAssociativeContainer< std::map< osg::Node*, NodeInfo*, std::less< osg::Node* > > > WGEColormapping::NodeInfoContainerType [private] |
The alias for a shared container with a set of node-nodeInfo pairs.
Definition at line 413 of file WGEColormapping.h.
typedef std::vector< osg::ref_ptr< osg::Node > > WGEColormapping::NodeList |
a bunch of nodes.
Definition at line 107 of file WGEColormapping.h.
Const iterator to access the texture list.
Definition at line 70 of file WGEColormapping.h.
typedef WSharedSequenceContainer< std::vector< osg::ref_ptr< WGETexture3D > > > WGEColormapping::TextureContainerType |
The alias for a shared container.
Definition at line 60 of file WGEColormapping.h.
The type of handler used for being notified about removed textures.
Definition at line 80 of file WGEColormapping.h.
Iterator to access the texture list.
Definition at line 65 of file WGEColormapping.h.
typedef boost::function< void ( osg::ref_ptr< WGETexture3D > ) > WGEColormapping::TextureRegisterHandler |
The type of handler used for being notified about added textures.
Definition at line 75 of file WGEColormapping.h.
typedef boost::function< void ( osg::ref_ptr< WGETexture3D >, osg::ref_ptr< WGETexture3D > ) > WGEColormapping::TextureReplaceHandler |
The type of handler used for being notified about replaced textures.
Definition at line 85 of file WGEColormapping.h.
typedef boost::function< void ( void ) > WGEColormapping::TextureSortHandler |
The type of handler called whenever the texture list got resorted.
Definition at line 90 of file WGEColormapping.h.
Possible signals that can be subscribed for being notified about texture list changes.
Registered |
texture got added |
Deregistered |
texture got removed |
Replaced |
texture got replaced |
Sorted |
texture list was resorted |
Definition at line 270 of file WGEColormapping.h.
WGEColormapping::~WGEColormapping | ( | ) | [virtual] |
Destructor.
Definition at line 95 of file WGEColormapping.cpp.
WGEColormapping::WGEColormapping | ( | ) | [protected] |
Default constructor.
Definition at line 88 of file WGEColormapping.cpp.
References WSharedObject< T >::getChangeCondition(), WSharedObject< T >::getWriteTicket(), m_boundingBox, m_textures, and textureUpdate().
Referenced by instance().
void WGEColormapping::apply | ( | osg::ref_ptr< osg::Node > | node, |
WMatrix4d | preTransform = WMatrix4d::identity() , |
||
osg::ref_ptr< WGEShader > | shader = osg::ref_ptr< WGEShader >() , |
||
size_t | startTexUnit = 0 |
||
) | [static] |
Apply the colormapping to the specified node.
node | the node. |
shader | the shader to use for colormapping. Provide your own shader here to let WGEColormap set some defines needed. If not specified, a default shader is used. |
preTransform | Transformation matrix getting applied to your texture coordinates before applying texture matrices. This allows you to specify any kind of texture coordinates as long as you use this matrix to transform them to the right space. |
startTexUnit | the first texture unit allowed to be used |
Definition at line 115 of file WGEColormapping.cpp.
References instance().
void WGEColormapping::apply | ( | NodeList | nodes, |
WMatrix4d | preTransform = WMatrix4d::identity() , |
||
osg::ref_ptr< WGEShader > | shader = osg::ref_ptr< WGEShader >() , |
||
size_t | startTexUnit = 0 |
||
) | [static] |
Apply the colormapping to a list of nodes using the same shader.
nodes | the node-list. |
shader | the shader to use for colormapping. Provide your own shader here to let WGEColormap set some defines needed. If not specified, a default shader is used. |
preTransform | Transformation matrix getting applied to your texture coordinates before applying texture matrices. This allows you to specify any kind of texture coordinates as long as you use this matrix to transform them to the right space. |
startTexUnit | the first texture unit allowed to be used |
Definition at line 121 of file WGEColormapping.cpp.
References instance().
void WGEColormapping::apply | ( | osg::ref_ptr< osg::Node > | node, |
osg::ref_ptr< WGEShader > | shader = osg::ref_ptr< WGEShader >() , |
||
size_t | startTexUnit = 0 |
||
) | [static] |
Apply the colormapping to the specified node.
node | the node. |
shader | the shader to use for colormapping. Provide your own shader here to let WGEColormap set some defines needed. If not specified, a default shader is used. |
startTexUnit | the first texture unit allowed to be used |
Definition at line 110 of file WGEColormapping.cpp.
References WMatrixFixed< double, 4, 4 >::identity(), and instance().
void WGEColormapping::apply | ( | NodeList | nodes, |
osg::ref_ptr< WGEShader > | shader = osg::ref_ptr< WGEShader >() , |
||
size_t | startTexUnit = 0 |
||
) | [static] |
Apply the colormapping to a list of nodes which all use the same shader.
nodes | the node list. |
shader | the shader to use for colormapping. Provide your own shader here to let WGEColormap set some defines needed. If not specified, a default shader is used. |
startTexUnit | the first texture unit allowed to be used |
Definition at line 126 of file WGEColormapping.cpp.
References WMatrixFixed< double, 4, 4 >::identity(), and instance().
void WGEColormapping::applyInst | ( | NodeList | nodes, |
WMatrix4d | preTransform = WMatrix4d::identity() , |
||
osg::ref_ptr< WGEShader > | shader = osg::ref_ptr< WGEShader >() , |
||
size_t | startTexUnit = 0 |
||
) | [protected] |
Apply the colormapping to the specified nodes.
nodes | the nodes. |
preTransform | Transformation matrix getting applied to your texture coordinates before applying texture matrices. This allows you to specify any kind of texture coordinates as long as you use this matrix to transform them to the right space. |
shader | the shader to use for colormapping. Provide your own shader here to let WGEColormap set some defines needed. If not specified, a default shader is used. |
startTexUnit | the first texture unit allowed to be used |
Definition at line 146 of file WGEColormapping.cpp.
References callback(), WSharedAssociativeContainer< T >::insert(), m_nodeInfo, WGEColormapping::NodeInfo::m_preTransform, WGEColormapping::NodeInfo::m_rebind, and WGEColormapping::NodeInfo::m_texUnitStart.
void WGEColormapping::callback | ( | osg::Node * | node | ) | [protected] |
This callback handles all the updates needed.
It is called by the callback instance every update cycle for each node using this WGEColormapping instance.
node |
Definition at line 296 of file WGEColormapping.cpp.
References wge::bindTexture(), wge::getMaxTexUnits(), WSharedObject< T >::getReadTicket(), m_nodeInfo, WGEColormapping::NodeInfo::m_rebind, m_textures, WGEColormapping::NodeInfo::m_texUnitStart, string_utils::toString(), and wge::unbindTexture().
Referenced by applyInst().
void WGEColormapping::deregisterTexture | ( | osg::ref_ptr< WGETexture3D > | texture | ) | [static] |
De-register the specified texture to the colormapper.
The texture is the automatically removed from all users of WGEColormapping. If the texture is not in the list, nothing happens.
texture | the texture to remove |
Definition at line 136 of file WGEColormapping.cpp.
References instance().
void WGEColormapping::deregisterTextureInst | ( | osg::ref_ptr< WGETexture3D > | texture | ) | [protected] |
De-register the specified texture to the colormapper.
The texture is the automatically removed from all users of WGEColormapping.
texture | the texture to remove |
Definition at line 191 of file WGEColormapping.cpp.
References WSharedSequenceContainer< S >::count(), wlog::debug(), m_deregisterSignal, m_textures, WSharedSequenceContainer< S >::remove(), and updateBounds().
WBoundingBox WGEColormapping::getBoundingBox | ( | ) | const |
This returns the bounding box of all the data textures.
This is very useful if you implement an universal color-mapped exploration tool. It returns a copy of the current bounding box. Please note that this can change any moment.
Definition at line 243 of file WGEColormapping.cpp.
References WSharedObject< T >::getReadTicket(), and m_boundingBox.
Returns the condition firing if the texture list changes (sort, replace, add or remove).
If you are interested in a certain event only, use subscribeSignal.
Definition at line 533 of file WGEColormapping.cpp.
References WSharedObject< T >::getChangeCondition(), and m_textures.
Returns a read ticket to the texture array.
Useful to iterate the textures.
Definition at line 528 of file WGEColormapping.cpp.
References WSharedObject< T >::getReadTicket(), and m_textures.
boost::shared_ptr< WGEColormapping > WGEColormapping::instance | ( | ) | [static] |
Returns instance of the module factory to use to create modules.
Definition at line 100 of file WGEColormapping.cpp.
References m_instance, and WGEColormapping().
Referenced by WModuleProjectFileCombiner::apply(), apply(), deregisterTexture(), registerTexture(), replaceTexture(), and WModuleProjectFileCombiner::save().
bool WGEColormapping::moveDown | ( | osg::ref_ptr< WGETexture3D > | texture | ) |
Move the specified texture one item down in the list.
Causes the sort signal to fire.
texture | the texture swapped with its descendant |
Definition at line 333 of file WGEColormapping.cpp.
References WSharedObject< T >::getWriteTicket(), m_sortSignal, and m_textures.
bool WGEColormapping::moveTo | ( | osg::ref_ptr< WGETexture3D > | texture, |
size_t | idx | ||
) |
Move the texture to the specified index.
If the texture is not in the list, nothing happens.
texture | the texture to move |
idx | the target index |
Definition at line 443 of file WGEColormapping.cpp.
References WSharedObject< T >::getWriteTicket(), m_sortSignal, and m_textures.
bool WGEColormapping::moveToBottom | ( | osg::ref_ptr< WGETexture3D > | texture | ) |
Move the specified texture down in the list, directly to the bottom.
Causes the sort signal to fire.
texture | the texture swapped with its descendant |
Definition at line 415 of file WGEColormapping.cpp.
References WSharedObject< T >::getWriteTicket(), m_sortSignal, and m_textures.
bool WGEColormapping::moveToTop | ( | osg::ref_ptr< WGETexture3D > | texture | ) |
Move the specified texture up in the list, directly to the top.
Causes the sort signal to fire.
texture | the texture swapped with its ascendant |
Definition at line 387 of file WGEColormapping.cpp.
References WSharedObject< T >::getWriteTicket(), m_sortSignal, and m_textures.
bool WGEColormapping::moveUp | ( | osg::ref_ptr< WGETexture3D > | texture | ) |
Move the specified texture one item up in the list.
Causes the sort signal to fire.
texture | the texture swapped with its ascendant |
Definition at line 360 of file WGEColormapping.cpp.
References WSharedObject< T >::getWriteTicket(), m_sortSignal, and m_textures.
void WGEColormapping::registerTexture | ( | osg::ref_ptr< WGETexture3D > | texture, |
std::string | name = "" |
||
) | [static] |
Register the specified texture to the colormapper.
The registered texture is the automatically applied to all users of WGEColormapping. The texture gets inserted at the beginning of the texture list.
texture | the texture to add |
name | the name of the texture to add |
Definition at line 131 of file WGEColormapping.cpp.
References instance().
void WGEColormapping::registerTextureInst | ( | osg::ref_ptr< WGETexture3D > | texture, |
std::string | name | ||
) | [protected] |
Register the specified texture to the colormapper.
The registered texture is the automatically applied to all users of WGEColormapping.
texture | the texture to add |
name | the name of the texture. |
Definition at line 176 of file WGEColormapping.cpp.
References WSharedSequenceContainer< S >::count(), wlog::debug(), m_registerSignal, m_textures, WSharedSequenceContainer< S >::push_front(), and updateBounds().
Referenced by replaceTextureInst().
void WGEColormapping::replaceTexture | ( | osg::ref_ptr< WGETexture3D > | old, |
osg::ref_ptr< WGETexture3D > | newTex, | ||
std::string | name = "" |
||
) | [static] |
Replaces the specified texture with the given new one.
If the old texture does not exist, the new one gets inserted at the front of the list as registerTexture does.
old | the texture to remove |
newTex | the new texture to put at the position of the old one |
name | the name of the texture. |
Definition at line 141 of file WGEColormapping.cpp.
References instance().
void WGEColormapping::replaceTextureInst | ( | osg::ref_ptr< WGETexture3D > | old, |
osg::ref_ptr< WGETexture3D > | newTex, | ||
std::string | name = "" |
||
) | [protected] |
Replaces the specified texture with the given new one.
If the old texture does not exist, the new one gets inserted at the front of the list as registerTexture does.
old | the texture to remove |
newTex | the new texture to put at the position of the old one |
name | the name of the texture. |
Definition at line 202 of file WGEColormapping.cpp.
References WSharedSequenceContainer< S >::count(), wlog::debug(), m_replaceSignal, m_textures, registerTextureInst(), WSharedSequenceContainer< S >::replace(), and updateBounds().
void WGEColormapping::resetSortIndices | ( | ) |
Reset all sort indices.
This can be useful when loading new project files with new sort indices.
Definition at line 287 of file WGEColormapping.cpp.
References WSharedObject< T >::getReadTicket(), WGETexture< TextureType >::getUnsetSortIndex(), and m_textures.
void WGEColormapping::setSortIndices | ( | ) |
This function sets the index of a texture in the list to this texture's WGETexture::sortIndex().
This can be used later using sortByIndex().
Definition at line 276 of file WGEColormapping.cpp.
References WSharedObject< T >::getReadTicket(), and m_textures.
size_t WGEColormapping::size | ( | ) | const |
Counts the number of textures in the colormapper.
Definition at line 488 of file WGEColormapping.cpp.
References m_textures, and WSharedSequenceContainer< S >::size().
void WGEColormapping::sort | ( | Comparator | comp | ) |
Resorts the texture list using the specified comparator.
Comparator | the comparator type. Usually a boost::function or class providing the operator(). |
comp | the comparator |
Definition at line 452 of file WGEColormapping.h.
References m_textures, and WSharedSequenceContainer< S >::sort().
void WGEColormapping::sortByIndex | ( | ) |
Sort the texture list by the indices that have been stored in each texture's sortIndex.
Definition at line 270 of file WGEColormapping.cpp.
References stableSort().
void WGEColormapping::stableSort | ( | Comparator | comp | ) |
Resorts the texture list using the specified comparator using a stable sorting algorithm.
Comparator | the comparator type. Usually a boost::function or class providing the operator(). |
comp | the comparator |
Definition at line 458 of file WGEColormapping.h.
References m_textures, and WSharedSequenceContainer< S >::stableSort().
Referenced by sortByIndex().
boost::signals2::connection WGEColormapping::subscribeSignal | ( | TextureListSignal | signal, |
TextureRegisterHandler | notifier | ||
) |
Subscribe to the specified signal.
See TextureListSignal for details about their meaning.
signal | the signal to subscribe |
notifier | the notifier |
Definition at line 493 of file WGEColormapping.cpp.
References Deregistered, m_deregisterSignal, m_registerSignal, and Registered.
boost::signals2::connection WGEColormapping::subscribeSignal | ( | TextureListSignal | signal, |
TextureReplaceHandler | notifier | ||
) |
Subscribe to the specified signal.
See TextureListSignal for details about their meaning.
signal | the signal to subscribe |
notifier | the notifier |
Definition at line 506 of file WGEColormapping.cpp.
References m_replaceSignal, and Replaced.
boost::signals2::connection WGEColormapping::subscribeSignal | ( | TextureListSignal | signal, |
TextureSortHandler | notifier | ||
) |
Subscribe to the specified signal.
See TextureListSignal for details about their meaning.
signal | the signal to subscribe |
notifier | the notifier |
Definition at line 517 of file WGEColormapping.cpp.
References m_sortSignal, and Sorted.
void WGEColormapping::textureUpdate | ( | ) | [protected] |
Called whenever the texture list is updated.
Definition at line 248 of file WGEColormapping.cpp.
References WSharedObject< T >::getWriteTicket(), and m_nodeInfo.
Referenced by WGEColormapping().
void WGEColormapping::updateBounds | ( | ) | [private] |
Updates the bounding box information.
This is called for every write-update in m_textures.
Definition at line 223 of file WGEColormapping.cpp.
References WSharedObject< T >::getReadTicket(), WSharedObject< T >::getWriteTicket(), m_boundingBox, and m_textures.
Referenced by deregisterTextureInst(), registerTextureInst(), and replaceTextureInst().
WSharedObject< WBoundingBox > WGEColormapping::m_boundingBox [private] |
The bounding box of all the textures.
Definition at line 443 of file WGEColormapping.h.
Referenced by getBoundingBox(), updateBounds(), and WGEColormapping().
boost::signals2::signal< void( osg::ref_ptr< WGETexture3D > ) > WGEColormapping::m_deregisterSignal [private] |
Called whenever a texture got removed.
Definition at line 428 of file WGEColormapping.h.
Referenced by deregisterTextureInst(), and subscribeSignal().
boost::shared_ptr< WGEColormapping > WGEColormapping::m_instance = boost::shared_ptr< WGEColormapping >() [static, private] |
Singleton instance of WGEColormapping.
Definition at line 393 of file WGEColormapping.h.
Referenced by instance().
This map is needed to keep track of several node specific settings.
Definition at line 418 of file WGEColormapping.h.
Referenced by applyInst(), callback(), and textureUpdate().
boost::signals2::signal< void( osg::ref_ptr< WGETexture3D > ) > WGEColormapping::m_registerSignal [private] |
Called whenever a texture got registered.
Definition at line 423 of file WGEColormapping.h.
Referenced by registerTextureInst(), and subscribeSignal().
boost::signals2::signal< void( osg::ref_ptr< WGETexture3D >, osg::ref_ptr< WGETexture3D > ) > WGEColormapping::m_replaceSignal [private] |
Called whenever a texture got replaced.
Definition at line 433 of file WGEColormapping.h.
Referenced by replaceTextureInst(), and subscribeSignal().
boost::signals2::signal< void( void ) > WGEColormapping::m_sortSignal [private] |
Called whenever the texture list got resorted.
Definition at line 438 of file WGEColormapping.h.
Referenced by moveDown(), moveTo(), moveToBottom(), moveToTop(), moveUp(), and subscribeSignal().
The textures managed by this instance.
Definition at line 398 of file WGEColormapping.h.
Referenced by callback(), deregisterTextureInst(), getChangeCondition(), getReadTicket(), moveDown(), moveTo(), moveToBottom(), moveToTop(), moveUp(), registerTextureInst(), replaceTextureInst(), resetSortIndices(), setSortIndices(), size(), sort(), stableSort(), updateBounds(), and WGEColormapping().