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

#include <SelectionWidget.h>

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

Public Types

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

Public Slots

void onSelectedSlot (Buffer< UUID > id, bool selected)
 

Signals

void onClearSignal ()
 
void onSelectedSignal ()
 

Public Member Functions

void addFactory (SelectionButtonFactory *factory)
 
bool canShow (UUID id) const
 
void clear ()
 
void createGroup ()
 
bool event (QEvent *ev) override
 
bool isShowing (UUID id) const
 
void onAddedSlot (UUID id)
 
void onTargetUpdated (UUID id) override
 
void onTargetUpdatedSlot (UUID id)
 
virtual bool processKeyEvent (const String &id, const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) override
 
void resetKeyControllerToDefaults () override
 
void resizeEvent (QResizeEvent *event) override
 
 SelectionWidget (QTModelManager *manager, const String &selection_type, QWidget *parent=nullptr)
 
void setSelectionType (const String &type)
 
void setSizeMode (SizeMode mode)
 
void updateControls ()
 
void updateSelected ()
 
 ~SelectionWidget ()
 
- Public Member Functions inherited from DesignObjectWidgetInterface
virtual void addTarget (const DynamicPointer< QTDesignObject > &object)
 
virtual Bounds< 3, fltp08bounds () const
 
void clearTargets ()
 
 DesignObjectWidgetInterface ()
 
QTModelManagermanager () const
 
Buffer< Modelmodels () const
 
virtual void removeTarget (const DynamicPointer< QTDesignObject > &object)
 
void setTarget (const DynamicPointer< QTDesignObject > &object)
 
void setTargetID (const UUID &object)
 
void setTargetIDs (const Buffer< UUID > &objects)
 
void setTargets (const Buffer< DynamicPointer< QTDesignObject > > &objects)
 
Buffer< UUIDtargetIDs () const
 
virtual ~DesignObjectWidgetInterface ()
 
- Public Member Functions inherited from BasicKeyController
virtual void addKeyOption (const KeyOption &option)
 
 BasicKeyController (const TranslatedString &key_controller_title)
 
const Buffer< KeyOption > & currentKeyMaps () const
 
virtual void getINI (INIFactory &factory) override
 
const TranslatedStringkeyControllerTitle () const
 
bool processKeyEvent (const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) final override
 
virtual void setKeyOption (const KeyOption &option)
 
- Public Member Functions inherited from KeyControllerBase
- Public Member Functions inherited from INIInterface
virtual void finishReadingINI (INIFactory &)
 
 INIInterface (const File &default_ini)
 
virtual void prepareForINI (INIFactory &)
 
virtual bool readINIOptions ()
 
virtual bool readINIOptions (File &ini_file)
 
virtual bool saveINIOptions (bool multithead=false)
 
virtual bool saveINIOptions (File &ini_file, bool multithead=false)
 
void setDefaultINIFile (const File &file)
 
virtual void writeToLog (const String &title, ProgressInfo *log, uint01 log_level=2U)
 
virtual void writeToLog (ProgressInfo *log, uint01 log_level=2U)
 
virtual ~INIInterface ()
 

Protected Attributes

RibbonSubGroupm_basic_commands
 
UUID m_capture_uuid_pitch
 
UUID m_capture_uuid_roll
 
UUID m_capture_uuid_yaw
 
UUID m_command_id
 
Buttonm_delete_button = nullptr
 
DesignWidgetm_design_widget = nullptr
 
Buttonm_export_button = nullptr
 
Buttonm_fill_holes_button = nullptr
 
Buttonm_filter_button = nullptr
 
FilteringWidgetm_filtering_widget = nullptr
 
Buttonm_flip_normal_button = nullptr
 
Buttonm_geo_reference_button = nullptr
 
Buttonm_geometry_button = nullptr
 
GridButton * m_grid_button_container = nullptr
 
Buttonm_gridlines_button = nullptr
 
Buttonm_group_explode_button = nullptr
 
QTimer * m_hide_timer
 
Time m_last_modified_time
 
QBoxLayout * m_layout
 
QTModelManagerm_manager = nullptr
 
OrientationEditorm_orientation_editor = nullptr
 
Buttonm_register_button = nullptr
 
Dictionary< UUID, SelectionButtonFactory * > m_selection_button_factories
 
Dictionary< UUID, Buffer< Button * > > m_selection_factory_buttons
 
String m_selection_type
 
SizeMode m_size_mode
 
Buttonm_smooth_button = nullptr
 
SmoothDialogm_smooth_dialog = nullptr
 
SmoothButton * m_smooth_logic = nullptr
 
Buttonm_surface_button = nullptr
 
Buttonm_two_sided_button = nullptr
 
QTimer * m_update_timer
 
DesignObjectVisibleButtonm_visible_button = nullptr
 
Buttonm_wireframe_button = nullptr
 
- Protected Attributes inherited from DesignObjectWidgetInterface
DesignObjectInterfacem_interface
 
- Protected Attributes inherited from BasicKeyController
TranslatedString m_key_controller_title
 
Buffer< KeyOptionm_key_options
 
bool m_save_ini_on_change_key_option_change = false
 
