osgEarth 2.1.1
Public Member Functions | Public Attributes

osgEarth::Util::EarthManipulator::InputSpec Struct Reference

List of all members.

Public Member Functions

 InputSpec (int event_type, int input_mask, int modkey_mask)
 InputSpec (const InputSpec &rhs)
bool operator== (const InputSpec &rhs) const
bool operator< (const InputSpec &rhs) const

Public Attributes

int _event_type
int _input_mask
int _modkey_mask

Detailed Description

Definition at line 127 of file EarthManipulator.


Constructor & Destructor Documentation

osgEarth::Util::EarthManipulator::InputSpec::InputSpec ( int  event_type,
int  input_mask,
int  modkey_mask 
) [inline]

Definition at line 129 of file EarthManipulator.

                : _event_type(event_type), _input_mask(input_mask), _modkey_mask( modkey_mask ) { }
osgEarth::Util::EarthManipulator::InputSpec::InputSpec ( const InputSpec rhs) [inline]

Definition at line 131 of file EarthManipulator.

                : _event_type(rhs._event_type), _input_mask(rhs._input_mask), _modkey_mask(rhs._modkey_mask) { }

Member Function Documentation

bool osgEarth::Util::EarthManipulator::InputSpec::operator< ( const InputSpec rhs) const [inline]

Definition at line 140 of file EarthManipulator.

                                                                {
                if ( _event_type < rhs._event_type) return true;
                else if ( _event_type > rhs._event_type ) return false;
                else if ( _input_mask < rhs._input_mask ) return true;
                else if ( _input_mask > rhs._input_mask ) return false;
                else return ( _modkey_mask < rhs._modkey_mask );
            }
bool osgEarth::Util::EarthManipulator::InputSpec::operator== ( const InputSpec rhs) const [inline]

Definition at line 134 of file EarthManipulator.

                                                            {
                return _event_type == rhs._event_type && 
                       _input_mask == rhs._input_mask && 
                       ((_modkey_mask|osgGA::GUIEventAdapter::MODKEY_NUM_LOCK) == (rhs._modkey_mask|osgGA::GUIEventAdapter::MODKEY_NUM_LOCK));
            }

Member Data Documentation

Definition at line 148 of file EarthManipulator.

Definition at line 149 of file EarthManipulator.

Definition at line 150 of file EarthManipulator.


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