RigsofRods
Soft-body Physics Simulation
Public Member Functions | Protected Member Functions | Protected Attributes
RoR::SceneMouse Class Reference

#include <SceneMouse.h>

+ Collaboration diagram for RoR::SceneMouse:

Public Member Functions

 SceneMouse ()
 
bool mouseMoved (const OIS::MouseEvent &_arg)
 
bool mousePressed (const OIS::MouseEvent &_arg, OIS::MouseButtonID _id)
 
bool mouseReleased (const OIS::MouseEvent &_arg, OIS::MouseButtonID _id)
 
void InitializeVisuals ()
 
void UpdateSimulation ()
 
void UpdateVisuals ()
 
void DiscardVisuals ()
 

Protected Member Functions

void releaseMousePick ()
 
Ogre::Ray getMouseRay ()
 
void reset ()
 

Protected Attributes

Ogre::ManualObject * pickLine
 
Ogre::SceneNode * pickLineNode
 
int mouseGrabState
 
NodeNum_t minnode = NODENUM_INVALID
 
float mindist
 
ActorPtr grab_truck
 
Ogre::Vector3 lastgrabpos
 
int lastMouseX
 
int lastMouseY
 

Detailed Description

Definition at line 37 of file SceneMouse.h.

Constructor & Destructor Documentation

◆ SceneMouse()

SceneMouse::SceneMouse ( )

Definition at line 41 of file SceneMouse.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ DiscardVisuals()

void SceneMouse::DiscardVisuals ( )

Definition at line 75 of file SceneMouse.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMouseRay()

Ray SceneMouse::getMouseRay ( )
protected

Definition at line 316 of file SceneMouse.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitializeVisuals()

void SceneMouse::InitializeVisuals ( )

Definition at line 50 of file SceneMouse.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mouseMoved()

bool SceneMouse::mouseMoved ( const OIS::MouseEvent &  _arg)

Definition at line 114 of file SceneMouse.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mousePressed()

bool SceneMouse::mousePressed ( const OIS::MouseEvent &  _arg,
OIS::MouseButtonID  _id 
)

Definition at line 228 of file SceneMouse.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mouseReleased()

bool SceneMouse::mouseReleased ( const OIS::MouseEvent &  _arg,
OIS::MouseButtonID  _id 
)

Definition at line 304 of file SceneMouse.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ releaseMousePick()

void SceneMouse::releaseMousePick ( )
protected

Definition at line 90 of file SceneMouse.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ reset()

void SceneMouse::reset ( )
protected

Definition at line 101 of file SceneMouse.cpp.

+ Here is the caller graph for this function:

◆ UpdateSimulation()

void SceneMouse::UpdateSimulation ( )

Definition at line 198 of file SceneMouse.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateVisuals()

void SceneMouse::UpdateVisuals ( )

Definition at line 211 of file SceneMouse.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ grab_truck

ActorPtr RoR::SceneMouse::grab_truck
protected

Definition at line 60 of file SceneMouse.h.

◆ lastgrabpos

Ogre::Vector3 RoR::SceneMouse::lastgrabpos
protected

Definition at line 61 of file SceneMouse.h.

◆ lastMouseX

int RoR::SceneMouse::lastMouseX
protected

Definition at line 62 of file SceneMouse.h.

◆ lastMouseY

int RoR::SceneMouse::lastMouseY
protected

Definition at line 62 of file SceneMouse.h.

◆ mindist

float RoR::SceneMouse::mindist
protected

Definition at line 59 of file SceneMouse.h.

◆ minnode

NodeNum_t RoR::SceneMouse::minnode = NODENUM_INVALID
protected

Definition at line 58 of file SceneMouse.h.

◆ mouseGrabState

int RoR::SceneMouse::mouseGrabState
protected

Definition at line 56 of file SceneMouse.h.

◆ pickLine

Ogre::ManualObject* RoR::SceneMouse::pickLine
protected

Definition at line 54 of file SceneMouse.h.

◆ pickLineNode

Ogre::SceneNode* RoR::SceneMouse::pickLineNode
protected

Definition at line 55 of file SceneMouse.h.


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