Defines a list of viewports that will be rendered onto a canvas.
More...
#include <iviewport.h>
Inherits mi::base::Interface_declare< 0xbd7cbc5a, ... >.
Defines a list of viewports that will be rendered onto a canvas.
This list is passed to the multi-view version of IIndex_rendering::render()
as well as IIndex_scene_query::pick()
. The order of the viewports in the list defines the rendering order.
For testing and debugging the multi-view support, extra advisory log output can be enabled.
◆ append()
Appends a viewport to the end of the list.
This class takes ownership of the viewport.
- Parameters
-
[in] | viewport | Viewport to append, this class takes ownership. |
◆ clear()
virtual void nv::index::IViewport_list::clear |
( |
| ) |
|
|
pure virtual |
Removes all viewports from the list.
◆ get()
Returns the viewport at the given position in the list.
- Parameters
-
[in] | index | Position in the list. |
- Returns
- Selected viewport, or 0 when
index
is invalid
◆ get_advisory_enabled()
virtual bool nv::index::IViewport_list::get_advisory_enabled |
( |
| ) |
const |
|
pure virtual |
Returns whether if the advisory output is enabled.
- Returns
true
when advisory is enabled
◆ insert()
Inserts a viewport into the list at the given position.
This class takes ownership of the viewport.
- Parameters
-
[in] | index | Position in the list. |
[in] | viewport | Viewport to insert, this class takes ownership. |
- Returns
- true on success, false when
index
is invalid.
◆ remove()
virtual bool nv::index::IViewport_list::remove |
( |
mi::Size |
index | ) |
|
|
pure virtual |
Removes the viewport at the given position from the list.
- Parameters
-
[in] | index | Position in the list. |
- Returns
- true on success, or false when
index
is invalid.
◆ set_advisory_enabled()
virtual void nv::index::IViewport_list::set_advisory_enabled |
( |
bool |
enable | ) |
|
|
pure virtual |
Enables or disables the advisory output.
When the advisory is enabled, extra debug messages related to multi-view support will be printed to the log.
The advisory output is disabled by default.
- Parameters
-
[in] | enable | Advisory output state |
◆ size()
virtual mi::Size nv::index::IViewport_list::size |
( |
| ) |
const |
|
pure virtual |
Returns the number of viewports contained in the list.
- Returns
- Number of viewports
The documentation for this class was generated from the following file: