13#ifndef SO_INTERACTION_H
14#define SO_INTERACTION_H
17#include <ThirdPartyWarningsDisable.h>
20#include <ThirdPartyWarningsRestore.h>
84 std::string
getID()
const {
return _id; }
122 inline bool isOfType()
const {
return static_cast<int>(_interactionType) == T::TypeId; }
149 std::string _userName;
150 std::string _iconFile;
151 std::string _description;
SoInteraction SoInteractionEntry
Provide deprecated old class name.
#define SOMANAGEDINTERACTION_API
File to resolve system dependencies in View2D library.
@ NoModifier
No modifier key.
@ ShiftModifier
Shift modifier key.
@ AllModifiersMask
All modifier keys.
@ ControlModifier
Control modifier key.
@ AltModifier
Alt modifier key.
virtual std::string getUserName() const
bool isOfType() const
Convenience method for checking type.
virtual bool isEnabled() const
int getStateVersion() const
virtual void setEnabled(bool enabled)
Sets the enabled status of this interaction.
virtual std::string getIconFile() const
Returns the filename of an icon (e.g., for use in a tool box or in menu).
InteractionType
Enum identifying subtypes of this class.
SoInteraction(InteractionType type, SoInteractionOwner *owner, const std::string &id, bool registerWithOwner=true)
virtual void setUserName(const std::string &name)
Sets the user name of this interaction entry.
void setMenuPriority(int priority)
Sets the priority value for ordered display in menus/tool boxes.
virtual void setIconFile(const std::string &file)
Sets the filename of an icon used for this interaction entry.
void touch()
Increments the version number of attribute state to mark attribute changes.
InteractionType getInteractionType() const
Returns type of interaction object.
int getMenuPriority() const
void setID(const std::string &id)
Sets the ID of this interaction.
std::string getFullID() const
std::string getID() const
virtual std::string getDescription() const
Returns the description for user help.
virtual void setDescription(const std::string &descr)
Sets the description for user help.
SoInteractionOwner * getOwner() const
Returns the interaction provider of this entry.