#include <EditingMode.h>
The abstract base class to substantiate different editing modes.
| cyber::editor::modes::EditingMode::EditingMode | ( | ModeKey | key | ) |
Explicit constructor.
| cyber::editor::modes::EditingMode::~EditingMode | ( | void | ) | [virtual] |
Destructor.
| virtual bool cyber::editor::modes::EditingMode::_activate | ( | ) | [protected, pure virtual] |
Activates this editing mode.
Implemented in cyber::editor::modes::AmbientLights, cyber::editor::modes::FixedBlocks, cyber::editor::modes::FreeLook, and cyber::editor::modes::PolyEditingMode.
| virtual bool cyber::editor::modes::EditingMode::_deactivate | ( | ) | [protected, pure virtual] |
Deactivates this editing mode.
Implemented in cyber::editor::modes::AmbientLights, cyber::editor::modes::FixedBlocks, cyber::editor::modes::FreeLook, and cyber::editor::modes::PolyEditingMode.
| virtual bool cyber::editor::modes::EditingMode::_perform | ( | float | time | ) | [protected, pure virtual] |
Performs editing actions.
Implemented in cyber::editor::modes::AmbientLights, cyber::editor::modes::FixedBlocks, cyber::editor::modes::FreeLook, and cyber::editor::modes::PolyEditingMode.
| virtual bool cyber::editor::modes::EditingMode::_render | ( | float | time | ) | [protected, pure virtual] |
Draws mode specific editing tools.
Implemented in cyber::editor::modes::AmbientLights, cyber::editor::modes::FixedBlocks, cyber::editor::modes::FreeLook, and cyber::editor::modes::PolyEditingMode.
| bool cyber::editor::modes::EditingMode::activate | ( | renderer::ConfigRepository * | cfg, | |
| commands::CommandProcessor * | cmds, | |||
| world::WorldDesc * | world_desc, | |||
| Selection * | selection, | |||
| fl7::Shell * | shell | |||
| ) |
Activates this editing mode.
| bool cyber::editor::modes::EditingMode::deactivate | ( | ) |
Deactivates this editing mode.
| renderer::ConfigRepository* cyber::editor::modes::EditingMode::get_cfg | ( | ) | const [inline] |
Returns the config structure.
| commands::CommandProcessor* cyber::editor::modes::EditingMode::get_cmds | ( | ) | const [inline] |
Returns the editing command processor.
| ModeKey cyber::editor::modes::EditingMode::get_mode_key | ( | ) | const [inline] |
Returns the editing mode key.
| world::ResourceManager* cyber::editor::modes::EditingMode::get_rm | ( | ) | const [inline] |
Returns the resource manager.
| Selection* cyber::editor::modes::EditingMode::get_selection | ( | ) | const [inline] |
Returns the currently selected object descriptions.
| fl7::Shell* cyber::editor::modes::EditingMode::get_shell | ( | ) | const [inline] |
Returns the shell for user interaction.
| world::WorldDesc* cyber::editor::modes::EditingMode::get_world_desc | ( | ) | const [inline] |
Returns the world description to edit.
| bool cyber::editor::modes::EditingMode::is_active | ( | ) | const [inline] |
Returns the flag specifying whether this editing mode is currently active.
| ml7::Vector2 cyber::editor::modes::EditingMode::mouse2world | ( | ) | const [protected] |
Transforms the current mouse position into 2d-world-space.
| ml7::Vector3 cyber::editor::modes::EditingMode::mouse3world | ( | ) | const [protected] |
Transforms the current mouse position into 3d-world-space.
| bool cyber::editor::modes::EditingMode::perform | ( | float | time | ) |
Performs editing actions.
| bool cyber::editor::modes::EditingMode::render | ( | float | time | ) |
Draws mode specific editing tools.
| ml7::Vector2 cyber::editor::modes::EditingMode::snap2grid | ( | const ml7::Vector2 & | p | ) | [protected] |
Lets the given 2d-coordinate in world-space snap to the grid.
| ml7::Vector3 cyber::editor::modes::EditingMode::snap3grid | ( | const ml7::Vector3 & | p | ) | [protected] |
Lets the given 3d-coordinate in world-space snap to the grid.
1.7.1