00001 #ifndef IGUANA_GL_BROWSERS_IG_3DFIELD_CONTROL_H
00002 # define IGUANA_GL_BROWSERS_IG_3DFIELD_CONTROL_H
00003
00004
00005
00006 # include "Iguana/GLBrowsers/interface/config.h"
00007 # include "Iguana/GLBrowsers/interface/IgControlBase.h"
00008
00009
00010
00011
00012
00013 class SoField;
00014 class SoFieldSensor;
00015 class SoSensor;
00016
00017
00018
00019
00020
00021 class IGUANA_GL_BROWSERS_API Ig3DFieldControl : public IgControlBase
00022 {
00023 Q_OBJECT
00024 public:
00025 Ig3DFieldControl (IgControlCategory *pane);
00026 ~Ig3DFieldControl (void);
00027
00028
00029
00030
00031 void clearField (void);
00032 virtual void attach (void);
00033 virtual void detach (void);
00034
00035 public slots:
00036 virtual void fieldSettingsChanged (void);
00037
00038 signals:
00039 void settingsChanged (SoField*);
00040 void settingsChanged (void);
00041
00042 protected:
00043 virtual bool hasValue (void) const;
00044
00045 void setField (SoField *field);
00046 SoField * field (void) const;
00047
00048 protected:
00049 static void fieldChanged (void *data, SoSensor *sensor);
00050
00051 SoField *m_field;
00052 SoFieldSensor *m_sensor;
00053 };
00054
00055
00056
00057
00058 #endif // IGUANA_GL_BROWSERS_IG_3DFIELD_CONTROL_H