CMS 3D CMS Logo

Ig3DVec2fControl Class Reference

#include <Iguana/GLBrowsers/interface/Ig3DVec2fControl.h>

Inheritance diagram for Ig3DVec2fControl:

Ig3DVectorBaseControl Ig3DFieldControl IgControlBase IgControlItem

List of all members.

Public Slots

virtual void setValue (float x, float y)
virtual void setValue (const SbVec2f &vec)

Public Member Functions

SbVec2f change (void) const
IgQtRangeControlFloatcontrol (void) const
SoSFVec2f * field (void) const
SbVec2f fieldValue (void) const
 Ig3DVec2fControl (IgControlCategory *pane, QString label, QString labels="X:Y")
bool isChanged (void) const
void setField (SoSFVec2f *field)
SbVec2f value (void) const
float xChange (void) const
IgQtRangeControlFloatxControl (void) const
float xValue (void) const
float yChange (void) const
IgQtRangeControlFloatyControl (void) const
float yValue (void) const

Protected Member Functions

virtual void applyValue (void)
virtual void updateValue (void)


Detailed Description

Definition at line 17 of file Ig3DVec2fControl.h.


Constructor & Destructor Documentation

Ig3DVec2fControl::Ig3DVec2fControl ( IgControlCategory pane,
QString  label,
QString  labels = "X:Y" 
)

Definition at line 17 of file Ig3DVec2fControl.cc.

00019                                                                    :Y" */)
00020     : Ig3DVectorBaseControl (pane, label, Vector, 2, labels)
00021 {}


Member Function Documentation

void Ig3DVec2fControl::applyValue ( void   )  [protected, virtual]

Reimplemented from Ig3DVectorBaseControl.

Definition at line 97 of file Ig3DVec2fControl.cc.

References field(), and value().

00098 { field ()->setValue (value ()); }

SbVec2f Ig3DVec2fControl::change ( void   )  const

Definition at line 72 of file Ig3DVec2fControl.cc.

References xChange(), and yChange().

00073 { return SbVec2f (xChange (), yChange ()); }

IgQtRangeControlFloat * Ig3DVec2fControl::control ( void   )  const

Definition at line 27 of file Ig3DVec2fControl.cc.

Referenced by xControl(), and yControl().

00028 { return control (0); }

SoSFVec2f * Ig3DVec2fControl::field ( void   )  const

Reimplemented from Ig3DFieldControl.

Definition at line 78 of file Ig3DVec2fControl.cc.

References Ig3DFieldControl::field().

Referenced by applyValue(), and fieldValue().

00079 { return static_cast<SoSFVec2f *> (Ig3DFieldControl::field ()); }

SbVec2f Ig3DVec2fControl::fieldValue ( void   )  const

Definition at line 86 of file Ig3DVec2fControl.cc.

References ASSERT, and field().

Referenced by updateValue().

00087 { ASSERT (field ()); return field ()->getValue (); }

bool Ig3DVec2fControl::isChanged ( void   )  const

Reimplemented from Ig3DVectorBaseControl.

void Ig3DVec2fControl::setField ( SoSFVec2f *  field  ) 

Definition at line 82 of file Ig3DVec2fControl.cc.

References Ig3DFieldControl::setField().

void Ig3DVec2fControl::setValue ( float  x,
float  y 
) [virtual, slot]

Definition at line 58 of file Ig3DVec2fControl.cc.

References setValue().

00059 { setValue (SbVec2f (newx, newy)); }

void Ig3DVec2fControl::setValue ( const SbVec2f &  vec  )  [virtual, slot]

Definition at line 54 of file Ig3DVec2fControl.cc.

References Ig3DVectorBaseControl::setValues().

Referenced by setValue(), and updateValue().

00055 { setValues (newval.getValue (), 2); }

void Ig3DVec2fControl::updateValue ( void   )  [protected, virtual]

Reimplemented from Ig3DVectorBaseControl.

Definition at line 93 of file Ig3DVec2fControl.cc.

References fieldValue(), and setValue().

00094 { setValue (fieldValue ()); }

SbVec2f Ig3DVec2fControl::value ( void   )  const

Definition at line 50 of file Ig3DVec2fControl.cc.

References xValue(), and yValue().

Referenced by applyValue().

00051 { return SbVec2f (xValue (), yValue ()); }

float Ig3DVec2fControl::xChange ( void   )  const

Definition at line 64 of file Ig3DVec2fControl.cc.

References IgQtRangeValue< T >::valueChange(), and xControl().

Referenced by change().

00065 { return xControl ()->valueChange (); }

IgQtRangeControlFloat * Ig3DVec2fControl::xControl ( void   )  const

Definition at line 31 of file Ig3DVec2fControl.cc.

References control().

Referenced by xChange(), and xValue().

00032 { return control (0); }

float Ig3DVec2fControl::xValue ( void   )  const

Definition at line 42 of file Ig3DVec2fControl.cc.

References IgQtRangeValue< T >::value(), and xControl().

Referenced by value().

00043 { return xControl ()->value (); }

float Ig3DVec2fControl::yChange ( void   )  const

Definition at line 68 of file Ig3DVec2fControl.cc.

References IgQtRangeValue< T >::valueChange(), and yControl().

Referenced by change().

00069 { return yControl ()->valueChange (); }

IgQtRangeControlFloat * Ig3DVec2fControl::yControl ( void   )  const

Definition at line 35 of file Ig3DVec2fControl.cc.

References control().

Referenced by yChange(), and yValue().

00036 { return control (1); }

float Ig3DVec2fControl::yValue ( void   )  const

Definition at line 46 of file Ig3DVec2fControl.cc.

References IgQtRangeValue< T >::value(), and yControl().

Referenced by value().

00047 { return yControl ()->value (); }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:00 2009 for CMSSW by  doxygen 1.5.4