RigsofRods
Soft-body Physics Simulation
TerrainEditor.h
Go to the documentation of this file.
1 /*
2  This source file is part of Rigs of Rods
3  Copyright 2005-2012 Pierre-Michel Ricordel
4  Copyright 2007-2012 Thomas Fischer
5  Copyright 2013-2020 Petr Ohlidal
6 
7  For more information, see http://www.rigsofrods.org/
8 
9  Rigs of Rods is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License version 3, as
11  published by the Free Software Foundation.
12 
13  Rigs of Rods is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #pragma once
23 
24 #include <string>
25 
26 namespace RoR {
27 
30 
37 {
38 public:
39  void UpdateInputEvents(float dt);
40  void WriteOutputFile();
41  void ClearSelection();
42 
43 private:
44  bool m_object_tracking = true;
45  int m_rotation_axis = 1;
46  std::string m_last_object_name;
47  int m_object_index = -1;
48 };
49 
51 
52 } // namespace RoR
RoR::TerrainEditor::UpdateInputEvents
void UpdateInputEvents(float dt)
Definition: TerrainEditor.cpp:39
RoR::TerrainEditor::m_object_tracking
bool m_object_tracking
Definition: TerrainEditor.h:44
RoR::TerrainEditor::ClearSelection
void ClearSelection()
Definition: TerrainEditor.cpp:320
RoR::TerrainEditor::m_rotation_axis
int m_rotation_axis
0=X, 1=Y, 2=Z
Definition: TerrainEditor.h:45
RoR::TerrainEditor::m_last_object_name
std::string m_last_object_name
Definition: TerrainEditor.h:46
RoR::TerrainEditor::WriteOutputFile
void WriteOutputFile()
Definition: TerrainEditor.cpp:252
RoR::TerrainEditor::m_object_index
int m_object_index
Definition: TerrainEditor.h:47
RoR
Definition: AppContext.h:36
RoR::TerrainEditor
Minimalist editor mode; orig.
Definition: TerrainEditor.h:36