Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
SolutionExplorerWindow.h
Go to the documentation of this file.
1/*
2Copyright (c) 2018 DIVIDE-Studio
3Copyright (c) 2009 Ionut Cava
4
5This file is part of DIVIDE Framework.
6
7Permission is hereby granted, free of charge, to any person obtaining a copy
8of this software
9and associated documentation files (the "Software"), to deal in the Software
10without restriction,
11including without limitation the rights to use, copy, modify, merge, publish,
12distribute, sublicense,
13and/or sell copies of the Software, and to permit persons to whom the
14Software is furnished to do so,
15subject to the following conditions:
16
17The above copyright notice and this permission notice shall be included in
18all copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21IMPLIED,
22INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23PARTICULAR PURPOSE AND NONINFRINGEMENT.
24IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25DAMAGES OR OTHER LIABILITY,
26WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
27IN CONNECTION WITH THE SOFTWARE
28OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30*/
31
32#pragma once
33#ifndef DVD_EDITOR_SOLUTION_EXPLORER_H_
34#define DVD_EDITOR_SOLUTION_EXPLORER_H_
35
38
39namespace Divide {
40
41class Camera;
42class ProjectManager;
43class SceneGraphNode;
45
47 public:
49
50 void drawInternal() override;
51 protected:
54 void drawAddNodeDialog();
58
59 void printCameraNode(ProjectManager* projectManager, Camera* const camera) const;
60 void printSceneGraphNode(ProjectManager* projectManager, SceneGraphNode* sgn, I32 nodeIDX, bool open, bool secondaryView, bool modifierPressed);
61
62 void goToNode(const SceneGraphNode* sgn) const;
63 void saveNode(const SceneGraphNode* sgn) const;
64 void loadNode(SceneGraphNode* sgn) const;
65 [[nodiscard]] bool nodeHasChildrenInView(const SceneGraphNode* sgn) const;
66
67 void createNode();
68 private:
69 ImGuiTextFilter _filter;
78};
79} //namespace Divide
80
81#endif //DVD_EDITOR_SOLUTION_EXPLORER_H_
#define FWD_DECLARE_MANAGED_CLASS(T)
const Descriptor & descriptor() const noexcept
Definition: DockedWindow.h:69
PlatformContext & context() noexcept
void printCameraNode(ProjectManager *projectManager, Camera *const camera) const
void saveNode(const SceneGraphNode *sgn) const
void drawContextMenu(SceneGraphNode *sgn)
bool _reparentSelectRequested
Used when changing parents.
void loadNode(SceneGraphNode *sgn) const
void goToNode(const SceneGraphNode *sgn) const
bool nodeHasChildrenInView(const SceneGraphNode *sgn) const
void printSceneGraphNode(ProjectManager *projectManager, SceneGraphNode *sgn, I32 nodeIDX, bool open, bool secondaryView, bool modifierPressed)
SceneGraphNode * _parentNode
Used for adding child nodes.
Handle console commands that start with a forward slash.
Definition: AIProcessor.cpp:7
int32_t I32
Project & parent
Definition: DefaultScene.h:41
int64_t I64