00001 #ifndef IGUANA_GL_BROWSERS_IG_3DVEC_2F_CONTROL_H 00002 # define IGUANA_GL_BROWSERS_IG_3DVEC_2F_CONTROL_H 00003 00004 //<<<<<< INCLUDES >>>>>> 00005 00006 # include "Iguana/GLBrowsers/interface/Ig3DVectorBaseControl.h" 00007 # include <Inventor/SbLinear.h> 00008 # include <Inventor/fields/SoSFVec2f.h> 00009 00010 //<<<<<< PUBLIC DEFINES >>>>>> 00011 //<<<<<< PUBLIC CONSTANTS >>>>>> 00012 //<<<<<< PUBLIC TYPES >>>>>> 00013 //<<<<<< PUBLIC VARIABLES >>>>>> 00014 //<<<<<< PUBLIC FUNCTIONS >>>>>> 00015 //<<<<<< CLASS DECLARATIONS >>>>>> 00016 00017 class IGUANA_GL_BROWSERS_API Ig3DVec2fControl : public Ig3DVectorBaseControl 00018 { 00019 Q_OBJECT 00020 public: 00021 Ig3DVec2fControl (IgControlCategory *pane, 00022 QString label, 00023 QString labels = "X:Y"); 00024 // implicit copy constructor 00025 // implicit assignment operator 00026 // implicit destructor 00027 00028 // Field and field value access 00029 SoSFVec2f * field (void) const; 00030 void setField (SoSFVec2f *field); 00031 SbVec2f fieldValue (void) const; 00032 00033 // Control value and change access 00034 float xValue (void) const; 00035 float yValue (void) const; 00036 SbVec2f value (void) const; 00037 00038 bool isChanged (void) const; 00039 float xChange (void) const; 00040 float yChange (void) const; 00041 SbVec2f change (void) const; 00042 00043 // Access to the x,y,z control 00044 IgQtRangeControlFloat * xControl (void) const; 00045 IgQtRangeControlFloat * yControl (void) const; 00046 IgQtRangeControlFloat * control (void) const; 00047 00048 using Ig3DVectorBaseControl::setValue; 00049 using Ig3DVectorBaseControl::value; 00050 using Ig3DVectorBaseControl::change; 00051 using Ig3DVectorBaseControl::control; 00052 public slots: 00053 virtual void setValue (const SbVec2f &vec); 00054 virtual void setValue (float x, float y); 00055 00056 protected: 00057 virtual void updateValue (void); 00058 virtual void applyValue (void); 00059 }; 00060 00061 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>> 00062 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>> 00063 00064 #endif // IGUANA_GL_BROWSERS_IG_3DVEC_2F_CONTROL_H