Hymn to Beauty
C++ 3D Engine
GUI::SceneEditor Class Reference

Used to edit a scene. More...

#include <SceneEditor.hpp>

Public Member Functions

 SceneEditor ()
 Constructor. More...
 
void Show ()
 Show the editor. More...
 
void SetScene (const std::string &path, std::string *scene)
 Set the scene to edit. More...
 
bool IsVisible () const
 Get whether the window is visible. More...
 
void SetVisible (bool visible)
 Set whether the window should be visible. More...
 
void Save () const
 Save currently open scene to file. More...
 
Json::Value GetSaveFileJson (std::string *filename) const
 Gets a Json file representing the save file. More...
 

Public Attributes

bool entityPressed = false
 Did we press on an entity this frame. More...
 
EntityEditor entityEditor
 The Entity Editor. More...
 

Detailed Description

Used to edit a scene.

Constructor & Destructor Documentation

◆ SceneEditor()

SceneEditor::SceneEditor ( )

Constructor.

Member Function Documentation

◆ GetSaveFileJson()

Json::Value SceneEditor::GetSaveFileJson ( std::string *  filename) const

Gets a Json file representing the save file.

Parameters
filenameThis is where the filename will be stored.

◆ IsVisible()

bool SceneEditor::IsVisible ( ) const

Get whether the window is visible.

Returns
Whether the window is visible.

◆ Save()

void SceneEditor::Save ( ) const

Save currently open scene to file.

◆ SetScene()

void SceneEditor::SetScene ( const std::string &  path,
std::string *  scene 
)

Set the scene to edit.

Parameters
pathPath to the folder containing the scene.
sceneScene to edit.

◆ SetVisible()

void SceneEditor::SetVisible ( bool  visible)

Set whether the window should be visible.

Parameters
visibleWhether the window should be visible.

◆ Show()

void SceneEditor::Show ( )

Show the editor.

Member Data Documentation

◆ entityEditor

EntityEditor GUI::SceneEditor::entityEditor

The Entity Editor.

◆ entityPressed

bool GUI::SceneEditor::entityPressed = false

Did we press on an entity this frame.


The documentation for this class was generated from the following files: