CMS 3D CMS Logo

Ig3DVectorControl Class Reference

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

Inheritance diagram for Ig3DVectorControl:

Ig3DVectorBaseControl Ig3DFieldControl IgControlBase IgControlItem Ig3DRotationControl Ig3DVec3fControl Ig3DCameraRotControl Ig3DCameraPosControl Ig3DUnitVec3fControl

List of all members.

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().
IgQtRangeControlFloatcontrol (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().
IgQtRangeControlFloatxControl (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().
IgQtRangeControlFloatyControl (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().
IgQtRangeControlFloatzControl (void) const
float zValue (void) const
 Get the control's current Z angle value in degrees.


Detailed Description

Definition at line 16 of file Ig3DVectorControl.h.


Constructor & Destructor Documentation

Ig3DVectorControl::Ig3DVectorControl ( IgControlCategory pane,
QString  label,
Style  style 
)

Definition at line 17 of file Ig3DVectorControl.cc.

00020     : Ig3DVectorBaseControl (pane, label, style, 3, "")
00021 {}


Member Function Documentation

SbVec3f Ig3DVectorControl::change ( void   )  const

Get the angles by which the control's value has changed since the last apply() or update().

See also:
xChange(), yChange(), zChange(), value(), fieldValue().

Definition at line 134 of file Ig3DVectorControl.cc.

References xChange(), yChange(), and zChange().

Referenced by Ig3DRotationControl::applyValue().

00135 { return SbVec3f (xChange (), yChange (), zChange ()); }

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.

See also:
value(), change(), fieldValue().

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.

See also:
xValue(), yValue(), zValue(), change(), fieldValue().

Definition at line 80 of file Ig3DVectorControl.cc.

References xValue(), yValue(), and zValue().

Referenced by Ig3DVec3fControl::applyValue(), Ig3DRotationFControl::axis(), and Ig3DUnitVec3fControl::setDirty().

00081 { return SbVec3f (xValue (), yValue (), zValue ()); }

float Ig3DVectorControl::xChange ( void   )  const

Get the angle by which the control's X value has changed since the last apply() or update().

See also:
yChange(), zChange(), change(), value(), fieldValue().

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.

See also:
yValue(), zValue(), value(), change(), fieldValue().

Definition at line 51 of file Ig3DVectorControl.cc.

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

Referenced by value().

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

float Ig3DVectorControl::yChange ( void   )  const

Get the angle by which the control's Y value has changed since the last apply() or update().

See also:
xChange(), zChange(), change(), value(), fieldValue().

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.

See also:
xValue(), zValue(), value(), change(), fieldValue().

Definition at line 60 of file Ig3DVectorControl.cc.

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

Referenced by value().

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

float Ig3DVectorControl::zChange ( void   )  const

Get the angle by which the control's Z value has changed since the last apply() or update().

See also:
xChange(), yChange(), change(), value(), fieldValue().

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.

See also:
xValue(), yValue(), value(), change(), fieldValue().

Definition at line 69 of file Ig3DVectorControl.cc.

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

Referenced by value().

00070 { return zControl ()->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