SO3Engine
|
SO3VirtualPointer.cpp
Go to the documentation of this file.
73 mCameraSelector = new SSubEntityCameraSelectorBuffer(mRayCam, name, mRenderSize, mRenderSize, (mSelectorMode == SWindow::SO3_SELECTOR_FAST) ? true : false);
99 mCameraSelector = new SSubEntityCameraSelectorBuffer(mRayCam, name, mRenderSize, mRenderSize, (mSelectorMode == SWindow::SO3_SELECTOR_FAST) ? true : false);
149 Ogre::Matrix4 invViewMat = (mRayCam->getProjectionMatrix() * mRayCam->getViewMatrix(true)).inverse();
162 Ogre::Vector4 viewpos = mRayCam->getProjectionMatrixWithRSDepth().inverse() * Ogre::Vector4(nx, ny, zdepth, 1.0f);
177 // A B C triangle : tan(fov / 2) gives AB : AC is depth : then use pythagore to get hypotenuse BC
204 //MMechostr(MSKDEBUG, ">>>>>> RayCast : Entity found > %s\n", subEntity->getParent()->getName().c_str());
221 SMaterial* mat = scene->GetMaterial(entity->GetGroupName(), subEntity->getMaterial()->getName());
241 SMaterial* mat = scene->GetMaterial(entity->GetGroupName(), subEntity->getMaterial()->getName());
330 return (mState && mRaycastValue.material && (mRaycastValue.material->GetAssociatedWidget() != 0) && (mRaycastValue.material->GetAssociatedWidget()->GetMouseEnable())) ? true : false;
386 Ogre::SceneManager* sceneManager = Ogre::Root::getSingleton().getSceneManager(mRaycastValue.sceneName);
Definition SO3Entity.h:43
Definition SO3Material.h:43
Definition SO3NodeScol.h:43
virtual Ogre::Vector3 GetGlobalPosition()
Definition SO3NodeScol.cpp:649
static SRaycastResult Cast(SCamera *camera, const float &relativePosX, const float &relativePosY, Ogre::SubEntity *subEntity, bool getUvCoordonate=false)
Definition SO3RayCast.cpp:200
Definition SO3RayCast.h:41
Definition SO3Scene.h:125
SMaterial * GetMaterial(const std::string &groupName, const std::string &materialName, bool searchOtherGroups=true)
Definition SO3Scene.cpp:1099
Ogre::SceneManager * GetOgreScenePointer()
Definition SO3Scene.cpp:449
void GetSimpleRayCast(Ogre::Ray cameraRay, SRaycastResult &result)
Definition SO3Scene.cpp:2232
float GetSelectedZdepth(int posX, int posY)
Definition SO3SubEntityCameraSelectorBuffer.cpp:315
bool UseDepthBuffer()
Definition SO3SubEntityCameraSelectorBuffer.cpp:238
Ogre::SubEntity * GetSelectedSubEntity(int posX, int posY)
Definition SO3SubEntityCameraSelectorBuffer.cpp:243
Ogre::Vector3 GetTargetPosition()
Definition SO3VirtualPointer.cpp:341
const SRaycastResult & GetRaycastResult()
Definition SO3VirtualPointer.cpp:375
void MoveCursor(const MouseButtonId &btn)
Definition SO3VirtualPointer.cpp:306
void UnClick(const MouseButtonId &btn)
Definition SO3VirtualPointer.cpp:301
int GetSelectedSubEntity()
Definition SO3VirtualPointer.cpp:367
void SetMaxLength(const float &length)
Definition SO3VirtualPointer.cpp:79
void SetSelectorMode(SWindow::SelectorMode mode)
Definition SO3VirtualPointer.cpp:57
SEntity * GetSelectedObject()
Definition SO3VirtualPointer.cpp:349
void SetEnable(const bool &newState)
Definition SO3VirtualPointer.cpp:95
SMaterial * GetSelectedMaterial()
Definition SO3VirtualPointer.cpp:358
Definition SO3Widget.h:51
void InjectMouseUp(SWindow *originWindow, const int &xPos, const int &yPos, const MouseButtonId &button)
Definition SO3WidgetManager.cpp:309
void InjectMouseMove(SWindow *originWindow, const int &xPos, const int &yPos, const MouseButtonId &button)
Definition SO3WidgetManager.cpp:212
void InjectMouseWheel(SWindow *originWindow, const int &scrollX, const int &scrollY, const int &relativeScroll)
Definition SO3WidgetManager.cpp:262
void InjectMouseDown(SWindow *originWindow, const int &xPos, const int &yPos, const MouseButtonId &button)
Definition SO3WidgetManager.cpp:274
static SWidgetManager & getSingleton()
Definition SO3WidgetManager.cpp:53
Definition SO3DataScol.h:38
Generated by 1.9.8