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