NDEVR
API Documentation
CameraToolbar

Typically shown under a virtual camera view, allows the user to input various settings for a camera or viewport. More...

Public Member Functions

 CameraToolbar (QWidget *parent=Q_NULLPTR)
 Constructs a CameraToolbar.
 ~CameraToolbar ()
 Destructor.
void addWidget (const QPointer< QWidget > &widget)
 Adds a widget to the right side of the toolbar.
void addWidgetLeft (const QPointer< QWidget > &widget)
 Adds a widget to the left side of the toolbar.
void layerSelected ()
 Emitted when a layer is selected in the toolbar.
void linkSelected (bool selected)
 Emitted when the link selection state changes.
void onColorComboChanged ()
 Slot invoked when the color channel combo selection changes.
void removeWidget (const QPointer< QWidget > &widget)
 Removes a widget from the toolbar.
void resizeEvent (QResizeEvent *resize_event) override
 Handles resize events to adjust toolbar layout.
void setCamera (const DynamicPointer< Camera > &camera)
 Sets the camera this toolbar controls.
void setIconSizeMultiplier (fltp04 size)
 Sets a multiplier for the toolbar icon sizes.
void setManager (QTModelManager *manager)
 Sets the model manager for this toolbar.
void setSwapButton (bool show, const StringView &swap_button)
 Shows or hides the swap button with the given icon.
void setTouchTheme (bool touch_theme)
 Enables or disables touch-optimized theme for the toolbar.
void swapRequestSignal ()
 Emitted when the user requests a camera swap.
void updateSelection (const SelectionInfo &info)
 Slot invoked when the viewport selection changes.

Detailed Description

Typically shown under a virtual camera view, allows the user to input various settings for a camera or viewport.


Definition at line 57 of file CameraToolbar.h.

Constructor & Destructor Documentation

◆ CameraToolbar()

CameraToolbar::CameraToolbar ( QWidget * parent = Q_NULLPTR)

Constructs a CameraToolbar.

Parameters
[in]parentThe optional parent widget.

Member Function Documentation

◆ addWidget()

void CameraToolbar::addWidget ( const QPointer< QWidget > & widget)

Adds a widget to the right side of the toolbar.

Parameters
[in]widgetThe widget to add.

◆ addWidgetLeft()

void CameraToolbar::addWidgetLeft ( const QPointer< QWidget > & widget)

Adds a widget to the left side of the toolbar.

Parameters
[in]widgetThe widget to add.

◆ linkSelected()

void CameraToolbar::linkSelected ( bool selected)

Emitted when the link selection state changes.

Parameters
[in]selectedWhether the link is now selected.

◆ removeWidget()

void CameraToolbar::removeWidget ( const QPointer< QWidget > & widget)

Removes a widget from the toolbar.

Parameters
[in]widgetThe widget to remove.

◆ resizeEvent()

void CameraToolbar::resizeEvent ( QResizeEvent * resize_event)
override

Handles resize events to adjust toolbar layout.

Parameters
[in]resize_eventThe resize event.

◆ setCamera()

void CameraToolbar::setCamera ( const DynamicPointer< Camera > & camera)

Sets the camera this toolbar controls.

Parameters
[in]cameraThe camera to bind.

◆ setIconSizeMultiplier()

void CameraToolbar::setIconSizeMultiplier ( fltp04 size)

Sets a multiplier for the toolbar icon sizes.

Parameters
[in]sizeThe icon size multiplier.

◆ setManager()

void CameraToolbar::setManager ( QTModelManager * manager)

Sets the model manager for this toolbar.

Parameters
[in]managerThe model manager providing data context.

◆ setSwapButton()

void CameraToolbar::setSwapButton ( bool show,
const StringView & swap_button )

Shows or hides the swap button with the given icon.

Parameters
[in]showWhether to show the swap button.
[in]swap_buttonThe icon name for the swap button.

◆ setTouchTheme()

void CameraToolbar::setTouchTheme ( bool touch_theme)

Enables or disables touch-optimized theme for the toolbar.

Parameters
[in]touch_themeWhether to use touch-friendly controls.

◆ updateSelection()

void CameraToolbar::updateSelection ( const SelectionInfo & info)

Slot invoked when the viewport selection changes.

Parameters
[in]infoThe updated selection information.

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