4 #include <editor/EditorGlobal.h> 6 #include <UniginePlayers.h> 7 #include <UnigineGui.h> 8 #include <UnigineViewport.h> 9 #include <UnigineVector.h> 10 #include <UnigineNode.h> 11 #include <UnigineObjects.h> 17 struct ViewportWindow;
46 static int getNumViewportWindows();
65 static Unigine::PlayerPtr getViewportWindowPlayer(
ViewportWindowId viewport_id);
69 static void setViewportWindowPlayer(
ViewportWindowId viewport_id,
const Unigine::PlayerPtr &player);
73 static Unigine::ViewportPtr getViewportWindowViewport(
ViewportWindowId viewport_id);
86 static Unigine::Math::ivec2 getViewportWindowMousePos(
ViewportWindowId viewport_id);
96 static Unigine::Math::ivec2 getViewportWindowSize(
ViewportWindowId viewport_id);
100 static void setEnabledRectangleSelection(
bool enable);
103 static bool isEnabledRectangleSelection();
108 static void focusOnNode(
ViewportWindowId viewport_id,
const Unigine::NodePtr &node);
113 const Unigine::Vector<Unigine::NodePtr> &nodes);
118 static void focusOnSurface(
ViewportWindowId viewport_id,
const Unigine::ObjectPtr &
object,
124 static void focusOnSurfaceList(
ViewportWindowId viewport_id,
const Unigine::ObjectPtr &
object,
125 const Unigine::Vector<int> &surfaces);
130 static void focusOnCenter(
ViewportWindowId viewport_id,
const Unigine::Math::Vec3 ¢er,
134 static void forceWireframeWarming();
138 static void placeNode(
const Unigine::NodePtr &node);
141 static void placeNodeList(
const Unigine::Vector<Unigine::NodePtr> &nodes);
ViewportWindow * ViewportWindowId
Definition: ViewportManager.h:18
Viewport manager class. This class is used to create, manage, and remove all viewports in the Editor.
Definition: ViewportManager.h:25