Remoto - VFS: eulerField Class Reference
Remoto - VFS

The eulerField class adds 3-double numberField objects to a groupField for representing Euler angles in radians or degrees. More...

#include <eulerField.h>

Inheritance diagram for eulerField:
groupField VFS_form_field

Public Member Functions

 eulerField (double phi=0.0, double theta=0.0, double psi=0.0, QString label="", QString tip="", QJsonObject ranges=QJsonObject(), bool degrees=false)
 The eulerField constructor. More...
 
- Public Member Functions inherited from groupField
 groupField (QJsonObject v, QString label="", QString tip="")
 Use this constructor when fields have already been constructed. More...
 
 groupField (QString label="", QString tip="")
 Use this constructor when you plan to add fields later. More...
 
void addField (QString name, VFS_form_field value, int index=-1)
 Add a VFS_form_field to a group at an index. More...
 
void setEqual (bool e)
 Group fields can force children to have equal size. More...
 
- Public Member Functions inherited from VFS_form_field
 VFS_form_field (QJsonValue val, QString type, QString label="", QString tip="")
 
 VFS_form_field (QString type)
 
void clearOption (QString o)
 Clear/remove a widget option. More...
 
int getIndex ()
 Get the field index. More...
 
QString getLabel ()
 Return the label. More...
 
void setAllowEmpty (bool e)
 Validate this field against empty-ness. More...
 
void setEnabled (bool e)
 Enable or disable this field. More...
 
void setHidden (bool e)
 Keep the field, but hide it when rendering. More...
 
void setHideLabel (bool l)
 Hide the label for this field. More...
 
void setIndex (int i)
 Set the field index for this widget. More...
 
void setLabel (QString l, bool replace=true)
 Set the label. More...
 
void setOption (QString o, QJsonValue v)
 Set a widget option. More...
 
void setSpellcheck (bool s)
 Enable or disable spellchecking on this text field. More...
 
void setTip (QString t)
 Set the tooltip. More...
 
void setValue (QJsonValue val)
 Set the value. More...
 

Additional Inherited Members

- Public Attributes inherited from groupField
QJsonObject _children
 The group's children. More...
 
int _index
 Autoindex value for added fields. More...
 
- Protected Attributes inherited from VFS_form_field
QJsonObject options
 Options for any widget type... this is an arbitrary list. More...
 

Detailed Description

The eulerField class adds 3-double numberField objects to a groupField for representing Euler angles in radians or degrees.

Because this is a subclass of groupField, it inherits some functionality.

See also
groupField
vector3Field

Definition at line 8 of file eulerField.h.

Constructor & Destructor Documentation

◆ eulerField()

eulerField::eulerField ( double  phi = 0.0,
double  theta = 0.0,
double  psi = 0.0,
QString  label = "",
QString  tip = "",
QJsonObject  ranges = QJsonObject(),
bool  degrees = false 
)
explicit

The eulerField constructor.

Parameters
phiInitial φ value
thetaInitial θ value
psiInitial ψ value
labelThe label
tipThe tooltip
rangesAn object containing [min,max,step] for each of [φ,θ,ψ], name [phi,theta,psi]. Missing values will use defaults.
degreesBoolean for whether to use default ranges in degrees or radians.

Defaults:

  • Step: 5π/180 or 5º depending on mode
  • Minimum: -π or -180º depending on mode
  • Maximum: π or 180º depending on mode

Definition at line 37 of file eulerField.cpp.


The documentation for this class was generated from the following files: