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 onSelectedSignal ()
 
void onClearSignal ()
 

Public Member Functions

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

Protected Attributes

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

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 files: