|
Planeshift
|
#include <eeditapp.h>
Public Member Functions | |
| bool | CancelEffect () |
| Cancels rendering of the current effect. More... | |
| void | CreateParticleSystem (const csString &name) |
| Create a particle system mesh. More... | |
| EEditApp (iObjectRegistry *obj_reg, EEditReporter *_reporter) | |
| Constructor. More... | |
| void | ExecuteCommand (const char *cmd) |
| Executes a named command. More... | |
| void | Exit () |
| Exits the application. More... | |
| bool | GetCamFlag (int flag) |
| Gets the value of the given camera flag. More... | |
| bool | GetConfigBool (const char *key, bool defaultValue) const |
| float | GetConfigFloat (const char *key, float defaultValue) const |
| csRef< iConfigManager > | GetConfigManager () const |
| const char * | GetConfigString (const char *key, const char *defaultValue) const |
| unsigned int | GetCurrEffectID () |
| Gets the ID of the current effect. More... | |
| csString | GetCurrEffectName () |
| Gets the name current effect. More... | |
| csString | GetCurrParticleSystemName () |
| Gets the name current particle system. More... | |
| psEffectManager * | GetEffectManager () |
| Grabs the effect manager. More... | |
| csRef< iEngine > | GetEngine () const |
| csRef< iEventQueue > | GetEventQueue () const |
| csRef< iGraphics2D > | GetGraphics2D () const |
| csRef< iGraphics3D > | GetGraphics3D () const |
| EEditInputboxManager * | GetInputboxManager () |
| Grabs the inputbox manager. More... | |
| csRef< iLoader > | GetLoader () const |
| csVector2 | GetMousePointer () |
| Gets the location of the mouse pointer. More... | |
| iObjectRegistry * | GetObjectRegistry () const |
| PawsManager * | GetPaws () |
| Get Paws. More... | |
| EEditReporter * | GetReporter () const |
| csRef< iTextureManager > | GetTextureManager () const |
| EEditToolboxManager * | GetToolboxManager () |
| Grabs the toolbox manager. More... | |
| csRef< iVFS > | GetVFS () const |
| csRef< iVirtualClock > | GetVirtualClock () const |
| bool | HandleEvent (iEvent &event) |
| handles an event from the event handler More... | |
| void | HideToolbox (size_t toolbox) |
| Ensures that the given toolbox is hidden. More... | |
| bool | Init () |
| Initializes some CS specific stuff, fills most of this classes global variables, and inits eedit specifics. More... | |
| bool | IsToolboxVisible (size_t toolbox) |
| Checks if the toolbox is visible. More... | |
| csPtr< iMeshWrapper > | LoadCustomMesh (const csString &meshFile, const csString &name, csVector3 pos) |
| Loads a mesh based on the name or filepath given. More... | |
| bool | LoadMap (const char *mapFile) |
| Loads the given map file. More... | |
| bool | LoadPositionMesh (const csString &meshFile) |
| Loads the position mesh indicator. More... | |
| bool | LoadTargetMesh (const csString &meshFile) |
| Loads the target mesh indicator. More... | |
| bool | LoadWidget (const char *file) |
| Loads a single paws widget. More... | |
| bool | LoadWidgets () |
| Loads all the paws widgets (windows). More... | |
| void | RefreshEffectList () |
| Refreshes the list of effects. More... | |
| bool | ReloadCurrentEffect () |
| Loads the current effect. More... | |
| bool | RenderCurrentEffect () |
| Renders the current effect. More... | |
| bool | RenderEffect (const csString &effectName) |
| Reloads and renders the given effect. More... | |
| void | SetCamFlag (int flag, bool val) |
| Sets the given camera flag. More... | |
| void | SetConfigBool (const char *key, bool value) |
| void | SetConfigFloat (const char *key, float value) |
| void | SetConfigString (const char *key, const char *value) |
| bool | SetCurrEffect (const csString &name) |
| Sets the current effect. More... | |
| bool | SetDefaultActorPositions () |
| Sets the positions of the origin and target actors to defaults based on the map's camera. More... | |
| void | SetPositionAnim (size_t index) |
| Sets the animation of the position mesh. More... | |
| void | SetPositionData (const csVector3 &pos, float rot) |
| Sets the position and rotation of the effect position anchor. More... | |
| void | SetTargetAnim (size_t index) |
| Sets the animation of the target mesh. More... | |
| void | SetTargetData (const csVector3 &pos, float rot) |
| Sets the position and rotation of the effect target anchor. More... | |
| void | SevereError (const char *msg) |
| Reports a severe error in the application. More... | |
| void | ShowToolbox (size_t toolbox) |
| Ensures that the given toolbox is visible. More... | |
| bool | TogglePauseEffect () |
| Toggles the pause/resume state of the effect. More... | |
| bool | ToggleToolbox (size_t toolbox) |
| Toggles the visibility of the given toolbox. More... | |
| bool | UpdateEffect () |
| Effect has been changed, so lets rerender it. More... | |
| ~EEditApp () | |
| Destructor. More... | |
Static Public Attributes | |
| static const char * | APP_NAME |
| static const char * | CONFIG_FILENAME |
| static const char * | KEY_DEFS_FILENAME |
| static const char * | TEMP_EFFECTS_LIST |
| static const char * | WINDOW_CAPTION |
Definition at line 81 of file eeditapp.h.
| EEditApp::EEditApp | ( | iObjectRegistry * | obj_reg, |
| EEditReporter * | _reporter | ||
| ) |
Constructor.
| EEditApp::~EEditApp | ( | ) |
Destructor.
| bool EEditApp::CancelEffect | ( | ) |
Cancels rendering of the current effect.
| void EEditApp::CreateParticleSystem | ( | const csString & | name | ) |
Create a particle system mesh.
| void EEditApp::ExecuteCommand | ( | const char * | cmd | ) |
Executes a named command.
| cmd | The name of the command to execute. |
| void EEditApp::Exit | ( | ) |
Exits the application.
| bool EEditApp::GetCamFlag | ( | int | flag | ) |
Gets the value of the given camera flag.
| flag | the editApp::CAM_FLAG to get |
| bool EEditApp::GetConfigBool | ( | const char * | key, |
| bool | defaultValue | ||
| ) | const |
| csRef<iConfigManager> EEditApp::GetConfigManager | ( | ) | const |
| const char* EEditApp::GetConfigString | ( | const char * | key, |
| const char * | defaultValue | ||
| ) | const |
Gets the ID of the current effect.
Definition at line 345 of file eeditapp.h.
| csString EEditApp::GetCurrEffectName | ( | ) |
Gets the name current effect.
| csString EEditApp::GetCurrParticleSystemName | ( | ) |
Gets the name current particle system.
| psEffectManager* EEditApp::GetEffectManager | ( | ) |
Grabs the effect manager.
| csRef<iEngine> EEditApp::GetEngine | ( | ) | const |
| csRef<iEventQueue> EEditApp::GetEventQueue | ( | ) | const |
| csRef<iGraphics2D> EEditApp::GetGraphics2D | ( | ) | const |
| csRef<iGraphics3D> EEditApp::GetGraphics3D | ( | ) | const |
| EEditInputboxManager* EEditApp::GetInputboxManager | ( | ) |
Grabs the inputbox manager.
| csRef<iLoader> EEditApp::GetLoader | ( | ) | const |
| csVector2 EEditApp::GetMousePointer | ( | ) |
Gets the location of the mouse pointer.
| iObjectRegistry* EEditApp::GetObjectRegistry | ( | ) | const |
|
inline |
Get Paws.
Definition at line 134 of file eeditapp.h.
| EEditReporter* EEditApp::GetReporter | ( | ) | const |
| csRef<iTextureManager> EEditApp::GetTextureManager | ( | ) | const |
| EEditToolboxManager* EEditApp::GetToolboxManager | ( | ) |
Grabs the toolbox manager.
| csRef<iVFS> EEditApp::GetVFS | ( | ) | const |
| csRef<iVirtualClock> EEditApp::GetVirtualClock | ( | ) | const |
| bool EEditApp::HandleEvent | ( | iEvent & | event | ) |
handles an event from the event handler
| event | the event to handle |
| void EEditApp::HideToolbox | ( | size_t | toolbox | ) |
Ensures that the given toolbox is hidden.
| toolbox | The ID of the toolbox to hide. |
| bool EEditApp::Init | ( | ) |
Initializes some CS specific stuff, fills most of this classes global variables, and inits eedit specifics.
| bool EEditApp::IsToolboxVisible | ( | size_t | toolbox | ) |
Checks if the toolbox is visible.
| toolbox | The ID of the toolbox to hide. |
| csPtr<iMeshWrapper> EEditApp::LoadCustomMesh | ( | const csString & | meshFile, |
| const csString & | name, | ||
| csVector3 | pos | ||
| ) |
Loads a mesh based on the name or filepath given.
| meshFile | blank, 'axis', or the path to the mesh. |
| name | Name to use |
| pos | Position to use |
| bool EEditApp::LoadMap | ( | const char * | mapFile | ) |
Loads the given map file.
| mapFile | Path to the map to load. |
| bool EEditApp::LoadPositionMesh | ( | const csString & | meshFile | ) |
Loads the position mesh indicator.
| meshFile | empty string for nullmesh, "axis" for axis arrows, meshfilename for everything else. |
| bool EEditApp::LoadTargetMesh | ( | const csString & | meshFile | ) |
Loads the target mesh indicator.
| meshFile | empty string for nullmesh, "axis" for axis arrows, meshfilename for everything else. |
| bool EEditApp::LoadWidget | ( | const char * | file | ) |
Loads a single paws widget.
| file | the filename of the window to load |
| bool EEditApp::LoadWidgets | ( | ) |
Loads all the paws widgets (windows).
| void EEditApp::RefreshEffectList | ( | ) |
Refreshes the list of effects.
| bool EEditApp::ReloadCurrentEffect | ( | ) |
Loads the current effect.
| bool EEditApp::RenderCurrentEffect | ( | ) |
Renders the current effect.
| bool EEditApp::RenderEffect | ( | const csString & | effectName | ) |
Reloads and renders the given effect.
| effectName | the name of the effect to render |
| void EEditApp::SetCamFlag | ( | int | flag, |
| bool | val | ||
| ) |
Sets the given camera flag.
| flag | the editApp::CAM_FLAG to set |
| val | the new value of the camera flag |
| void EEditApp::SetConfigBool | ( | const char * | key, |
| bool | value | ||
| ) |
| void EEditApp::SetConfigFloat | ( | const char * | key, |
| float | value | ||
| ) |
| void EEditApp::SetConfigString | ( | const char * | key, |
| const char * | value | ||
| ) |
| bool EEditApp::SetCurrEffect | ( | const csString & | name | ) |
Sets the current effect.
| name | the name of the effect |
| bool EEditApp::SetDefaultActorPositions | ( | ) |
Sets the positions of the origin and target actors to defaults based on the map's camera.
| void EEditApp::SetPositionAnim | ( | size_t | index | ) |
Sets the animation of the position mesh.
| index | the index of the animation to set. |
| void EEditApp::SetPositionData | ( | const csVector3 & | pos, |
| float | rot | ||
| ) |
Sets the position and rotation of the effect position anchor.
| pos | the new pos of the effect's position anchor. |
| rot | the new y rotation of the effect's position anchor. |
| void EEditApp::SetTargetAnim | ( | size_t | index | ) |
Sets the animation of the target mesh.
| index | the index of the animation to set. |
| void EEditApp::SetTargetData | ( | const csVector3 & | pos, |
| float | rot | ||
| ) |
Sets the position and rotation of the effect target anchor.
| pos | the new pos of the effect's target anchor. |
| rot | the new y rotation of the effect's target anchor. |
| void EEditApp::SevereError | ( | const char * | msg | ) |
Reports a severe error in the application.
| msg | the error message |
| void EEditApp::ShowToolbox | ( | size_t | toolbox | ) |
Ensures that the given toolbox is visible.
| toolbox | The ID of the toolbox to show. |
| bool EEditApp::TogglePauseEffect | ( | ) |
Toggles the pause/resume state of the effect.
| bool EEditApp::ToggleToolbox | ( | size_t | toolbox | ) |
Toggles the visibility of the given toolbox.
| toolbox | the ID of the toolbox to toggle |
| bool EEditApp::UpdateEffect | ( | ) |
Effect has been changed, so lets rerender it.
|
static |
Definition at line 86 of file eeditapp.h.
|
static |
Definition at line 85 of file eeditapp.h.
|
static |
Definition at line 88 of file eeditapp.h.
|
static |
Definition at line 89 of file eeditapp.h.
|
static |
Definition at line 87 of file eeditapp.h.