Commit 2a77acc4 authored by Jan Möbius's avatar Jan Möbius
Browse files

Add a virtual function for enablePicking and picking enabled to BaseObjectData

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@2587 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0da34dac
...@@ -184,6 +184,13 @@ bool BaseObjectData::picked( uint /* _node_idx */ ) { ...@@ -184,6 +184,13 @@ bool BaseObjectData::picked( uint /* _node_idx */ ) {
return false; return false;
} }
void BaseObjectData::enablePicking( bool /*_enable*/ ) {
}
bool BaseObjectData::pickingEnabled() {
return true;
}
// =============================================================================== // ===============================================================================
// Content Nodes // Content Nodes
// =============================================================================== // ===============================================================================
......
...@@ -204,6 +204,18 @@ class DLLEXPORT BaseObjectData : public BaseObject ...@@ -204,6 +204,18 @@ class DLLEXPORT BaseObjectData : public BaseObject
public : public :
/// detect if the node has been picked /// detect if the node has been picked
virtual bool picked( uint _node_idx ); virtual bool picked( uint _node_idx );
/** Enable or disable picking for this Node
* The basic function defined here does nothing.
* It has to be reimplemented in the derived class
*/
virtual void enablePicking( bool _enable );
/** Check if picking is enabled for this Node
* This function will return true unless the derived class overwrites
* this function.
*/
virtual 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