MeVisLabToolboxReference
|
00001 // **InsertLicense** code 00002 //---------------------------------------------------------------------------------- 00004 00009 //---------------------------------------------------------------------------------- 00010 00011 00012 #ifndef __SoCSODefaultRenderer_H 00013 #define __SoCSODefaultRenderer_H 00014 00015 00016 #include <SoView2DCSOEditor/SoView2DCSOExtensibleEditor/SoCSOEditorExtension.h> 00017 00019 00020 ML_START_NAMESPACE 00021 class CSO; 00022 ML_END_NAMESPACE 00023 00025 00027 class SOCSO_EXPORT SoCSODefaultRenderer : public SoCSOEditorExtension 00028 { 00029 SO_NODE_HEADER(SoCSODefaultRenderer); 00030 00031 public: 00032 00034 SoCSODefaultRenderer(); 00035 00037 virtual void draw(const CSODrawCSOInfos& csoInfos, const CSODrawView2DInfos& view2DInfos, const CSODrawSliceInformation& drawSliceInfo, SoView2DCSOExtensibleEditor* editor); 00038 00040 static void initClass(); 00041 00042 virtual void createStartPressAt(const SoPointerPosition& ) {} 00043 virtual void createDragMoveTo(const SoPointerPosition& ) {} 00044 virtual bool createEndPress(int ) { return false; } 00045 00046 virtual void selectAndMoveStartPressAt(const SoPointerPosition& ); 00047 virtual void selectAndMoveDragMoveTo(const SoPointerPosition& ) { } 00048 virtual SoPointingAction* selectAndMoveEndPress(int ) { return NULL; } 00049 00050 virtual int cursorShape() const { return SoViewerProxy::DEFAULT_CURSOR; } 00051 00052 virtual bool isDefaultRenderer() const { return true; } 00053 00054 protected: 00055 00056 private: 00057 }; 00058 00060 00061 #endif // __SoCSODefaultRenderer_H