TazGraph Project v0.1.0
Loading...
Searching...
No Matches
GraphLeftPanel.h
1#pragma once
2
3#include "../../UIElement.h"
4
5#include "../../../AssetManager/AssetManager.h"
6
8 IScene* scene;
9 glm::vec2 sceneMouseCoords;
10 std::vector<SelectedInfo> c_selectedEntities;
11};
12
14{
15private:
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;
32public:
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};
Definition GraphLeftPanel.h:14
Definition IScene.h:25
Definition UIElement.h:16
Definition GraphLeftPanel.h:7