MeVisLabToolboxReference
|
00001 // **InsertLicense** code 00002 //---------------------------------------------------------------------------------- 00004 00009 //---------------------------------------------------------------------------------- 00010 00011 00012 #ifndef __CSOLabelMoveAction_H 00013 #define __CSOLabelMoveAction_H 00014 00015 00016 #include <SoPointingAction.h> 00017 00018 class SoView2DCSOExtensibleEditor; 00019 class SoCSOLabelRenderer; 00020 00021 ML_START_NAMESPACE 00022 class CSO; 00023 ML_END_NAMESPACE 00024 00026 00027 class CSOLabelMoveAction : public SoPointingAction 00028 { 00029 public: 00030 00031 CSOLabelMoveAction(SoView2DCSOExtensibleEditor* editor); 00032 00033 virtual bool isSensitiveAt(const SoPointerPosition& pos); 00034 virtual void startPressAt(const SoPointerPosition& pos); 00035 virtual void dragMoveTo(const SoPointerPosition& pos); 00036 virtual SoPointingAction* endPress(int clickCount); 00037 virtual int getCurrentCursor(SoViewerProxy* ) const; 00038 00039 protected: 00040 00041 void initializeMembers(); 00042 00043 SoView2DCSOExtensibleEditor* _editor; 00044 00045 SoCSOLabelRenderer* _labelRenderer; 00046 ml::CSO* _labelCSO; 00047 00048 int _cursorShape; 00049 }; 00050 00052 00053 #endif // __CSOLabelMoveAction_H 00054