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 handleMouseMoved ()
 
bool handleMousePressed ()
 
bool handleMouseReleased ()
 
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 319 of file SceneMouse.cpp.

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

◆ handleMouseMoved()

bool SceneMouse::handleMouseMoved ( )

Definition at line 114 of file SceneMouse.cpp.

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

◆ handleMousePressed()

bool SceneMouse::handleMousePressed ( )

Definition at line 229 of file SceneMouse.cpp.

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

◆ handleMouseReleased()

bool SceneMouse::handleMouseReleased ( )

Definition at line 307 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:

◆ 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 199 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 212 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: