osgEarth 2.1.1
Public Member Functions | Public Attributes | Private Member Functions

osgEarth::Util::EarthManipulator::Action Struct Reference

Collaboration diagram for osgEarth::Util::EarthManipulator::Action:

List of all members.

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 ()

Detailed Description

Definition at line 162 of file EarthManipulator.


Constructor & Destructor Documentation

EarthManipulator::Action::Action ( ActionType  type = ACTION_NULL)

Definition at line 106 of file EarthManipulator.cpp.

                                                :
_type( type )
{
    init();
}

Here is the call graph for this function:

EarthManipulator::Action::Action ( ActionType  type,
const ActionOptions options 
)

Definition at line 99 of file EarthManipulator.cpp.

                                                                              :
_type( type ),
_options( options )
{ 
    init();
}

Here is the call graph for this function:

EarthManipulator::Action::Action ( const Action rhs)

Definition at line 123 of file EarthManipulator.cpp.

                                                  :
_type( rhs._type ),
_dir( rhs._dir ),
_options( rhs._options )
{
    //nop
}

Member Function Documentation

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.

{
    for(ActionOptions::const_iterator i = _options.begin(); i != _options.end(); i++ ) {
        if ( i->option() == option )
            return i->intValue();
    }
    return defaultValue;
}
void EarthManipulator::Action::init ( ) [private]

Member Data Documentation

Definition at line 168 of file EarthManipulator.

Definition at line 169 of file EarthManipulator.

Definition at line 167 of file EarthManipulator.


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