ScreenMapEditor Class Reference

Map editor used to edit ODE Worlds and Objects. More...

#include <ScreenMapEditor.h>

Inheritance diagram for ScreenMapEditor:

Inheritance graph
Collaboration diagram for ScreenMapEditor:

Collaboration graph
List of all members.

Public Member Functions

 ScreenMapEditor ()
 ScreenMapEditor (const MString &name)
virtual ~ScreenMapEditor ()
virtual void Init ()
virtual void Update (const float dTime)
 [internal] Update (call this update last when abstracting because Update can destroy the object)
virtual void Render ()
virtual void Message (int Message, PStack &data, const MString &name)
 Receive message (When subscribing to messages, you receive them via this command).
void LoadFile (const MString &sFilename)
void LoadWorld (const MString &sFilename)
void LoadObject (const MString &sFilename)
void NotifyMessage (const MString &sMessage)
int GenerateObject (MString sObjectIn, int iPieceToReplace=-1)
void ClearOutArea ()
int SelectObject (int ObjectNumber=-1)
int GetNumObjects ()
int SelectedObject ()
MercuryObjectGetSelectedHandleODE ()
MercuryObjectGetSelectedHandleVis ()
 CLASS_RTTI (ScreenMapEditor, MercuryScreen)

Private Member Functions

void SetIni (const MString &key, const MString &value, const MString &data)
void RewriteCurrent ()
void MakeWorldPiece (int i, const MString &sWorldname, int iReplace=-1)
float CameraDistance ()

Private Attributes

MercuryLight m_light
MercuryObject m_fVisibles
MercuryObject m_fODEables
vector< MercuryObject * > m_vODEObjs
vector< MercuryObject * > m_vVisObjs
vector< MercuryObject * > m_vLastODE
vector< MercuryObject * > m_vLastVis
MercuryPoint m_pCameraPos
MercuryPoint m_pCameraRot
MQuaternion m_qCamera
MercuryCamera m_fCamera
MercuryObject m_fOverlays
MercuryText m_tMessage
TextList m_tElems
bool m_bShowingElems
ObjectControlPane m_pOverlay
MercuryTextPrompt m_pPrompt
MString m_sFilename
MString m_sEditingName
MercuryINI m_iWorldFile
MercuryINI m_iTightFile
bool m_bFileLoaded
bool m_bWorldLoaded
bool m_bObjectLoaded
int m_iSelectedPart
int m_iOldMouseX
int m_iOldMouseY

Detailed Description

Map editor used to edit ODE Worlds and Objects.

Definition at line 70 of file ScreenMapEditor.h.

Constructor & Destructor Documentation

ScreenMapEditor::ScreenMapEditor (  )  [inline]

Definition at line 73 of file ScreenMapEditor.h.

ScreenMapEditor::ScreenMapEditor ( const MString name  )  [inline]

Definition at line 74 of file ScreenMapEditor.h.

ScreenMapEditor::~ScreenMapEditor (  )  [virtual]

Definition at line 94 of file ScreenMapEditor.cpp.

Member Function Documentation

void ScreenMapEditor::Init (  )  [virtual]

Reimplemented from MercuryScreen.

Definition at line 99 of file ScreenMapEditor.cpp.

void ScreenMapEditor::Update ( const float  dTime  )  [virtual]

[internal] Update (call this update last when abstracting because Update can destroy the object)

Reimplemented from MercuryScreen.

Definition at line 209 of file ScreenMapEditor.cpp.

void ScreenMapEditor::Render (  )  [virtual]

Reimplemented from MercuryScreen.

Definition at line 318 of file ScreenMapEditor.cpp.

void ScreenMapEditor::Message ( int  Message,
PStack data,
const MString name 
) [virtual]

Receive message (When subscribing to messages, you receive them via this command).

Reimplemented from MercuryScreen.

Definition at line 648 of file ScreenMapEditor.cpp.

void ScreenMapEditor::LoadFile ( const MString sFilename  ) 

Definition at line 335 of file ScreenMapEditor.cpp.

void ScreenMapEditor::LoadWorld ( const MString sFilename  ) 

Definition at line 357 of file ScreenMapEditor.cpp.

void ScreenMapEditor::LoadObject ( const MString sFilename  ) 

Definition at line 405 of file ScreenMapEditor.cpp.

void ScreenMapEditor::NotifyMessage ( const MString sMessage  ) 

Definition at line 441 of file ScreenMapEditor.cpp.

