vcg::NavigatorWasdMode Class Reference

#include <trackmode.h>

Inheritance diagram for vcg::NavigatorWasdMode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void Animate (unsigned int msec, Trackball *tb)
void Apply (Trackball *trackball, float WheelNotch)
 The default manipulator application for mouse scrolls.
void Apply (Trackball *trackball, Point3f new_point)
 The default manipulator application for mouse drags.
void FlipH ()
 specific option setup methods for this mode
void FlipV ()
bool IsAnimating (const Trackball *tb)
bool isSticky ()
 The default avaibility to manipulator changes inside an action.
const char * Name ()
 The default manipulator's name.
 NavigatorWasdMode ()
void Reset ()
 The default manipulator's reset function.
void SetAction ()
 The default manipulator's begin action function.
void SetStepOnWalk (float width, float height)
void SetTopSpeedsAndAcc (float speed_h, float speed_v, float acc=0.0)

Private Attributes

int _flipH
int _flipV
float accX
float accY
float accZ
float alpha
float beta
Point3f current_speed
float dumping
float step_current
float step_height
float step_last
float step_length
float step_x
float topSpeedH
float topSpeedV

Detailed Description

Definition at line 1040 of file trackmode.h.


Constructor & Destructor Documentation

NavigatorWasdMode::NavigatorWasdMode (  ) 

Definition at line 822 of file trackmode.cpp.


Member Function Documentation

void NavigatorWasdMode::Animate ( unsigned int  msec,
Trackball tb 
) [virtual]

Reimplemented from vcg::TrackMode.

Definition at line 859 of file trackmode.cpp.

void NavigatorWasdMode::Apply ( Trackball trackball,
float  WheelNotch 
) [virtual]

The default manipulator application for mouse scrolls.

This default application does nothing.

Parameters:
trackball the manipulator manager.
WheelNotch the mouse wheel notch.

Reimplemented from vcg::TrackMode.

Definition at line 955 of file trackmode.cpp.

void NavigatorWasdMode::Apply ( Trackball trackball,
Point3f  new_point 
) [virtual]

The default manipulator application for mouse drags.

This default application does nothing.

Parameters:
trackball the manipulator manager.
new_point the new mouse pointer coordinate.

Reimplemented from vcg::TrackMode.

Definition at line 901 of file trackmode.cpp.

void NavigatorWasdMode::FlipH (  ) 

specific option setup methods for this mode

Definition at line 838 of file trackmode.cpp.

void NavigatorWasdMode::FlipV (  ) 

Definition at line 842 of file trackmode.cpp.

bool NavigatorWasdMode::IsAnimating ( const Trackball tb  )  [virtual]

Reimplemented from vcg::TrackMode.

Definition at line 851 of file trackmode.cpp.

bool NavigatorWasdMode::isSticky (  )  [virtual]

The default avaibility to manipulator changes inside an action.

Every manipulator class can choose if the manipulator manager can switch between it and another manipulator in the middle of an user action, e.g. switching Trackball's current_mode without releasing the mouse button.

The default behaviour is to allow the switch.

Blocking switches is useful for stateful manipulators, regarding state consistency respect to Trackball's Undo() calls.

Returns:
false if manipulator permits the switch.

Reimplemented from vcg::TrackMode.

Definition at line 961 of file trackmode.cpp.

const char* vcg::NavigatorWasdMode::Name (  )  [inline, virtual]

The default manipulator's name.

Returns:
the constant string "TrackMode"

Reimplemented from vcg::TrackMode.

Definition at line 1046 of file trackmode.h.

void NavigatorWasdMode::Reset (  )  [virtual]

The default manipulator's reset function.

If a manipulator has a state, it can be reset to the inital state calling this function.

Reimplemented from vcg::TrackMode.

Definition at line 829 of file trackmode.cpp.

void NavigatorWasdMode::SetAction (  )  [virtual]

The default manipulator's begin action function.

This default implementation does nothing.

Reimplemented from vcg::TrackMode.

Definition at line 847 of file trackmode.cpp.

void NavigatorWasdMode::SetStepOnWalk ( float  width,
float  height 
)

Definition at line 950 of file trackmode.cpp.

void NavigatorWasdMode::SetTopSpeedsAndAcc ( float  speed_h,
float  speed_v,
float  acc = 0.0 
)

Definition at line 932 of file trackmode.cpp.


Member Data Documentation

Definition at line 1073 of file trackmode.h.

Definition at line 1073 of file trackmode.h.

Definition at line 1075 of file trackmode.h.

Definition at line 1075 of file trackmode.h.

Definition at line 1075 of file trackmode.h.

Definition at line 1069 of file trackmode.h.

Definition at line 1069 of file trackmode.h.

Definition at line 1070 of file trackmode.h.

Definition at line 1075 of file trackmode.h.

Definition at line 1071 of file trackmode.h.

Definition at line 1076 of file trackmode.h.

Definition at line 1071 of file trackmode.h.

Definition at line 1076 of file trackmode.h.

Definition at line 1071 of file trackmode.h.

Definition at line 1075 of file trackmode.h.

Definition at line 1075 of file trackmode.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:03 2013