|
osgEarth 2.1.1
|
Collaboration diagram for osgEarth::Util::EarthManipulator::Action:Public Member Functions | |
| Action (ActionType type=ACTION_NULL) | |
| Action (ActionType type, const ActionOptions &options) | |
| Action (const Action &rhs) | |
| bool | getBoolOption (int option, bool defaultValue) const |
| int | getIntOption (int option, int defaultValue) const |
| double | getDoubleOption (int option, double defaultValue) const |
Public Attributes | |
| ActionType | _type |
| Direction | _dir |
| ActionOptions | _options |
Private Member Functions | |
| void | init () |
Definition at line 162 of file EarthManipulator.
| EarthManipulator::Action::Action | ( | ActionType | type = ACTION_NULL | ) |
| EarthManipulator::Action::Action | ( | ActionType | type, |
| const ActionOptions & | options | ||
| ) |
| EarthManipulator::Action::Action | ( | const Action & | rhs | ) |
Definition at line 123 of file EarthManipulator.cpp.
| bool EarthManipulator::Action::getBoolOption | ( | int | option, |
| bool | defaultValue | ||
| ) | const |
Definition at line 132 of file EarthManipulator.cpp.
{
for(ActionOptions::const_iterator i = _options.begin(); i != _options.end(); i++ ) {
if ( i->option() == option )
return i->boolValue();
}
return defaultValue;
}
Here is the caller graph for this function:| double EarthManipulator::Action::getDoubleOption | ( | int | option, |
| double | defaultValue | ||
| ) | const |
Definition at line 152 of file EarthManipulator.cpp.
{
for(ActionOptions::const_iterator i = _options.begin(); i != _options.end(); i++ ) {
if ( i->option() == option )
return i->doubleValue();
}
return defaultValue;
}
Here is the caller graph for this function:| int EarthManipulator::Action::getIntOption | ( | int | option, |
| int | defaultValue | ||
| ) | const |
Definition at line 142 of file EarthManipulator.cpp.
| void EarthManipulator::Action::init | ( | ) | [private] |
Definition at line 113 of file EarthManipulator.cpp.
{
_dir =
_type == ACTION_PAN_LEFT || _type == ACTION_ROTATE_LEFT? DIR_LEFT :
_type == ACTION_PAN_RIGHT || _type == ACTION_ROTATE_RIGHT? DIR_RIGHT :
_type == ACTION_PAN_UP || _type == ACTION_ROTATE_UP || _type == ACTION_ZOOM_IN ? DIR_UP :
_type == ACTION_PAN_DOWN || _type == ACTION_ROTATE_DOWN || _type == ACTION_ZOOM_OUT ? DIR_DOWN :
DIR_NA;
}
Here is the caller graph for this function:Definition at line 168 of file EarthManipulator.
Definition at line 169 of file EarthManipulator.
Definition at line 167 of file EarthManipulator.
1.7.3