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

A popup Editor dialog for showing options related to the Orientation of a specific Model. More...

#include <ModelOrientationEditor.h>

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

Public Member Functions

 ModelOrientationEditor (QWidget *parent=nullptr)
 
void setIncludedObject (uint01 axis, const Buffer< UUID > &objects)
 
void setIncludedObjects (const Buffer< UUID > &objects)
 
void setManager (QTModelManager *manager)
 
void setTargetObject (const UUID &object)
 
void setTargetObject (uint01 axis, const UUID &object)
 
void updateFromModel ()
 
virtual ~ModelOrientationEditor ()
 
- Public Member Functions inherited from OrientationEditor
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 ()
 

Protected Slots

void modelUpdatedSlot (UUID id)
 

Protected Member Functions

UUID getUUID (uint01 axis) const
 
void makeRequest (uint01 axis)
 

Protected Attributes

Buffer< UUIDm_included_objects
 
QTModelManagerm_manager = nullptr
 
Vector< 3, UUIDm_target_objects = { Constant<UUID>::Invalid, Constant<UUID>::Invalid, Constant<UUID>::Invalid }
 
Vector< 3, Buffer< UUID > > m_unique_included_objects
 
Vector< 3, SnapLocationtarget_snaps = { SnapLocation::e_front_wo_pitch_yaw, SnapLocation::e_right_wo_yaw, SnapLocation::e_top_down_snap }
 
- Protected Attributes inherited from OrientationEditor
Vector< 3, fltp08m_aspect_ratio
 
bool m_auto_hide_dials
 
SizeMode m_size_mode
 
QTResourceListenerm_units_listener
 
Ui::OrientationEditorUI * ui
 

Additional Inherited Members

- Public Types inherited from OrientationEditor
enum  SizeMode {
  e_normal , e_small_horizontal , e_small_vertical , e_tiny_horizontal ,
  e_tiny_vertical
}
 
- Public Slots inherited from OrientationEditor
void lockAspectRatio ()
 
void setSizeMode (SizeMode mode)
 
void updateOrientation ()
 
void updatePosition ()
 
void updateScale ()
 
- Signals inherited from OrientationEditor
void edited ()
 
void orientationEdited ()
 
void orientationUpdated ()
 
void positionEdited ()
 
void positionUpdated ()
 
void scaleEdited ()
 
void scaleUpdated ()
 
void updated ()
 
- Public Attributes inherited from OrientationEditor
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
 

Detailed Description

A popup Editor dialog for showing options related to the Orientation of a specific Model.


Constructor & Destructor Documentation

◆ ModelOrientationEditor()

ModelOrientationEditor ( QWidget * parent = nullptr)
explicit

◆ ~ModelOrientationEditor()

virtual ~ModelOrientationEditor ( )
inlinevirtual

Member Function Documentation

◆ getUUID()

UUID getUUID ( uint01 axis) const
protected

◆ makeRequest()

void makeRequest ( uint01 axis)
protected

◆ modelUpdatedSlot

void modelUpdatedSlot ( UUID id)
protectedslot

◆ setIncludedObject()

void setIncludedObject ( uint01 axis,
const Buffer< UUID > & objects )

◆ setIncludedObjects()

void setIncludedObjects ( const Buffer< UUID > & objects)

◆ setManager()

void setManager ( QTModelManager * manager)

◆ setTargetObject() [1/2]

void setTargetObject ( const UUID & object)

◆ setTargetObject() [2/2]

void setTargetObject ( uint01 axis,
const UUID & object )

◆ updateFromModel()

void updateFromModel ( )

Member Data Documentation

◆ m_included_objects

Buffer<UUID> m_included_objects
protected

◆ m_manager

QTModelManager* m_manager = nullptr
protected

◆ m_target_objects

Vector<3, UUID> m_target_objects = { Constant<UUID>::Invalid, Constant<UUID>::Invalid, Constant<UUID>::Invalid }
protected

◆ m_unique_included_objects

Vector<3, Buffer<UUID> > m_unique_included_objects
protected

◆ target_snaps


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