#include <Iguana/GLBrowsers/interface/Ig3DVectorControl.h>
Public Slots | |
virtual void | setValue (float x, float y, float z) |
virtual void | setValue (const SbVec3f &vec) |
Set the control's current angles to newval in degrees. | |
Public Member Functions | |
SbVec3f | change (void) const |
Get the angles by which the control's value has changed since the last apply() or update(). | |
IgQtRangeControlFloat * | control (void) const |
Ig3DVectorControl (IgControlCategory *pane, QString label, Style style) | |
SbVec3f | value (void) const |
Get the control's current angle values in degrees. | |
float | xChange (void) const |
Get the angle by which the control's X value has changed since the last apply() or update(). | |
IgQtRangeControlFloat * | xControl (void) const |
float | xValue (void) const |
Get the control's current X angle value in degrees. | |
float | yChange (void) const |
Get the angle by which the control's Y value has changed since the last apply() or update(). | |
IgQtRangeControlFloat * | yControl (void) const |
float | yValue (void) const |
Get the control's current Y angle value in degrees. | |
float | zChange (void) const |
Get the angle by which the control's Z value has changed since the last apply() or update(). | |
IgQtRangeControlFloat * | zControl (void) const |
float | zValue (void) const |
Get the control's current Z angle value in degrees. |
Definition at line 16 of file Ig3DVectorControl.h.
Ig3DVectorControl::Ig3DVectorControl | ( | IgControlCategory * | pane, | |
QString | label, | |||
Style | style | |||
) |
Definition at line 17 of file Ig3DVectorControl.cc.
00020 : Ig3DVectorBaseControl (pane, label, style, 3, "") 00021 {}
SbVec3f Ig3DVectorControl::change | ( | void | ) | const |
Get the angles by which the control's value has changed since the last apply() or update().
Definition at line 134 of file Ig3DVectorControl.cc.
References xChange(), yChange(), and zChange().
Referenced by Ig3DRotationControl::applyValue().
IgQtRangeControlFloat * Ig3DVectorControl::control | ( | void | ) | const |
Definition at line 27 of file Ig3DVectorControl.cc.
Referenced by Ig3DRotationFControl::getSettingString(), Ig3DUnitVec3fControl::Ig3DUnitVec3fControl(), Ig3DRotationFControl::setSettingString(), Ig3DUnitVec3fControl::setValues(), xControl(), yControl(), and zControl().
00028 { return control (0); }
void Ig3DVectorControl::setValue | ( | float | x, | |
float | y, | |||
float | z | |||
) | [virtual, slot] |
Definition at line 95 of file Ig3DVectorControl.cc.
References setValue().
00096 { setValue (SbVec3f (newx, newy, newz)); }
void Ig3DVectorControl::setValue | ( | const SbVec3f & | newval | ) | [virtual, slot] |
Set the control's current angles to newval in degrees.
Note that currently the control does not actually track the rotation matrix' angles as such, only the changes made since last apply or update. Note also the that this may not change the value of the field this control is attached to.
Definition at line 91 of file Ig3DVectorControl.cc.
References Ig3DVectorBaseControl::setValues().
Referenced by Ig3DUnitVec3fControl::Ig3DUnitVec3fControl(), Ig3DRotationFControl::setAxis(), Ig3DUnitVec3fControl::setDirty(), setValue(), and Ig3DVec3fControl::updateValue().
00092 { setValues (newval.getValue (), 3); }
SbVec3f Ig3DVectorControl::value | ( | void | ) | const |
Get the control's current angle values in degrees.
Note that currently the control does not actually track the rotation matrix' angles as such, only the changes made since last apply or update. Note also the that this may not be the same as the value of the field this control is attached to.
Definition at line 80 of file Ig3DVectorControl.cc.
References xValue(), yValue(), and zValue().
Referenced by Ig3DVec3fControl::applyValue(), Ig3DRotationFControl::axis(), and Ig3DUnitVec3fControl::setDirty().
float Ig3DVectorControl::xChange | ( | void | ) | const |
Get the angle by which the control's X value has changed since the last apply() or update().
Definition at line 106 of file Ig3DVectorControl.cc.
References IgQtRangeValue< T >::valueChange(), and xControl().
Referenced by change(), and Ig3DUnitVec3fControl::setDirty().
00107 { return xControl ()->valueChange (); }
IgQtRangeControlFloat * Ig3DVectorControl::xControl | ( | void | ) | const |
Definition at line 31 of file Ig3DVectorControl.cc.
References control().
Referenced by Ig3DAnimsCategory::Ig3DAnimsCategory(), Ig3DCameraRotControl::Ig3DCameraRotControl(), Ig3DRotationControl::Ig3DRotationControl(), Ig3DUnitVec3fControl::Ig3DUnitVec3fControl(), Ig3DUnitVec3fControl::setDirty(), xChange(), and xValue().
00032 { return control (0); }
float Ig3DVectorControl::xValue | ( | void | ) | const |
Get the control's current X angle value in degrees.
Note that currently the control does not actually track the rotation matrix' angles as such, only the changes made since last apply or update.
Definition at line 51 of file Ig3DVectorControl.cc.
References IgQtRangeValue< T >::value(), and xControl().
Referenced by value().
float Ig3DVectorControl::yChange | ( | void | ) | const |
Get the angle by which the control's Y value has changed since the last apply() or update().
Definition at line 115 of file Ig3DVectorControl.cc.
References IgQtRangeValue< T >::valueChange(), and yControl().
Referenced by change(), and Ig3DUnitVec3fControl::setDirty().
00116 { return yControl ()->valueChange (); }
IgQtRangeControlFloat * Ig3DVectorControl::yControl | ( | void | ) | const |
Definition at line 35 of file Ig3DVectorControl.cc.
References control().
Referenced by Ig3DAnimsCategory::Ig3DAnimsCategory(), Ig3DCameraRotControl::Ig3DCameraRotControl(), Ig3DRotationControl::Ig3DRotationControl(), Ig3DUnitVec3fControl::Ig3DUnitVec3fControl(), Ig3DUnitVec3fControl::setDirty(), yChange(), and yValue().
00036 { return control (1); }
float Ig3DVectorControl::yValue | ( | void | ) | const |
Get the control's current Y angle value in degrees.
Note that currently the control does not actually track the rotation matrix' angles as such, only the changes made since last apply or update.
Definition at line 60 of file Ig3DVectorControl.cc.
References IgQtRangeValue< T >::value(), and yControl().
Referenced by value().
float Ig3DVectorControl::zChange | ( | void | ) | const |
Get the angle by which the control's Z value has changed since the last apply() or update().
Definition at line 124 of file Ig3DVectorControl.cc.
References IgQtRangeValue< T >::valueChange(), and zControl().
Referenced by change(), and Ig3DUnitVec3fControl::setDirty().
00125 { return zControl ()->valueChange (); }
IgQtRangeControlFloat * Ig3DVectorControl::zControl | ( | void | ) | const |
Definition at line 39 of file Ig3DVectorControl.cc.
References control().
Referenced by Ig3DAnimsCategory::Ig3DAnimsCategory(), Ig3DCameraRotControl::Ig3DCameraRotControl(), Ig3DRotationControl::Ig3DRotationControl(), Ig3DUnitVec3fControl::Ig3DUnitVec3fControl(), Ig3DUnitVec3fControl::setDirty(), zChange(), and zValue().
00040 { return control (2); }
float Ig3DVectorControl::zValue | ( | void | ) | const |
Get the control's current Z angle value in degrees.
Note that currently the control does not actually track the rotation matrix' angles as such, only the changes made since last apply or update.
Definition at line 69 of file Ig3DVectorControl.cc.
References IgQtRangeValue< T >::value(), and zControl().
Referenced by value().