26 #include "../Libs/Graphics_LIB/GUI.h"
27 #include "../Libs/OgreCore_LIB/OgreCore.h"
28 #include "../Libs/Utils_LIB/UThread.h"
38 namespace OpenSkyNet {
39 namespace CoreDesigner3DViewer {
46 virtual bool keyPressed(
const OIS::KeyEvent& arg);
57 CEGUI::WindowManager* _wMgr;
58 std::string _sceneGraphXML, _coreObjectsXML;
59 Ogre::SceneNode* _objNode;
61 std::set<CD::Volume*> _volumes;
62 const Ogre::Vector3* _vCorners;
64 unsigned int _keysHeldDown;
65 float _scaleSpeed, _scaleScale;
68 const char* _entityNameToSaveScale;
69 bool _isSavingEntityScales;
70 void saveEntityScaleToMesh();
73 std::queue<std::string> _msgs;
74 void showUserMessage(
const char* msg_,
bool clearQueue_=
true,
bool queue_=
false,
bool showCancel_=
false);
82 App(
const char* coreObjectsXML_,
const char* sceneGraphXML_);
86 virtual bool setup(
bool restoreOgreConfig_);
117 virtual bool frameEnded(
const Ogre::FrameEvent& evt);
138 virtual void destroyScene(
bool doDestroyPersistentData_);
Definition: ViewerApp.h:40
void setEditType(OBJECT_EDIT_TYPE editType_)
Definition: ViewerApp.h:111
void setSavingEntityScales(bool isSaving_)
Definition: ViewerApp.h:134
OBJECT_EDIT_TYPE
Definition: ViewerApp.h:40
Definition: ViewerApp.h:40
void unlock()
Definition: UThread.h:58
int count_
Definition: ViewerApp.h:32
virtual bool frameStarted(const Ogre::FrameEvent &evt)
virtual void createViewports()
Definition: ViewerApp.h:91
void lock()
Definition: ViewerApp.h:98
virtual void moveCamera()
virtual void handleTransformChange(Core::Object *obj_, const Math::Point<> &prevPos_, const Math::Matrix3x3 &prevRot_, float dt_)
Definition: ViewerEventHandlers.cpp:221
void wait()
Definition: UThread.h:98
void __attribute__((stdcall)) nodePickedCallback(const char *name_)
Definition: ViewerDLL.cpp:55
static void updateObjectUI(const Core::Object *obj_)
Definition: ViewerApp.cpp:171
void scaleObject(Core::Object *obj_, const Math::Point<> &factor_)
Definition: ViewerApp.cpp:150
virtual void createCamera()
Definition: ViewerApp.h:89
void saveEntityScaleToMesh(const char *name_)
Definition: ViewerApp.h:133
void __stdcall ObjectPickedCallback(const char *name_, float pos_[3], float rot_[3], float scale_[3])
Definition: main.cpp:9
void __stdcall ObjectListUpdatedCallback(const char **names_, int count_)
Definition: main.cpp:12
Definition: ViewerApp.h:55
virtual bool frameEnded(const Ogre::FrameEvent &evt)
virtual bool processUnbufferedKeyInput(const Ogre::FrameEvent &evt)
Definition: ViewerEventHandlers.cpp:128
virtual void handleIdle(Core::Object *obj_, float idleSecs_)
Definition: ViewerApp.h:123
float float float scale_[3]
Definition: ViewerApp.h:31
Definition: ViewerApp.h:40
OBJECT_EDIT_TYPE getEditType() const
Definition: ViewerApp.h:110
void lock()
Definition: UThread.h:57
void unlock()
Definition: ViewerApp.h:99
virtual void destroyScene(bool doDestroyPersistentData_)
virtual void setupEventHandlers()
App(const char *coreObjectsXML_, const char *sceneGraphXML_)
Definition: ViewerApp.cpp:107
Definition: MMatrix3x3.h:32
void waitForEntityScaleSavedEvent()
Definition: ViewerApp.h:102
typedef void(__attribute__((stdcall))*ObjectPickedCallback)(const char *name_
float float rot_[3]
Definition: ViewerApp.h:31
float pos_[3]
Definition: ViewerApp.h:31
virtual bool setup(bool restoreOgreConfig_)