API Documentation
Loading...
Searching...
No Matches
OrientationEditor Class Reference

#include <OrientationEditor.h>

Inheritance diagram for OrientationEditor:
[legend]
Collaboration diagram for OrientationEditor:
[legend]

Public Types

enum  SizeMode {
  e_normal , e_small_horizontal , e_small_vertical , e_tiny_horizontal ,
  e_tiny_vertical
}
 

Public Slots

void updatePosition ()
 
void updateOrientation ()
 
void updateScale ()
 
void lockAspectRatio ()
 
void setSizeMode (SizeMode mode)
 

Signals

void positionUpdated ()
 
void scaleUpdated ()
 
void orientationUpdated ()
 
void updated ()
 
void positionEdited ()
 
void scaleEdited ()
 
void orientationEdited ()
 
void edited ()
 

Public Member Functions

 OrientationEditor (QWidget *parent=nullptr)
 
 ~OrientationEditor ()
 
Vector< 3, fltp08getUILocation () const
 
Vector< 3, Angle< fltp08 > > getUIRotation () const
 
Vector< 3, Angle< fltp08 > > getUIDialRotation () const
 
Vector< 3, fltp08getUIScale () const
 
void setOffsetTitle (const TranslatedString &title)
 
void setOffsetLabels (const TranslatedString &x, const TranslatedString &y, const TranslatedString &z)
 
void setScaleTitle (const TranslatedString &title)
 
void setRotationTitle (const TranslatedString &roll, const TranslatedString &pitch, const TranslatedString &yaw)
 
QCustomDialgetUIDial (uint01 orientation)
 
QCustomLineEditgetUILineEdit (uint01 orientation)
 
QBoxLayout * offsetLayout ()
 
Matrix< fltp08getMatrix ()
 
void setMatrix (const Matrix< fltp08 > &matrix)
 
void resizeEvent (QResizeEvent *event) override
 
void updateLabels ()
 
virtual QSize minimumSizeHint () const override
 
virtual QSize sizeHint () const override
 
void updateLayoutSize ()
 
void setAutoHideDials (bool auto_hide_dials)
 

Public Attributes

Resource< Vector< 3, bool > > show_position
 
Resource< Vector< 3, bool > > show_scale
 
Resource< Vector< 3, bool > > show_orientation
 
Resource< Vector< 3, fltp08 > > position
 
Resource< Vector< 3, Angle< fltp08 > > > orientation
 
Resource< Vector< 3, fltp08 > > scale
 
Resource< Vector< 3, fltp08 > > max_position
 
Resource< Vector< 3, Angle< fltp08 > > > max_orientation
 
Resource< Vector< 3, fltp08 > > max_scale
 
Resource< Vector< 3, fltp08 > > min_position
 
Resource< Vector< 3, Angle< fltp08 > > > min_orientation
 
Resource< Vector< 3, fltp08 > > min_scale
 
Resource< ConstPointer< Unit > > angle_unit
 
Resource< ConstPointer< Unit > > size_unit
 
Resource< ConstPointer< Unit > > position_unit
 

Protected Attributes

Vector< 3, fltp08m_aspect_ratio
 
SizeMode m_size_mode
 
bool m_auto_hide_dials
 
QTResourceListenerm_units_listener
 
Ui::OrientationEditorUI * ui
 

Member Enumeration Documentation

◆ SizeMode

enum SizeMode
Enumerator
e_normal 
e_small_horizontal 
e_small_vertical 
e_tiny_horizontal 
e_tiny_vertical 

Constructor & Destructor Documentation

◆ OrientationEditor()

OrientationEditor ( QWidget * parent = nullptr)
explicit

◆ ~OrientationEditor()

Member Function Documentation

◆ edited

void edited ( )
signal

◆ getMatrix()

Matrix< fltp08 > getMatrix ( )

◆ getUIDial()

QCustomDial * getUIDial ( uint01 orientation)

◆ getUIDialRotation()

Vector< 3, Angle< fltp08 > > getUIDialRotation ( ) const

◆ getUILineEdit()

QCustomLineEdit * getUILineEdit ( uint01 orientation)

◆ getUILocation()

Vector< 3, fltp08 > getUILocation ( ) const

◆ getUIRotation()

Vector< 3, Angle< fltp08 > > getUIRotation ( ) const

◆ getUIScale()

Vector< 3, fltp08 > getUIScale ( ) const

◆ lockAspectRatio

void lockAspectRatio ( )
slot

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
overridevirtual

◆ offsetLayout()

QBoxLayout * offsetLayout ( )

◆ orientationEdited

void orientationEdited ( )
signal

◆ orientationUpdated

void orientationUpdated ( )
signal

◆ positionEdited

void positionEdited ( )
signal

◆ positionUpdated

void positionUpdated ( )
signal

◆ resizeEvent()

void resizeEvent ( QResizeEvent * event)
override

◆ scaleEdited

void scaleEdited ( )
signal

◆ scaleUpdated

void scaleUpdated ( )
signal

◆ setAutoHideDials()

void setAutoHideDials ( bool auto_hide_dials)

◆ setMatrix()

void setMatrix ( const Matrix< fltp08 > & matrix)

◆ setOffsetLabels()

void setOffsetLabels ( const TranslatedString & x,
const TranslatedString & y,
const TranslatedString & z )

◆ setOffsetTitle()

void setOffsetTitle ( const TranslatedString & title)

◆ setRotationTitle()

void setRotationTitle ( const TranslatedString & roll,
const TranslatedString & pitch,
const TranslatedString & yaw )

◆ setScaleTitle()

void setScaleTitle ( const TranslatedString & title)

◆ setSizeMode

void setSizeMode ( SizeMode mode)
slot

◆ sizeHint()

QSize sizeHint ( ) const
overridevirtual

◆ updated

void updated ( )
signal

◆ updateLabels()

void updateLabels ( )

◆ updateLayoutSize()

void updateLayoutSize ( )

◆ updateOrientation

void updateOrientation ( )
slot

◆ updatePosition

void updatePosition ( )
slot

◆ updateScale

void updateScale ( )
slot

Member Data Documentation

◆ angle_unit

Resource<ConstPointer<Unit> > angle_unit

◆ m_aspect_ratio

Vector<3, fltp08> m_aspect_ratio
protected

◆ m_auto_hide_dials

bool m_auto_hide_dials
protected

◆ m_size_mode

SizeMode m_size_mode
protected

◆ m_units_listener

QTResourceListener* m_units_listener
protected

◆ max_orientation

Resource<Vector<3, Angle<fltp08> > > max_orientation

◆ max_position

Resource<Vector<3, fltp08> > max_position

◆ max_scale

Resource<Vector<3, fltp08> > max_scale

◆ min_orientation

Resource<Vector<3, Angle<fltp08> > > min_orientation

◆ min_position

Resource<Vector<3, fltp08> > min_position

◆ min_scale

Resource<Vector<3, fltp08> > min_scale

◆ orientation

Resource<Vector<3, Angle<fltp08> > > orientation

◆ position

Resource<Vector<3, fltp08> > position

◆ position_unit

Resource<ConstPointer<Unit> > position_unit

◆ scale

Resource<Vector<3, fltp08> > scale

◆ show_orientation

Resource<Vector<3, bool> > show_orientation

◆ show_position

Resource<Vector<3, bool> > show_position

◆ show_scale

Resource<Vector<3, bool> > show_scale

◆ size_unit

Resource<ConstPointer<Unit> > size_unit

◆ ui

Ui::OrientationEditorUI* ui
protected

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