MeVisLabToolboxReference
|
00001 // **InsertLicense** code 00002 //---------------------------------------------------------------------------------- 00004 00009 //---------------------------------------------------------------------------------- 00010 00011 00012 #ifndef __CSOCreateAction_H 00013 #define __CSOCreateAction_H 00014 00015 00016 #include <SoPointingAction.h> 00017 00018 class SoView2DCSOExtensibleEditor; 00019 00021 00022 class CSOCreateAction : public SoPointingAction 00023 { 00024 public: 00025 00026 CSOCreateAction(SoView2DCSOExtensibleEditor* editor); 00027 00028 virtual bool isSensitiveAt(const SoPointerPosition& pos); 00029 virtual void startPressAt(const SoPointerPosition& pos); 00030 virtual void dragMoveTo(const SoPointerPosition& pos); 00031 virtual SoPointingAction* endPress(int clickCount); 00032 virtual int getCurrentCursor(SoViewerProxy* ) const; 00033 00034 virtual void setMode(int mode); 00035 virtual int getNumModes() const; 00036 00037 protected: 00038 00039 SoView2DCSOExtensibleEditor* _editor; 00040 SoCSOEditorExtension* _activeEditor; 00041 00042 SoCSOEditorExtension* getActiveEditorChecked() const; 00043 }; 00044 00046 00047 #endif // __CSOCreateAction_H 00048