Logic for placing Viewports or Camera Views into widgets.
More...
|
|
UUID | m_active_viewport = Constant<UUID>::Invalid |
| | The UUID of the currently active viewport.
|
|
ViewportLayout | m_current_layout |
| | The current viewport layout arrangement.
|
|
bool | m_is_dirty = false |
| | Whether the layout needs to be refreshed.
|
|
Dictionary< UUID, QPointer< DockWidget< CameraView > > > | m_view_docks |
| | Map of viewport UUIDs to their dock widgets.
|
Logic for placing Viewports or Camera Views into widgets.
Definition at line 17 of file ViewportManager.h.
◆ activeViewport()
| virtual UUID ViewportManager::activeViewport |
( |
| ) |
const |
|
inlinevirtual |
◆ addView()
| virtual bool ViewportManager::addView |
( |
QPointer< DockWidget< CameraView > > | view | ) |
|
|
pure virtual |
Adds the given view dock widget to the layout.
- Parameters
-
| [in] | view | The dock widget to add. |
- Returns
- True if the view was successfully added.
Implemented in CameraPane.
◆ createView()
Creates a new viewport dock widget for the given camera.
- Parameters
-
| [in] | camera | The camera to create a view for. |
| [in] | manager | The design object lookup providing scene data. |
- Returns
- The newly created dock widget containing the camera view.
◆ hasViewport()
| virtual bool ViewportManager::hasViewport |
( |
const UUID & | id | ) |
const |
|
inlinevirtual |
Checks whether a viewport with the given ID is managed.
- Parameters
-
- Returns
- True if the viewport exists.
Definition at line 87 of file ViewportManager.h.
References m_view_docks.
◆ layoutIndex()
| virtual uint04 ViewportManager::layoutIndex |
( |
const UUID & | id | ) |
const |
|
virtual |
Returns the layout index of the viewport with the given ID.
- Parameters
-
| [in] | id | The UUID of the viewport. |
- Returns
- The layout index.
◆ layoutViews()
Arranges viewports according to the specified layout theme.
- Parameters
-
| [in] | camera_theme | The layout arrangement to apply. |
| [in] | manager | The design object lookup providing scene data. |
| [in] | removed_views | Buffer populated with views removed during layout. |
Reimplemented in CameraPane.
◆ mainViewport()
| virtual CameraView * ViewportManager::mainViewport |
( |
| ) |
|
|
virtual |
Returns the main (primary) camera view.
- Returns
- The main CameraView, or nullptr if none exists.
◆ mainViewportDock()
Returns the dock widget containing the main viewport.
- Returns
- The main viewport dock widget, or nullptr if none exists.
◆ onGlobalLayoutUpdated()
| virtual void ViewportManager::onGlobalLayoutUpdated |
( |
Buffer< QPointer< DockWidget< CameraView > > > & | | ) |
|
|
inlinevirtual |
Called when the global viewport layout has been updated.
- Parameters
-
| [in] | removed_views | Buffer that may be populated with views removed during the update. |
Definition at line 42 of file ViewportManager.h.
◆ onViewsSwapped()
| virtual void ViewportManager::onViewsSwapped |
( |
DockWidget< CameraView > * | camera_a, |
|
|
DockWidget< CameraView > * | camera_b ) |
|
virtual |
Called when two viewport dock widgets have been swapped in the layout.
- Parameters
-
| [in] | camera_a | The first viewport dock widget. |
| [in] | camera_b | The second viewport dock widget. |
Reimplemented in CameraPane.
◆ removeView()
| virtual bool ViewportManager::removeView |
( |
QPointer< DockWidget< CameraView > > | view | ) |
|
|
pure virtual |
Removes the given view dock widget from the layout.
- Parameters
-
| [in] | view | The dock widget to remove. |
- Returns
- True if the view was successfully removed.
Implemented in CameraPane.
◆ removeViewport()
| virtual DockWidget< CameraView > * ViewportManager::removeViewport |
( |
const UUID & | id | ) |
|
|
virtual |
Removes the viewport with the given ID from management.
- Parameters
-
| [in] | id | The UUID of the viewport to remove. |
- Returns
- The removed dock widget, or nullptr if not found.
◆ viewport()
| virtual DockWidget< CameraView > * ViewportManager::viewport |
( |
const UUID & | id | ) |
const |
|
virtual |
Returns the viewport dock widget with the given ID.
- Parameters
-
| [in] | id | The UUID of the viewport. |
- Returns
- The dock widget, or nullptr if not found.
◆ views()
| virtual Buffer< QPointer< DockWidget< CameraView > > > ViewportManager::views |
( |
| ) |
const |
|
virtual |
Returns all managed viewport dock widgets.
- Returns
- A buffer of viewport dock widget pointers.
The documentation for this class was generated from the following file: