Changeset 6248

Show
Ignore:
Timestamp:
02/21/07 14:48:01
Author:
robert
Message:

Removed the exclusion of CullSettings? from the genwrapper.conf, and then changed the CullStack? RefMatrix& methods to RefMatrix*
as the RefMatrix& versions caused the wrappers to fail.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenSceneGraph/trunk/examples/osgdepthpartition/DepthPartitionNode.cpp

    r5757 r6248  
    8989    // We are in the cull traversal, so first collect information on the 
    9090    // current modelview and projection matrices and viewport. 
    91     osg::RefMatrix& modelview = cv->getModelViewMatrix(); 
    92     osg::RefMatrix& projection = cv->getProjectionMatrix(); 
     91    osg::RefMatrix& modelview = *(cv->getModelViewMatrix()); 
     92    osg::RefMatrix& projection = *(cv->getProjectionMatrix()); 
    9393    osg::Viewport* viewport = cv->getViewport(); 
    9494 
  • OpenSceneGraph/trunk/examples/osgprerendercubemap/osgprerendercubemap.cpp

    r6168 r6248  
    184184            if (cv) 
    185185            { 
    186                 osg::Quat quat = cv->getModelViewMatrix().getRotate(); 
     186                osg::Quat quat = cv->getModelViewMatrix()->getRotate(); 
    187187                _texmat->setMatrix(osg::Matrix::rotate(quat.inverse())); 
    188188            } 
  • OpenSceneGraph/trunk/examples/osgvertexprogram/osgvertexprogram.cpp

    r5962 r6248  
    182182        if (cv) 
    183183        { 
    184             const osg::Matrix& MV = cv->getModelViewMatrix(); 
     184            const osg::Matrix& MV = *(cv->getModelViewMatrix()); 
    185185            const osg::Matrix R = osg::Matrix::rotate( osg::DegreesToRadians(112.0f), 0.0f,0.0f,1.0f)* 
    186186                                  osg::Matrix::rotate( osg::DegreesToRadians(90.0f), 1.0f,0.0f,0.0f); 
  • OpenSceneGraph/trunk/genwrapper.conf

    r6095 r6248  
    4545 
    4646 
    47 suppress reflector "osg::CullStack" 
     47# suppress reflector "osg::CullStack" 
    4848 
    4949ignore file "osgViewer/GraphicsWindowX11" 
  • OpenSceneGraph/trunk/include/osg/CullStack

    r6109 r6248  
    132132         
    133133        inline osg::Viewport* getViewport(); 
    134         inline osg::RefMatrix& getModelViewMatrix(); 
    135         inline osg::RefMatrix& getProjectionMatrix(); 
     134        inline osg::RefMatrix* getModelViewMatrix(); 
     135        inline osg::RefMatrix* getProjectionMatrix(); 
    136136        inline osg::Matrix getWindowMatrix(); 
    137         inline const osg::RefMatrix& getMVPW(); 
     137        inline const osg::RefMatrix* getMVPW(); 
    138138         
    139139        inline const osg::Vec3& getReferenceViewPoint() const { return _referenceViewPoints.back(); } 
     
    218218} 
    219219 
    220 inline osg::RefMatrix& CullStack::getModelViewMatrix() 
     220inline osg::RefMatrix* CullStack::getModelViewMatrix() 
    221221{ 
    222222    if (!_modelviewStack.empty()) 
    223223    { 
    224         return *_modelviewStack.back(); 
    225     } 
    226     else 
    227     { 
    228         return *_identity
    229     } 
    230 } 
    231  
    232 inline osg::RefMatrix& CullStack::getProjectionMatrix() 
     224        return _modelviewStack.back().get(); 
     225    } 
     226    else 
     227    { 
     228        return _identity.get()
     229    } 
     230} 
     231 
     232inline osg::RefMatrix* CullStack::getProjectionMatrix() 
    233233{ 
    234234    if (!_projectionStack.empty()) 
    235235    { 
    236         return *_projectionStack.back(); 
    237     } 
    238     else 
    239     { 
    240         return *_identity
     236        return _projectionStack.back().get(); 
     237    } 
     238    else 
     239    { 
     240        return _identity.get()
    241241    } 
    242242} 
     
    255255} 
    256256 
    257 inline const osg::RefMatrix& CullStack::getMVPW() 
     257inline const osg::RefMatrix* CullStack::getMVPW() 
    258258{ 
    259259    if (!_MVPW_Stack.empty()) 
     
    261261        if (!_MVPW_Stack.back()) 
    262262        { 
    263             _MVPW_Stack.back() = createOrReuseMatrix(getModelViewMatrix()); 
    264             (*_MVPW_Stack.back()) *= getProjectionMatrix(); 
     263            _MVPW_Stack.back() = createOrReuseMatrix(*getModelViewMatrix()); 
     264            (*_MVPW_Stack.back()) *= *(getProjectionMatrix()); 
    265265            (*_MVPW_Stack.back()) *= getWindowMatrix(); 
    266266        } 
    267         return *_MVPW_Stack.back(); 
    268     } 
    269     else 
    270     { 
    271         return *_identity
     267        return _MVPW_Stack.back().get(); 
     268    } 
     269    else 
     270    { 
     271        return _identity.get()
    272272    } 
    273273} 
  • OpenSceneGraph/trunk/src/osg/AutoTransform.cpp

    r6107 r6248  
    119119                osg::Vec3 position = getPosition(); 
    120120 
    121                 const osg::Matrix& projection = cs->getProjectionMatrix(); 
     121                const osg::Matrix& projection = *(cs->getProjectionMatrix()); 
    122122 
    123123                bool doUpdate = _firstTimeToInitEyePoint; 
     
    162162                    if (_autoRotateMode==ROTATE_TO_SCREEN) 
    163163                    { 
    164                         osg::Quat rotation = cs->getModelViewMatrix().getRotate(); 
     164                        osg::Quat rotation = cs->getModelViewMatrix()->getRotate(); 
    165165                        setRotation(rotation.inverse()); 
    166166                    } 
  • OpenSceneGraph/trunk/src/osg/CollectOccludersVisitor.cpp

    r6109 r6248  
    8888    pushCurrentMask(); 
    8989 
    90     ref_ptr<osg::RefMatrix> matrix = createOrReuseMatrix(getModelViewMatrix()); 
     90    ref_ptr<osg::RefMatrix> matrix = createOrReuseMatrix(*getModelViewMatrix()); 
    9191    node.computeLocalToWorldMatrix(*matrix,this); 
    9292    pushModelViewMatrix(matrix.get(), node.getReferenceFrame()); 
  • OpenSceneGraph/trunk/src/osg/CullStack.cpp

    r6109 r6248  
    271271{ 
    272272    osg::Matrix invP; 
    273     invP.invert(getProjectionMatrix()); 
     273    invP.invert(*getProjectionMatrix()); 
    274274 
    275275    osg::Vec3 f1(-1,-1,-1); f1 = f1*invP; 
  • OpenSceneGraph/trunk/src/osg/ShadowVolumeOccluder.cpp

    r5328 r6248  
    183183    CullingSet& cullingset = cullStack.getCurrentCullingSet(); 
    184184 
    185     const RefMatrix& MV = cullStack.getModelViewMatrix(); 
    186     const RefMatrix& P = cullStack.getProjectionMatrix(); 
     185    const RefMatrix& MV = *cullStack.getModelViewMatrix(); 
     186    const RefMatrix& P = *cullStack.getProjectionMatrix(); 
    187187 
    188188    // take a reference to the NodePath to this occluder. 
  • OpenSceneGraph/trunk/src/osgParticle/PrecipitationEffect.cpp

    r6051 r6248  
    276276        { 
    277277            cv->pushStateSet(precipitationDrawableSet->_quadPrecipitationDrawable->getStateSet()); 
    278             cv->addDrawableAndDepth(precipitationDrawableSet->_quadPrecipitationDrawable.get(),&cv->getModelViewMatrix(),depth);     
     278            cv->addDrawableAndDepth(precipitationDrawableSet->_quadPrecipitationDrawable.get(),cv->getModelViewMatrix(),depth);     
    279279            cv->popStateSet(); 
    280280        } 
     
    283283        { 
    284284            cv->pushStateSet(precipitationDrawableSet->_linePrecipitationDrawable->getStateSet()); 
    285             cv->addDrawableAndDepth(precipitationDrawableSet->_linePrecipitationDrawable.get(),&cv->getModelViewMatrix(),depth);     
     285            cv->addDrawableAndDepth(precipitationDrawableSet->_linePrecipitationDrawable.get(),cv->getModelViewMatrix(),depth);     
    286286            cv->popStateSet(); 
    287287        } 
     
    290290        { 
    291291            cv->pushStateSet(precipitationDrawableSet->_pointPrecipitationDrawable->getStateSet()); 
    292             cv->addDrawableAndDepth(precipitationDrawableSet->_pointPrecipitationDrawable.get(),&cv->getModelViewMatrix(),depth);     
     292            cv->addDrawableAndDepth(precipitationDrawableSet->_pointPrecipitationDrawable.get(),cv->getModelViewMatrix(),depth);     
    293293            cv->popStateSet(); 
    294294        } 
     
    732732 
    733733    osg::Matrix inverse_modelview; 
    734     inverse_modelview.invert(cv->getModelViewMatrix()); 
     734    inverse_modelview.invert(*(cv->getModelViewMatrix())); 
    735735     
    736736    osg::Vec3 eyeLocal = osg::Vec3(0.0f,0.0f,0.0f) * inverse_modelview; 
     
    747747    osg::Polytope frustum; 
    748748    frustum.setToUnitFrustum(false,false); 
    749     frustum.transformProvidingInverse(cv->getProjectionMatrix()); 
    750     frustum.transformProvidingInverse(cv->getModelViewMatrix()); 
     749    frustum.transformProvidingInverse(*(cv->getProjectionMatrix())); 
     750    frustum.transformProvidingInverse(*(cv->getModelViewMatrix())); 
    751751 
    752752    float i_delta = _farTransition * _inverse_du.x(); 
     
    837837    } 
    838838 
    839     *mymodelview = cv->getModelViewMatrix(); 
     839    *mymodelview = *(cv->getModelViewMatrix()); 
    840840    mymodelview->preMult(osg::Matrix::translate(position)); 
    841841    mymodelview->preMult(osg::Matrix::scale(scale)); 
    842842     
    843     cv->updateCalculatedNearFar(cv->getModelViewMatrix(),bb); 
     843    cv->updateCalculatedNearFar(*(cv->getModelViewMatrix()),bb); 
    844844 
    845845    return true; 
  • OpenSceneGraph/trunk/src/osgPlugins/txp/TXPNode.cpp

    r6109 r6248  
    106106            tileMapper->pushReferenceViewPoint(cv->getReferenceViewPoint()); 
    107107            tileMapper->pushViewport(cv->getViewport()); 
    108             tileMapper->pushProjectionMatrix(&(cv->getProjectionMatrix())); 
    109             tileMapper->pushModelViewMatrix(&(cv->getModelViewMatrix()), osg::Transform::RELATIVE_RF); 
     108            tileMapper->pushProjectionMatrix((cv->getProjectionMatrix())); 
     109            tileMapper->pushModelViewMatrix((cv->getModelViewMatrix()), osg::Transform::RELATIVE_RF); 
    110110 
    111111            // traverse the scene graph to search for valid tiles 
  • OpenSceneGraph/trunk/src/osgShadow/ShadowMap.cpp

    r6233 r6248  
    214214     
    215215    osg::Matrix eyeToWorld; 
    216     eyeToWorld.invert(cv.getModelViewMatrix()); 
     216    eyeToWorld.invert(*cv.getModelViewMatrix()); 
    217217     
    218218    lightpos = lightpos * eyeToWorld; 
     
    266266        _camera->accept(cv); 
    267267 
    268         orig_rs->getPositionalStateContainer()->addPositionedTextureAttribute(_textureUnit, &cv.getModelViewMatrix(), _texgen.get()); 
     268        orig_rs->getPositionalStateContainer()->addPositionedTextureAttribute(_textureUnit, cv.getModelViewMatrix(), _texgen.get()); 
    269269    } 
    270270 
  • OpenSceneGraph/trunk/src/osgShadow/ShadowTexture.cpp

    r6236 r6248  
    158158     
    159159    osg::Matrix eyeToWorld; 
    160     eyeToWorld.invert(cv.getModelViewMatrix()); 
     160    eyeToWorld.invert(*cv.getModelViewMatrix()); 
    161161     
    162162    lightpos = lightpos * eyeToWorld; 
     
    210210        _camera->accept(cv); 
    211211 
    212         orig_rs->getPositionalStateContainer()->addPositionedTextureAttribute(_textureUnit, &cv.getModelViewMatrix(), _texgen.get()); 
     212        orig_rs->getPositionalStateContainer()->addPositionedTextureAttribute(_textureUnit, cv.getModelViewMatrix(), _texgen.get()); 
    213213    } 
    214214     
  • OpenSceneGraph/trunk/src/osgShadow/ShadowVolume.cpp

    r6226 r6248  
    327327 
    328328            osg::Matrix eyeToWorld; 
    329             eyeToWorld.invert(cv.getModelViewMatrix()); 
     329            eyeToWorld.invert(*cv.getModelViewMatrix()); 
    330330             
    331331            _occluder->computeShadowVolumeGeometry(lightpos * eyeToWorld, *_shadowVolume); 
  • OpenSceneGraph/trunk/src/osgSim/Impostor.cpp

    r5757 r6248  
    143143        // to use impostor instead. 
    144144         
    145         RefMatrix& matrix = cv->getModelViewMatrix(); 
     145        RefMatrix& matrix = *cv->getModelViewMatrix(); 
    146146 
    147147        // search for the best fit ImpostorSprite; 
     
    151151        { 
    152152            // impostor found, now check to see if it is good enough to use 
    153             float error = impostorSprite->calcPixelError(cv->getMVPW()); 
     153            float error = impostorSprite->calcPixelError(*(cv->getMVPW())); 
    154154 
    155155            if (error>cv->getImpostorPixelErrorThreshold()) 
     
    221221    bool isPerspectiveProjection = true; 
    222222 
    223     const Matrix& matrix = cv->getModelViewMatrix(); 
     223    const Matrix& matrix = *(cv->getModelViewMatrix()); 
    224224    const BoundingSphere& bs = getBound(); 
    225225    osg::Vec3 eye_local = cv->getEyeLocal(); 
     
    265265    // convert the corners of the sprite (in world coords) into their 
    266266    // equivilant window coordinates by using the camera's project method. 
    267     const osg::Matrix& MVPW = cv->getMVPW(); 
     267    const osg::Matrix& MVPW = *(cv->getMVPW()); 
    268268    Vec3 c00_win = c00 * MVPW; 
    269269    Vec3 c11_win = c11 * MVPW; 
     
    449449        osg::Matrix::rotate(rotate_from,rotate_to)* 
    450450        osg::Matrix::translate(eye_local)* 
    451         cv->getModelViewMatrix(); 
     451        *cv->getModelViewMatrix(); 
    452452 
    453453    camera->setReferenceFrame(osg::Transform::ABSOLUTE_RF); 
  • OpenSceneGraph/trunk/src/osgSim/LightPointNode.cpp

    r6051 r6248  
    156156    { 
    157157     
    158         osg::Matrix matrix = cv->getModelViewMatrix(); 
    159         osg::RefMatrix& projection = cv->getProjectionMatrix(); 
     158        osg::Matrix matrix = *(cv->getModelViewMatrix()); 
     159        osg::RefMatrix& projection = *(cv->getProjectionMatrix()); 
    160160        osgUtil::StateGraph* rg = cv->getCurrentStateGraph(); 
    161161 
  • OpenSceneGraph/trunk/src/osgSim/OverlayNode.cpp

    r5957 r6248  
    258258        _texgenNode->accept(*cv); 
    259259         
    260         const osg::Matrix modelView = (cv->getModelViewMatrix()); 
     260        const osg::Matrix modelView = *(cv->getModelViewMatrix()); 
    261261        osg::Polytope viewTextureFrustum; 
    262262        viewTextureFrustum.setAndTransformProvidingInverse(_textureFrustum, osg::Matrix::inverse(modelView)); 
  • OpenSceneGraph/trunk/src/osgUtil/CullVisitor.cpp

    r6224 r6248  
    736736    handle_cull_callbacks_and_traverse(node); 
    737737 
    738     RefMatrix& matrix = getModelViewMatrix(); 
     738    RefMatrix& matrix = *getModelViewMatrix(); 
    739739    for(unsigned int i=0;i<node.getNumDrawables();++i) 
    740740    { 
     
    814814 
    815815    const Vec3& eye_local = getEyeLocal(); 
    816     const RefMatrix& modelview = getModelViewMatrix(); 
     816    const RefMatrix& modelview = *getModelViewMatrix(); 
    817817 
    818818    for(unsigned int i=0;i<node.getNumDrawables();++i) 
     
    868868        if (node.getReferenceFrame()==osg::LightSource::RELATIVE_RF) 
    869869        { 
    870             RefMatrix& matrix = getModelViewMatrix(); 
     870            RefMatrix& matrix = *getModelViewMatrix(); 
    871871            addPositionedAttribute(&matrix,light); 
    872872        } 
     
    890890    if (node_state) pushStateSet(node_state); 
    891891 
    892     RefMatrix& matrix = getModelViewMatrix(); 
     892    RefMatrix& matrix = *getModelViewMatrix(); 
    893893 
    894894    const ClipNode::ClipPlaneList& planes = node.getClipPlaneList(); 
     
    915915    if (node.getReferenceFrame()==osg::TexGenNode::RELATIVE_RF) 
    916916    { 
    917         RefMatrix& matrix = getModelViewMatrix(); 
     917        RefMatrix& matrix = *getModelViewMatrix(); 
    918918        addPositionedTextureAttribute(node.getTextureUnit(), &matrix ,node.getTexGen()); 
    919919    } 
     
    960960    if (node_state) pushStateSet(node_state); 
    961961 
    962     ref_ptr<RefMatrix> matrix = createOrReuseMatrix(getModelViewMatrix()); 
     962    ref_ptr<RefMatrix> matrix = createOrReuseMatrix(*getModelViewMatrix()); 
    963963    node.computeLocalToWorldMatrix(*matrix,this); 
    964964    pushModelViewMatrix(matrix.get(), node.getReferenceFrame()); 
     
    11131113    inheritCullSettings(camera); 
    11141114 
    1115     RefMatrix& originalModelView = getModelViewMatrix(); 
     1115    RefMatrix& originalModelView = *getModelViewMatrix(); 
    11161116 
    11171117    osg::RefMatrix* projection = 0; 
     
    11221122        if (camera.getTransformOrder()==osg::Camera::POST_MULTIPLY) 
    11231123        { 
    1124             projection = createOrReuseMatrix(getProjectionMatrix()*camera.getProjectionMatrix()); 
    1125             modelview = createOrReuseMatrix(getModelViewMatrix()*camera.getViewMatrix()); 
     1124            projection = createOrReuseMatrix(*getProjectionMatrix()*camera.getProjectionMatrix()); 
     1125            modelview = createOrReuseMatrix(*getModelViewMatrix()*camera.getViewMatrix()); 
    11261126        } 
    11271127        else // pre multiply  
    11281128        { 
    1129             projection = createOrReuseMatrix(camera.getProjectionMatrix()*getProjectionMatrix()); 
    1130             modelview = createOrReuseMatrix(camera.getViewMatrix()*getModelViewMatrix()); 
     1129            projection = createOrReuseMatrix(camera.getProjectionMatrix()*(*getProjectionMatrix())); 
     1130            modelview = createOrReuseMatrix(camera.getViewMatrix()*(*getModelViewMatrix())); 
    11311131        } 
    11321132    } 
     
    12291229        osg::Matrix inhertiedMVtolocalMV; 
    12301230        inhertiedMVtolocalMV.invert(originalModelView); 
    1231         inhertiedMVtolocalMV.postMult(getModelViewMatrix()); 
     1231        inhertiedMVtolocalMV.postMult(*getModelViewMatrix()); 
    12321232        rtts->setInheritedPositionalStateContainerMatrix(inhertiedMVtolocalMV); 
    12331233        rtts->setInheritedPositionalStateContainer(previous_stage->getPositionalStateContainer()); 
  • OpenSceneGraph/trunk/src/osgViewer/View.cpp

    r6230 r6248  
    260260void View::assignSceneDataToCameras() 
    261261{ 
     262    osg::notify(osg::NOTICE)<<"View::assignSceneDataToCameras()"<<std::endl; 
     263 
    262264    osg::Node* sceneData = _scene.valid() ? _scene->getSceneData() : 0; 
    263265     
  • OpenSceneGraph/trunk/src/osgViewer/Viewer.cpp

    r6243 r6248  
    14811481 
    14821482 
    1483                     // osg::notify(osg::NOTICE)<<"localCamera"<<std::endl; 
     1483                    osg::notify(osg::NOTICE)<<"localCamera "<<camera->getName()<<std::endl; 
    14841484                    ViewerDoubleBufferedRenderingOperation* vdbro = new ViewerDoubleBufferedRenderingOperation(graphicsThreadDoesCull, sceneViewList[0], sceneViewList[1], dp, _startTick); 
    14851485                    gc->add(vdbro); 
  • OpenSceneGraph/trunk/src/osgWrappers/osg/CullStack.cpp

    r6113 r6248  
    3434TYPE_NAME_ALIAS(std::vector< osg::CullingSet >, osg::CullStack::CullingStack); 
    3535 
     36BEGIN_OBJECT_REFLECTOR(osg::CullStack) 
     37        I_BaseType(osg::CullSettings); 
     38        I_Constructor0(____CullStack, 
     39                       "", 
     40                       ""); 
     41        I_Method0(void, reset, 
     42                  Properties::NON_VIRTUAL, 
     43                  __void__reset, 
     44                  "", 
     45                  ""); 
     46        I_Method1(void, setOccluderList, IN, const osg::ShadowVolumeOccluderList &, svol, 
     47                  Properties::NON_VIRTUAL, 
     48                  __void__setOccluderList__C5_ShadowVolumeOccluderList_R1, 
     49                  "", 
     50                  ""); 
     51        I_Method0(osg::ShadowVolumeOccluderList &, getOccluderList, 
     52                  Properties::NON_VIRTUAL, 
     53                  __ShadowVolumeOccluderList_R1__getOccluderList, 
     54                  "", 
     55                  ""); 
     56        I_Method0(const osg::ShadowVolumeOccluderList &, getOccluderList, 
     57                  Properties::NON_VIRTUAL, 
     58                  __C5_ShadowVolumeOccluderList_R1__getOccluderList, 
     59                  "", 
     60                  ""); 
     61        I_Method1(void, pushViewport, IN, osg::Viewport *, viewport, 
     62                  Properties::NON_VIRTUAL, 
     63                  __void__pushViewport__osg_Viewport_P1, 
     64                  "", 
     65                  ""); 
     66        I_Method0(void, popViewport, 
     67                  Properties::NON_VIRTUAL, 
     68                  __void__popViewport, 
     69                  "", 
     70                  ""); 
     71        I_Method1(void, pushProjectionMatrix, IN, osg::RefMatrix *, matrix, 
     72                  Properties::NON_VIRTUAL, 
     73                  __void__pushProjectionMatrix__osg_RefMatrix_P1, 
     74                  "", 
     75                  ""); 
     76        I_Method0(void, popProjectionMatrix, 
     77                  Properties::NON_VIRTUAL, 
     78                  __void__popProjectionMatrix, 
     79                  "", 
     80                  ""); 
     81        I_Method2(void, pushModelViewMatrix, IN, osg::RefMatrix *, matrix, IN, osg::Transform::ReferenceFrame, referenceFrame, 
     82                  Properties::NON_VIRTUAL, 
     83                  __void__pushModelViewMatrix__osg_RefMatrix_P1__Transform_ReferenceFrame, 
     84                  "", 
     85                  ""); 
     86        I_Method0(void, popModelViewMatrix, 
     87                  Properties::NON_VIRTUAL, 
     88                  __void__popModelViewMatrix, 
     89                  "", 
     90                  ""); 
     91        I_Method0(float, getFrustumVolume, 
     92                  Properties::NON_VIRTUAL, 
     93                  __float__getFrustumVolume, 
     94                  "", 
     95                  ""); 
     96        I_Method2(float, pixelSize, IN, const osg::Vec3 &, v, IN, float, radius, 
     97                  Properties::NON_VIRTUAL, 
     98                  __float__pixelSize__C5_Vec3_R1__float, 
     99                  "Compute the pixel size of an object at position v, with specified radius. ", 
     100                  ""); 
     101        I_Method1(float, pixelSize, IN, const osg::BoundingSphere &, bs, 
     102                  Properties::NON_VIRTUAL, 
     103                  __float__pixelSize__C5_BoundingSphere_R1, 
     104                  "Compute the pixel size of the bounding sphere. ", 
     105                  ""); 
     106        I_Method2(float, clampedPixelSize, IN, const osg::Vec3 &, v, IN, float, radius, 
     107                  Properties::NON_VIRTUAL, 
     108                  __float__clampedPixelSize__C5_Vec3_R1__float, 
     109                  "Compute the pixel size of an object at position v, with specified radius. ", 
     110                  "fabs()ed to always be positive. "); 
     111        I_Method1(float, clampedPixelSize, IN, const osg::BoundingSphere &, bs, 
     112                  Properties::NON_VIRTUAL, 
     113                  __float__clampedPixelSize__C5_BoundingSphere_R1, 
     114                  "Compute the pixel size of the bounding sphere. ", 
     115                  "fabs()ed to always be positive. "); 
     116        I_Method1(void, disableAndPushOccludersCurrentMask, IN, osg::NodePath &, nodePath, 
     117                  Properties::NON_VIRTUAL, 
     118                  __void__disableAndPushOccludersCurrentMask__NodePath_R1, 
     119                  "", 
     120                  ""); 
     121        I_Method1(void, popOccludersCurrentMask, IN, osg::NodePath &, nodePath, 
     122                  Properties::NON_VIRTUAL, 
     123                  __void__popOccludersCurrentMask__NodePath_R1, 
     124                  "", 
     125                  ""); 
     126        I_Method1(bool, isCulled, IN, const std::vector< osg::Vec3 > &, vertices, 
     127                  Properties::NON_VIRTUAL, 
     128                  __bool__isCulled__C5_std_vectorT1_Vec3__R1, 
     129                  "", 
     130                  ""); 
     131        I_Method1(bool, isCulled, IN, const osg::BoundingBox &, bb, 
     132                  Properties::NON_VIRTUAL, 
     133                  __bool__isCulled__C5_BoundingBox_R1, 
     134                  "", 
     135                  ""); 
     136        I_Method1(bool, isCulled, IN, const osg::BoundingSphere &, bs, 
     137                  Properties::NON_VIRTUAL, 
     138                  __bool__isCulled__C5_BoundingSphere_R1, 
     139                  "", 
     140                  ""); 
     141        I_Method1(bool, isCulled, IN, const osg::Node &, node, 
     142                  Properties::NON_VIRTUAL, 
     143                  __bool__isCulled__C5_osg_Node_R1, 
     144                  "", 
     145                  ""); 
     146        I_Method0(void, pushCurrentMask, 
     147                  Properties::NON_VIRTUAL, 
     148                  __void__pushCurrentMask, 
     149                  "", 
     150                  ""); 
     151        I_Method0(void, popCurrentMask, 
     152                  Properties::NON_VIRTUAL, 
     153                  __void__popCurrentMask, 
     154                  "", 
     155                  ""); 
     156        I_Method0(osg::CullStack::CullingStack &, getClipSpaceCullingStack, 
     157                  Properties::NON_VIRTUAL, 
     158                  __CullingStack_R1__getClipSpaceCullingStack, 
     159                  "", 
     160                  ""); 
     161        I_Method0(osg::CullStack::CullingStack &, getProjectionCullingStack, 
     162                  Properties::NON_VIRTUAL, 
     163                  __CullingStack_R1__getProjectionCullingStack, 
     164                  "", 
     165                  ""); 
     166        I_Method0(osg::CullStack::CullingStack &, getModelViewCullingStack, 
     167                  Properties::NON_VIRTUAL, 
     168                  __CullingStack_R1__getModelViewCullingStack, 
     169                  "", 
     170                  ""); 
     171        I_Method0(osg::CullingSet &, getCurrentCullingSet, 
     172                  Properties::NON_VIRTUAL, 
     173                  __CullingSet_R1__getCurrentCullingSet, 
     174                  "", 
     175                  ""); 
     176        I_Method0(const osg::CullingSet &, getCurrentCullingSet, 
     177                  Properties::NON_VIRTUAL, 
     178                  __C5_CullingSet_R1__getCurrentCullingSet, 
     179                  "", 
     180                  ""); 
     181        I_Method0(osg::Viewport *, getViewport, 
     182                  Properties::NON_VIRTUAL, 
     183                  __osg_Viewport_P1__getViewport, 
     184                  "", 
     185                  ""); 
     186        I_Method0(osg::RefMatrix *, getModelViewMatrix, 
     187                  Properties::NON_VIRTUAL, 
     188                  __osg_RefMatrix_P1__getModelViewMatrix, 
     189                  "", 
     190                  ""); 
     191        I_Method0(osg::RefMatrix *, getProjectionMatrix, 
     192                  Properties::NON_VIRTUAL, 
     193                  __osg_RefMatrix_P1__getProjectionMatrix, 
     194                  "", 
     195                  ""); 
     196        I_Method0(osg::Matrix, getWindowMatrix, 
     197                  Properties::NON_VIRTUAL, 
     198                  __osg_Matrix__getWindowMatrix, 
     199                  "", 
     200                  ""); 
     201        I_Method0(const osg::RefMatrix *, getMVPW, 
     202                  Properties::NON_VIRTUAL, 
     203                  __C5_osg_RefMatrix_P1__getMVPW, 
     204                  "", 
     205                  ""); 
     206        I_Method0(const osg::Vec3 &, getReferenceViewPoint, 
     207                  Properties::NON_VIRTUAL, 
     208                  __C5_osg_Vec3_R1__getReferenceViewPoint, 
     209                  "", 
     210                  ""); 
     211        I_Method1(void, pushReferenceViewPoint, IN, const osg::Vec3 &, viewPoint, 
     212                  Properties::NON_VIRTUAL, 
     213                  __void__pushReferenceViewPoint__C5_osg_Vec3_R1, 
     214                  "", 
     215                  ""); 
     216        I_Method0(void, popReferenceViewPoint, 
     217                  Properties::NON_VIRTUAL, 
     218                  __void__popReferenceViewPoint, 
     219                  "", 
     220                  ""); 
     221        I_Method0(const osg::Vec3 &, getEyeLocal, 
     222                  Properties::NON_VIRTUAL, 
     223                  __C5_osg_Vec3_R1__getEyeLocal, 
     224                  "", 
     225                  ""); 
     226        I_Method0(const osg::Vec3 &, getViewPointLocal, 
     227                  Properties::NON_VIRTUAL, 
     228                  __C5_osg_Vec3_R1__getViewPointLocal, 
     229                  "", 
     230                  ""); 
     231        I_Method0(const osg::Vec3, getUpLocal, 
     232                  Properties::NON_VIRTUAL, 
     233                  __C5_osg_Vec3__getUpLocal, 
     234                  "", 
     235                  ""); 
     236        I_Method0(const osg::Vec3, getLookVectorLocal, 
     237                  Properties::NON_VIRTUAL, 
     238                  __C5_osg_Vec3__getLookVectorLocal, 
     239                  "", 
     240                  ""); 
     241        I_SimpleProperty(osg::CullStack::CullingStack &, ClipSpaceCullingStack,  
     242                         __CullingStack_R1__getClipSpaceCullingStack,  
     243                         0); 
     244        I_SimpleProperty(osg::CullingSet &, CurrentCullingSet,  
     245                         __CullingSet_R1__getCurrentCullingSet,  
     246                         0); 
     247        I_SimpleProperty(const osg::Vec3 &, EyeLocal,  
     248                         __C5_osg_Vec3_R1__getEyeLocal,  
     249                         0); 
     250        I_SimpleProperty(float, FrustumVolume,  
     251                         __float__getFrustumVolume,  
     252                         0); 
     253        I_SimpleProperty(const osg::Vec3, LookVectorLocal,  
     254                         __C5_osg_Vec3__getLookVectorLocal,  
     255                         0); 
     256        I_SimpleProperty(const osg::RefMatrix *, MVPW,  
     257                         __C5_osg_RefMatrix_P1__getMVPW,  
     258                         0); 
     259        I_SimpleProperty(osg::CullStack::CullingStack &, ModelViewCullingStack,  
     260                         __CullingStack_R1__getModelViewCullingStack,  
     261                         0); 
     262        I_SimpleProperty(osg::RefMatrix *, ModelViewMatrix,  
     263                         __osg_RefMatrix_P1__getModelViewMatrix,  
     264                         0); 
     265        I_SimpleProperty(const osg::ShadowVolumeOccluderList &, OccluderList,  
     266                         __C5_ShadowVolumeOccluderList_R1__getOccluderList,  
     267                         __void__setOccluderList__C5_ShadowVolumeOccluderList_R1); 
     268        I_SimpleProperty(osg::CullStack::CullingStack &, ProjectionCullingStack,  
     269                         __CullingStack_R1__getProjectionCullingStack,  
     270                         0); 
     271        I_SimpleProperty(osg::RefMatrix *, ProjectionMatrix,  
     272                         __osg_RefMatrix_P1__getProjectionMatrix,  
     273                         0); 
     274        I_SimpleProperty(const osg::Vec3 &, ReferenceViewPoint,  
     275                         __C5_osg_Vec3_R1__getReferenceViewPoint,  
     276                         0); 
     277        I_SimpleProperty(const osg::Vec3, UpLocal,  
     278                         __C5_osg_Vec3__getUpLocal,  
     279                         0); 
     280        I_SimpleProperty(const osg::Vec3 &, ViewPointLocal,  
     281                         __C5_osg_Vec3_R1__getViewPointLocal,  
     282                         0); 
     283        I_SimpleProperty(osg::Viewport *, Viewport,  
     284                         __osg_Viewport_P1__getViewport,  
     285                         0); 
     286        I_SimpleProperty(osg::Matrix, WindowMatrix,  
     287                         __osg_Matrix__getWindowMatrix,  
     288                         0); 
     289END_REFLECTOR 
     290 
    36291STD_VECTOR_REFLECTOR(std::vector< osg::CullingSet >); 
    37292 
  • OpenSceneGraph/trunk/src/osgWrappers/osgViewer/Scene.cpp

    r6227 r6248  
    1414#include <osg/Node> 
    1515#include <osgDB/DatabasePager> 
     16#include <osgUtil/UpdateVisitor> 
    1617#include <osgViewer/Scene> 
    1718 
     
    7475                  "", 
    7576                  ""); 
     77        I_Method1(void, setUpdateVisitor, IN, osgUtil::UpdateVisitor *, uv, 
     78                  Properties::NON_VIRTUAL, 
     79                  __void__setUpdateVisitor__osgUtil_UpdateVisitor_P1, 
     80                  "", 
     81                  ""); 
     82        I_Method0(osgUtil::UpdateVisitor *, getUpdateVisitor, 
     83                  Properties::NON_VIRTUAL, 
     84                  __osgUtil_UpdateVisitor_P1__getUpdateVisitor, 
     85                  "", 
     86                  ""); 
     87        I_Method0(const osgUtil::UpdateVisitor *, getUpdateVisitor, 
     88                  Properties::NON_VIRTUAL, 
     89                  __C5_osgUtil_UpdateVisitor_P1__getUpdateVisitor, 
     90                  "", 
     91                  ""); 
    7692        I_Method0(void, frameAdvance, 
    7793                  Properties::VIRTUAL, 
     
    98114                         __osg_Node_P1__getSceneData,  
    99115                         __void__setSceneData__osg_Node_P1); 
     116        I_SimpleProperty(osgUtil::UpdateVisitor *, UpdateVisitor,  
     117                         __osgUtil_UpdateVisitor_P1__getUpdateVisitor,  
     118                         __void__setUpdateVisitor__osgUtil_UpdateVisitor_P1); 
    100119END_REFLECTOR 
    101120