- Protected Attributes inherited from INIInterface
File m_default_ini
 

Additional Inherited Members

- Protected Member Functions inherited from DesignObjectWidgetInterface
const Dictionary< UUID, DynamicPointer< QTDesignObject > > & targets () const
 

Member Enumeration Documentation

◆ SizeMode

enum SizeMode
Enumerator
e_normal 
e_small_horizontal 
e_small_vertical 
e_tiny_horizontal 
e_tiny_vertical 

Constructor & Destructor Documentation

◆ SelectionWidget()

SelectionWidget ( QTModelManager * manager,
const String & selection_type,
QWidget * parent = nullptr )

◆ ~SelectionWidget()

~SelectionWidget ( )
inline

Member Function Documentation

◆ addFactory()

void addFactory ( SelectionButtonFactory * factory)

◆ canShow()

bool canShow ( UUID id) const

◆ clear()

void clear ( )

◆ createGroup()

void createGroup ( )

◆ event()

bool event ( QEvent * ev)
override

◆ isShowing()

bool isShowing ( UUID id) const

◆ onAddedSlot()

void onAddedSlot ( UUID id)

◆ onClearSignal

void onClearSignal ( )
signal

◆ onSelectedSignal

void onSelectedSignal ( )
signal

◆ onSelectedSlot

void onSelectedSlot ( Buffer< UUID > id,
bool selected )
slot

◆ onTargetUpdated()

void onTargetUpdated ( UUID id)
overridevirtual

Reimplemented from DesignObjectWidgetInterface.

◆ onTargetUpdatedSlot()

void onTargetUpdatedSlot ( UUID id)

◆ processKeyEvent()

virtual bool processKeyEvent ( const String & id,
const KeyEvent & key_event,
DesignObjectLookup * lookup,
Camera * camera )
overridevirtual

Implements BasicKeyController.

◆ resetKeyControllerToDefaults()

void resetKeyControllerToDefaults ( )
overridevirtual

Implements BasicKeyController.

◆ resizeEvent()

void resizeEvent ( QResizeEvent * event)
override

◆ setSelectionType()

void setSelectionType ( const String & type)

◆ setSizeMode()

void setSizeMode ( SizeMode mode)

◆ updateControls()

void updateControls ( )

◆ updateSelected()

void updateSelected ( )

Member Data Documentation

◆ m_basic_commands

RibbonSubGroup* m_basic_commands
protected

◆ m_capture_uuid_pitch

UUID m_capture_uuid_pitch
protected

◆ m_capture_uuid_roll

UUID m_capture_uuid_roll
protected

◆ m_capture_uuid_yaw

UUID m_capture_uuid_yaw
protected

◆ m_command_id

UUID m_command_id
protected

◆ m_delete_button

Button* m_delete_button = nullptr
protected

◆ m_design_widget

DesignWidget* m_design_widget = nullptr
protected

◆ m_export_button

Button* m_export_button = nullptr
protected

◆ m_fill_holes_button

Button* m_fill_holes_button = nullptr
protected

◆ m_filter_button

Button* m_filter_button = nullptr
protected

◆ m_filtering_widget

FilteringWidget* m_filtering_widget = nullptr
protected

◆ m_flip_normal_button

Button* m_flip_normal_button = nullptr
protected

◆ m_geo_reference_button

Button* m_geo_reference_button = nullptr
protected

◆ m_geometry_button

Button* m_geometry_button = nullptr
protected

◆ m_grid_button_container

GridButton* m_grid_button_container = nullptr
protected

◆ m_gridlines_button

Button* m_gridlines_button = nullptr
protected

◆ m_group_explode_button

Button* m_group_explode_button = nullptr
protected

◆ m_hide_timer

QTimer* m_hide_timer
protected

◆ m_last_modified_time

Time m_last_modified_time
protected

◆ m_layout

QBoxLayout* m_layout
protected

◆ m_manager

QTModelManager* m_manager = nullptr
protected

◆ m_orientation_editor

OrientationEditor* m_orientation_editor = nullptr
protected

◆ m_register_button

Button* m_register_button = nullptr
protected

◆ m_selection_button_factories

Dictionary<UUID, SelectionButtonFactory*> m_selection_button_factories
protected

◆ m_selection_factory_buttons

Dictionary<UUID, Buffer<Button*> > m_selection_factory_buttons
protected

◆ m_selection_type

String m_selection_type
protected

◆ m_size_mode

SizeMode m_size_mode
protected

◆ m_smooth_button

Button* m_smooth_button = nullptr
protected

◆ m_smooth_dialog

SmoothDialog* m_smooth_dialog = nullptr
protected

◆ m_smooth_logic

SmoothButton* m_smooth_logic = nullptr
protected

◆ m_surface_button

Button* m_surface_button = nullptr
protected

◆ m_two_sided_button

Button* m_two_sided_button = nullptr
protected

◆ m_update_timer

QTimer* m_update_timer
protected

◆ m_visible_button

DesignObjectVisibleButton* m_visible_button = nullptr
protected

◆ m_wireframe_button

Button* m_wireframe_button = nullptr
protected

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