MeVisLab Toolbox Reference
CSOPointingAction Class Reference

#include <CSOPointingAction.h>

Inheritance diagram for CSOPointingAction:
SoPointingAction SoInteraction CSOAbstractCreateAction CSOBulgeAction CSOInsertSeedPointIntoPathPointListAction CSOSelectAndMoveAction CSOTransformAction CSOCreateAction

Public Member Functions

 CSOPointingAction (SoView2DCSOExtensibleEditor *editor, const std::string &id)
Public Member Functions inherited from SoPointingAction
 SoPointingAction (SoInteractionOwner *owner, std::string id, bool positionSensitive=true)
virtual bool isPositionSensitive () const
void clearTriggers ()
 Removes all triggers.
void setTrigger (int triggerMask, int ignoreMask=0)
void setTrigger (const Trigger &trigger)
 Same with Trigger object.
void addTrigger (const Trigger &trigger)
 Adds another default modifier/button mask as trigger.
TriggerList getTriggers () const
 Returns the list of default modifier/button mask combinations set for this action.
virtual bool triggersAction (int mask)
virtual int getNumModes () const
virtual int getCurrentCursor (SoViewerProxy *) const
virtual std::string getCurrentStatusMessage () const
virtual void setMode (int)
virtual bool isSensitiveAt (const SoPointerPosition &pos)=0
virtual void setHighlightAt (const SoPointerPosition &)
virtual void unsetHighlight ()
virtual void startPressAt (const SoPointerPosition &pos)=0
virtual void dragMoveTo (const SoPointerPosition &pos)=0
 Continues the drag to given device position.
virtual SoPointingActionendPress (int clickCount)=0
virtual void dragCancelled ()
virtual bool wantsMouseOverUpdates ()
void grabReleased ()
virtual void releaseGrab (StopMode)
virtual bool wantsImmediateDragUpdates ()
Public Member Functions inherited from SoInteraction
 SoInteraction (InteractionType type, SoInteractionOwner *owner, const std::string &id, bool registerWithOwner=true)
virtual ~SoInteraction ()
SoInteractionOwnergetOwner () const
 Returns the interaction provider of this entry.
virtual bool isEnabled () const
virtual void setEnabled (bool enabled)
 Sets the enabled status of this interaction.
std::string getID () const
void setID (const std::string &id)
 Sets the ID of this interaction.
std::string getFullID () const
InteractionType getInteractionType () const
 Returns type of interaction object.
template<class T>
bool isOfType () const
 Convenience method for checking type.
int getMenuPriority () const
void setMenuPriority (int priority)
 Sets the priority value for ordered display in menus/tool boxes.
virtual std::string getUserName () const
virtual void setUserName (const std::string &name)
 Sets the user name of this interaction entry.
virtual std::string getIconFile () const
 Returns the filename of an icon (e.g., for use in a tool box or in menu).
virtual void setIconFile (const std::string &file)
 Sets the filename of an icon used for this interaction entry.
virtual std::string getDescription () const
 Returns the description for user help.
virtual void setDescription (const std::string &descr)
 Sets the description for user help.
virtual void ref ()
virtual void unref ()
int getStateVersion () const
void touch ()
 Increments the version number of attribute state to mark attribute changes.

Protected Member Functions

bool isInsideImage (const SoPointerPosition &pos)
void setView2DImage (const SoPointerPosition &pos)
void updateImageStatistics (ml::CSO *cso)
void setActionActive ()
 Set/unset the maskValid flag in the editor.
void unsetActionActive ()
Protected Member Functions inherited from SoPointingAction
virtual SoOffsetActionproxiedOffsetAction () const

Protected Attributes

SoView2DCSOExtensibleEditor_editor
SoSFMLImage_image

Additional Inherited Members

Public Types inherited from SoPointingAction
enum  StopMode { AbortAction , FinishAction }
 Argument type for releaseGrab(). More...
enum  { Button1Mask = ManagedMouseButtonTrigger::Button1Mask , Button2Mask = ManagedMouseButtonTrigger::Button2Mask , Button3Mask = ManagedMouseButtonTrigger::Button3Mask , AllButtonsMask = ManagedMouseButtonTrigger::AllButtonsMask }
enum  { TypeId = TypePointingAction }
typedef ManagedMouseButtonTrigger Trigger
typedef std::list< TriggerTriggerList
 List of triggers.
Public Types inherited from SoInteraction
enum  {
  NoModifier = ManagedActionTrigger::NoModifier , ShiftModifier = ManagedActionTrigger::ShiftModifier , ControlModifier = ManagedActionTrigger::ControlModifier , AltModifier = ManagedActionTrigger::AltModifier ,
  AllModifiersMask = ManagedActionTrigger::AllModifiersMask , ShiftMask = ShiftModifier , CtrlMask = ControlModifier , AltMask = AltModifier
}
enum  InteractionType { TypePointingAction , TypeCommandAction , TypeOffsetAction }
 Enum identifying subtypes of this class. More...

Detailed Description

Definition at line 32 of file CSOPointingAction.h.

Constructor & Destructor Documentation

◆ CSOPointingAction()

CSOPointingAction::CSOPointingAction ( SoView2DCSOExtensibleEditor * editor,
const std::string & id )

Member Function Documentation

◆ isInsideImage()

bool CSOPointingAction::isInsideImage ( const SoPointerPosition & pos)
protected

Returns whether the position is inside the image if needsValidVoxel is set; Otherwise, it just returns true.

◆ setActionActive()

void CSOPointingAction::setActionActive ( )
protected

Set/unset the maskValid flag in the editor.

◆ setView2DImage()

void CSOPointingAction::setView2DImage ( const SoPointerPosition & pos)
protected

◆ unsetActionActive()

void CSOPointingAction::unsetActionActive ( )
protected

◆ updateImageStatistics()

void CSOPointingAction::updateImageStatistics ( ml::CSO * cso)
protected

Member Data Documentation

◆ _editor

SoView2DCSOExtensibleEditor* CSOPointingAction::_editor
protected

Definition at line 52 of file CSOPointingAction.h.

◆ _image

SoSFMLImage* CSOPointingAction::_image
protected

Definition at line 54 of file CSOPointingAction.h.


The documentation for this class was generated from the following file:
  • MeVisLab/Standard/Sources/Inventor/SoCSO/SoView2DCSOEditor/SoView2DCSOExtensibleEditor/CSOActions/CSOPointingAction.h