Show
Ignore:
Timestamp:
10/04/07 19:11:34 (1 year ago)
Author:
cneumann
Message:

Work in progress commit.

NOTE: it does NOT compile at this point.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork/Source/System/Cluster/Window/SortFirst/OSGSortFirstWindowBase.h

    r864 r965  
    9393 
    9494    /*==========================  PUBLIC  =================================*/ 
    95  
    9695  public: 
    9796 
     
    120119 
    121120    /*---------------------------------------------------------------------*/ 
    122     /*! \name                    Class Get                                 */ 
     121    /*! \name Class Get                                                    */ 
    123122    /*! \{                                                                 */ 
    124123 
     
    129128    /*! \}                                                                 */ 
    130129    /*---------------------------------------------------------------------*/ 
    131     /*! \name                FieldContainer Get                            */ 
     130    /*! \name FieldContainer Get                                           */ 
    132131    /*! \{                                                                 */ 
    133132 
     
    139138    /*! \}                                                                 */ 
    140139    /*---------------------------------------------------------------------*/ 
    141     /*! \name                    Field Get                                 */ 
    142     /*! \{                                                                 */ 
    143  
    144  
    145 #ifdef OSG_1_GET_COMPAT 
    146                   SFString            *getSFCompression     (void); 
    147 #endif 
    148                   SFString            *editSFCompression    (void); 
    149             const SFString            *getSFCompression     (void) const; 
    150  
    151 #ifdef OSG_1_GET_COMPAT 
    152                   SFUInt32            *getSFSubtileSize     (void); 
    153 #endif 
    154                   SFUInt32            *editSFSubtileSize    (void); 
    155             const SFUInt32            *getSFSubtileSize     (void) const; 
    156  
    157 #ifdef OSG_1_GET_COMPAT 
    158                   SFBool              *getSFCompose         (void); 
    159 #endif 
    160                   SFBool              *editSFCompose        (void); 
    161             const SFBool              *getSFCompose         (void) const; 
    162  
    163 #ifdef OSG_1_GET_COMPAT 
    164                   MFUInt32            *getMFRegion          (void); 
    165 #endif 
    166                   MFUInt32            *editMFRegion         (void); 
    167             const MFUInt32            *getMFRegion          (void) const; 
    168  
    169 #ifdef OSG_1_GET_COMPAT 
    170                   SFBool              *getSFUseFaceDistribution (void); 
    171 #endif 
    172                   SFBool              *editSFUseFaceDistribution(void); 
    173             const SFBool              *getSFUseFaceDistribution (void) const; 
    174  
    175  
    176 #ifdef OSG_1_GET_COMPAT 
    177                   std::string         &getCompression     (void); 
    178 #endif 
    179                   std::string         &editCompression    (void); 
    180             const std::string         &getCompression     (void) const; 
    181  
    182 #ifdef OSG_1_GET_COMPAT 
    183                   UInt32              &getSubtileSize     (void); 
    184 #endif 
    185                   UInt32              &editSubtileSize    (void); 
    186             const UInt32              &getSubtileSize     (void) const; 
    187  
    188 #ifdef OSG_1_GET_COMPAT 
    189                   bool                &getCompose         (void); 
    190 #endif 
    191                   bool                &editCompose        (void); 
    192             const bool                &getCompose         (void) const; 
    193  
    194 #ifdef OSG_1_GET_COMPAT 
    195                   UInt32              &getRegion          (const UInt32 index); 
    196                   MFUInt32            &getRegion         (void); 
    197 #endif 
    198                   UInt32              &editRegion         (const UInt32 index); 
    199             const UInt32              &getRegion          (const UInt32 index) const; 
    200                   MFUInt32            &editRegion         (void); 
    201             const MFUInt32            &getRegion         (void) const; 
    202  
    203 #ifdef OSG_1_GET_COMPAT 
    204                   bool                &getUseFaceDistribution (void); 
    205 #endif 
    206                   bool                &editUseFaceDistribution(void); 
    207             const bool                &getUseFaceDistribution (void) const; 
    208  
    209     /*! \}                                                                 */ 
    210     /*---------------------------------------------------------------------*/ 
    211     /*! \name                    Field Set                                 */ 
    212     /*! \{                                                                 */ 
    213  
    214             void setCompression    (const std::string &value); 
    215             void setSubtileSize    (const UInt32 &value); 
    216             void setCompose        (const bool &value); 
    217             void setUseFaceDistribution(const bool &value); 
    218  
    219     /*! \}                                                                 */ 
    220     /*---------------------------------------------------------------------*/ 
    221     /*! \name                Ptr MField Set                                */ 
    222     /*! \{                                                                 */ 
    223  
    224  
    225     void pushToRegion                      (const UInt32    &value   ); 
    226     void insertIntoRegion                  (      UInt32     uiIndex, 
    227                                             const UInt32    &value   ); 
    228     void replaceInRegion                   (      UInt32     uiIndex, 
    229                                             const UInt32    &value   ); 
    230     void replaceInRegion                   (const UInt32    &pOldElem, 
    231                                             const UInt32    &pNewElem); 
    232     void removeFromRegion                  (      UInt32     uiIndex ); 
    233     void removeFromRegion                  (const UInt32    &value   ); 
    234     void clearRegion                       (      void               ); 
    235  
    236  
    237     /*! \}                                                                 */ 
    238     /*---------------------------------------------------------------------*/ 
    239     /*! \name                   Binary Access                              */ 
     140    /*! \name Field SFCompression                                          */ 
     141    /*! \{                                                                 */ 
     142     
     143            SFString       *editSFCompression(void); 
     144            SFString const *getSFCompression (void) const; 
     145#ifdef OSG_1_GET_COMPAT 
     146            SFString       *getSFCompression (void); 
     147#endif 
     148            std::string       &editCompression(void); 
     149            std::string const &getCompression (void) const; 
     150#ifdef OSG_1_GET_COMPAT 
     151            std::string       &getCompression (void); 
     152#endif 
     153            void setCompression(std::string const &value); 
     154     
     155    /*! \}                                                                 */ 
     156    /*---------------------------------------------------------------------*/ 
     157    /*! \name Field SFSubtileSize                                          */ 
     158    /*! \{                                                                 */ 
     159     
     160            SFUInt32       *editSFSubtileSize(void); 
     161            SFUInt32 const *getSFSubtileSize (void) const; 
     162#ifdef OSG_1_GET_COMPAT 
     163            SFUInt32       *getSFSubtileSize (void); 
     164#endif 
     165            UInt32       &editSubtileSize(void); 
     166            UInt32 const &getSubtileSize (void) const; 
     167#ifdef OSG_1_GET_COMPAT 
     168            UInt32       &getSubtileSize (void); 
     169#endif 
     170            void setSubtileSize(UInt32 const &value); 
     171     
     172    /*! \}                                                                 */ 
     173    /*---------------------------------------------------------------------*/ 
     174    /*! \name Field SFCompose                                              */ 
     175    /*! \{                                                                 */ 
     176     
     177            SFBool       *editSFCompose(void); 
     178            SFBool const *getSFCompose (void) const; 
     179#ifdef OSG_1_GET_COMPAT 
     180            SFBool       *getSFCompose (void); 
     181#endif 
     182            bool       &editCompose(void); 
     183            bool const &getCompose (void) const; 
     184#ifdef OSG_1_GET_COMPAT 
     185            bool       &getCompose (void); 
     186#endif 
     187            void setCompose(bool const &value); 
     188     
     189    /*! \}                                                                 */ 
     190    /*---------------------------------------------------------------------*/ 
     191    /*! \name Field MFRegion                                               */ 
     192    /*! \{                                                                 */ 
     193     
     194            MFUInt32       *editMFRegion(void); 
     195            MFUInt32 const *getMFRegion (void) const; 
     196#ifdef OSG_1_GET_COMPAT 
     197            MFUInt32       *getMFRegion (void); 
     198#endif 
     199            MFUInt32       &editRegion(void); 
     200            MFUInt32 const &getRegion (void) const; 
     201            UInt32       &editRegion(UInt32 const index); 
     202            UInt32 const &getRegion (UInt32 const index) const; 
     203#ifdef OSG_1_GET_COMPAT 
     204            UInt32       &getRegion (UInt32 const index); 
     205            MFUInt32 &getRegion(void); 
     206#endif 
     207    void addRegion(UInt32 const &value); 
     208    void assignRegion(MFUInt32 const &value); 
     209    void insertRegion( 
     210            UInt32 const uiIndex, 
     211            UInt32 const &value); 
     212    void replaceRegion( 
     213            UInt32 const uiIndex, 
     214            UInt32 const &value); 
     215    void replaceRegion( 
     216            UInt32 const &pOldElem, 
     217            UInt32 const &pNewElem); 
     218    void subRegion(UInt32 const uiIndex); 
     219    void subRegion(UInt32 const &value); 
     220    void clearRegion(void); 
     221     
     222    /*! \}                                                                 */ 
     223    /*---------------------------------------------------------------------*/ 
     224    /*! \name Field SFUseFaceDistribution                                  */ 
     225    /*! \{                                                                 */ 
     226     
     227            SFBool       *editSFUseFaceDistribution(void); 
     228            SFBool const *getSFUseFaceDistribution (void) const; 
     229#ifdef OSG_1_GET_COMPAT 
     230            SFBool       *getSFUseFaceDistribution (void); 
     231#endif 
     232            bool       &editUseFaceDistribution(void); 
     233            bool const &getUseFaceDistribution (void) const; 
     234#ifdef OSG_1_GET_COMPAT 
     235            bool       &getUseFaceDistribution (void); 
     236#endif 
     237            void setUseFaceDistribution(bool const &value); 
     238     
     239    /*! \}                                                                 */ 
     240     
     241    /*---------------------------------------------------------------------*/ 
     242    /*! \name Binary Access                                                */ 
    240243    /*! \{                                                                 */ 
    241244 
     
    246249                               ConstFieldMaskArg  whichField); 
    247250 
    248  
    249     /*! \}                                                                 */ 
    250     /*---------------------------------------------------------------------*/ 
    251     /*! \name                   Construction                               */ 
     251    /*! \}                                                                 */ 
     252    /*---------------------------------------------------------------------*/ 
     253    /*! \name Construction                                                 */ 
    252254    /*! \{                                                                 */ 
    253255 
     
    257259    /*! \}                                                                 */ 
    258260    /*---------------------------------------------------------------------*/ 
    259     /*! \name                       Copy                                   */ 
     261    /*! \name Copy                                                         */ 
    260262    /*! \{                                                                 */ 
    261263 
     
    264266    /*! \}                                                                 */ 
    265267    /*=========================  PROTECTED  ===============================*/ 
    266  
    267268  protected: 
    268269 
     
    273274 
    274275    /*---------------------------------------------------------------------*/ 
    275     /*! \name                      Fields                                  */ 
     276    /*! \name Fields                                                       */ 
    276277    /*! \{                                                                 */ 
    277278 
     
    284285    /*! \}                                                                 */ 
    285286    /*---------------------------------------------------------------------*/ 
    286     /*! \name                   Constructors                               */ 
     287    /*! \name Constructors                                                 */ 
    287288    /*! \{                                                                 */ 
    288289 
     
    292293    /*! \}                                                                 */ 
    293294    /*---------------------------------------------------------------------*/ 
    294     /*! \name                   Destructors                                */ 
     295    /*! \name Destructors                                                  */ 
    295296    /*! \{                                                                 */ 
    296297 
     
    299300    /*! \}                                                                 */ 
    300301    /*---------------------------------------------------------------------*/ 
    301     /*! \name                     onCreate                                */ 
    302     /*! \{                                                                 */ 
    303  
    304  
    305     /*! \}                                                                 */ 
    306     /*---------------------------------------------------------------------*/ 
    307     /*! \name                    Generic Field Access                      */ 
     302    /*! \name onCreate                                                     */ 
     303    /*! \{                                                                 */ 
     304 
     305 
     306    /*! \}                                                                 */ 
     307    /*---------------------------------------------------------------------*/ 
     308    /*! \name Generic Field Access                                         */ 
    308309    /*! \{                                                                 */ 
    309310 
     
    321322    /*! \}                                                                 */ 
    322323    /*---------------------------------------------------------------------*/ 
    323     /*! \name                       Sync                                   */ 
     324    /*! \name Sync                                                         */ 
    324325    /*! \{                                                                 */ 
    325326 
     
    340341    /*! \}                                                                 */ 
    341342    /*---------------------------------------------------------------------*/ 
    342     /*! \name                       Edit                                   */ 
    343     /*! \{                                                                 */ 
    344  
    345     /*! \}                                                                 */ 
    346     /*---------------------------------------------------------------------*/ 
    347     /*! \name                     Aspect Create                            */ 
     343    /*! \name Aspect Create                                                */ 
    348344    /*! \{                                                                 */ 
    349345 
     
    351347    virtual FieldContainerPtr createAspectCopy(void) const; 
    352348#endif 
    353  
    354     /*! \}                                                                 */ 
    355     /*---------------------------------------------------------------------*/ 
    356     /*! \name                       Edit                                   */ 
    357     /*! \{                                                                 */ 
    358     /*! \}                                                                 */ 
    359     /*---------------------------------------------------------------------*/ 
    360     /*! \name                       Sync                                   */ 
     349     
     350    /*! \}                                                                 */ 
     351    /*---------------------------------------------------------------------*/ 
     352    /*! \name Sync                                                         */ 
    361353    /*! \{                                                                 */ 
    362354 
     
    365357    /*! \}                                                                 */ 
    366358    /*==========================  PRIVATE  ================================*/ 
    367  
    368359  private: 
    369360 
     
    375366 
    376367/** Type specific RefPtr type for SortFirstWindow. */ 
    377 typedef RefPtr<SortFirstWindowPtr> SortFirstWindowRefPtr; 
     368typedef RefPtr<SortFirstWindow>   SortFirstWindowRefPtr; 
     369typedef MTRefPtr<SortFirstWindow> SortFirstWindowMTRefPtr; 
     370 
     371typedef InternalRefPtr<SortFirstWindow>       SortFirstWindowInternalRefPtr; 
     372typedef InternalRefPtr<SortFirstWindow> const SortFirstWindowInternalRefPtrConst; 
     373typedef InternalRefPtr<SortFirstWindow> const SortFirstWindowInternalRefPtrConstArg; 
    378374 
    379375typedef boost::mpl::if_<