Changeset 6248
- Timestamp:
- 02/21/07 14:48:01
- Files:
-
- OpenSceneGraph/trunk/examples/osgdepthpartition/DepthPartitionNode.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgprerendercubemap/osgprerendercubemap.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgvertexprogram/osgvertexprogram.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/genwrapper.conf (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/CullStack (modified) (4 diffs)
- OpenSceneGraph/trunk/src/osg/AutoTransform.cpp (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osg/CollectOccludersVisitor.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osg/CullStack.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osg/ShadowVolumeOccluder.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgParticle/PrecipitationEffect.cpp (modified) (6 diffs)
- OpenSceneGraph/trunk/src/osgPlugins/txp/TXPNode.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgShadow/ShadowMap.cpp (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osgShadow/ShadowTexture.cpp (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osgShadow/ShadowVolume.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgSim/Impostor.cpp (modified) (5 diffs)
- OpenSceneGraph/trunk/src/osgSim/LightPointNode.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgSim/OverlayNode.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgUtil/CullVisitor.cpp (modified) (9 diffs)
- OpenSceneGraph/trunk/src/osgViewer/View.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgViewer/Viewer.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgWrappers/osg/CullStack.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgWrappers/osgViewer/Scene.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph/trunk/examples/osgdepthpartition/DepthPartitionNode.cpp
r5757 r6248 89 89 // We are in the cull traversal, so first collect information on the 90 90 // 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()); 93 93 osg::Viewport* viewport = cv->getViewport(); 94 94 OpenSceneGraph/trunk/examples/osgprerendercubemap/osgprerendercubemap.cpp
r6168 r6248 184 184 if (cv) 185 185 { 186 osg::Quat quat = cv->getModelViewMatrix() .getRotate();186 osg::Quat quat = cv->getModelViewMatrix()->getRotate(); 187 187 _texmat->setMatrix(osg::Matrix::rotate(quat.inverse())); 188 188 } OpenSceneGraph/trunk/examples/osgvertexprogram/osgvertexprogram.cpp
r5962 r6248 182 182 if (cv) 183 183 { 184 const osg::Matrix& MV = cv->getModelViewMatrix();184 const osg::Matrix& MV = *(cv->getModelViewMatrix()); 185 185 const osg::Matrix R = osg::Matrix::rotate( osg::DegreesToRadians(112.0f), 0.0f,0.0f,1.0f)* 186 186 osg::Matrix::rotate( osg::DegreesToRadians(90.0f), 1.0f,0.0f,0.0f); OpenSceneGraph/trunk/genwrapper.conf
r6095 r6248 45 45 46 46 47 suppress reflector "osg::CullStack"47 # suppress reflector "osg::CullStack" 48 48 49 49 ignore file "osgViewer/GraphicsWindowX11" OpenSceneGraph/trunk/include/osg/CullStack
r6109 r6248 132 132 133 133 inline osg::Viewport* getViewport(); 134 inline osg::RefMatrix &getModelViewMatrix();135 inline osg::RefMatrix &getProjectionMatrix();134 inline osg::RefMatrix* getModelViewMatrix(); 135 inline osg::RefMatrix* getProjectionMatrix(); 136 136 inline osg::Matrix getWindowMatrix(); 137 inline const osg::RefMatrix &getMVPW();137 inline const osg::RefMatrix* getMVPW(); 138 138 139 139 inline const osg::Vec3& getReferenceViewPoint() const { return _referenceViewPoints.back(); } … … 218 218 } 219 219 220 inline osg::RefMatrix &CullStack::getModelViewMatrix()220 inline osg::RefMatrix* CullStack::getModelViewMatrix() 221 221 { 222 222 if (!_modelviewStack.empty()) 223 223 { 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 232 inline osg::RefMatrix* CullStack::getProjectionMatrix() 233 233 { 234 234 if (!_projectionStack.empty()) 235 235 { 236 return *_projectionStack.back();237 } 238 else 239 { 240 return *_identity;236 return _projectionStack.back().get(); 237 } 238 else 239 { 240 return _identity.get(); 241 241 } 242 242 } … … 255 255 } 256 256 257 inline const osg::RefMatrix &CullStack::getMVPW()257 inline const osg::RefMatrix* CullStack::getMVPW() 258 258 { 259 259 if (!_MVPW_Stack.empty()) … … 261 261 if (!_MVPW_Stack.back()) 262 262 { 263 _MVPW_Stack.back() = createOrReuseMatrix( getModelViewMatrix());264 (*_MVPW_Stack.back()) *= getProjectionMatrix();263 _MVPW_Stack.back() = createOrReuseMatrix(*getModelViewMatrix()); 264 (*_MVPW_Stack.back()) *= *(getProjectionMatrix()); 265 265 (*_MVPW_Stack.back()) *= getWindowMatrix(); 266 266 } 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(); 272 272 } 273 273 } OpenSceneGraph/trunk/src/osg/AutoTransform.cpp
r6107 r6248 119 119 osg::Vec3 position = getPosition(); 120 120 121 const osg::Matrix& projection = cs->getProjectionMatrix();121 const osg::Matrix& projection = *(cs->getProjectionMatrix()); 122 122 123 123 bool doUpdate = _firstTimeToInitEyePoint; … … 162 162 if (_autoRotateMode==ROTATE_TO_SCREEN) 163 163 { 164 osg::Quat rotation = cs->getModelViewMatrix() .getRotate();164 osg::Quat rotation = cs->getModelViewMatrix()->getRotate(); 165 165 setRotation(rotation.inverse()); 166 166 } OpenSceneGraph/trunk/src/osg/CollectOccludersVisitor.cpp
r6109 r6248 88 88 pushCurrentMask(); 89 89 90 ref_ptr<osg::RefMatrix> matrix = createOrReuseMatrix( getModelViewMatrix());90 ref_ptr<osg::RefMatrix> matrix = createOrReuseMatrix(*getModelViewMatrix()); 91 91 node.computeLocalToWorldMatrix(*matrix,this); 92 92 pushModelViewMatrix(matrix.get(), node.getReferenceFrame()); OpenSceneGraph/trunk/src/osg/CullStack.cpp
r6109 r6248 271 271 { 272 272 osg::Matrix invP; 273 invP.invert( getProjectionMatrix());273 invP.invert(*getProjectionMatrix()); 274 274 275 275 osg::Vec3 f1(-1,-1,-1); f1 = f1*invP; OpenSceneGraph/trunk/src/osg/ShadowVolumeOccluder.cpp
r5328 r6248 183 183 CullingSet& cullingset = cullStack.getCurrentCullingSet(); 184 184 185 const RefMatrix& MV = cullStack.getModelViewMatrix();186 const RefMatrix& P = cullStack.getProjectionMatrix();185 const RefMatrix& MV = *cullStack.getModelViewMatrix(); 186 const RefMatrix& P = *cullStack.getProjectionMatrix(); 187 187 188 188 // take a reference to the NodePath to this occluder. OpenSceneGraph/trunk/src/osgParticle/PrecipitationEffect.cpp
r6051 r6248 276 276 { 277 277 cv->pushStateSet(precipitationDrawableSet->_quadPrecipitationDrawable->getStateSet()); 278 cv->addDrawableAndDepth(precipitationDrawableSet->_quadPrecipitationDrawable.get(), &cv->getModelViewMatrix(),depth);278 cv->addDrawableAndDepth(precipitationDrawableSet->_quadPrecipitationDrawable.get(),cv->getModelViewMatrix(),depth); 279 279 cv->popStateSet(); 280 280 } … … 283 283 { 284 284 cv->pushStateSet(precipitationDrawableSet->_linePrecipitationDrawable->getStateSet()); 285 cv->addDrawableAndDepth(precipitationDrawableSet->_linePrecipitationDrawable.get(), &cv->getModelViewMatrix(),depth);285 cv->addDrawableAndDepth(precipitationDrawableSet->_linePrecipitationDrawable.get(),cv->getModelViewMatrix(),depth); 286 286 cv->popStateSet(); 287 287 } … … 290 290 { 291 291 cv->pushStateSet(precipitationDrawableSet->_pointPrecipitationDrawable->getStateSet()); 292 cv->addDrawableAndDepth(precipitationDrawableSet->_pointPrecipitationDrawable.get(), &cv->getModelViewMatrix(),depth);292 cv->addDrawableAndDepth(precipitationDrawableSet->_pointPrecipitationDrawable.get(),cv->getModelViewMatrix(),depth); 293 293 cv->popStateSet(); 294 294 } … … 732 732 733 733 osg::Matrix inverse_modelview; 734 inverse_modelview.invert( cv->getModelViewMatrix());734 inverse_modelview.invert(*(cv->getModelViewMatrix())); 735 735 736 736 osg::Vec3 eyeLocal = osg::Vec3(0.0f,0.0f,0.0f) * inverse_modelview; … … 747 747 osg::Polytope frustum; 748 748 frustum.setToUnitFrustum(false,false); 749 frustum.transformProvidingInverse( cv->getProjectionMatrix());750 frustum.transformProvidingInverse( cv->getModelViewMatrix());749 frustum.transformProvidingInverse(*(cv->getProjectionMatrix())); 750 frustum.transformProvidingInverse(*(cv->getModelViewMatrix())); 751 751 752 752 float i_delta = _farTransition * _inverse_du.x(); … … 837 837 } 838 838 839 *mymodelview = cv->getModelViewMatrix();839 *mymodelview = *(cv->getModelViewMatrix()); 840 840 mymodelview->preMult(osg::Matrix::translate(position)); 841 841 mymodelview->preMult(osg::Matrix::scale(scale)); 842 842 843 cv->updateCalculatedNearFar( cv->getModelViewMatrix(),bb);843 cv->updateCalculatedNearFar(*(cv->getModelViewMatrix()),bb); 844 844 845 845 return true; OpenSceneGraph/trunk/src/osgPlugins/txp/TXPNode.cpp
r6109 r6248 106 106 tileMapper->pushReferenceViewPoint(cv->getReferenceViewPoint()); 107 107 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); 110 110 111 111 // traverse the scene graph to search for valid tiles OpenSceneGraph/trunk/src/osgShadow/ShadowMap.cpp
r6233 r6248 214 214 215 215 osg::Matrix eyeToWorld; 216 eyeToWorld.invert( cv.getModelViewMatrix());216 eyeToWorld.invert(*cv.getModelViewMatrix()); 217 217 218 218 lightpos = lightpos * eyeToWorld; … … 266 266 _camera->accept(cv); 267 267 268 orig_rs->getPositionalStateContainer()->addPositionedTextureAttribute(_textureUnit, &cv.getModelViewMatrix(), _texgen.get());268 orig_rs->getPositionalStateContainer()->addPositionedTextureAttribute(_textureUnit, cv.getModelViewMatrix(), _texgen.get()); 269 269 } 270 270 OpenSceneGraph/trunk/src/osgShadow/ShadowTexture.cpp
r6236 r6248 158 158 159 159 osg::Matrix eyeToWorld; 160 eyeToWorld.invert( cv.getModelViewMatrix());160 eyeToWorld.invert(*cv.getModelViewMatrix()); 161 161 162 162 lightpos = lightpos * eyeToWorld; … … 210 210 _camera->accept(cv); 211 211 212 orig_rs->getPositionalStateContainer()->addPositionedTextureAttribute(_textureUnit, &cv.getModelViewMatrix(), _texgen.get());212 orig_rs->getPositionalStateContainer()->addPositionedTextureAttribute(_textureUnit, cv.getModelViewMatrix(), _texgen.get()); 213 213 } 214 214 OpenSceneGraph/trunk/src/osgShadow/ShadowVolume.cpp
r6226 r6248 327 327 328 328 osg::Matrix eyeToWorld; 329 eyeToWorld.invert( cv.getModelViewMatrix());329 eyeToWorld.invert(*cv.getModelViewMatrix()); 330 330 331 331 _occluder->computeShadowVolumeGeometry(lightpos * eyeToWorld, *_shadowVolume); OpenSceneGraph/trunk/src/osgSim/Impostor.cpp
r5757 r6248 143 143 // to use impostor instead. 144 144 145 RefMatrix& matrix = cv->getModelViewMatrix();145 RefMatrix& matrix = *cv->getModelViewMatrix(); 146 146 147 147 // search for the best fit ImpostorSprite; … … 151 151 { 152 152 // 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())); 154 154 155 155 if (error>cv->getImpostorPixelErrorThreshold()) … … 221 221 bool isPerspectiveProjection = true; 222 222 223 const Matrix& matrix = cv->getModelViewMatrix();223 const Matrix& matrix = *(cv->getModelViewMatrix()); 224 224 const BoundingSphere& bs = getBound(); 225 225 osg::Vec3 eye_local = cv->getEyeLocal(); … … 265 265 // convert the corners of the sprite (in world coords) into their 266 266 // equivilant window coordinates by using the camera's project method. 267 const osg::Matrix& MVPW = cv->getMVPW();267 const osg::Matrix& MVPW = *(cv->getMVPW()); 268 268 Vec3 c00_win = c00 * MVPW; 269 269 Vec3 c11_win = c11 * MVPW; … … 449 449 osg::Matrix::rotate(rotate_from,rotate_to)* 450 450 osg::Matrix::translate(eye_local)* 451 cv->getModelViewMatrix();451 *cv->getModelViewMatrix(); 452 452 453 453 camera->setReferenceFrame(osg::Transform::ABSOLUTE_RF); OpenSceneGraph/trunk/src/osgSim/LightPointNode.cpp
r6051 r6248 156 156 { 157 157 158 osg::Matrix matrix = cv->getModelViewMatrix();159 osg::RefMatrix& projection = cv->getProjectionMatrix();158 osg::Matrix matrix = *(cv->getModelViewMatrix()); 159 osg::RefMatrix& projection = *(cv->getProjectionMatrix()); 160 160 osgUtil::StateGraph* rg = cv->getCurrentStateGraph(); 161 161 OpenSceneGraph/trunk/src/osgSim/OverlayNode.cpp
r5957 r6248 258 258 _texgenNode->accept(*cv); 259 259 260 const osg::Matrix modelView = (cv->getModelViewMatrix());260 const osg::Matrix modelView = *(cv->getModelViewMatrix()); 261 261 osg::Polytope viewTextureFrustum; 262 262 viewTextureFrustum.setAndTransformProvidingInverse(_textureFrustum, osg::Matrix::inverse(modelView)); OpenSceneGraph/trunk/src/osgUtil/CullVisitor.cpp
r6224 r6248 736 736 handle_cull_callbacks_and_traverse(node); 737 737 738 RefMatrix& matrix = getModelViewMatrix();738 RefMatrix& matrix = *getModelViewMatrix(); 739 739 for(unsigned int i=0;i<node.getNumDrawables();++i) 740 740 { … … 814 814 815 815 const Vec3& eye_local = getEyeLocal(); 816 const RefMatrix& modelview = getModelViewMatrix();816 const RefMatrix& modelview = *getModelViewMatrix(); 817 817 818 818 for(unsigned int i=0;i<node.getNumDrawables();++i) … … 868 868 if (node.getReferenceFrame()==osg::LightSource::RELATIVE_RF) 869 869 { 870 RefMatrix& matrix = getModelViewMatrix();870 RefMatrix& matrix = *getModelViewMatrix(); 871 871 addPositionedAttribute(&matrix,light); 872 872 } … … 890 890 if (node_state) pushStateSet(node_state); 891 891 892 RefMatrix& matrix = getModelViewMatrix();892 RefMatrix& matrix = *getModelViewMatrix(); 893 893 894 894 const ClipNode::ClipPlaneList& planes = node.getClipPlaneList(); … … 915 915 if (node.getReferenceFrame()==osg::TexGenNode::RELATIVE_RF) 916 916 { 917 RefMatrix& matrix = getModelViewMatrix();917 RefMatrix& matrix = *getModelViewMatrix(); 918 918 addPositionedTextureAttribute(node.getTextureUnit(), &matrix ,node.getTexGen()); 919 919 } … … 960 960 if (node_state) pushStateSet(node_state); 961 961 962 ref_ptr<RefMatrix> matrix = createOrReuseMatrix( getModelViewMatrix());962 ref_ptr<RefMatrix> matrix = createOrReuseMatrix(*getModelViewMatrix()); 963 963 node.computeLocalToWorldMatrix(*matrix,this); 964 964 pushModelViewMatrix(matrix.get(), node.getReferenceFrame()); … … 1113 1113 inheritCullSettings(camera); 1114 1114 1115 RefMatrix& originalModelView = getModelViewMatrix();1115 RefMatrix& originalModelView = *getModelViewMatrix(); 1116 1116 1117 1117 osg::RefMatrix* projection = 0; … … 1122 1122 if (camera.getTransformOrder()==osg::Camera::POST_MULTIPLY) 1123 1123 { 1124 projection = createOrReuseMatrix( getProjectionMatrix()*camera.getProjectionMatrix());1125 modelview = createOrReuseMatrix( getModelViewMatrix()*camera.getViewMatrix());1124 projection = createOrReuseMatrix(*getProjectionMatrix()*camera.getProjectionMatrix()); 1125 modelview = createOrReuseMatrix(*getModelViewMatrix()*camera.getViewMatrix()); 1126 1126 } 1127 1127 else // pre multiply 1128 1128 { 1129 projection = createOrReuseMatrix(camera.getProjectionMatrix()* getProjectionMatrix());1130 modelview = createOrReuseMatrix(camera.getViewMatrix()* getModelViewMatrix());1129 projection = createOrReuseMatrix(camera.getProjectionMatrix()*(*getProjectionMatrix())); 1130 modelview = createOrReuseMatrix(camera.getViewMatrix()*(*getModelViewMatrix())); 1131 1131 } 1132 1132 } … … 1229 1229 osg::Matrix inhertiedMVtolocalMV; 1230 1230 inhertiedMVtolocalMV.invert(originalModelView); 1231 inhertiedMVtolocalMV.postMult( getModelViewMatrix());1231 inhertiedMVtolocalMV.postMult(*getModelViewMatrix()); 1232 1232 rtts->setInheritedPositionalStateContainerMatrix(inhertiedMVtolocalMV); 1233 1233 rtts->setInheritedPositionalStateContainer(previous_stage->getPositionalStateContainer()); OpenSceneGraph/trunk/src/osgViewer/View.cpp
r6230 r6248 260 260 void View::assignSceneDataToCameras() 261 261 { 262 osg::notify(osg::NOTICE)<<"View::assignSceneDataToCameras()"<<std::endl; 263 262 264 osg::Node* sceneData = _scene.valid() ? _scene->getSceneData() : 0; 263 265 OpenSceneGraph/trunk/src/osgViewer/Viewer.cpp
r6243 r6248 1481 1481 1482 1482 1483 // osg::notify(osg::NOTICE)<<"localCamera"<<std::endl;1483 osg::notify(osg::NOTICE)<<"localCamera "<<camera->getName()<<std::endl; 1484 1484 ViewerDoubleBufferedRenderingOperation* vdbro = new ViewerDoubleBufferedRenderingOperation(graphicsThreadDoesCull, sceneViewList[0], sceneViewList[1], dp, _startTick); 1485 1485 gc->add(vdbro); OpenSceneGraph/trunk/src/osgWrappers/osg/CullStack.cpp
r6113 r6248 34 34 TYPE_NAME_ALIAS(std::vector< osg::CullingSet >, osg::CullStack::CullingStack); 35 35 36 BEGIN_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); 289 END_REFLECTOR 290 36 291 STD_VECTOR_REFLECTOR(std::vector< osg::CullingSet >); 37 292 OpenSceneGraph/trunk/src/osgWrappers/osgViewer/Scene.cpp
r6227 r6248 14 14 #include <osg/Node> 15 15 #include <osgDB/DatabasePager> 16 #include <osgUtil/UpdateVisitor> 16 17 #include <osgViewer/Scene> 17 18 … … 74 75 "", 75 76 ""); 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 ""); 76 92 I_Method0(void, frameAdvance, 77 93 Properties::VIRTUAL, … … 98 114 __osg_Node_P1__getSceneData, 99 115 __void__setSceneData__osg_Node_P1); 116 I_SimpleProperty(osgUtil::UpdateVisitor *, UpdateVisitor, 117 __osgUtil_UpdateVisitor_P1__getUpdateVisitor, 118 __void__setUpdateVisitor__osgUtil_UpdateVisitor_P1); 100 119 END_REFLECTOR 101 120
