Show
Ignore:
Timestamp:
06/09/08 01:10:45 (4 months ago)
Author:
vossg
Message:

Base rebuild

changed: removed osg1 compat field interfaces (handled by 1.x)
fixed : pass pod by value and non-pod by reference

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/Contrib/Manipulators/OSGManipulatorBase.inl

    r1197 r1288  
    118118//! Get the value of the Manipulator::_sfLastMousePos field. 
    119119inline 
    120 const Pnt2f ManipulatorBase::getLastMousePos(void) const 
     120const Pnt2f &ManipulatorBase::getLastMousePos(void) const 
    121121{ 
    122122    return _sfLastMousePos.getValue(); 
    123123} 
    124124 
    125 #ifdef OSG_1_GET_COMPAT 
    126 inline 
    127 Pnt2f               &ManipulatorBase::getLastMousePos   (void) 
    128 { 
    129     return this->editLastMousePos   (); 
    130 } 
    131 #endif 
    132  
    133125//! Set the value of the Manipulator::_sfLastMousePos field. 
    134126inline 
     
    167159//! Get the value of the Manipulator::_sfActive field. 
    168160inline 
    169 const bool ManipulatorBase::getActive(void) const 
     161      bool ManipulatorBase::getActive(void) const 
    170162{ 
    171163    return _sfActive.getValue(); 
    172164} 
    173165 
    174 #ifdef OSG_1_GET_COMPAT 
    175 inline 
    176 bool                &ManipulatorBase::getActive         (void) 
    177 { 
    178     return this->editActive         (); 
    179 } 
    180 #endif 
    181  
    182166//! Set the value of the Manipulator::_sfActive field. 
    183167inline 
    184 void ManipulatorBase::setActive(const bool &value) 
     168void ManipulatorBase::setActive(const bool value) 
    185169{ 
    186170    editSField(ActiveFieldMask); 
     
    200184//! Get the value of the Manipulator::_sfLength field. 
    201185inline 
    202 const Vec3f ManipulatorBase::getLength(void) const 
     186const Vec3f &ManipulatorBase::getLength(void) const 
    203187{ 
    204188    return _sfLength.getValue(); 
    205189} 
    206  
    207 #ifdef OSG_1_GET_COMPAT 
    208 inline 
    209 Vec3f               &ManipulatorBase::getLength         (void) 
    210 { 
    211     return this->editLength         (); 
    212 } 
    213 #endif 
    214190 
    215191//! Set the value of the Manipulator::_sfLength field.