int ScreenMapEditor::GenerateObject ( MString  sObjectIn,
int  iPieceToReplace = -1 

Definition at line 448 of file ScreenMapEditor.cpp.

void ScreenMapEditor::ClearOutArea (  ) 

Definition at line 631 of file ScreenMapEditor.cpp.

int ScreenMapEditor::SelectObject ( int  ObjectNumber = -1  ) 

Definition at line 1022 of file ScreenMapEditor.cpp.

int ScreenMapEditor::GetNumObjects (  ) 

Definition at line 1125 of file ScreenMapEditor.cpp.

int ScreenMapEditor::SelectedObject (  )  [inline]

Definition at line 93 of file ScreenMapEditor.h.

MercuryObject * ScreenMapEditor::GetSelectedHandleODE (  ) 

Definition at line 175 of file ScreenMapEditor.cpp.

MercuryObject * ScreenMapEditor::GetSelectedHandleVis (  ) 

Definition at line 192 of file ScreenMapEditor.cpp.

ScreenMapEditor::CLASS_RTTI ( ScreenMapEditor  ,

void ScreenMapEditor::SetIni ( const MString key,
const MString value,
const MString data 
) [private]

Definition at line 1102 of file ScreenMapEditor.cpp.

void ScreenMapEditor::RewriteCurrent (  )  [private]

Definition at line 1108 of file ScreenMapEditor.cpp.

void ScreenMapEditor::MakeWorldPiece ( int  i,
const MString sWorldname,
int  iReplace = -1 
) [private]

Definition at line 378 of file ScreenMapEditor.cpp.

float ScreenMapEditor::CameraDistance (  )  [private]

Definition at line 621 of file ScreenMapEditor.cpp.

Member Data Documentation

MercuryLight ScreenMapEditor::m_light [private]

Definition at line 103 of file ScreenMapEditor.h.

MercuryObject ScreenMapEditor::m_fVisibles [private]

Definition at line 104 of file ScreenMapEditor.h.

MercuryObject ScreenMapEditor::m_fODEables [private]

Definition at line 105 of file ScreenMapEditor.h.

vector< MercuryObject * > ScreenMapEditor::m_vODEObjs [private]

Definition at line 106 of file ScreenMapEditor.h.

vector< MercuryObject * > ScreenMapEditor::m_vVisObjs [private]

Definition at line 107 of file ScreenMapEditor.h.

vector< MercuryObject * > ScreenMapEditor::m_vLastODE [private]

Definition at line 111 of file ScreenMapEditor.h.

vector< MercuryObject * > ScreenMapEditor::m_vLastVis [private]

Definition at line 112 of file ScreenMapEditor.h.

MercuryPoint ScreenMapEditor::m_pCameraPos [private]

Definition at line 114 of file ScreenMapEditor.h.

MercuryPoint ScreenMapEditor::m_pCameraRot [private]

Definition at line 115 of file ScreenMapEditor.h.

MQuaternion ScreenMapEditor::m_qCamera [private]

Definition at line 116 of file ScreenMapEditor.h.

MercuryCamera ScreenMapEditor::m_fCamera [private]

Definition at line 117 of file ScreenMapEditor.h.

MercuryObject ScreenMapEditor::m_fOverlays [private]

Definition at line 119 of file ScreenMapEditor.h.

MercuryText ScreenMapEditor::m_tMessage [private]

Definition at line 121 of file ScreenMapEditor.h.

TextList ScreenMapEditor::m_tElems [private]

Definition at line 123 of file ScreenMapEditor.h.

bool ScreenMapEditor::m_bShowingElems [private]

Definition at line 124 of file ScreenMapEditor.h.

ObjectControlPane ScreenMapEditor::m_pOverlay [private]

Definition at line 126 of file ScreenMapEditor.h.

MercuryTextPrompt ScreenMapEditor::m_pPrompt [private]

Definition at line 127 of file ScreenMapEditor.h.

MString ScreenMapEditor::m_sFilename [private]

Definition at line 129 of file ScreenMapEditor.h.

MString ScreenMapEditor::m_sEditingName [private]

Definition at line 130 of file ScreenMapEditor.h.

MercuryINI ScreenMapEditor::m_iWorldFile [private]

Definition at line 132 of file ScreenMapEditor.h.

MercuryINI ScreenMapEditor::m_iTightFile [private]

Definition at line 133 of file ScreenMapEditor.h.

bool ScreenMapEditor::m_bFileLoaded [private]

Definition at line 135 of file ScreenMapEditor.h.

bool ScreenMapEditor::m_bWorldLoaded [private]

Definition at line 136 of file ScreenMapEditor.h.

bool ScreenMapEditor::m_bObjectLoaded [private]

Definition at line 137 of file ScreenMapEditor.h.

MercuryObject* ScreenMapEditor::m_oSelectedPart [private]

Definition at line 139 of file ScreenMapEditor.h.

int ScreenMapEditor::m_iSelectedPart [private]

Definition at line 141 of file ScreenMapEditor.h.

int ScreenMapEditor::m_iOldMouseX [private]

Definition at line 142 of file ScreenMapEditor.h.

int ScreenMapEditor::m_iOldMouseY [private]

Definition at line 143 of file ScreenMapEditor.h.

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