Show
Ignore:
Timestamp:
11/14/07 17:11:26 (1 year ago)
Author:
cneumann
Message:

changed: started to use new pointer fields
added: ReferenceCountPointer? template
removed: EditHandle? for parent pointer fields

NOTE: Does not compile yet.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/Cluster/Window/MultiDisplay/OSGMultiDisplayWindowBase.inl

    r787 r1016  
    4949\*****************************************************************************/ 
    5050 
     51// #include "OSGContainerPtrFuncs.h" 
     52 
    5153OSG_BEGIN_NAMESPACE 
    5254 
    53  
    5455//! access the type of the class 
    55 inline 
    56 OSG::FieldContainerType &MultiDisplayWindowBase::getClassType(void) 
     56inline OSG::FieldContainerType & 
     57MultiDisplayWindowBase::getClassType(void) 
    5758{ 
    5859    return _type; 
     
    6061 
    6162//! access the numerical type of the class 
    62 inline 
    63 OSG::UInt32 MultiDisplayWindowBase::getClassTypeId(void) 
     63inline OSG::UInt32 
     64MultiDisplayWindowBase::getClassTypeId(void) 
    6465{ 
    6566    return _type.getId(); 
    6667} 
    6768 
    68 inline 
    69 OSG::UInt16 MultiDisplayWindowBase::getClassGroupId(void) 
     69inline OSG::UInt16 
     70MultiDisplayWindowBase::getClassGroupId(void) 
    7071{ 
    7172    return _type.getGroupId(); 
    7273} 
    7374 
    74 /*------------------------------ get -----------------------------------*/ 
    75  
    76 //! Get the value of the MultiDisplayWindow::_sfHServers field. 
    77  
    78 inline 
    79 UInt32 &MultiDisplayWindowBase::editHServers(void) 
     75/*-------------------------------------------------------------------------*/ 
     76/* Field SFHServers                                                        */ 
     77 
     78inline SFUInt32 * 
     79MultiDisplayWindowBase::editSFHServers(void) 
    8080{ 
    8181    editSField(HServersFieldMask); 
    8282 
     83    return &_sfHServers; 
     84} 
     85 
     86inline SFUInt32 const * 
     87MultiDisplayWindowBase::getSFHServers (void) const 
     88{ 
     89    return &_sfHServers; 
     90} 
     91 
     92#ifdef OSG_1_GET_COMPAT 
     93inline SFUInt32 * 
     94MultiDisplayWindowBase::getSFHServers (void) 
     95{ 
     96    return this->editSFHServers(); 
     97} 
     98#endif 
     99 
     100inline UInt32 & 
     101MultiDisplayWindowBase::editHServers(void) 
     102{ 
     103    editSField(HServersFieldMask); 
     104 
    83105    return _sfHServers.getValue(); 
    84106} 
    85107 
    86 //! Get the value of the MultiDisplayWindow::_sfHServers field. 
    87 inline 
    88 const UInt32 &MultiDisplayWindowBase::getHServers(void) const 
     108inline UInt32 const & 
     109MultiDisplayWindowBase::getHServers (void) const 
    89110{ 
    90111    return _sfHServers.getValue(); 
    91112} 
    92  
    93 #ifdef OSG_1_GET_COMPAT 
    94 inline 
    95 UInt32              &MultiDisplayWindowBase::getHServers       (void) 
    96 
    97     return this->editHServers       (); 
    98 
    99 #endif 
    100  
    101 //! Set the value of the MultiDisplayWindow::_sfHServers field. 
    102 inline 
    103 void MultiDisplayWindowBase::setHServers(const UInt32 &value) 
     113#ifdef OSG_1_GET_COMPAT 
     114inline UInt32 & 
     115MultiDisplayWindowBase::getHServers (void) 
     116
     117    return this->editHServers(); 
     118
     119#endif 
     120 
     121inline void 
     122MultiDisplayWindowBase::setHServers( 
     123    SFUInt32::ArgumentType value) 
    104124{ 
    105125    editSField(HServersFieldMask); 
     
    107127    _sfHServers.setValue(value); 
    108128} 
    109 //! Get the value of the MultiDisplayWindow::_sfVServers field. 
    110  
    111 inline 
    112 UInt32 &MultiDisplayWindowBase::editVServers(void) 
     129 
     130/*-------------------------------------------------------------------------*/ 
     131/* Field SFVServers                                                        */ 
     132 
     133inline SFUInt32 * 
     134MultiDisplayWindowBase::editSFVServers(void) 
    113135{ 
    114136    editSField(VServersFieldMask); 
    115137 
     138    return &_sfVServers; 
     139} 
     140 
     141inline SFUInt32 const * 
     142MultiDisplayWindowBase::getSFVServers (void) const 
     143{ 
     144    return &_sfVServers; 
     145} 
     146 
     147#ifdef OSG_1_GET_COMPAT 
     148inline SFUInt32 * 
     149MultiDisplayWindowBase::getSFVServers (void) 
     150{ 
     151    return this->editSFVServers(); 
     152} 
     153#endif 
     154 
     155inline UInt32 & 
     156MultiDisplayWindowBase::editVServers(void) 
     157{ 
     158    editSField(VServersFieldMask); 
     159 
    116160    return _sfVServers.getValue(); 
    117161} 
    118162 
    119 //! Get the value of the MultiDisplayWindow::_sfVServers field. 
    120 inline 
    121 const UInt32 &MultiDisplayWindowBase::getVServers(void) const 
     163inline UInt32 const & 
     164MultiDisplayWindowBase::getVServers (void) const 
    122165{ 
    123166    return _sfVServers.getValue(); 
    124167} 
    125  
    126 #ifdef OSG_1_GET_COMPAT 
    127 inline 
    128 UInt32              &MultiDisplayWindowBase::getVServers       (void) 
    129 
    130     return this->editVServers       (); 
    131 
    132 #endif 
    133  
    134 //! Set the value of the MultiDisplayWindow::_sfVServers field. 
    135 inline 
    136 void MultiDisplayWindowBase::setVServers(const UInt32 &value) 
     168#ifdef OSG_1_GET_COMPAT 
     169inline UInt32 & 
     170MultiDisplayWindowBase::getVServers (void) 
     171
     172    return this->editVServers(); 
     173
     174#endif 
     175 
     176inline void 
     177MultiDisplayWindowBase::setVServers( 
     178    SFUInt32::ArgumentType value) 
    137179{ 
    138180    editSField(VServersFieldMask); 
     
    140182    _sfVServers.setValue(value); 
    141183} 
    142 //! Get the value of the MultiDisplayWindow::_sfManageClientViewports field. 
    143  
    144 inline 
    145 bool &MultiDisplayWindowBase::editManageClientViewports(void) 
     184 
     185/*-------------------------------------------------------------------------*/ 
     186/* Field SFManageClientViewports                                           */ 
     187 
     188inline SFBool * 
     189MultiDisplayWindowBase::editSFManageClientViewports(void) 
    146190{ 
    147191    editSField(ManageClientViewportsFieldMask); 
    148192 
     193    return &_sfManageClientViewports; 
     194} 
     195 
     196inline SFBool const * 
     197MultiDisplayWindowBase::getSFManageClientViewports (void) const 
     198{ 
     199    return &_sfManageClientViewports; 
     200} 
     201 
     202#ifdef OSG_1_GET_COMPAT 
     203inline SFBool * 
     204MultiDisplayWindowBase::getSFManageClientViewports (void) 
     205{ 
     206    return this->editSFManageClientViewports(); 
     207} 
     208#endif 
     209 
     210inline bool & 
     211MultiDisplayWindowBase::editManageClientViewports(void) 
     212{ 
     213    editSField(ManageClientViewportsFieldMask); 
     214 
    149215    return _sfManageClientViewports.getValue(); 
    150216} 
    151217 
    152 //! Get the value of the MultiDisplayWindow::_sfManageClientViewports field. 
    153 inline 
    154 const bool &MultiDisplayWindowBase::getManageClientViewports(void) const 
     218inline bool const & 
     219MultiDisplayWindowBase::getManageClientViewports (void) const 
    155220{ 
    156221    return _sfManageClientViewports.getValue(); 
    157222} 
    158  
    159 #ifdef OSG_1_GET_COMPAT 
    160 inline 
    161 bool                &MultiDisplayWindowBase::getManageClientViewports(void) 
     223#ifdef OSG_1_GET_COMPAT 
     224inline bool & 
     225MultiDisplayWindowBase::getManageClientViewports (void) 
    162226{ 
    163227    return this->editManageClientViewports(); 
     
    165229#endif 
    166230 
    167 //! Set the value of the MultiDisplayWindow::_sfManageClientViewports field. 
    168 inline 
    169 void MultiDisplayWindowBase::setManageClientViewports(const bool &value) 
     231inline void 
     232MultiDisplayWindowBase::setManageClientViewports( 
     233    SFbool::ArgumentType value) 
    170234{ 
    171235    editSField(ManageClientViewportsFieldMask); 
     
    173237    _sfManageClientViewports.setValue(value); 
    174238} 
    175 //! Get the value of the MultiDisplayWindow::_sfXOverlap field. 
    176  
    177 inline 
    178 Int32 &MultiDisplayWindowBase::editXOverlap(void) 
     239 
     240/*-------------------------------------------------------------------------*/ 
     241/* Field SFXOverlap                                                        */ 
     242 
     243inline SFInt32 * 
     244MultiDisplayWindowBase::editSFXOverlap(void) 
    179245{ 
    180246    editSField(XOverlapFieldMask); 
    181247 
     248    return &_sfXOverlap; 
     249} 
     250 
     251inline SFInt32 const * 
     252MultiDisplayWindowBase::getSFXOverlap (void) const 
     253{ 
     254    return &_sfXOverlap; 
     255} 
     256 
     257#ifdef OSG_1_GET_COMPAT 
     258inline SFInt32 * 
     259MultiDisplayWindowBase::getSFXOverlap (void) 
     260{ 
     261    return this->editSFXOverlap(); 
     262} 
     263#endif 
     264 
     265inline Int32 & 
     266MultiDisplayWindowBase::editXOverlap(void) 
     267{ 
     268    editSField(XOverlapFieldMask); 
     269 
    182270    return _sfXOverlap.getValue(); 
    183271} 
    184272 
    185 //! Get the value of the MultiDisplayWindow::_sfXOverlap field. 
    186 inline 
    187 const Int32 &MultiDisplayWindowBase::getXOverlap(void) const 
     273inline Int32 const & 
     274MultiDisplayWindowBase::getXOverlap (void) const 
    188275{ 
    189276    return _sfXOverlap.getValue(); 
    190277} 
    191  
    192 #ifdef OSG_1_GET_COMPAT 
    193 inline 
    194 Int32               &MultiDisplayWindowBase::getXOverlap       (void) 
    195 
    196     return this->editXOverlap       (); 
    197 
    198 #endif 
    199  
    200 //! Set the value of the MultiDisplayWindow::_sfXOverlap field. 
    201 inline 
    202 void MultiDisplayWindowBase::setXOverlap(const Int32 &value) 
     278#ifdef OSG_1_GET_COMPAT 
     279inline Int32 & 
     280MultiDisplayWindowBase::getXOverlap (void) 
     281
     282    return this->editXOverlap(); 
     283
     284#endif 
     285 
     286inline void 
     287MultiDisplayWindowBase::setXOverlap( 
     288    SFInt32::ArgumentType value) 
    203289{ 
    204290    editSField(XOverlapFieldMask); 
     
    206292    _sfXOverlap.setValue(value); 
    207293} 
    208 //! Get the value of the MultiDisplayWindow::_sfYOverlap field. 
    209  
    210 inline 
    211 Int32 &MultiDisplayWindowBase::editYOverlap(void) 
     294 
     295/*-------------------------------------------------------------------------*/ 
     296/* Field SFYOverlap                                                        */ 
     297 
     298inline SFInt32 * 
     299MultiDisplayWindowBase::editSFYOverlap(void) 
    212300{ 
    213301    editSField(YOverlapFieldMask); 
    214302 
     303    return &_sfYOverlap; 
     304} 
     305 
     306inline SFInt32 const * 
     307MultiDisplayWindowBase::getSFYOverlap (void) const 
     308{ 
     309    return &_sfYOverlap; 
     310} 
     311 
     312#ifdef OSG_1_GET_COMPAT 
     313inline SFInt32 * 
     314MultiDisplayWindowBase::getSFYOverlap (void) 
     315{ 
     316    return this->editSFYOverlap(); 
     317} 
     318#endif 
     319 
     320inline Int32 & 
     321MultiDisplayWindowBase::editYOverlap(void) 
     322{ 
     323    editSField(YOverlapFieldMask); 
     324 
    215325    return _sfYOverlap.getValue(); 
    216326} 
    217327 
    218 //! Get the value of the MultiDisplayWindow::_sfYOverlap field. 
    219 inline 
    220 const Int32 &MultiDisplayWindowBase::getYOverlap(void) const 
     328inline Int32 const & 
     329MultiDisplayWindowBase::getYOverlap (void) const 
    221330{ 
    222331    return _sfYOverlap.getValue(); 
    223332} 
    224  
    225 #ifdef OSG_1_GET_COMPAT 
    226 inline 
    227 Int32               &MultiDisplayWindowBase::getYOverlap       (void) 
    228 
    229     return this->editYOverlap       (); 
    230 
    231 #endif 
    232  
    233 //! Set the value of the MultiDisplayWindow::_sfYOverlap field. 
    234 inline 
    235 void MultiDisplayWindowBase::setYOverlap(const Int32 &value) 
     333#ifdef OSG_1_GET_COMPAT 
     334inline Int32 & 
     335MultiDisplayWindowBase::getYOverlap (void) 
     336
     337    return this->editYOverlap(); 
     338
     339#endif 
     340 
     341inline void 
     342MultiDisplayWindowBase::setYOverlap( 
     343    SFInt32::ArgumentType value) 
    236344{ 
    237345    editSField(YOverlapFieldMask); 
     
    240348} 
    241349 
     350     
    242351 
    243352#ifdef OSG_MT_CPTR_ASPECT 
    244353inline 
    245 void MultiDisplayWindowBase::execSync (      MultiDisplayWindowBase *pFrom, 
    246                                         ConstFieldMaskArg  whichField, 
    247                                         AspectOffsetStore &oOffsets, 
    248                                         ConstFieldMaskArg  syncMode, 
    249                                   const UInt32             uiSyncInfo) 
     354void MultiDisplayWindowBase::execSync (MultiDisplayWindowBase *pFrom, 
     355                                  ConstFieldMaskArg  whichField, 
     356                                  AspectOffsetStore &oOffsets, 
     357                                  ConstFieldMaskArg  syncMode, 
     358                                  UInt32 const       uiSyncInfo) 
    250359{ 
    251360    Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo); 
     
    269378 
    270379 
    271 inline 
    272 Char8 *MultiDisplayWindowBase::getClassname(void) 
     380inline Char8 const * 
     381MultiDisplayWindowBase::getClassname(void) 
    273382{ 
    274383    return "MultiDisplayWindow"; 
    275384} 
    276 OSG_GEN_CONTAINERPTR(MultiDisplayWindow); 
    277385 
    278386OSG_END_NAMESPACE