Viewport manager class. This class is used to create, manage, and remove all viewports in the Editor.
More...
|
static Unigine::Ptr< ViewportWindow > | createViewportWindow (const char *name) |
| Creates a new viewport window with the specified name. More...
|
|
static bool | removeViewportWindow (const char *name) |
| Removes the viewport window with the specified name. More...
|
|
static void | getViewports (Unigine::Vector< Unigine::Ptr< ViewportWindow >> &viewports) |
| Collects all existing viewport windows and puts them to the specified output vector. More...
|
|
static Unigine::Ptr< ViewportWindow > | getViewportWindow (const char *name) |
| Returns the viewport window with the specified name if it exists; otherwise nullptr. More...
|
|
static Unigine::Ptr< ViewportWindow > | getLastHoveredViewportWindow () |
| Returns the last viewport window hovered by the mouse cursor. Can be used for implementation of Drag&Drop operations More...
|
|
static Unigine::Ptr< ViewportWindow > | getActiveViewportWindow () |
| Returns the viewport window that is currently active. More...
|
|
static void | setEnabledRectangleSelection (bool enable) |
| Sets a value indicating if rectangular selection for viewport windows is enabled. More...
|
|
static bool | isEnabledRectangleSelection () |
| Returns a value indicating if rectangular selection for viewport windows is enabled. More...
|
|
static void | forceWireframeWarming () |
| Renders an effect of wireframe warming, a temporary wireframe fading in and out for the current selection (such effect can be seen when selecting a node or a group of nodes in the Editor). More...
|
|
static void | placeNode (const Unigine::Ptr< Unigine::Node > &node) |
| Activates placement mode for the specified node. The node is to be placed at the location within the viewport where the left mouse button is clicked. If the Esc key is pressed before clicking within the viewport the current node placement operation will be cancelled. This behavior can be observed in the Editor, when the user creates a node via the Create menu. This function will automatically create all necessary Undo Actions (for adding nodes to the world and for selecting them). More...
|
|
static void | placeNodeList (const Unigine::Vector< Unigine::Ptr< Unigine::Node >> &nodes) |
| Activates placement mode for the specified nodes. The nodes are to be placed at the location within the viewport where the left mouse button is clicked. If the Esc key is pressed before clicking within the viewport the current node placement operation will be cancelled. This behavior can be observed in the Editor, when the user creates a node via the Create menu. This function will automatically create all necessary Undo Actions (for adding nodes to the world and for selecting them). More...
|
|
static bool | isNodeTypeSelectable (Unigine::Node::TYPE node_type) |
| Returns a value indicating if selection is enabled for the specified node type. More...
|
|
Viewport manager class. This class is used to create, manage, and remove all viewports in the Editor.