TazGraph Project
v0.1.0
Loading...
Searching...
No Matches
TazGraph
Src
EditorIMGUI
Components
GraphLeftPanel
GraphLeftPanel.h
1
#pragma once
2
3
#include "../../UIElement.h"
4
5
#include "../../../AssetManager/AssetManager.h"
6
7
struct
GraphLeftConfig
{
8
IScene
* scene;
9
glm::vec2 sceneMouseCoords;
10
std::vector<SelectedInfo> c_selectedEntities;
11
};
12
13
class
GraphLeftPanel
:
public
UIElement
14
{
15
private
:
16
17
enum class
LayoutState {
18
Idle,
19
ProcessingCircular,
20
ProcessingCluster
21
};
22
LayoutState _currentLayoutState = LayoutState::Idle;
23
24
bool
_clusterLayoutEnabled =
false
;
25
bool
_circularLayoutProcessing =
false
;
26
27
bool
_clusterLayout =
false
;
28
GraphLeftConfig
config;
29
30
int
last_activeLayout = 0;
31
int
activeLayout = 0;
32
public
:
33
void
setConfig(
const
GraphLeftConfig
& cfg) { config = cfg; }
34
35
void
update(
float
deltaTime)
override
;
36
37
void
OnImGuiRender()
override
;
38
void
ChooseLayoutPanel();
39
void
displayChildrenRecursive(EntityID entity,
int
depth);
40
};
GraphLeftPanel
Definition
GraphLeftPanel.h:14
IScene
Definition
IScene.h:25
UIElement
Definition
UIElement.h:16
GraphLeftConfig
Definition
GraphLeftPanel.h:7
Generated by
1.9.8