04-26-2016, 08:33 AM
I'm working on a plugin with five tools, which could easily share some of the callbacks that test what's under the cursor and change the cursor accordingly (each of the five tools has three cursors). I had expected to find a tool function to return the currently selected tool, but found:
virtual AIToolHandle aiToolHandle () const
Gets the tool handle around which the target object is wrapped.
I don't think this is what I'm looking for, but am puzzled and curious about what the description means.
That said, I imagine the best way to handle keeping track of the current tool is to just set a variable to keep track as tools are selected and deselected. Or is it not recommended practice to have different tools share a common callback?
virtual AIToolHandle aiToolHandle () const
Gets the tool handle around which the target object is wrapped.
I don't think this is what I'm looking for, but am puzzled and curious about what the description means.
That said, I imagine the best way to handle keeping track of the current tool is to just set a variable to keep track as tools are selected and deselected. Or is it not recommended practice to have different tools share a common callback?