Commit 0da34dac authored by Jan Möbius's avatar Jan Möbius

Added functions to enable/disable picking for Mesh Objects

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@2584 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c21c1e9d
......@@ -435,6 +435,21 @@
bool MeshObject< MeshT , objectDataType >::picked( uint _node_idx ) {
return ( _node_idx == meshNode_->id() );
}
template < class MeshT , DataType objectDataType >
void MeshObject< MeshT , objectDataType >::enablePicking( bool _enable ) {
meshNode_->enablePicking( _enable );
areaNode_->enablePicking( _enable );
handleNode_->enablePicking( _enable );
textureNode_->enablePicking( _enable );
shaderNode_->enablePicking( _enable );
}
template < class MeshT , DataType objectDataType >
bool MeshObject< MeshT , objectDataType >::pickingEnabled() {
return meshNode_->pickingEnabled();
}
// ===============================================================================
// Octree
......
......@@ -220,7 +220,12 @@ class DLLEXPORT MeshObject : public BaseObjectData {
public:
/// detect if the node has been picked
bool picked( uint _node_idx );
/// Enable or disable picking for this Node
void enablePicking( bool _enable );
/// Check if picking is enabled for this Node
bool pickingEnabled();
/** @} */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment