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

#include <ModelOrientationEditor.h>

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

Public Member Functions

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

Protected Slots

void modelUpdatedSlot (UUID id)
 

Protected Member Functions

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

Protected Attributes

QTModelManagerm_manager = nullptr
 
Vector< 3, UUIDm_target_objects = { Constant<UUID>::NaN, Constant<UUID>::NaN, Constant<UUID>::NaN }
 
Vector< 3, SnapLocationtarget_snaps = { SnapLocation::e_front_wo_pitch_yaw, SnapLocation::e_right_wo_yaw, SnapLocation::e_top_down_snap }
 
Vector< 3, Buffer< UUID > > m_unique_included_objects
 
Buffer< UUIDm_included_objects
 
- Protected Attributes inherited from OrientationEditor
Vector< 3, fltp08m_aspect_ratio
 
SizeMode m_size_mode
 
bool m_auto_hide_dials
 
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 updatePosition ()
 
void updateOrientation ()
 
void updateScale ()
 
void lockAspectRatio ()
 
void setSizeMode (SizeMode mode)
 
- Signals inherited from OrientationEditor
void positionUpdated ()
 
void scaleUpdated ()
 
void orientationUpdated ()
 
void updated ()
 
void positionEdited ()
 
void scaleEdited ()
 
void orientationEdited ()
 
void edited ()
 
- Public Attributes inherited from OrientationEditor
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
 

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>::NaN, Constant<UUID>::NaN, Constant<UUID>::NaN }
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 files: