Show
Ignore:
Timestamp:
05/05/08 06:39:01 (3 months ago)
Author:
vossg
Message:

changed: base rebuild

Files:

Legend:

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

    r1161 r1193  
    560560} 
    561561 
     562SFUnrecNodePtr      *ManipulatorBase::editSFTarget         (void) 
     563{ 
     564    editSField(TargetFieldMask); 
     565 
     566    return &_sfTarget; 
     567} 
     568 
    562569//! Get the Manipulator::_sfActiveSubHandle field. 
    563570const SFUnrecNodePtr *ManipulatorBase::getSFActiveSubHandle(void) const 
     
    566573} 
    567574 
     575SFUnrecNodePtr      *ManipulatorBase::editSFActiveSubHandle(void) 
     576{ 
     577    editSField(ActiveSubHandleFieldMask); 
     578 
     579    return &_sfActiveSubHandle; 
     580} 
     581 
    568582SFPnt2f *ManipulatorBase::editSFLastMousePos(void) 
    569583{ 
     
    591605} 
    592606 
     607SFUnrecViewportPtr  *ManipulatorBase::editSFViewport       (void) 
     608{ 
     609    editSField(ViewportFieldMask); 
     610 
     611    return &_sfViewport; 
     612} 
     613 
    593614SFBool *ManipulatorBase::editSFActive(void) 
    594615{ 
     
    635656} 
    636657 
     658SFUnrecNodePtr      *ManipulatorBase::editSFHandleXNode    (void) 
     659{ 
     660    editSField(HandleXNodeFieldMask); 
     661 
     662    return &_sfHandleXNode; 
     663} 
     664 
    637665//! Get the Manipulator::_sfHandleYNode field. 
    638666const SFUnrecNodePtr *ManipulatorBase::getSFHandleYNode(void) const 
     
    641669} 
    642670 
     671SFUnrecNodePtr      *ManipulatorBase::editSFHandleYNode    (void) 
     672{ 
     673    editSField(HandleYNodeFieldMask); 
     674 
     675    return &_sfHandleYNode; 
     676} 
     677 
    643678//! Get the Manipulator::_sfHandleZNode field. 
    644679const SFUnrecNodePtr *ManipulatorBase::getSFHandleZNode(void) const 
     
    647682} 
    648683 
     684SFUnrecNodePtr      *ManipulatorBase::editSFHandleZNode    (void) 
     685{ 
     686    editSField(HandleZNodeFieldMask); 
     687 
     688    return &_sfHandleZNode; 
     689} 
     690 
    649691//! Get the Manipulator::_sfTransXNode field. 
    650692const SFUnrecNodePtr *ManipulatorBase::getSFTransXNode(void) const 
     
    653695} 
    654696 
     697SFUnrecNodePtr      *ManipulatorBase::editSFTransXNode     (void) 
     698{ 
     699    editSField(TransXNodeFieldMask); 
     700 
     701    return &_sfTransXNode; 
     702} 
     703 
    655704//! Get the Manipulator::_sfTransYNode field. 
    656705const SFUnrecNodePtr *ManipulatorBase::getSFTransYNode(void) const 
     
    659708} 
    660709 
     710SFUnrecNodePtr      *ManipulatorBase::editSFTransYNode     (void) 
     711{ 
     712    editSField(TransYNodeFieldMask); 
     713 
     714    return &_sfTransYNode; 
     715} 
     716 
    661717//! Get the Manipulator::_sfTransZNode field. 
    662718const SFUnrecNodePtr *ManipulatorBase::getSFTransZNode(void) const 
     
    665721} 
    666722 
     723SFUnrecNodePtr      *ManipulatorBase::editSFTransZNode     (void) 
     724{ 
     725    editSField(TransZNodeFieldMask); 
     726 
     727    return &_sfTransZNode; 
     728} 
     729 
    667730//! Get the Manipulator::_sfMaterialX field. 
    668731const SFUnrecMaterialPtr *ManipulatorBase::getSFMaterialX(void) const 
     
    671734} 
    672735 
     736SFUnrecMaterialPtr  *ManipulatorBase::editSFMaterialX      (void) 
     737{ 
     738    editSField(MaterialXFieldMask); 
     739 
     740    return &_sfMaterialX; 
     741} 
     742 
    673743//! Get the Manipulator::_sfMaterialY field. 
    674744const SFUnrecMaterialPtr *ManipulatorBase::getSFMaterialY(void) const 
     
    677747} 
    678748 
     749SFUnrecMaterialPtr  *ManipulatorBase::editSFMaterialY      (void) 
     750{ 
     751    editSField(MaterialYFieldMask); 
     752 
     753    return &_sfMaterialY; 
     754} 
     755 
    679756//! Get the Manipulator::_sfMaterialZ field. 
    680757const SFUnrecMaterialPtr *ManipulatorBase::getSFMaterialZ(void) const 
     
    683760} 
    684761 
     762SFUnrecMaterialPtr  *ManipulatorBase::editSFMaterialZ      (void) 
     763{ 
     764    editSField(MaterialZFieldMask); 
     765 
     766    return &_sfMaterialZ; 
     767} 
     768 
    685769//! Get the Manipulator::_sfAxisLinesN field. 
    686770const SFUnrecNodePtr *ManipulatorBase::getSFAxisLinesN(void) const 
    687771{ 
     772    return &_sfAxisLinesN; 
     773} 
     774 
     775SFUnrecNodePtr      *ManipulatorBase::editSFAxisLinesN     (void) 
     776{ 
     777    editSField(AxisLinesNFieldMask); 
     778 
    688779    return &_sfAxisLinesN; 
    689780} 
     
    9691060    if(source != NULL) 
    9701061    { 
    971  
    972         this->setTarget(source->getTarget()); 
    973  
    974         this->setActiveSubHandle(source->getActiveSubHandle()); 
    975  
    976         this->setViewport(source->getViewport()); 
    977  
    978         this->setHandleXNode(source->getHandleXNode()); 
    979  
    980         this->setHandleYNode(source->getHandleYNode()); 
    981  
    982         this->setHandleZNode(source->getHandleZNode()); 
    983  
    984         this->setTransXNode(source->getTransXNode()); 
    985  
    986         this->setTransYNode(source->getTransYNode()); 
    987  
    988         this->setTransZNode(source->getTransZNode()); 
    989  
    990         this->setMaterialX(source->getMaterialX()); 
    991  
    992         this->setMaterialY(source->getMaterialY()); 
    993  
    994         this->setMaterialZ(source->getMaterialZ()); 
    995  
    996         this->setAxisLinesN(source->getAxisLinesN()); 
     1062        Manipulator *pThis = static_cast<Manipulator *>(this); 
     1063 
     1064        pThis->setTarget(source->getTarget()); 
     1065 
     1066        pThis->setActiveSubHandle(source->getActiveSubHandle()); 
     1067 
     1068        pThis->setViewport(source->getViewport()); 
     1069 
     1070        pThis->setHandleXNode(source->getHandleXNode()); 
     1071 
     1072        pThis->setHandleYNode(source->getHandleYNode()); 
     1073 
     1074        pThis->setHandleZNode(source->getHandleZNode()); 
     1075 
     1076        pThis->setTransXNode(source->getTransXNode()); 
     1077 
     1078        pThis->setTransYNode(source->getTransYNode()); 
     1079 
     1080        pThis->setTransZNode(source->getTransZNode()); 
     1081 
     1082        pThis->setMaterialX(source->getMaterialX()); 
     1083 
     1084        pThis->setMaterialY(source->getMaterialY()); 
     1085 
     1086        pThis->setMaterialZ(source->getMaterialZ()); 
     1087 
     1088        pThis->setAxisLinesN(source->getAxisLinesN()); 
    9971089    } 
    9981090}