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

A dialog where the user can set a 3D orientation of an object. More...

#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 lockAspectRatio ()
 
void setSizeMode (SizeMode mode)
 
void updateOrientation ()
 
void updatePosition ()
 
void updateScale ()
 

Signals

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

Public Member Functions

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

Public Attributes

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

Protected Attributes

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

Detailed Description

A dialog where the user can set a 3D orientation of an object.


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()

virtual 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()

virtual 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 file: