Changeset 7648
- Timestamp:
- 12/10/07 18:30:18 (4 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 216 modified
-
applications/osgarchive/osgarchive.cpp (modified) (1 diff)
-
applications/osgconv/osgconv.cpp (modified) (4 diffs)
-
examples/osgcatch/osgcatch.cpp (modified) (3 diffs)
-
examples/osgdelaunay/osgdelaunay.cpp (modified) (1 diff)
-
examples/osgdepthpeeling/DePee.cpp (modified) (6 diffs)
-
examples/osgdepthpeeling/osgdepthpeeling.cpp (modified) (1 diff)
-
examples/osgfxbrowser/osgfxbrowser.cpp (modified) (2 diffs)
-
examples/osggeometry/osggeometry.cpp (modified) (29 diffs)
-
examples/osgimpostor/osgimpostor.cpp (modified) (1 diff)
-
examples/osglogo/osglogo.cpp (modified) (1 diff)
-
examples/osgmovie/osgmovie.cpp (modified) (2 diffs)
-
examples/osgpagedlod/osgpagedlod.cpp (modified) (1 diff)
-
examples/osgphotoalbum/osgphotoalbum.cpp (modified) (3 diffs)
-
examples/osgplanets/osgplanets.cpp (modified) (1 diff)
-
examples/osgpoints/osgpoints.cpp (modified) (1 diff)
-
examples/osgprerender/osgprerender.cpp (modified) (4 diffs)
-
examples/osgprerendercubemap/osgprerendercubemap.cpp (modified) (4 diffs)
-
examples/osgreflect/osgreflect.cpp (modified) (1 diff)
-
examples/osgslice/osgslice.cpp (modified) (1 diff)
-
examples/osgspheresegment/osgspheresegment.cpp (modified) (1 diff)
-
examples/osgstereoimage/osgstereoimage.cpp (modified) (4 diffs)
-
examples/osgtexture1D/osgtexture1D.cpp (modified) (1 diff)
-
examples/osgunittests/osgunittests.cpp (modified) (1 diff)
-
examples/osgvolume/osgvolume.cpp (modified) (6 diffs)
-
include/osg/ApplicationUsage (modified) (1 diff)
-
include/osg/ArgumentParser (modified) (4 diffs)
-
include/osg/Billboard (modified) (2 diffs)
-
include/osg/BlendColor (modified) (2 diffs)
-
include/osg/BlendEquation (modified) (2 diffs)
-
include/osg/BlendFunc (modified) (1 diff)
-
include/osg/BoundingBox (modified) (1 diff)
-
include/osg/BufferObject (modified) (2 diffs)
-
include/osg/Camera (modified) (2 diffs)
-
include/osg/CameraView (modified) (3 diffs)
-
include/osg/ClampColor (modified) (2 diffs)
-
include/osg/CollectOccludersVisitor (modified) (1 diff)
-
include/osg/CullSettings (modified) (1 diff)
-
include/osg/DeleteHandler (modified) (2 diffs)
-
include/osg/Depth (modified) (1 diff)
-
include/osg/Drawable (modified) (4 diffs)
-
include/osg/Export (modified) (1 diff)
-
include/osg/Fog (modified) (1 diff)
-
include/osg/FragmentProgram (modified) (2 diffs)
-
include/osg/FrameStamp (modified) (2 diffs)
-
include/osg/FrontFace (modified) (1 diff)
-
include/osg/Geode (modified) (1 diff)
-
include/osg/Geometry (modified) (6 diffs)
-
include/osg/GraphicsContext (modified) (9 diffs)
-
include/osg/GraphicsThread (modified) (3 diffs)
-
include/osg/Group (modified) (2 diffs)
-
include/osg/Hint (modified) (1 diff)
-
include/osg/LOD (modified) (3 diffs)
-
include/osg/Light (modified) (1 diff)
-
include/osg/LightModel (modified) (1 diff)
-
include/osg/Math (modified) (2 diffs)
-
include/osg/Matrixd (modified) (3 diffs)
-
include/osg/Matrixf (modified) (3 diffs)
-
include/osg/Multisample (modified) (2 diffs)
-
include/osg/Node (modified) (2 diffs)
-
include/osg/NodeVisitor (modified) (1 diff)
-
include/osg/Object (modified) (3 diffs)
-
include/osg/Plane (modified) (1 diff)
-
include/osg/Point (modified) (2 diffs)
-
include/osg/PolygonMode (modified) (1 diff)
-
include/osg/PolygonOffset (modified) (2 diffs)
-
include/osg/Polytope (modified) (1 diff)
-
include/osg/PrimitiveSet (modified) (2 diffs)
-
include/osg/ProxyNode (modified) (1 diff)
-
include/osg/Referenced (modified) (2 diffs)
-
include/osg/Sequence (modified) (1 diff)
-
include/osg/Shader (modified) (1 diff)
-
include/osg/ShadowVolumeOccluder (modified) (1 diff)
-
include/osg/ShapeDrawable (modified) (1 diff)
-
include/osg/State (modified) (5 diffs)
-
include/osg/StateAttribute (modified) (2 diffs)
-
include/osg/StateSet (modified) (2 diffs)
-
include/osg/StencilTwoSided (modified) (1 diff)
-
include/osg/TemplatePrimitiveFunctor (modified) (1 diff)
-
include/osg/TexEnvFilter (modified) (1 diff)
-
include/osg/TexGen (modified) (2 diffs)
-
include/osg/Texture (modified) (7 diffs)
-
include/osg/Texture1D (modified) (2 diffs)
-
include/osg/Texture2D (modified) (1 diff)
-
include/osg/Texture2DArray (modified) (4 diffs)
-
include/osg/Texture3D (modified) (4 diffs)
-
include/osg/TextureRectangle (modified) (1 diff)
-
include/osg/Timer (modified) (1 diff)
-
include/osg/Transform (modified) (4 diffs)
-
include/osg/TriangleFunctor (modified) (1 diff)
-
include/osg/Uniform (modified) (1 diff)
-
include/osg/Vec2b (modified) (1 diff)
-
include/osg/Vec2d (modified) (1 diff)
-
include/osg/Vec2s (modified) (1 diff)
-
include/osg/Vec3b (modified) (1 diff)
-
include/osg/Vec3d (modified) (1 diff)
-
include/osg/Vec3f (modified) (1 diff)
-
include/osg/Vec3s (modified) (1 diff)
-
include/osg/Vec4b (modified) (1 diff)
-
include/osg/Vec4d (modified) (1 diff)
-
include/osg/Vec4f (modified) (1 diff)
-
include/osg/Vec4s (modified) (1 diff)
-
include/osg/Vec4ub (modified) (1 diff)
-
include/osg/VertexProgram (modified) (3 diffs)
-
include/osg/Viewport (modified) (2 diffs)
-
include/osg/io_utils (modified) (2 diffs)
-
include/osgDB/DatabasePager (modified) (2 diffs)
-
include/osgDB/Export (modified) (1 diff)
-
include/osgDB/FileUtils (modified) (3 diffs)
-
include/osgDB/Registry (modified) (9 diffs)
-
include/osgDB/SharedStateManager (modified) (1 diff)
-
include/osgGA/AnimationPathManipulator (modified) (1 diff)
-
include/osgGA/EventQueue (modified) (1 diff)
-
include/osgGA/GUIActionAdapter (modified) (2 diffs)
-
include/osgGA/GUIEventAdapter (modified) (4 diffs)
-
include/osgGA/GUIEventHandler (modified) (2 diffs)
-
include/osgGA/KeySwitchMatrixManipulator (modified) (1 diff)
-
include/osgGA/MatrixManipulator (modified) (3 diffs)
-
include/osgGA/NodeTrackerManipulator (modified) (2 diffs)
-
include/osgGA/TerrainManipulator (modified) (1 diff)
-
include/osgGA/TrackballManipulator (modified) (1 diff)
-
include/osgGA/UFOManipulator (modified) (1 diff)
-
include/osgShadow/ShadowTechnique (modified) (3 diffs)
-
include/osgSim/ElevationSlice (modified) (2 diffs)
-
include/osgSim/HeightAboveTerrain (modified) (3 diffs)
-
include/osgSim/ImpostorSprite (modified) (3 diffs)
-
include/osgSim/LineOfSight (modified) (3 diffs)
-
include/osgTerrain/Locator (modified) (1 diff)
-
include/osgTerrain/Terrain (modified) (1 diff)
-
include/osgTerrain/TerrainTechnique (modified) (1 diff)
-
include/osgText/Font (modified) (1 diff)
-
include/osgText/String (modified) (1 diff)
-
include/osgText/Text (modified) (2 diffs)
-
include/osgUtil/IntersectionVisitor (modified) (3 diffs)
-
include/osgUtil/LineSegmentIntersector (modified) (2 diffs)
-
include/osgUtil/PlaneIntersector (modified) (1 diff)
-
include/osgUtil/PolytopeIntersector (modified) (1 diff)
-
include/osgViewer/CompositeViewer (modified) (1 diff)
-
include/osgViewer/Export (modified) (1 diff)
-
include/osgViewer/GraphicsWindow (modified) (4 diffs)
-
include/osgViewer/Scene (modified) (1 diff)
-
include/osgViewer/View (modified) (3 diffs)
-
include/osgViewer/Viewer (modified) (1 diff)
-
include/osgViewer/ViewerBase (modified) (4 diffs)
-
include/osgViewer/api/Win32/GraphicsWindowWin32 (modified) (1 diff)
-
include/osgViewer/api/Win32/PixelBufferWin32 (modified) (2 diffs)
-
src/osg/AnimationPath.cpp (modified) (1 diff)
-
src/osg/ApplicationUsage.cpp (modified) (1 diff)
-
src/osg/ClipNode.cpp (modified) (2 diffs)
-
src/osg/CullingSet.cpp (modified) (1 diff)
-
src/osg/DeleteHandler.cpp (modified) (1 diff)
-
src/osg/DrawPixels.cpp (modified) (1 diff)
-
src/osg/Drawable.cpp (modified) (5 diffs)
-
src/osg/FrameBufferObject.cpp (modified) (2 diffs)
-
src/osg/Geode.cpp (modified) (2 diffs)
-
src/osg/Geometry.cpp (modified) (8 diffs)
-
src/osg/GraphicsContext.cpp (modified) (7 diffs)
-
src/osg/GraphicsThread.cpp (modified) (1 diff)
-
src/osg/Node.cpp (modified) (7 diffs)
-
src/osg/OperationThread.cpp (modified) (6 diffs)
-
src/osg/PolygonOffset.cpp (modified) (1 diff)
-
src/osg/PolygonStipple.cpp (modified) (1 diff)
-
src/osg/Program.cpp (modified) (1 diff)
-
src/osg/Referenced.cpp (modified) (2 diffs)
-
src/osg/ShapeDrawable.cpp (modified) (2 diffs)
-
src/osg/State.cpp (modified) (4 diffs)
-
src/osg/StateSet.cpp (modified) (8 diffs)
-
src/osg/Texture.cpp (modified) (2 diffs)
-
src/osg/Texture1D.cpp (modified) (2 diffs)
-
src/osg/Texture2D.cpp (modified) (2 diffs)
-
src/osg/Texture2DArray.cpp (modified) (3 diffs)
-
src/osg/Texture3D.cpp (modified) (2 diffs)
-
src/osg/TextureRectangle.cpp (modified) (2 diffs)
-
src/osg/View.cpp (modified) (1 diff)
-
src/osg/dxtctool.cpp (modified) (1 diff)
-
src/osgDB/DatabasePager.cpp (modified) (6 diffs)
-
src/osgDB/DotOsgWrapper.cpp (modified) (1 diff)
-
src/osgDB/Registry.cpp (modified) (10 diffs)
-
src/osgGA/DriveManipulator.cpp (modified) (1 diff)
-
src/osgGA/TerrainManipulator.cpp (modified) (3 diffs)
-
src/osgManipulator/Projector.cpp (modified) (1 diff)
-
src/osgPlugins/3ds/ReaderWriter3DS.cpp (modified) (3 diffs)
-
src/osgPlugins/ive/DrawArrayLengths.cpp (modified) (1 diff)
-
src/osgPlugins/ive/DrawElementsUByte.cpp (modified) (1 diff)
-
src/osgPlugins/ive/DrawElementsUInt.cpp (modified) (1 diff)
-
src/osgPlugins/ive/DrawElementsUShort.cpp (modified) (1 diff)
-
src/osgPlugins/normals/Normals.cpp (modified) (1 diff)
-
src/osgPlugins/osgViewer/View.cpp (modified) (2 diffs)
-
src/osgShadow/ParallelSplitShadowMap.cpp (modified) (5 diffs)
-
src/osgShadow/ShadowMap.cpp (modified) (1 diff)
-
src/osgShadow/ShadowTexture.cpp (modified) (1 diff)
-
src/osgShadow/SoftShadowMap.cpp (modified) (1 diff)
-
src/osgSim/Impostor.cpp (modified) (1 diff)
-
src/osgSim/LineOfSight.cpp (modified) (1 diff)
-
src/osgSim/SphereSegment.cpp (modified) (15 diffs)
-
src/osgTerrain/GeometryTechnique.cpp (modified) (2 diffs)
-
src/osgTerrain/Layer.cpp (modified) (1 diff)
-
src/osgTerrain/TerrainTechnique.cpp (modified) (1 diff)
-
src/osgText/DefaultFont.cpp (modified) (1 diff)
-
src/osgText/Font.cpp (modified) (1 diff)
-
src/osgText/String.cpp (modified) (1 diff)
-
src/osgText/Text.cpp (modified) (4 diffs)
-
src/osgUtil/IntersectVisitor.cpp (modified) (2 diffs)
-
src/osgUtil/IntersectionVisitor.cpp (modified) (3 diffs)
-
src/osgUtil/Optimizer.cpp (modified) (3 diffs)
-
src/osgUtil/PlaneIntersector.cpp (modified) (1 diff)
-
src/osgUtil/RenderBin.cpp (modified) (2 diffs)
-
src/osgUtil/RenderStage.cpp (modified) (10 diffs)
-
src/osgUtil/Simplifier.cpp (modified) (3 diffs)
-
src/osgUtil/Tessellator.cpp (modified) (1 diff)
-
src/osgUtil/TriStripVisitor.cpp (modified) (1 diff)
-
src/osgViewer/CompositeViewer.cpp (modified) (1 diff)
-
src/osgViewer/Renderer.cpp (modified) (7 diffs)
-
src/osgViewer/StatsHandler.cpp (modified) (7 diffs)
-
src/osgViewer/View.cpp (modified) (4 diffs)
-
src/osgViewer/Viewer.cpp (modified) (2 diffs)
-
src/osgViewer/ViewerEventHandlers.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/applications/osgarchive/osgarchive.cpp
r5328 r7648 93 93 arguments.reportRemainingOptionsAsUnrecognized(); 94 94 95 // report any errors if they have occur ed when parsing the program aguments.95 // report any errors if they have occurred when parsing the program arguments. 96 96 if (arguments.errors()) 97 97 { -
OpenSceneGraph/trunk/applications/osgconv/osgconv.cpp
r7646 r7648 104 104 virtual void apply(osg::StateSet& stateset) 105 105 { 106 // search for the exist ance of any texture object attributes106 // search for the existence of any texture object attributes 107 107 for(unsigned int i=0;i<stateset.getTextureAttributeList().size();++i) 108 108 { … … 222 222 223 223 224 // search for the exist ance of any texture object attributes224 // search for the existence of any texture object attributes 225 225 for(unsigned int i=0;i<stateset.getTextureAttributeList().size();++i) 226 226 { … … 456 456 arguments.getApplicationUsage()->setDescription(arguments.getApplicationName()+" is a utility for converting between various input and output databases formats."); 457 457 arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options] filename ..."); 458 arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display command line param ters");458 arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display command line parameters"); 459 459 arguments.getApplicationUsage()->addCommandLineOption("--help-env","Display environmental variables available"); 460 460 … … 590 590 arguments.reportRemainingOptionsAsUnrecognized(); 591 591 592 // report any errors if they have occur ed when parsing the program aguments.592 // report any errors if they have occurred when parsing the program arguments. 593 593 if (arguments.errors()) 594 594 { -
OpenSceneGraph/trunk/examples/osgcatch/osgcatch.cpp
r6941 r7648 1394 1394 arguments.getApplicationUsage()->setDescription(arguments.getApplicationName()+" is the example which demonstrates use node masks to create stereo images."); 1395 1395 arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options] image_file_left_eye image_file_right_eye"); 1396 arguments.getApplicationUsage()->addCommandLineOption("-d <float>","Time delay in s ceonds between the display of successive image pairs when in auto advance mode.");1396 arguments.getApplicationUsage()->addCommandLineOption("-d <float>","Time delay in seconds between the display of successive image pairs when in auto advance mode."); 1397 1397 arguments.getApplicationUsage()->addCommandLineOption("-a","Enter auto advance of image pairs on start up."); 1398 1398 arguments.getApplicationUsage()->addCommandLineOption("-x <float>","Horizontal offset of left and right images."); … … 1404 1404 1405 1405 1406 // register the handler to add keyboard and mo sue handling.1406 // register the handler to add keyboard and mouse handling. 1407 1407 GameEventHandler* seh = new GameEventHandler(); 1408 1408 viewer.addEventHandler(seh); … … 1422 1422 arguments.reportRemainingOptionsAsUnrecognized(); 1423 1423 1424 // report any errors if they have occur ed when parsing the program aguments.1424 // report any errors if they have occurred when parsing the program arguments. 1425 1425 if (arguments.errors()) 1426 1426 { -
OpenSceneGraph/trunk/examples/osgdelaunay/osgdelaunay.cpp
r6941 r7648 1288 1288 } 1289 1289 1290 // optimize the scene graph, remove re ndundent nodes and state etc.1290 // optimize the scene graph, remove redundant nodes and state etc. 1291 1291 osgUtil::Optimizer optimizer; 1292 1292 optimizer.optimize(loadedModel.get()); -
OpenSceneGraph/trunk/examples/osgdepthpeeling/DePee.cpp
r7418 r7648 68 68 69 69 70 //!!!Getting problems if assigning unit to texture in depth peeling sub raph and removing depth peeling steps!!!70 //!!!Getting problems if assigning unit to texture in depth peeling subgraph and removing depth peeling steps!!! 71 71 //That's why it is done here 72 72 osg::StateSet* stateset = _parent->getOrCreateStateSet(); … … 465 465 znear *= 0.9f; 466 466 zfar *= 1.1f; 467 467 468 468 469 469 // set up projection. … … 473 473 //set view 474 474 _dePeePasses.back()->Cameras[EDGE_MAP]->setReferenceFrame(osg::Transform::ABSOLUTE_RF); 475 475 476 476 _dePeePasses.back()->Cameras[EDGE_MAP]->setViewMatrixAsLookAt(osg::Vec3(0.0f,0.0f,2.0f)*bs.radius(), osg::Vec3(0.0,0.0,0.0),osg::Vec3(0.0f,1.0f,0.0f)); 477 477 … … 484 484 // tell the camera to use OpenGL frame buffer object 485 485 _dePeePasses.back()->Cameras[EDGE_MAP]->setRenderTargetImplementation(osg::Camera::FRAME_BUFFER); 486 486 487 487 //switch lighting off 488 488 osg::ref_ptr<osg::StateSet> stateset = new osg::StateSet; … … 502 502 503 503 stateset->setMode(GL_LIGHTING,osg::StateAttribute::OVERRIDE | 504 osg::StateAttribute::OFF);504 osg::StateAttribute::OFF); 505 505 //setup shader 506 506 stateset->setAttributeAndModes(_edgeMapProgram.get(), osg::StateAttribute::OVERRIDE | osg::StateAttribute::ON); … … 552 552 float zfar = 3.0f*bs.radius(); 553 553 554 // 2:1 aspect ratio as per flag geom try below.554 // 2:1 aspect ratio as per flag geometry below. 555 555 float projTop = 0.25f*znear; 556 556 float projRight = projTop * ((double)_width/(double)_height); -
OpenSceneGraph/trunk/examples/osgdepthpeeling/osgdepthpeeling.cpp
r7411 r7648 230 230 arguments.reportRemainingOptionsAsUnrecognized(); 231 231 232 // report any errors if they have occur ed when parsing the program aguments.232 // report any errors if they have occurred when parsing the program arguments. 233 233 if (arguments.errors()) 234 234 { -
OpenSceneGraph/trunk/examples/osgfxbrowser/osgfxbrowser.cpp
r6941 r7648 324 324 arguments.reportRemainingOptionsAsUnrecognized(); 325 325 326 // report any errors if they have occur ed when parsing the program aguments.326 // report any errors if they have occurred when parsing the program arguments. 327 327 if (arguments.errors()) { 328 328 arguments.writeErrorMessages(std::cout); … … 342 342 } 343 343 344 // optimize the scene graph, remove re ndundent nodes and state etc.344 // optimize the scene graph, remove redundant nodes and state etc. 345 345 osgUtil::Optimizer optimizer; 346 346 optimizer.optimize(loadedModel.get()); -
OpenSceneGraph/trunk/examples/osggeometry/osggeometry.cpp
r6941 r7648 40 40 // This demos uses the illustrates how to creates the various different types of geometry that 41 41 // the osg::Geometry class can represent. This demos uses the OpenGL red books diagram of different 42 // OpenGL Primitives as a template for all the equiv ilant OpenSceneGraph Primitives. The OpenSceneGraph42 // OpenGL Primitives as a template for all the equivalent OpenSceneGraph Primitives. The OpenSceneGraph 43 43 // wraps OpenGL very thinly so uses all the same enum and naming conventions. The coordinate data is also 44 // wrapped around OpenGL's vertex arrays and draw arrays/elements calls. Famil arity with44 // wrapped around OpenGL's vertex arrays and draw arrays/elements calls. Familiarity with 45 45 // OpenGL will help understand the the osg::Geometry class which encapsulate all this, or if you 46 // havn't learn tOpenGL yet, learning osg::Geometry will help you understand how OpenGL46 // havn't learned OpenGL yet, learning osg::Geometry will help you understand how OpenGL 47 47 // works! 48 48 49 49 // The osg::Geometry class "is a" subclass of osg::Drawable base class, so is an object that provides 50 50 // a draw method for drawing objects in the scene. osg::Geometry contains all the vertex, normal 51 // color and texture coord ate arrays required to specify the coordinates of your objects, and the52 // prim tives join these coordinates together as the points, lines or surfaces that you will see51 // color and texture coordinate arrays required to specify the coordinates of your objects, and the 52 // primitives join these coordinates together as the points, lines or surfaces that you will see 53 53 // rendered on your screen. 54 54 // … … 68 68 }; 69 69 70 // decompose Drawable prim tives into triangles, print out these triangles and computed normals.70 // decompose Drawable primitives into triangles, print out these triangles and computed normals. 71 71 void printTriangles(const std::string& name, osg::Drawable& drawable) 72 72 { … … 86 86 87 87 // follows are separate blocks for creating POINTS, LINES, LINE_STRIP, LINE_LOOP, POLYGON, QUADS, 88 // QUAD_STRIP, TRIANGLES, TRIANGLE_STRIP and TRIANGLE_FAN prim tives. A image of these primtives89 // are provided in the distribution : OpenSceneGraph-Data/Images/prim tives.gif.88 // QUAD_STRIP, TRIANGLES, TRIANGLE_STRIP and TRIANGLE_FAN primitives. A image of these primitives 89 // are provided in the distribution : OpenSceneGraph-Data/Images/primitives.gif. 90 90 91 91 92 92 // create POINTS 93 93 { 94 // create Geometry object to store all the ve tices and points primtive.94 // create Geometry object to store all the vertices and points primitive. 95 95 osg::Geometry* pointsGeom = new osg::Geometry(); 96 96 97 97 // create a Vec3Array and add to it all my coordinates. 98 // Like all the *Array variants (see include/osg/Array) , Vec3Array is deriv ied from both osg::Array98 // Like all the *Array variants (see include/osg/Array) , Vec3Array is derived from both osg::Array 99 99 // and std::vector<>. osg::Array's are reference counted and hence sharable, 100 // which std::vector<> provides all the conv inience, flexibility and robustness100 // which std::vector<> provides all the convenience, flexibility and robustness 101 101 // of the most popular of all STL containers. 102 102 osg::Vec3Array* vertices = new osg::Vec3Array; … … 113 113 114 114 // create the color of the geometry, one single for the whole geometry. 115 // for consi tency of design even one single color must added as an element115 // for consistency of design even one single color must added as an element 116 116 // in a color array. 117 117 osg::Vec4Array* colors = new osg::Vec4Array; … … 119 119 colors->push_back(osg::Vec4(1.0f,1.0f,0.0f,1.0f)); 120 120 121 // pass the color arr y to points geometry, note the binding to tell the geometry121 // pass the color array to points geometry, note the binding to tell the geometry 122 122 // that only use one color for the whole object. 123 123 pointsGeom->setColorArray(colors); … … 132 132 133 133 134 // create and add a DrawArray Primitive (see include/osg/Prim tive). The first135 // param ter passed to the DrawArrays constructor is the Primtive::Mode which134 // create and add a DrawArray Primitive (see include/osg/Primitive). The first 135 // parameter passed to the DrawArrays constructor is the Primitive::Mode which 136 136 // in this case is POINTS (which has the same value GL_POINTS), the second 137 137 // parameter is the index position into the vertex array of the first point … … 140 140 141 141 142 // add the points geom try to the geode.142 // add the points geometry to the geode. 143 143 geode->addDrawable(pointsGeom); 144 144 } … … 146 146 // create LINES 147 147 { 148 // create Geometry object to store all the ve tices and lines primtive.148 // create Geometry object to store all the vertices and lines primitive. 149 149 osg::Geometry* linesGeom = new osg::Geometry(); 150 150 151 // this time we'll preallo acte the vertex array to the size we151 // this time we'll preallocate the vertex array to the size we 152 152 // need and then simple set them as array elements, 8 points 153 153 // makes 4 line segments. … … 166 166 linesGeom->setVertexArray(vertices); 167 167 168 // set the colors as before, plus using the a obve168 // set the colors as before, plus using the above 169 169 osg::Vec4Array* colors = new osg::Vec4Array; 170 170 colors->push_back(osg::Vec4(1.0f,1.0f,0.0f,1.0f)); … … 185 185 186 186 187 // add the points geom try to the geode.187 // add the points geometry to the geode. 188 188 geode->addDrawable(linesGeom); 189 189 } … … 191 191 // create LINE_STRIP 192 192 { 193 // create Geometry object to store all the ve tices and lines primtive.193 // create Geometry object to store all the vertices and lines primitive. 194 194 osg::Geometry* linesGeom = new osg::Geometry(); 195 195 196 // this time we'll preallo acte the vertex array to the size196 // this time we'll preallocate the vertex array to the size 197 197 // and then use an iterator to fill in the values, a bit perverse 198 198 // but does demonstrate that we have just a standard std::vector underneath. … … 208 208 linesGeom->setVertexArray(vertices); 209 209 210 // set the colors as before, plus using the a obve210 // set the colors as before, plus using the above 211 211 osg::Vec4Array* colors = new osg::Vec4Array; 212 212 colors->push_back(osg::Vec4(1.0f,1.0f,0.0f,1.0f)); … … 227 227 228 228 229 // add the points geom try to the geode.229 // add the points geometry to the geode. 230 230 geode->addDrawable(linesGeom); 231 231 } … … 233 233 // create LINE_LOOP 234 234 { 235 // create Geometry object to store all the ve tices and lines primtive.235 // create Geometry object to store all the vertices and lines primitive. 236 236 osg::Geometry* linesGeom = new osg::Geometry(); 237 237 238 // this time we'll a C arrays to initi lize the vertices.238 // this time we'll a C arrays to initialize the vertices. 239 239 240 240 osg::Vec3 myCoords[] = … … 255 255 linesGeom->setVertexArray(vertices); 256 256 257 // set the colors as before, plus using the a obve257 // set the colors as before, plus using the above 258 258 osg::Vec4Array* colors = new osg::Vec4Array; 259 259 colors->push_back(osg::Vec4(1.0f,1.0f,0.0f,1.0f)); … … 274 274 275 275 276 // add the points geom try to the geode.276 // add the points geometry to the geode. 277 277 geode->addDrawable(linesGeom); 278 278 } … … 306 306 // create POLYGON 307 307 { 308 // create Geometry object to store all the ve tices and lines primtive.308 // create Geometry object to store all the vertices and lines primitive. 309 309 osg::Geometry* polyGeom = new osg::Geometry(); 310 310 311 // this time we'll a C arrays to initi lize the vertices.312 // note, anticlockw sie ordering.311 // this time we'll a C arrays to initialize the vertices. 312 // note, anticlockwise ordering. 313 313 // note II, OpenGL polygons must be convex plan polygons, otherwise 314 314 // undefined results will occur. If you have concave polygons or ones … … 347 347 printTriangles("Polygon",*polyGeom); 348 348 349 // add the points geom try to the geode.349 // add the points geometry to the geode. 350 350 geode->addDrawable(polyGeom); 351 351 } … … 354 354 // create QUADS 355 355 { 356 // create Geometry object to store all the ve tices and lines primtive.356 // create Geometry object to store all the vertices and lines primitive. 357 357 osg::Geometry* polyGeom = new osg::Geometry(); 358 358 359 // note, anticlockw sie ordering.359 // note, anticlockwise ordering. 360 360 osg::Vec3 myCoords[] = 361 361 { … … 395 395 printTriangles("Quads",*polyGeom); 396 396 397 // add the points geom try to the geode.397 // add the points geometry to the geode. 398 398 geode->addDrawable(polyGeom); 399 399 } … … 401 401 // create QUAD_STRIP 402 402 { 403 // create Geometry object to store all the ve tices and lines primtive.403 // create Geometry object to store all the vertices and lines primitive. 404 404 osg::Geometry* polyGeom = new osg::Geometry(); 405 405 … … 444 444 printTriangles("Quads strip",*polyGeom); 445 445 446 // add the points geom try to the geode.446 // add the points geometry to the geode. 447 447 geode->addDrawable(polyGeom); 448 448 } … … 450 450 // create TRIANGLES, TRIANGLE_STRIP and TRIANGLE_FAN all in one Geometry/ 451 451 { 452 // create Geometry object to store all the ve tices and lines primtive.452 // create Geometry object to store all the vertices and lines primitive. 453 453 osg::Geometry* polyGeom = new osg::Geometry(); 454 454 … … 457 457 { 458 458 // TRIANGLES 6 vertices, v0..v5 459 // note in an iclockwise order.459 // note in anticlockwise order. 460 460 osg::Vec3(-1.12056, -2.15188e-09, -0.840418), 461 461 osg::Vec3(-0.95165, -2.15188e-09, -0.840418), 462 462 osg::Vec3(-1.11644, 9.18133e-09, -0.716827), 463 463 464 // note in an iclockwise order.464 // note in anticlockwise order. 465 465 osg::Vec3(-0.840418, 9.18133e-09, -0.778623), 466 466 osg::Vec3(-0.622074, 9.18133e-09, -0.613835), … … 479 479 480 480 // TRIANGLE FAN 5 vertices, v12..v16 481 // note defined in anticlockw sie order.481 // note defined in anticlockwise order. 482 482 osg::Vec3(0.844538, 9.18133e-09, -0.712708), 483 483 osg::Vec3(1.0258, 9.18133e-09, -0.799221), … … 519 519 printTriangles("Triangles/Strip/Fan",*polyGeom); 520 520 521 // add the points geom try to the geode.521 // add the points geometry to the geode. 522 522 geode->addDrawable(polyGeom); 523 523 } … … 567 567 568 568 569 // create Geometry object to store all the ve tices and lines primtive.569 // create Geometry object to store all the vertices and lines primitive. 570 570 osg::Geometry* polyGeom = new osg::Geometry(); 571 571 572 // note, anticlockw sie ordering.572 // note, anticlockwise ordering. 573 573 osg::Vec3 myCoords[] = 574 574 { … … 621 621 int numIndices = sizeof(myIndices)/sizeof(unsigned short); 622 622 623 // The ere are three variants of the DrawElements osg::Primitive, UByteDrawElements which624 // contains unsigned char indic ies, UShortDrawElements which contains unsigned short indices,625 // and UIntDrawElements wh cih contains ... unsigned int indices.623 // There are three variants of the DrawElements osg::Primitive, UByteDrawElements which 624 // contains unsigned char indices, UShortDrawElements which contains unsigned short indices, 625 // and UIntDrawElements which contains ... unsigned int indices. 626 626 // The first parameter to DrawElements is 627 627 polyGeom->addPrimitiveSet(new osg::DrawElementsUShort(osg::PrimitiveSet::QUADS,numIndices,myIndices)); … … 643 643 osg::Geode* geode = new osg::Geode(); 644 644 645 // add the points geom try to the geode.645 // add the points geometry to the geode. 646 646 geode->addDrawable(polyGeom); 647 647 648 648 //return geode; 649 649 650 // create a tran form to move the background back and forward with.650 // create a transform to move the background back and forward with. 651 651 652 652 osg::MatrixTransform* transform = new osg::MatrixTransform(); -
OpenSceneGraph/trunk/examples/osgimpostor/osgimpostor.cpp
r6941 r7648 107 107 osg::UByteArray* coordIndices = new osg::UByteArray(48,indices); 108 108 109 // share the prim tive set.109 // share the primitive set. 110 110 osg::PrimitiveSet* primitives = new osg::DrawArrays(osg::PrimitiveSet::TRIANGLES,0,48); 111 111 -
OpenSceneGraph/trunk/examples/osglogo/osglogo.cpp
r6941 r7648 180 180 text->setCharacterSize((bb.zMax()-bb.zMin())*1.0f); 181 181 text->setPosition(bb.center()-osg::Vec3((bb.xMax()-bb.xMin()),-(bb.yMax()-bb.yMin())*0.5f,(bb.zMax()-bb.zMin())*0.1f)); 182 //text->setColor(osg::Vec4(0.37f,0.48f,0.67f,1.0f)); // Neil's orig nal OSG colour182 //text->setColor(osg::Vec4(0.37f,0.48f,0.67f,1.0f)); // Neil's original OSG colour 183 183 text->setColor(osg::Vec4(0.20f,0.45f,0.60f,1.0f)); // OGL logo colour 184 184 text->setText(label); -
OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp
r7615 r7648 56 56 virtual void getUsage(osg::ApplicationUsage& usage) const; 57 57 58 typedef std::vector< osg:: ref_ptr<osg::ImageStream> > ImageStreamList;58 typedef std::vector< osg::observer_ptr<osg::ImageStream> > ImageStreamList; 59 59 60 60 protected: … … 455 455 viewer.addEventHandler(new osgViewer::RecordCameraPathHandler); 456 456 457 // report any errors if they have occur ed when parsing the program aguments.457 // report any errors if they have occurred when parsing the program arguments. 458 458 if (arguments.errors()) 459 459 { -
OpenSceneGraph/trunk/examples/osgpagedlod/osgpagedlod.cpp
r6941 r7648 241 241 arguments.reportRemainingOptionsAsUnrecognized(); 242 242 243 // report any errors if they have occur ed when parsing the program aguments.243 // report any errors if they have occurred when parsing the program arguments. 244 244 if (arguments.errors()) 245 245 { -
OpenSceneGraph/trunk/examples/osgphotoalbum/osgphotoalbum.cpp
r7565 r7648 677 677 arguments.getApplicationUsage()->setDescription(arguments.getApplicationName()+" is the example which demonstrates use node masks to create stereo images."); 678 678 arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options] image_file [image_file]"); 679 arguments.getApplicationUsage()->addCommandLineOption("-d <float>","Time delay in s ceonds between the display of successive image pairs when in auto advance mode.");679 arguments.getApplicationUsage()->addCommandLineOption("-d <float>","Time delay in seconds between the display of successive image pairs when in auto advance mode."); 680 680 arguments.getApplicationUsage()->addCommandLineOption("-a","Enter auto advance of image pairs on start up."); 681 681 arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); … … 688 688 viewer.setThreadingModel(osgViewer::Viewer::SingleThreaded); 689 689 690 // register the handler to add keyboard and mo sue handling.690 // register the handler to add keyboard and mouse handling. 691 691 SlideEventHandler* seh = new SlideEventHandler(); 692 692 viewer.addEventHandler(seh); … … 712 712 arguments.reportRemainingOptionsAsUnrecognized(); 713 713 714 // report any errors if they have occur ed when parsing the program aguments.714 // report any errors if they have occurred when parsing the program arguments. 715 715 if (arguments.errors()) 716 716 { -
OpenSceneGraph/trunk/examples/osgplanets/osgplanets.cpp
r6941 r7648 728 728 arguments.reportRemainingOptionsAsUnrecognized(); 729 729 730 // report any errors if they have occur ed when parsing the program aguments.730 // report any errors if they have occurred when parsing the program arguments. 731 731 if (arguments.errors()) 732 732 { -
OpenSceneGraph/trunk/examples/osgpoints/osgpoints.cpp
r6941 r7648 150 150 } 151 151 152 // optimize the scene graph, remove re ndundent nodes and state etc.152 // optimize the scene graph, remove redundant nodes and state etc. 153 153 osgUtil::Optimizer optimizer; 154 154 optimizer.optimize(loadedModel.get()); -
OpenSceneGraph/trunk/examples/osgprerender/osgprerender.cpp
r7006 r7648 44 44 #include <iostream> 45 45 46 // call back which cre tes a deformation field to oscilate the model.46 // call back which creates a deformation field to oscillate the model. 47 47 class MyGeometryCallback : 48 48 public osg::Drawable::UpdateCallback, … … 324 324 float zfar = 3.0f*bs.radius(); 325 325 326 // 2:1 aspect ratio as per flag geom try below.326 // 2:1 aspect ratio as per flag geometry below. 327 327 float proj_top = 0.25f*znear; 328 328 float proj_right = 0.5f*znear; … … 361 361 // Rather than attach the texture directly to illustrate the texture's ability to 362 362 // detect an image update and to subload the image onto the texture. You needn't 363 // do this when using an Image for copying to, as a sep erate camera->attach(..)364 // would suffice as well, but we'll do it the long way round here just for demonst ation363 // do this when using an Image for copying to, as a separate camera->attach(..) 364 // would suffice as well, but we'll do it the long way round here just for demonstration 365 365 // purposes (long way round meaning we'll need to copy image to main memory, then 366 366 // copy it back to the graphics card to the texture in one frame). 367 // The long way round allows us to man nually modify the copied image via the callback367 // The long way round allows us to manually modify the copied image via the callback 368 368 // and then let this modified image by reloaded back. 369 369 texture->setImage(0, image); … … 398 398 arguments.getApplicationUsage()->addCommandLineOption("--fb","Use FrameBuffer for render to texture."); 399 399 arguments.getApplicationUsage()->addCommandLineOption("--pbuffer","Use Pixel Buffer for render to texture, where supported."); 400 arguments.getApplicationUsage()->addCommandLineOption("--window","Use a sep erate Window for render to texture.");400 arguments.getApplicationUsage()->addCommandLineOption("--window","Use a separate Window for render to texture."); 401 401 arguments.getApplicationUsage()->addCommandLineOption("--width","Set the width of the render to texture."); 402 402 arguments.getApplicationUsage()->addCommandLineOption("--height","Set the height of the render to texture."); 403 403 arguments.getApplicationUsage()->addCommandLineOption("--image","Render to an image, then apply a post draw callback to it, and use this image to update a texture."); 404 arguments.getApplicationUsage()->addCommandLineOption("--texture-rectangle","Use osg::TextureRectangle for doing the render to tex ure to.");404 arguments.getApplicationUsage()->addCommandLineOption("--texture-rectangle","Use osg::TextureRectangle for doing the render to texture to."); 405 405 406 406 // construct the viewer. -
OpenSceneGraph/trunk/examples/osgprerendercubemap/osgprerendercubemap.cpp
r6941 r7648 143 143 virtual void operator()(osg::Node* node, osg::NodeVisitor* nv) 144 144 { 145 // first update subgraph to make sure objects are all moved into pos tion145 // first update subgraph to make sure objects are all moved into position 146 146 traverse(node,nv); 147 147 … … 196 196 virtual void operator()(osg::Node* node, osg::NodeVisitor* nv) 197 197 { 198 // first update subgraph to make sure objects are all moved into pos tion198 // first update subgraph to make sure objects are all moved into position 199 199 traverse(node,nv); 200 200 … … 304 304 arguments.getApplicationUsage()->addCommandLineOption("--fb","Use FrameBuffer for render to texture."); 305 305 arguments.getApplicationUsage()->addCommandLineOption("--pbuffer","Use Pixel Buffer for render to texture, where supported."); 306 arguments.getApplicationUsage()->addCommandLineOption("--window","Use a sep erate Window for render to texture.");306 arguments.getApplicationUsage()->addCommandLineOption("--window","Use a separate Window for render to texture."); 307 307 arguments.getApplicationUsage()->addCommandLineOption("--width","Set the width of the render to texture"); 308 308 arguments.getApplicationUsage()->addCommandLineOption("--height","Set the height of the render to texture"); … … 334 334 arguments.reportRemainingOptionsAsUnrecognized(); 335 335 336 // report any errors if they have occur ed when parsing the program aguments.336 // report any errors if they have occurred when parsing the program arguments. 337 337 if (arguments.errors()) 338 338 { -
OpenSceneGraph/trunk/examples/osgreflect/osgreflect.cpp
r6941 r7648 351 351 352 352 353 // optimize the scene graph, remove re ndundent nodes and state etc.353 // optimize the scene graph, remove redundant nodes and state etc. 354 354 osgUtil::Optimizer optimizer; 355 355 optimizer.optimize(loadedModel.get()); -
OpenSceneGraph/trunk/examples/osgslice/osgslice.cpp
r6941 r7648 119 119 arguments.reportRemainingOptionsAsUnrecognized(); 120 120 121 // report any errors if they have occur ed when parsing the program aguments.121 // report any errors if they have occurred when parsing the program arguments. 122 122 if (arguments.errors()) 123 123 { -
OpenSceneGraph/trunk/examples/osgspheresegment/osgspheresegment.cpp
r7019 r7648 682 682 arguments.reportRemainingOptionsAsUnrecognized(); 683 683 684 // report any errors if they have occur ed when parsing the program aguments.684 // report any errors if they have occurred when parsing the program arguments. 685 685 if (arguments.errors()) 686 686 { -
OpenSceneGraph/trunk/examples/osgstereoimage/osgstereoimage.cpp
r7446 r7648 460 460 arguments.getApplicationUsage()->setDescription(arguments.getApplicationName()+" is the example which demonstrates use node masks to create stereo images."); 461 461 arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options] image_file_left_eye image_file_right_eye"); 462 arguments.getApplicationUsage()->addCommandLineOption("-d <float>","Time delay in s ceonds between the display of successive image pairs when in auto advance mode.");462 arguments.getApplicationUsage()->addCommandLineOption("-d <float>","Time delay in seconds between the display of successive image pairs when in auto advance mode."); 463 463 arguments.getApplicationUsage()->addCommandLineOption("-a","Enter auto advance of image pairs on start up."); 464 464 arguments.getApplicationUsage()->addCommandLineOption("-x <float>","Horizontal offset of left and right images."); … … 476 476 osgViewer::Viewer viewer; 477 477 478 // register the handler to add keyboard and mo sue handling.478 // register the handler to add keyboard and mouse handling. 479 479 SlideEventHandler* seh = new SlideEventHandler(); 480 480 viewer.addEventHandler(seh); … … 527 527 arguments.reportRemainingOptionsAsUnrecognized(); 528 528 529 // report any errors if they have occur ed when parsing the program aguments.529 // report any errors if they have occurred when parsing the program arguments. 530 530 if (arguments.errors()) 531 531 { … … 560 560 float length = osg::PI*radius; // half a cylinder. 561 561 562 // use a tex ure matrix to control the placement of the image.562 // use a texture matrix to control the placement of the image. 563 563 osg::TexMat* texmatLeft = new osg::TexMat; 564 564 osg::TexMat* texmatRight = new osg::TexMat; -
OpenSceneGraph/trunk/examples/osgtexture1D/osgtexture1D.cpp
r6941 r7648 42 42 int noPixels = 1024; 43 43 44 // allocate the image data, noPixels x 1 x 1 with 4 rgba floats - equiv ilant to a Vec4!44 // allocate the image data, noPixels x 1 x 1 with 4 rgba floats - equivalent to a Vec4! 45 45 image->allocateImage(noPixels,1,1,GL_RGBA,GL_FLOAT); 46 46 image->setInternalTextureFormat(GL_RGBA); -
OpenSceneGraph/trunk/examples/osgunittests/osgunittests.cpp
r7608 r7648 479 479 arguments.reportRemainingOptionsAsUnrecognized(); 480 480 481 // report any errors if they have occur ed when parsing the program aguments.481 // report any errors if they have occurred when parsing the program arguments. 482 482 if (arguments.errors()) 483 483 { -
OpenSceneGraph/trunk/examples/osgvolume/osgvolume.cpp
r6941 r7648 263 263 264 264 /////////////////////////////////////////////////////////////////////////////// 265 // alpha lumin iance sources..265 // alpha luminance sources.. 266 266 virtual void LA_to_A(unsigned int num, unsigned char* source, unsigned char* dest) const 267 267 { … … 758 758 // note, well set the filtering up so that mip mapping is disabled, 759 759 // gluBuild3DMipsmaps doesn't do a very good job of handled the 760 // i nbalanced dimensions of the 256x256x4 texture.760 // imbalanced dimensions of the 256x256x4 texture. 761 761 osg::Texture3D* texture3D = new osg::Texture3D; 762 762 texture3D->setFilter(osg::Texture3D::MIN_FILTER,osg::Texture3D::LINEAR); … … 1139 1139 // note, well set the filtering up so that mip mapping is disabled, 1140 1140 // gluBuild3DMipsmaps doesn't do a very good job of handled the 1141 // i nbalanced dimensions of the 256x256x4 texture.1141 // imbalanced dimensions of the 256x256x4 texture. 1142 1142 osg::Texture3D* texture3D = new osg::Texture3D; 1143 1143 texture3D->setFilter(osg::Texture3D::MIN_FILTER,osg::Texture3D::LINEAR); … … 1333 1333 for(int t=0;t<sizeT;++t) 1334 1334 { 1335 // reset the indices to begin ing1335 // reset the indices to beginning 1336 1336 readOp._pos = 0; 1337 1337 writeOp._pos = 0; … … 1563 1563 arguments.reportRemainingOptionsAsUnrecognized(); 1564 1564 1565 // report any errors if they have occur ed when parsing the program aguments.1565 // report any errors if they have occurred when parsing the program arguments. 1566 1566 if (arguments.errors()) 1567 1567 { … … 1570 1570 } 1571 1571 1572 // assume remaining arg ments are file names of textures.1572 // assume remaining arguments are file names of textures. 1573 1573 for(int pos=1;pos<arguments.argc() && !image_3d;++pos) 1574 1574 { -
OpenSceneGraph/trunk/include/osg/ApplicationUsage
r6151 r7648 106 106 public: 107 107 108 /** register an explanation of commandline/e vironmentalvaraible/keyboard mouse usage.*/108 /** register an explanation of commandline/environmentvariable/keyboard mouse usage.*/ 109 109 ApplicationUsageProxy(ApplicationUsage::Type type,const std::string& option,const std::string& explanation) 110 110 { -
OpenSceneGraph/trunk/include/osg/ArgumentParser
r7442 r7648 114 114 std::string getApplicationName() const; 115 115 116 /** Return the position of an occur ance of a string in the argument list.116 /** Return the position of an occurrence of a string in the argument list. 117 117 * Return -1 if no string is found. */ 118 118 int find(const std::string& str) const; … … 138 138 bool match(int pos, const std::string& str) const; 139 139 140 /** Search for an occur ance of a string in the argument list. If found,141 * remove that occur ance and return true. Otherwise, return false. */140 /** Search for an occurrence of a string in the argument list. If found, 141 * remove that occurrence and return true. Otherwise, return false. */ 142 142 bool read(const std::string& str); 143 143 bool read(const std::string& str, Parameter value1); … … 173 173 typedef std::map<std::string,ErrorSeverity> ErrorMessageMap; 174 174 175 /** Return the error flag, true if an error has occur ed when reading arguments. */175 /** Return the error flag, true if an error has occurred when reading arguments. */ 176 176 bool errors(ErrorSeverity severity=BENIGN) const; 177 177 … … 182 182 void reportRemainingOptionsAsUnrecognized(ErrorSeverity severity=BENIGN); 183 183 184 /** Return the error message, if any has occur ed. */184 /** Return the error message, if any has occurred. */ 185 185 ErrorMessageMap& getErrorMessageMap() { return _errorMessageMap; } 186 186 187 /** Return the error message, if any has occur ed. */187 /** Return the error message, if any has occurred. */ 188 188 const ErrorMessageMap& getErrorMessageMap() const { return _errorMessageMap; } 189 189 190 /** Write error messages to the given ostream, if at or above the given severi ity. */190 /** Write error messages to the given ostream, if at or above the given severity. */ 191 191 void writeErrorMessages(std::ostream& output,ErrorSeverity sevrity=BENIGN); 192 192 -
OpenSceneGraph/trunk/include/osg/Billboard
r5649 r7648 21 21 22 22 /** Billboard is a derived form of Geode that orients its osg::Drawable 23 * children to face the eye point. Typical uses incl lude trees and23 * children to face the eye point. Typical uses include trees and 24 24 * particle explosions, 25 25 */ … … 47 47 48 48 /** Set the rotation axis for the billboard's child Drawables. 49 * Only ut lized when mode==AXIAL_ROT. */49 * Only utilized when mode==AXIAL_ROT. */ 50 50 void setAxis(const Vec3& axis); 51 51 /** Get the rotation axis. */ -
OpenSceneGraph/trunk/include/osg/BlendColor
r7379 r7648 71 71 72 72 /** Encapsulates queries of extension availability, obtains extension 73 * function pointers, and provides conv inience wrappers for73 * function pointers, and provides convenience wrappers for 74 74 * calling extension functions. */ 75 75 class OSG_EXPORT Extensions : public osg::Referenced … … 101 101 102 102 /** Returns the Extensions object for the given context. 103 * If createIfNotInitalized is true and the Ex entsions object doesn't103 * If createIfNotInitalized is true and the Extensions object doesn't 104 104 * exist, getExtensions() creates it on the given context. 105 105 * Returns NULL if createIfNotInitalized is false and the Extensions -
OpenSceneGraph/trunk/include/osg/BlendEquation
r7379 r7648 93 93 virtual void apply(State& state) const; 94 94 /** Encapsulates queries of extension availability, obtains extension 95 * function pointers, and provides conv inience wrappers for95 * function pointers, and provides convenience wrappers for 96 96 * calling extension functions. */ 97 97 class OSG_EXPORT Extensions : public osg::Referenced … … 128 128 129 129 /** Returns the Extensions object for the given context. 130 * If createIfNotInitalized is true and the Ex entsions object doesn't130 * If createIfNotInitalized is true and the Extensions object doesn't 131 131 * exist, getExtensions() creates it on the given context. 132 132 * Returns NULL if createIfNotInitalized is false and the Extensions -
OpenSceneGraph/trunk/include/osg/BlendFunc
r7379 r7648 168 168 169 169 /** Returns the Extensions object for the given context. 170 * If createIfNotInitalized is true and the Ex entsions object doesn't170 * If createIfNotInitalized is true and the Extensions object doesn't 171 171 * exist, getExtensions() creates it on the given context. 172 172 * Returns NULL if createIfNotInitalized is false and the Extensions -
OpenSceneGraph/trunk/include/osg/BoundingBox
r5328 r7648 165 165 166 166 167 /** Returns the inte section of this bounding box and the specified bounding box. */167 /** Returns the intersection of this bounding box and the specified bounding box. */ 168 168 BoundingBox intersect(const BoundingBox& bb) const 169 169 { return osg::BoundingBox(osg::maximum(xMin(),bb.xMin()),osg::maximum(yMin(),bb.yMin()),osg::maximum(zMin(),bb.zMin()), -
OpenSceneGraph/trunk/include/osg/BufferObject
r7101 r7648 143 143 144 144 /** If State is non-zero, this function releases OpenGL objects for 145 * the specified graphics context. Otherwise, releases OpenGL obje xts145 * the specified graphics context. Otherwise, releases OpenGL objects 146 146 * for all graphics contexts. */ 147 147 void releaseGLObjects(State* state=0) const; … … 217 217 218 218 /** Function to call to get the extension of a specified context. 219 * If the Ex entsion object for that context has not yet been created219 * If the Extension object for that context has not yet been created 220 220 * and the 'createIfNotInitalized' flag been set to false then returns NULL. 221 221 * If 'createIfNotInitalized' is true then the Extensions object is -
OpenSceneGraph/trunk/include/osg/Camera
r7178 r7648 141 141 }; 142 142 143 /** Set the policy used to determin if and how the projection matrix should be adjusted on window resizes. */143 /** Set the policy used to determine if and how the projection matrix should be adjusted on window resizes. */ 144 144 inline void setProjectionResizePolicy(ProjectionResizePolicy policy) { _projectionResizePolicy = policy; } 145 145 146 /** Get the policy used to determin if and how the projection matrix should be adjusted on window resizes. */146 /** Get the policy used to determine if and how the projection matrix should be adjusted on window resizes. */ 147 147 inline ProjectionResizePolicy getProjectionResizePolicy() const { return _projectionResizePolicy; } 148 148 … … 179 179 const osg::Matrixd& getProjectionMatrix() const { return _projectionMatrix; } 180 180 181 /** Get the o thographic settings of the orthographic projection matrix.181 /** Get the orthographic settings of the orthographic projection matrix. 182 182 * Returns false if matrix is not an orthographic matrix, where parameter values are undefined.*/ 183 183 bool getProjectionMatrixAsOrtho(double& left, double& right, -
OpenSceneGraph/trunk/include/osg/CameraView
r5328 r7648 25 25 /** CameraView - is a Transform that is used to specify camera views from within the scene graph. 26 26 * The application must attach a camera to a CameraView via the NodePath from the top of the scene graph 27 * to the CameraView node itself, and acc imulate the view matrix from this NodePath.27 * to the CameraView node itself, and accumulate the view matrix from this NodePath. 28 28 */ 29 29 class OSG_EXPORT CameraView : public Transform … … 49 49 inline const Vec3d& getPosition() const { return _position; } 50 50 51 /** Set the attit ide of the camera view.*/51 /** Set the attitude of the camera view.*/ 52 52 inline void setAttitude(const Quat& quat) { _attitude = quat; dirtyBound(); } 53 53 54 /** Get the attit ide of the camera view.*/54 /** Get the attitude of the camera view.*/ 55 55 inline const Quat& getAttitude() const { return _attitude; } 56 56 57 57 /** Set the field of view. 58 * The cameras field of view can be con trained to either the horizontal or vertex axis of the camera, or unconstrained58 * The cameras field of view can be constrained to either the horizontal or vertex axis of the camera, or unconstrained 59 59 * in which case the camera/application are left to choose an appropriate field of view. 60 * The default value if 60 degr res. */60 * The default value if 60 degrees. */ 61 61 inline void setFieldOfView(double fieldOfView) { _fieldOfView = fieldOfView; } 62 62 … … 71 71 }; 72 72 73 /** Set the field of view mode - controlling how the field of view of the camera is con trained by the CameaView settings.*/73 /** Set the field of view mode - controlling how the field of view of the camera is constrained by the CameaView settings.*/ 74 74 inline void setFieldOfViewMode(FieldOfViewMode mode) { _fieldOfViewMode = mode; } 75 75 -
OpenSceneGraph/trunk/include/osg/ClampColor
r7379 r7648 79 79 virtual void apply(State& state) const; 80 80 /** Encapsulates queries of extension availability, obtains extension 81 * function pointers, and provides conv inience wrappers for81 * function pointers, and provides convenience wrappers for 82 82 * calling extension functions. */ 83 83 class OSG_EXPORT Extensions : public osg::Referenced … … 108 108 109 109 /** Returns the Extensions object for the given context. 110 * If createIfNotInitalized is true and the Ex entsions object doesn't110 * If createIfNotInitalized is true and the Extensions object doesn't 111 111 * exist, getExtensions() creates it on the given context. 112 112 * Returns NULL if createIfNotInitalized is false and the Extensions -
OpenSceneGraph/trunk/include/osg/CollectOccludersVisitor
r7038 r7648 69 69 /** Removes occluded occluders for the collected occluders list, then 70 70 * discards all but MaximumNumberOfActiveOccluders of occluders, 71 * discarding the occluders with the lowest sshadow occluder volume. */71 * discarding the occluders with the lowest shadow occluder volume. */ 72 72 void removeOccludedOccluders(); 73 73 -
OpenSceneGraph/trunk/include/osg/CullSettings
r7212 r7648 79 79 }; 80 80 81 /** Set the inheritance mask used in inheritCullSettings to control which variables get over ritten by the passed in CullSettings object.*/81 /** Set the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object.*/ 82 82 void setInheritanceMask(unsigned int mask) { _inheritanceMask = mask; } 83 83 84 /** Get the inheritance mask used in inheritCullSettings to control which variables get over ritten by the passed in CullSettings object.*/84 /** Get the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object.*/ 85 85 unsigned int getInheritanceMask() const { return _inheritanceMask; } 86 86 -
OpenSceneGraph/trunk/include/osg/DeleteHandler
r7091 r7648 42 42 /** Set the number of frames to retain objects that are have been requested for deletion. 43 43 * When set to zero objects are deleted immediately, by set to 1 there are kept around for an extra frame etc. 44 * The ability to retain ob ejcts for several frames is useful to prevent premature deletion when objects45 * are stil be used the graphics threads that are using double buffering of rendering data structures with44 * The ability to retain objects for several frames is useful to prevent premature deletion when objects 45 * are still be used the graphics threads that are using double buffering of rendering data structures with 46 46 * non ref_ptr<> pointers to scene graph elements.*/ 47 47 void setNumFramesToRetainObjects(int numberOfFramesToRetainObjects) { _numFramesToRetainObjects = numberOfFramesToRetainObjects; } … … 49 49 int getNumFramesToRetainObjects() const { return _numFramesToRetainObjects; } 50 50 51 /** Set the current frame number so that subsequent deletes get tagged as associated with this frame.*/51 /** Set the current frame number so that subsequent deletes get tagged as associated with this frame.*/ 52 52 void setFrameNumber(int frameNumber) { _currentFrameNumber = frameNumber; } 53 53 -
OpenSceneGraph/trunk/include/osg/Depth
r6311 r7648 59 59 COMPARE_StateAttribute_Types(Depth,sa) 60 60 61 // compare each param ter in turn against the rhs.61 // compare each parameter in turn against the rhs. 62 62 COMPARE_StateAttribute_Parameter(_func) 63 63 COMPARE_StateAttribute_Parameter(_depthWriteMask) -
OpenSceneGraph/trunk/include/osg/Drawable
r7601 r7648 126 126 127 127 128 /** Compute the DataVariance based on an asses tment of callback etc.*/128 /** Compute the DataVariance based on an assessment of callback etc.*/ 129 129 virtual void computeDataVariance(); 130 130 … … 311 311 312 312 /** If State is non-zero, this function releases OpenGL objects for 313 * the specified graphics context. Otherwise, releases OpenGL obje xts313 * the specified graphics context. Otherwise, releases OpenGL objects 314 314 * for all graphics contexts. */ 315 315 virtual void releaseGLObjects(State* state=0) const; … … 421 421 * must be implemented in concrete subclasses of the Drawable base class, examples include osg::Geometry and osg::ShapeDrawable. 422 422 * drawImplementation(RenderInfo&) is called from the draw(RenderInfo&) method, with the draw method handling management of OpenGL display lists, 423 * and drawImplementation(RenderInfo&) handling the actual ldrawing itself.424 * @param renderInfo The osg::RenderInfo object that encap ulates the current rendering information including the osg::State OpenGL state for the current graphics context. */423 * and drawImplementation(RenderInfo&) handling the actual drawing itself. 424 * @param renderInfo The osg::RenderInfo object that encapsulates the current rendering information including the osg::State OpenGL state for the current graphics context. */ 425 425 virtual void drawImplementation(RenderInfo& renderInfo) const = 0; 426 426 … … 480 480 TEXTURE_COORDS_6 = TEXTURE_COORDS_0+6, 481 481 TEXTURE_COORDS_7 = TEXTURE_COORDS_0+7 482 // only eight texture coord examples provided here, but underlying code can handle any no of tex ure units,482 // only eight texture coord examples provided here, but underlying code can handle any no of texture units, 483 483 // simply co them as (TEXTURE_COORDS_0+unit). 484 484 }; -
OpenSceneGraph/trunk/include/osg/Export
r5371 r7648 17 17 // define USE_DEPRECATED_API is used to include in API which is being fazed out 18 18 // if you can compile your apps with this turned off you are 19 // well placed for compat ablity with future versions.19 // well placed for compatibility with future versions. 20 20 #define USE_DEPRECATED_API 21 21 -
OpenSceneGraph/trunk/include/osg/Fog
r6311 r7648 54 54 COMPARE_StateAttribute_Types(Fog,sa) 55 55 56 // compare each param ter in turn against the rhs.56 // compare each parameter in turn against the rhs. 57 57 COMPARE_StateAttribute_Parameter(_mode) 58 58 COMPARE_StateAttribute_Parameter(_density) -
OpenSceneGraph/trunk/include/osg/FragmentProgram
r7379 r7648 131 131 COMPARE_StateAttribute_Types(FragmentProgram,sa) 132 132 133 // compare each param ter in turn against the rhs.133 // compare each parameter in turn against the rhs. 134 134 COMPARE_StateAttribute_Parameter(_fragmentProgram) 135 135 … … 225 225 226 226 /** release an OpenGL objects in specified graphics context if State 227 object is passed, otherwise release OpenGL obje xts for all graphics context if227 object is passed, otherwise release OpenGL objects for all graphics context if 228 228 State object pointer == NULL.*/ 229 229 virtual void releaseGLObjects(State* state=0) const; -
OpenSceneGraph/trunk/include/osg/FrameStamp
r6051 r7648 28 28 29 29 /** Class which encapsulates the frame number, reference time and calendar 30 * time of specific frame, used to synch onize operations on the scene graph30 * time of specific frame, used to synchronize operations on the scene graph 31 31 * and other machines when using a graphics cluster. Note the calendar 32 32 * time can be an artificial simulation time or capture the real time … … 70 70 // member variables of time.h's tm structure, copied here to 71 71 // ensure that all data is not dynamic. The tm structure itself 72 // is not completely consistent betwee mimplementations, which72 // is not completely consistent between implementations, which 73 73 // could be a problem when sending the FrameStamp across a network 74 74 // with different versions of tm (i.e mixing Unix and Windows.) -
OpenSceneGraph/trunk/include/osg/FrontFace
r5328 r7648 47 47 COMPARE_StateAttribute_Types(FrontFace,sa) 48 48 49 // compare each param ter in turn against the rhs.49 // compare each parameter in turn against the rhs. 50 50 COMPARE_StateAttribute_Parameter(_mode) 51 51 -
OpenSceneGraph/trunk/include/osg/Geode
r5885 r7648 146 146 147 147 /** If State is non-zero, this function releases any associated OpenGL objects for 148 * the specified graphics context. Otherwise, releases OpenGL obje xts148 * the specified graphics context. Otherwise, releases OpenGL objects 149 149 * for all graphics contexts. */ 150 150 virtual void releaseGLObjects(osg::State* = 0) const; -
OpenSceneGraph/trunk/include/osg/Geometry
r6582 r7648 295 295 296 296 /** If State is non-zero, this function releases OpenGL objects for 297 * the specified graphics context. Otherwise, releases OpenGL obje xts297 * the specified graphics context. Otherwise, releases OpenGL objects 298 298 * for all graphics contexts. */ 299 299 virtual void releaseGLObjects(State* state=0) const; … … 346 346 347 347 /** Return the estimated size of GLObjects (display lists/vertex buffer objects) that are associated with this drawable. 348 * This size is used a hint for reuse of delete ed display lists/vertex buffer objects. */348 * This size is used a hint for reuse of deleted display lists/vertex buffer objects. */ 349 349 virtual unsigned int getGLObjectSizeHint() const; 350 350 … … 358 358 virtual bool supports(const Drawable::AttributeFunctor&) const { return true; } 359 359 360 /** Accept an Drawable::AttributeFunctor and call its methods to tell it about the inter al attributes that this Drawable has. */360 /** Accept an Drawable::AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. */ 361 361 virtual void accept(Drawable::AttributeFunctor& af); 362 362 … … 364 364 virtual bool supports(const Drawable::ConstAttributeFunctor&) const { return true; } 365 365 366 /** Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the inter al attributes that this Drawable has. */366 /** Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. */ 367 367 virtual void accept(Drawable::ConstAttributeFunctor& af) const; 368 368 … … 370 370 virtual bool supports(const PrimitiveFunctor&) const { return true; } 371 371 372 /** Accept a PrimitiveFunctor and call its methods to tell it about the inter al primitives that this Drawable has. */372 /** Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. */ 373 373 virtual void accept(PrimitiveFunctor& pf) const; 374 374 … … 376 376 virtual bool supports(const PrimitiveIndexFunctor&) const { return true; } 377 377 378 /** Accept a PrimitiveFunctor and call its methods to tell it about the inter al primitives that this Drawable has. */378 /** Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. */ 379 379 virtual void accept(PrimitiveIndexFunctor& pf) const; 380 380 -
OpenSceneGraph/trunk/include/osg/GraphicsContext
r7182 r7648 82 82 setInheritedWindowPixelFormat(false) {} 83 83 84 // graphics context or ginal and size84 // graphics context original and size 85 85 int x; 86 86 int y; … … 88 88 int height; 89 89 90 // window decoration and b aviour90 // window decoration and behaviour 91 91 std::string windowName; 92 92 bool windowDecoration; … … 154 154 155 155 156 /** Set the quer ry the windowing system for screens and create graphics context - this functor should be supplied by the windows toolkit. */156 /** Set the query the windowing system for screens and create graphics context - this functor should be supplied by the windows toolkit. */ 157 157 static void setWindowingSystemInterface(WindowingSystemInterface* wsInterface); 158 158 … … 170 170 static unsigned int getMaxContextID(); 171 171 172 /** Increment the usage count associate with a contextID. The usage count spe ficies how many graphics contexts a specific contextID is shared between.*/172 /** Increment the usage count associate with a contextID. The usage count specifies how many graphics contexts a specific contextID is shared between.*/ 173 173 static void incrementContextIDUsageCount(unsigned int contextID); 174 174 … … 218 218 OpenThreads::Mutex* getOperationsMutex() { return &_operationsMutex; } 219 219 220 /** Get the operations queue block used to mark an empty queue, if you end items into the empty queu you must release this block.*/220 /** Get the operations queue block used to mark an empty queue, if you end items into the empty queue you must release this block.*/ 221 221 osg::RefBlock* getOperationsBlock() { return _operationsBlock.get(); } 222 222 … … 262 262 263 263 264 /** Reali se the GraphicsContext.*/264 /** Realize the GraphicsContext.*/ 265 265 bool realize(); 266 266 … … 275 275 void swapBuffers(); 276 276 277 /** Return true if the graphics context has been reali sed and is ready to use.*/277 /** Return true if the graphics context has been realized and is ready to use.*/ 278 278 inline bool isRealized() const { return isRealizedImplementation(); } 279 279 280 280 281 281 /** Make this graphics context current. 282 * Implement ated by calling makeCurrentImplementation().282 * Implemented by calling makeCurrentImplementation(). 283 283 * Returns true on success. */ 284 284 bool makeCurrent(); 285 285 286 286 /** Make this graphics context current with specified read context. 287 * Implement ated by calling makeContextCurrentImplementation().287 * Implemented by calling makeContextCurrentImplementation(). 288 288 * Returns true on success. */ 289 289 bool makeContextCurrent(GraphicsContext* readContext); … … 314 314 315 315 316 /** Reali se the GraphicsContext implementation,317 * Pure virtual - must be implemented by concr ate implementations of GraphicsContext. */316 /** Realize the GraphicsContext implementation, 317 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 318 318 virtual bool realizeImplementation() = 0; 319 319 320 /** Return true if the graphics context has been reali sed, and is ready to use, implementation.321 * Pure virtual - must be implemented by concr ate implementations of GraphicsContext. */320 /** Return true if the graphics context has been realized, and is ready to use, implementation. 321 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 322 322 virtual bool isRealizedImplementation() const = 0; 323 323 324 324 /** Close the graphics context implementation. 325 * Pure virtual - must be implemented by concr ate implementations of GraphicsContext. */325 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 326 326 virtual void closeImplementation() = 0; 327 327 328 328 /** Make this graphics context current implementation. 329 * Pure virtual - must be implemented by concr ate implementations of GraphicsContext. */329 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 330 330 virtual bool makeCurrentImplementation() = 0; 331 331 332 332 /** Make this graphics context current with specified read context implementation. 333 * Pure virtual - must be implemented by concr ate implementations of GraphicsContext. */333 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 334 334 virtual bool makeContextCurrentImplementation(GraphicsContext* readContext) = 0; 335 335 … … 338 338 339 339 /** Pure virtual, Bind the graphics context to associated texture implementation. 340 * Pure virtual - must be implemented by concr ate implementations of GraphicsContext. */340 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 341 341 virtual void bindPBufferToTextureImplementation(GLenum buffer) = 0; 342 342 343 343 /** Swap the front and back buffers implementation. 344 * Pure virtual - must be implemented by Concrate implementations of GraphicsContext. */344 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 345 345 virtual void swapBuffersImplementation() = 0; 346 346 -
OpenSceneGraph/trunk/include/osg/GraphicsThread
r7209 r7648 38 38 Operation(name,keep) {} 39 39 40 /** Override the standard Operation oper tator and dynamic cast object to a GraphicsContext,40 /** Override the standard Operation operator and dynamic cast object to a GraphicsContext, 41 41 * on success call operation()(GraphicsContext*).*/ 42 42 virtual void operator () (Object* object); … … 55 55 }; 56 56 57 /** BarrierOperation allows one to sync ronize multiple GraphicsThreads with each other.*/57 /** BarrierOperation allows one to synchronize multiple GraphicsThreads with each other.*/ 58 58 struct OSG_EXPORT BarrierOperation : public Operation, public OpenThreads::Barrier 59 59 { … … 77 77 }; 78 78 79 /** ReleaseContext_Block_MakeCurrentOperation releases the context for another thread to a quire,80 * then blocks waiting for context to be released, once the block is release the context is re-a qquired.*/79 /** ReleaseContext_Block_MakeCurrentOperation releases the context for another thread to acquire, 80 * then blocks waiting for context to be released, once the block is release the context is re-acquired.*/ 81 81 struct OSG_EXPORT ReleaseContext_Block_MakeCurrentOperation : public GraphicsOperation, public RefBlock 82 82 { -
OpenSceneGraph/trunk/include/osg/Group
r5885 r7648 93 93 /** Replace specified Node with another Node. 94 94 * Equivalent to setChild(getChildIndex(orignChild),node) 95 * See docs for setChild for fu ther details on implementation.95 * See docs for setChild for further details on implementation. 96 96 */ 97 97 virtual bool replaceChild( Node *origChild, Node* newChild ); 98 98 99 /** Return the number of chil ren nodes. */99 /** Return the number of children nodes. */ 100 100 inline unsigned int getNumChildren() const { return _children.size(); } 101 101 … … 150 150 151 151 /** If State is non-zero, this function releases any associated OpenGL objects for 152 * the specified graphics context. Otherwise, releases OpenGL obje xts152 * the specified graphics context. Otherwise, releases OpenGL objects 153 153 * for all graphics contexts. */ 154 154 virtual void releaseGLObjects(osg::State* = 0) const; -
OpenSceneGraph/trunk/include/osg/Hint
r7632 r7648 51 51 COMPARE_StateAttribute_Types(Hint,sa) 52 52 53 // compare each param ter in turn against the rhs.53 // compare each parameter in turn against the rhs. 54 54 COMPARE_StateAttribute_Parameter(_target) 55 55 COMPARE_StateAttribute_Parameter(_mode) -
OpenSceneGraph/trunk/include/osg/LOD
r6288 r7648 77 77 78 78 /** Set the object-space reference radius of the volume enclosed by the LOD. 79 * Used to det mine the bounding sphere of the LOD in the absense of any children.*/79 * Used to determine the bounding sphere of the LOD in the absence of any children.*/ 80 80 inline void setRadius(float radius) { _radius = radius; } 81 81 … … 85 85 86 86 87 /** Modes that control how the range values should be inte preted when computing which child is active.*/87 /** Modes that control how the range values should be interpreted when computing which child is active.*/ 88 88 enum RangeMode 89 89 { … … 92 92 }; 93 93 94 /** Set how the range values should be inte preted when computing which child is active.*/94 /** Set how the range values should be interpreted when computing which child is active.*/ 95 95 void setRangeMode(RangeMode mode) { _rangeMode = mode; } 96 96 97 /** Get how the range values should be inte preted when computing which child is active.*/97 /** Get how the range values should be interpreted when computing which child is active.*/ 98 98 RangeMode getRangeMode() const { return _rangeMode; } 99 99 100 100 101 /** Sets the min and max visible ranges of range of specifi ec child.101 /** Sets the min and max visible ranges of range of specific child. 102 102 Values are floating point distance specified in local objects coordinates.*/ 103 103 void setRange(unsigned int childNo, float min,float max); -
OpenSceneGraph/trunk/include/osg/Light
r7620 r7648 59 59 COMPARE_StateAttribute_Types(Light,sa) 60 60 61 // compare each param ter in turn against the rhs.61 // compare each parameter in turn against the rhs. 62 62 COMPARE_StateAttribute_Parameter(_lightnum) 63 63 COMPARE_StateAttribute_Parameter(_ambient) -
OpenSceneGraph/trunk/include/osg/LightModel
r5328 r7648 44 44 COMPARE_StateAttribute_Types(LightModel,sa) 45 45 46 // compare each param ter in turn against the rhs.46 // compare each parameter in turn against the rhs. 47 47 COMPARE_StateAttribute_Parameter(_ambient) 48 48 COMPARE_StateAttribute_Parameter(_colorControl) -
OpenSceneGraph/trunk/include/osg/Math
r7521 r7648 140 140 { double delta = rhs-lhs; return delta<0.0?delta>=-epsilon:delta<=epsilon; } 141 141 142 /** return the minimum of two values, equiv ilent to std::min.142 /** return the minimum of two values, equivalent to std::min. 143 143 * std::min not used because of STL implementation under IRIX not containing 144 144 * std::min. … … 147 147 inline T minimum(T lhs,T rhs) { return lhs<rhs?lhs:rhs; } 148 148 149 /** return the maximum of two values, equiv ilent to std::max.149 /** return the maximum of two values, equivalent to std::max. 150 150 * std::max not used because of STL implementation under IRIX not containing 151 151 * std::max. -
OpenSceneGraph/trunk/include/osg/Matrixd
r6142 r7648 124 124 125 125 126 /** decompose the matrix into translation, rotation, scale and scale orie tation.*/126 /** decompose the matrix into translation, rotation, scale and scale orientation.*/ 127 127 void decompose( osg::Vec3f& translation, 128 128 osg::Quat& rotation, … … 130 130 osg::Quat& so ) const; 131 131 132 /** decompose the matrix into translation, rotation, scale and scale orie tation.*/132 /** decompose the matrix into translation, rotation, scale and scale orientation.*/ 133 133 void decompose( osg::Vec3d& translation, 134 134 osg::Quat& rotation, … … 144 144 double zNear, double zFar); 145 145 146 /** Get the o thogrraphic settings of the orthographic projection matrix.146 /** Get the orthographic settings of the orthographic projection matrix. 147 147 * Note, if matrix is not an orthographic matrix then invalid values 148 148 * will be returned. -
OpenSceneGraph/trunk/include/osg/Matrixf
r6142 r7648 124 124 125 125 126 /** decompose the matrix into translation, rotation, scale and scale orie tation.*/126 /** decompose the matrix into translation, rotation, scale and scale orientation.*/ 127 127 void decompose( osg::Vec3f& translation, 128 128 osg::Quat& rotation, … … 130 130 osg::Quat& so ) const; 131 131 132 /** decompose the matrix into translation, rotation, scale and scale orie tation.*/132 /** decompose the matrix into translation, rotation, scale and scale orientation.*/ 133 133 void decompose( osg::Vec3d& translation, 134 134 osg::Quat& rotation, … … 144 144 double zNear, double zFar); 145 145 146 /** Get the o thogrraphic settings of the orthographic projection matrix.146 /** Get the orthographic settings of the orthographic projection matrix. 147 147 * Note, if matrix is not an orthographic matrix then invalid values 148 148 * will be returned. -
OpenSceneGraph/trunk/include/osg/Multisample
r7379 r7648 69 69 COMPARE_StateAttribute_Types(Multisample,sa) 70 70 71 // compare each param ter in turn against the rhs.71 // compare each parameter in turn against the rhs. 72 72 COMPARE_StateAttribute_Parameter(_coverage) 73 73 COMPARE_StateAttribute_Parameter(_invert) … … 128 128 129 129 /** Function to call to get the extension of a specified context. 130 * If the Ex entsion object for that context has not yet been created130 * If the Extension object for that context has not yet been created 131 131 * and the 'createIfNotInitalized' flag been set to false then returns NULL. 132 132 * If 'createIfNotInitalized' is true then the Extensions object is -
OpenSceneGraph/trunk/include/osg/Node
r5885 r7648 246 246 inline const osg::StateSet* getStateSet() const { return _stateset.get(); } 247 247 248 /** Set the in tial bounding volume to use when computing the overall bounding volume.*/248 /** Set the initial bounding volume to use when computing the overall bounding volume.*/ 249 249 void setInitialBound(const osg::BoundingSphere& bsphere) { _initialBound = bsphere; dirtyBound(); } 250 250 251 /** Set the in tial bounding volume to use when computing the overall bounding volume.*/251 /** Set the initial bounding volume to use when computing the overall bounding volume.*/ 252 252 const BoundingSphere& getInitialBound() const { return _initialBound; } 253 253 … … 307 307 308 308 /** If State is non-zero, this function releases any associated OpenGL objects for 309 * the specified graphics context. Otherwise, releases OpenGL obje xts309 * the specified graphics context. Otherwise, releases OpenGL objects 310 310 * for all graphics contexts. */ 311 311 virtual void releaseGLObjects(osg::State* = 0) const; -
OpenSceneGraph/trunk/include/osg/NodeVisitor
r7256 r7648 157 157 158 158 /** 159 * Set user data, data must be subclas ed from Referenced to allow159 * Set user data, data must be subclassed from Referenced to allow 160 160 * automatic memory handling. If your own data isn't directly 161 161 * subclassed from Referenced then create an adapter object -
OpenSceneGraph/trunk/include/osg/Object
r6184 r7648 99 99 * Can be set to either STATIC for values that do not change over the lifetime of the object, 100 100 * or DYNAMIC for values that vary over the lifetime of the object. The DataVariance value 101 * can be used by routines such as optim zation codes that wish to share static data.102 * UNSPECIFIED is used to s epecify that the DataVariance hasn't been set yet. */101 * can be used by routines such as optimization codes that wish to share static data. 102 * UNSPECIFIED is used to specify that the DataVariance hasn't been set yet. */ 103 103 inline void setDataVariance(DataVariance dv) { _dataVariance = dv; } 104 104 … … 106 106 inline DataVariance getDataVariance() const { return _dataVariance; } 107 107 108 /** Compute the DataVariance based on an asses tment of callback etc.*/108 /** Compute the DataVariance based on an assessment of callback etc.*/ 109 109 virtual void computeDataVariance() {} 110 110 … … 128 128 129 129 /** If State is non-zero, this function releases any associated OpenGL objects for 130 * the specified graphics context. Otherwise, releases OpenGL obje xts130 * the specified graphics context. Otherwise, releases OpenGL objects 131 131 * for all graphics contexts. */ 132 132 virtual void releaseGLObjects(osg::State* = 0) const {} -
OpenSceneGraph/trunk/include/osg/Plane
r6704 r7648 302 302 protected: 303 303 304 /** Vec member var aible. */304 /** Vec member variable. */ 305 305 value_type _fv[4]; 306 306 -
OpenSceneGraph/trunk/include/osg/Point
r7379 r7648 79 79 80 80 /** Encapsulates queries of extension availability, obtains extension 81 * function pointers, and provides conv inience wrappers for81 * function pointers, and provides convenience wrappers for 82 82 * calling extension functions. */ 83 83 class OSG_EXPORT Extensions : public osg::Referenced … … 120 120 121 121 /** Returns the Extensions object for the given context. 122 * If createIfNotInitalized is true and the Ex entsions object doesn't122 * If createIfNotInitalized is true and the Extensions object doesn't 123 123 * exist, getExtensions() creates it on the given context. 124 124 * Returns NULL if createIfNotInitalized is false and the Extensions -
OpenSceneGraph/trunk/include/osg/PolygonMode
r5328 r7648 57 57 COMPARE_StateAttribute_Types(PolygonMode,sa) 58 58 59 // compare each param ter in turn against the rhs.59 // compare each parameter in turn against the rhs. 60 60 COMPARE_StateAttribute_Parameter(_modeFront) 61 61 COMPARE_StateAttribute_Parameter(_modeBack) -
OpenSceneGraph/trunk/include/osg/PolygonOffset
r6311 r7648 43 43 COMPARE_StateAttribute_Types(PolygonOffset,sa) 44 44 45 // compare each param ter in turn against the rhs.45 // compare each parameter in turn against the rhs. 46 46 COMPARE_StateAttribute_Parameter(_factor) 47 47 COMPARE_StateAttribute_Parameter(_units) … … 75 75 static bool areFactorAndUnitsMultipliersSet(); 76 76 77 /** Checks with the OpenGL driver to try and pick multiplier appro rpriate for the hardware.77 /** Checks with the OpenGL driver to try and pick multiplier appropriate for the hardware. 78 78 note, requires a valid graphics context to be current. */ 79 79 static void setFactorAndUnitsMultipliersUsingBestGuessForDriver(); -
OpenSceneGraph/trunk/include/osg/Polytope
r7596 r7648 70 70 } 71 71 72 /** Create a Polytope which is a equiv ilant to BoundingBox.*/72 /** Create a Polytope which is a equivalent to BoundingBox.*/ 73 73 void setToBoundingBox(const BoundingBox& bb) 74 74 { -
OpenSceneGraph/trunk/include/osg/PrimitiveSet
r7601 r7648 276 276 277 277 /** If State is non-zero, this function releases OpenGL objects for 278 * the specified graphics context. Otherwise, releases OpenGL obje xts278 * the specified graphics context. Otherwise, releases OpenGL objects 279 279 * for all graphics contexts. */ 280 280 virtual void releaseGLObjects(State* /*state*/=0) const {} … … 486 486 487 487 /** If State is non-zero, this function releases OpenGL objects for 488 * the specified graphics context. Otherwise, releases OpenGL obje xts488 * the specified graphics context. Otherwise, releases OpenGL objects 489 489 * for all graphics contexts. */ 490 490 virtual void releaseGLObjects(State* state=0) const -
OpenSceneGraph/trunk/include/osg/ProxyNode
r5328 r7648 72 72 73 73 /** Set the object-space reference radius of the volume enclosed by the ProxyNode. 74 * Used to det mine the bounding sphere of the ProxyNode in the absense of any children.*/74 * Used to determine the bounding sphere of the ProxyNode in the absence of any children.*/ 75 75 inline void setRadius(float radius) { _radius = radius; } 76 76 -
OpenSceneGraph/trunk/include/osg/Referenced
r7332 r7648 77 77 not delete it, even if ref count goes to 0. Warning, unref_nodelete() 78 78 should only be called if the user knows exactly who will 79 be res onsible for, one should prefer unref() over unref_nodelete()79 be responsible for, one should prefer unref() over unref_nodelete() 80 80 as the later can lead to memory leaks.*/ 81 81 void unref_nodelete() const; … … 84 84 inline int referenceCount() const { return _refCount; } 85 85 86 /** Add a Observer that is observ ering this object, notify the Observer when this object gets deleted.*/86 /** Add a Observer that is observing this object, notify the Observer when this object gets deleted.*/ 87 87 void addObserver(Observer* observer); 88 88 89 /** Add a Observer that is observ ering this object, notify the Observer when this object gets deleted.*/89 /** Add a Observer that is observing this object, notify the Observer when this object gets deleted.*/ 90 90 void removeObserver(Observer* observer); 91 91 -
OpenSceneGraph/trunk/include/osg/Sequence
r6633 r7648 38 38 // the relationship between the _frameTime vector and the _children 39 39 // vector is a bit of a mess. This is how it was in previous versions, 40 // and there's no way out of it if upward compat ability needs to be40 // and there's no way out of it if upward compatibility needs to be 41 41 // maintained. New code should set defaultTime and use addChild, and 42 42 // not mess with the setTime method -
OpenSceneGraph/trunk/include/osg/Shader
r5882 r7648 104 104 105 105 /** Mark internal glShader for deletion. 106 * Deletion requests are queued tuntil they can be executed106 * Deletion requests are queued until they can be executed 107 107 * in the proper GL context. */ 108 108 static void deleteGlShader(unsigned int contextID, GLuint shader); -
OpenSceneGraph/trunk/include/osg/ShadowVolumeOccluder
r5328 r7648 23 23 class CullStack; 24 24 25 /** ShadowVolumeOccluder is a helper class for implement ating shadow occlusion culling. */25 /** ShadowVolumeOccluder is a helper class for implementing shadow occlusion culling. */ 26 26 class OSG_EXPORT ShadowVolumeOccluder 27 27 { -
OpenSceneGraph/trunk/include/osg/ShapeDrawable
r6422 r7648 174 174 virtual bool supports(const Drawable::ConstAttributeFunctor&) const { return true; } 175 175 176 /** Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the inter al attributes that this Drawable has.*/176 /** Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has.*/ 177 177 virtual void accept(Drawable::ConstAttributeFunctor& af) const; 178 178 -
OpenSceneGraph/trunk/include/osg/State
r7178 r7648 70 70 71 71 /** Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings, 72 * implements lazy state updating and provides accessors for quer rying the current state.73 .The venerable Red Book says that "OpenGL is a state machine", and this class72 * implements lazy state updating and provides accessors for querying the current state. 73 * The venerable Red Book says that "OpenGL is a state machine", and this class 74 74 * represents the OpenGL state in OSG. Furthermore, \c State also has other 75 75 * important features: … … 80 80 * state change and that particular state is already in the requested state, 81 81 * no OpenGL call will be made. This ensures that the OpenGL pipeline is not 82 * stalled by unn cessary state changes.82 * stalled by unnecessary state changes. 83 83 * - It allows to query the current OpenGL state without calls to \c glGet*(), 84 84 * which typically stall the graphics pipeline (see, for instance, … … 378 378 /** texture Attribute has been applied externally, 379 379 * and therefore this attribute type has been dirtied 380 * and will need to be re-app plied on next osg::State.apply(..).380 * and will need to be re-applied on next osg::State.apply(..). 381 381 * note, if you have an osg::StateAttribute which you have applied externally 382 382 * then use the have_applied(attribute) method as this will the osg::State to … … 882 882 883 883 /** Set the current texture unit, return true if selected, 884 * false if selection failed such as when multi texturing is not supported.884 * false if selection failed such as when multi texturing is not supported. 885 885 * note, only updates values that change.*/ 886 886 bool setActiveTextureUnit( unsigned int unit ); … … 890 890 891 891 /** Set the current tex coord array texture unit, return true if selected, 892 * false if selection failed such as when multi texturing is not supported.892 * false if selection failed such as when multi texturing is not supported. 893 893 * note, only updates values that change.*/ 894 894 bool setClientActiveTextureUnit( unsigned int unit ); -
OpenSceneGraph/trunk/include/osg/StateAttribute
r7263 r7648 87 87 /** list values which can be used to set either GLModeValues or OverrideValues. 88 88 * When using in conjunction with GLModeValues, all Values have meaning. 89 * When using in conj ection with StateAttribute OverrideValue only89 * When using in conjunction with StateAttribute OverrideValue only 90 90 * OFF,OVERRIDE and INHERIT are meaningful. 91 91 * However, they are useful when using GLModeValue … … 320 320 321 321 /** Release OpenGL objects in specified graphics context if State 322 object is passed, otherwise release OpenGL obje xts for all graphics context if322 object is passed, otherwise release OpenGL objects for all graphics context if 323 323 State object pointer NULL.*/ 324 324 virtual void releaseGLObjects(State* =0) const {} -
OpenSceneGraph/trunk/include/osg/StateSet
r6180 r7648 37 37 class NodeVisitor; 38 38 39 /** Stores a set of modes and attributes which re spresent a set of OpenGL state.39 /** Stores a set of modes and attributes which represent a set of OpenGL state. 40 40 * Notice that a \c StateSet contains just a subset of the whole OpenGL state. 41 41 * <p>In OSG, each \c Drawable and each \c Node has a reference to a … … 93 93 94 94 95 /** Compute the DataVariance based on an asses tment of callback etc.*/95 /** Compute the DataVariance based on an assessment of callback etc.*/ 96 96 virtual void computeDataVariance(); 97 97 -
OpenSceneGraph/trunk/include/osg/StencilTwoSided
r7038 r7648 166 166 167 167 /** Function to call to get the extension of a specified context. 168 * If the Ex entsion object for that context has not yet been created168 * If the Extension object for that context has not yet been created 169 169 * and the 'createIfNotInitalized' flag been set to false then returns NULL. 170 170 * If 'createIfNotInitalized' is true then the Extensions object is -
OpenSceneGraph/trunk/include/osg/TemplatePrimitiveFunctor
r7601 r7648 276 276 * begin(..),vertex(..) & end() are convenience methods for adapting 277 277 * non vertex array primitives to vertex array based primitives. 278 * This is done to simplify the implementation of prim tive functor278 * This is done to simplify the implementation of primitive functor 279 279 * subclasses - users only need override drawArray and drawElements. 280 280 */ -
OpenSceneGraph/trunk/include/osg/TexEnvFilter
r5328 r7648 48 48 COMPARE_StateAttribute_Types(TexEnvFilter, sa) 49 49 50 // compare each param ter in turn against the rhs.50 // compare each parameter in turn against the rhs. 51 51 COMPARE_StateAttribute_Parameter(_lodBias) 52 52 -
OpenSceneGraph/trunk/include/osg/TexGen
r6311 r7648 71 71 usage.usesTextureMode(GL_TEXTURE_GEN_T); 72 72 73 // Not happy with turning all tex gen param ters on73 // Not happy with turning all tex gen parameters on 74 74 // as the OSG currently only supports 2D textures and therefore 75 75 // only S and T will be required, R&Q would be redundant... … … 122 122 Mode _mode; 123 123 124 /** Additional texgen coeffic ents for GL_OBJECT_PLANE or124 /** Additional texgen coefficients for GL_OBJECT_PLANE or 125 125 * GL_EYE_PLANE, */ 126 126 Plane _plane_s, _plane_t, _plane_r, _plane_q; -
OpenSceneGraph/trunk/include/osg/Texture
r7567 r7648 356 356 /** Sets the maximum anisotropy value, default value is 1.0 for no 357 357 * anisotropic filtering. If hardware does not support anisotropic 358 * filtering, use normal filtering (equiv ilant to a max anisotropy358 * filtering, use normal filtering (equivalent to a max anisotropy 359 359 * value of 1.0. Valid range is 1.0f upwards. The maximum value 360 360 * depends on the graphics system. */ … … 372 372 373 373 /** Sets whether or not the apply() function will unreference the image 374 * data. If enabled, and the image data is only referen ed by this374 * data. If enabled, and the image data is only referenced by this 375 375 * Texture, apply() will delete the image data. */ 376 376 inline void setUnRefImageDataAfterApply(bool flag) { _unrefImageDataAfterApply = flag; } … … 496 496 * If glGenerateMipmapEXT is not supported or texture's internal format is not supported 497 497 * by the glGenerateMipmapEXT, then empty mipmap levels will 498 * be allocated manual y. The mipmap levels are also allocated if a non-mipmapped498 * be allocated manually. The mipmap levels are also allocated if a non-mipmapped 499 499 * min filter is used. */ 500 500 void allocateMipmapLevels(); … … 543 543 544 544 545 /** Set the PBuffer graphi s context to read from when using PBuffers for RenderToTexture.*/545 /** Set the PBuffer graphics context to read from when using PBuffers for RenderToTexture.*/ 546 546 void setReadPBuffer(GraphicsContext* context) { _readPBuffer = context; } 547 547 548 /** Get the PBuffer graphi s context to read from when using PBuffers for RenderToTexture.*/548 /** Get the PBuffer graphics context to read from when using PBuffers for RenderToTexture.*/ 549 549 GraphicsContext* getReadPBuffer() { return _readPBuffer.get(); } 550 550 551 /** Get the const PBuffer graphi s context to read from when using PBuffers for RenderToTexture.*/551 /** Get the const PBuffer graphics context to read from when using PBuffers for RenderToTexture.*/ 552 552 const GraphicsContext* getReadPBuffer() const { return _readPBuffer.get(); } 553 553 554 /** Texture is a pure virtual base class, apply must be overrid en. */554 /** Texture is a pure virtual base class, apply must be overridden. */ 555 555 virtual void apply(State& state) const = 0; 556 556 … … 562 562 563 563 /** If State is non-zero, this function releases OpenGL objects for 564 * the specified graphics context. Otherwise, releases OpenGL obje xts564 * the specified graphics context. Otherwise, releases OpenGL objects 565 565 * for all graphics contexts. */ 566 566 virtual void releaseGLObjects(State* state=0) const; 567 567 568 568 /** Encapsulates queries of extension availability, obtains extension 569 * function pointers, and provides conv inience wrappers for569 * function pointers, and provides convenience wrappers for 570 570 * calling extension functions. */ 571 571 class OSG_EXPORT Extensions : public osg::Referenced … … 682 682 /** Overrides Extensions objects across graphics contexts. Typically 683 683 * used to ensure the same lowest common denominator of extensions 684 * on s ustems with different graphics pipes. */684 * on systems with different graphics pipes. */ 685 685 static void setExtensions(unsigned int contextID,Extensions* extensions); 686 686 … … 717 717 void computeInternalFormatType() const; 718 718 719 /** Helper method. Sets texture param ters. */719 /** Helper method. Sets texture parameters. */ 720 720 void applyTexParameters(GLenum target, State& state) const; 721 721 -
OpenSceneGraph/trunk/include/osg/Texture1D
r7385 r7648 95 95 96 96 /** Helper function. Sets the number of mipmap levels created for this 97 * texture. Should only be called within an osg::Tex uture::apply(), or97 * texture. Should only be called within an osg::Texture::apply(), or 98 98 * during a custom OpenGL texture load. */ 99 99 void setNumMipmapLevels(unsigned int num) const { _numMipmapLevels=num; } … … 127 127 void allocateMipmap(State& state) const; 128 128 129 /** Helper method. Create athe texture without setting or using a129 /** Helper method. Create the texture without setting or using a 130 130 * texture binding. */ 131 131 void applyTexImage1D(GLenum target, Image* image, State& state, GLsizei& width, GLsizei& numMipmapLevels) const; -
OpenSceneGraph/trunk/include/osg/Texture2D
r7385 r7648 100 100 101 101 /** Helper function. Sets the number of mipmap levels created for this 102 * texture. Should only be called within an osg::Tex uture::apply(), or102 * texture. Should only be called within an osg::Texture::apply(), or 103 103 * during a custom OpenGL texture load. */ 104 104 void setNumMipmapLevels(unsigned int num) const { _numMipmapLevels=num; } -
OpenSceneGraph/trunk/include/osg/Texture2DArray
r7408 r7648 67 67 68 68 /** Set the texture width and height. If width or height are zero then 69 * the re psective size value is calculated from the source image sizes.69 * the respective size value is calculated from the source image sizes. 70 70 * Depth parameter specifies the number of layers to be used. 71 71 */ … … 97 97 98 98 /** Set the number of mip map levels the the texture has been created with. 99 * Should only be called within an osg::Tex uture::apply() and custom OpenGL texture load.99 * Should only be called within an osg::Texture::apply() and custom OpenGL texture load. 100 100 */ 101 101 void setNumMipmapLevels(unsigned int num) const { _numMipmapLevels=num; } … … 120 120 121 121 /** Extensions class which encapsulates the querying of extensions and 122 * associated function pointers, and provides conv inience wrappers to122 * associated function pointers, and provides convenience wrappers to 123 123 * check for the extensions or use the associated functions. 124 124 */ … … 183 183 184 184 /** Function to call to get the extension of a specified context. 185 * If the Ex entsion object for that context has not yet been created185 * If the Extension object for that context has not yet been created 186 186 * and the 'createIfNotInitalized' flag been set to false then returns NULL. 187 187 * If 'createIfNotInitalized' is true then the Extensions object is -
OpenSceneGraph/trunk/include/osg/Texture3D
r7385 r7648 109 109 110 110 /** Helper function. Sets the number of mipmap levels created for this 111 * texture. Should only be called within an osg::Tex uture::apply(), or111 * texture. Should only be called within an osg::Texture::apply(), or 112 112 * during a custom OpenGL texture load. */ 113 113 void setNumMipmapLevels(unsigned int num) const { _numMipmapLevels=num; } … … 133 133 134 134 /** Encapsulates queries of extension availability, obtains extension 135 * function pointers, and provides conv inience wrappers for135 * function pointers, and provides convenience wrappers for 136 136 * calling extension functions. */ 137 137 class OSG_EXPORT Extensions : public osg::Referenced … … 193 193 194 194 /** Encapsulates queries of extension availability, obtains extension 195 * function pointers, and provides conv inience wrappers for195 * function pointers, and provides convenience wrappers for 196 196 * calling extension functions. */ 197 197 static Extensions* getExtensions(unsigned int contextID,bool createIfNotInitalized); … … 199 199 /** Overrides Extensions objects across graphics contexts. Typically 200 200 * used to ensure the same lowest common denominator of extensions 201 * on s ustems with different graphics pipes. */201 * on systems with different graphics pipes. */ 202 202 static void setExtensions(unsigned int contextID,Extensions* extensions); 203 203 -
OpenSceneGraph/trunk/include/osg/TextureRectangle
r7385 r7648 77 77 78 78 /** Set the texture width and height. If width or height are zero then 79 * the re psective size value is calculated from the source image sizes.79 * the respective size value is calculated from the source image sizes. 80 80 */ 81 81 inline void setTextureSize(int width, int height) const -
OpenSceneGraph/trunk/include/osg/Timer
r5848 r7648 68 68 inline double delta_n( Timer_t t1, Timer_t t2 ) const { return delta_s(t1,t2)*1e9; } 69 69 70 /** Get the the num er of ticks per second.*/70 /** Get the the number of ticks per second.*/ 71 71 inline double getSecondsPerTick() const { return _secsPerTick; } 72 72 -
OpenSceneGraph/trunk/include/osg/Transform
r6109 r7648 38 38 /** Compute the matrix which transforms objects in local coords to eye coords, 39 39 * by accumulating the Transform local to world matrices along the specified node path 40 * and multipl ing by the supplied initial camera modelview.40 * and multiplying by the supplied initial camera modelview. 41 41 */ 42 42 extern OSG_EXPORT Matrix computeLocalToEye(const Matrix& modelview, const NodePath& nodePath, bool ignoreCameras = true); … … 44 44 /** Compute the matrix which transforms objects in eye coords to local coords, 45 45 * by accumulating the Transform world to local matrices along the specified node path 46 * and multipl ing by the inverse of the supplied initialial camera modelview.46 * and multiplying by the inverse of the supplied initial camera modelview. 47 47 */ 48 48 extern OSG_EXPORT Matrix computeEyeToLocal(const Matrix& modelview, const NodePath& nodePath, bool ignoreCameras = true); … … 101 101 * also set the CullingActive flag on the transform, and hence all 102 102 * of its parents, to false, thereby disabling culling of it and 103 * all its parents. This is nec cessary to prevent inappropriate103 * all its parents. This is necessary to prevent inappropriate 104 104 * culling, but may impact cull times if the absolute transform is 105 105 * deep in the scene graph. It is therefore recommended to only use … … 111 111 * Render to texture Cameras that wish to use the main views LOD range computation 112 112 * (which uses the viewpoint rather than the eye point) rather than use the local 113 * eye point defined by the this Transforms' ab osolute view matrix.113 * eye point defined by the this Transforms' absolute view matrix. 114 114 */ 115 115 void setReferenceFrame(ReferenceFrame rf); -
OpenSceneGraph/trunk/include/osg/TriangleFunctor
r7601 r7648 356 356 * begin(..),vertex(..) & end() are convenience methods for adapting 357 357 * non vertex array primitives to vertex array based primitives. 358 * This is done to simplify the implementation of prim tive functor358 * This is done to simplify the implementation of primitive functor 359 359 * subclasses - users only need override drawArray and drawElements. 360 360 */ -
OpenSceneGraph/trunk/include/osg/Uniform
r7371 r7648 379 379 380 380 /** Increment the modified count on the Uniform so Programs watching it know it update themselves. 381 * NOTE: auto tomatically called during osg::Uniform::set*();381 * NOTE: automatically called during osg::Uniform::set*(); 382 382 * you must call if modifying the internal data array directly. */ 383 383 inline void dirty() { ++_modifiedCount; } -
OpenSceneGraph/trunk/include/osg/Vec2b
r5328 r7648 35 35 enum { num_components = 2 }; 36 36 37 /** Vec member var aible. */37 /** Vec member variable. */ 38 38 value_type _v[2]; 39 39 -
OpenSceneGraph/trunk/include/osg/Vec2d
r5328 r7648 36 36 enum { num_components = 2 }; 37 37 38 /** Vec member varaible. */39 38 value_type _v[2]; 40 39 -
OpenSceneGraph/trunk/include/osg/Vec2s
r5328 r7648 27 27 enum { num_components = 2 }; 28 28 29 /** Vec member varaible. */30 29 value_type _v[2]; 31 30 -
OpenSceneGraph/trunk/include/osg/Vec3b
r5328 r7648 33 33 enum { num_components = 3 }; 34 34 35 /** Vec member varaible. */36 35 value_type _v[3]; 37 36 -
OpenSceneGraph/trunk/include/osg/Vec3d
r5328 r7648 37 37 enum { num_components = 3 }; 38 38 39 /** Vec member varaible. */40 39 value_type _v[3]; 41 40 -
OpenSceneGraph/trunk/include/osg/Vec3f
r5328 r7648 36 36 enum { num_components = 3 }; 37 37 38 /** Vec member varaible. */39 38 value_type _v[3]; 40 39 -
OpenSceneGraph/trunk/include/osg/Vec3s
r5328 r7648 27 27 enum { num_components = 3 }; 28 28 29 /** Vec member varaible. */30 29 value_type _v[3]; 31 30 -
OpenSceneGraph/trunk/include/osg/Vec4b
r5328 r7648 33 33 enum { num_components = 4 }; 34 34 35 /** Vec member varaible. */36 35 value_type _v[4]; 37 36 -
OpenSceneGraph/trunk/include/osg/Vec4d
r5328 r7648 36 36 enum { num_components = 4 }; 37 37 38 /** Vec member varaible. */39 38 value_type _v[4]; 40 39 -
OpenSceneGraph/trunk/include/osg/Vec4f
r5328 r7648 35 35 enum { num_components = 4 }; 36 36 37 /** Vec member var aible. */37 /** Vec member variable. */ 38 38 value_type _v[4]; 39 39 -
OpenSceneGraph/trunk/include/osg/Vec4s
r5328 r7648 27 27 enum { num_components = 4 }; 28 28 29 /** Vec member var aible. */29 /** Vec member variable. */ 30 30 value_type _v[4]; 31 31 -
OpenSceneGraph/trunk/include/osg/Vec4ub
r5328 r7648 35 35 enum { num_components = 4 }; 36 36 37 /** Vec member var aible. */37 /** Vec member variable. */ 38 38 value_type _v[4]; 39 39 -
OpenSceneGraph/trunk/include/osg/VertexProgram
r7038 r7648 131 131 COMPARE_StateAttribute_Types(VertexProgram,sa) 132 132 133 // compare each param ter in turn against the rhs.133 // compare each parameter in turn against the rhs. 134 134 COMPARE_StateAttribute_Parameter(_vertexProgram) 135 135 … … 226 226 227 227 /** Release any OpenGL objects in specified graphics context if State 228 * object is passed, otherwise release OpenGL obje xts for all graphics contexts if228 * object is passed, otherwise release OpenGL objects for all graphics contexts if 229 229 * State object pointer is NULL. 230 230 */ … … 270 270 271 271 /** Function to call to get the extension of a specified context. 272 * If the Ex entsion object for that context has not yet been created272 * If the Extension object for that context has not yet been created 273 273 * and the 'createIfNotInitalized' flag been set to false then returns NULL. 274 274 * If 'createIfNotInitalized' is true then the Extensions object is -
OpenSceneGraph/trunk/include/osg/Viewport
r5863 r7648 56 56 COMPARE_StateAttribute_Types(Viewport,sa) 57 57 58 // compare each param ter in turn against the rhs.58 // compare each parameter in turn against the rhs. 59 59 COMPARE_StateAttribute_Parameter(_x) 60 60 COMPARE_StateAttribute_Parameter(_y) … … 105 105 106 106 /** Return the aspectRatio of the viewport, which is equal to width/height. 107 * If height is zero, the potent al division by zero is avoided by simply returning 1.0f.107 * If height is zero, the potential division by zero is avoided by simply returning 1.0f. 108 108 */ 109 109 inline double aspectRatio() const { if (_height!=0) return (double)_width/(double)_height; else return 1.0; } -
OpenSceneGraph/trunk/include/osg/io_utils
r5328 r7648 230 230 231 231 ////////////////////////////////////////////////////////////////////////// 232 // Matr xf steaming operators.232 // Matrixf steaming operators. 233 233 inline std::ostream& operator<< (std::ostream& os, const Matrixf& m ) 234 234 { … … 246 246 247 247 ////////////////////////////////////////////////////////////////////////// 248 // Matr xd steaming operators.248 // Matrixd steaming operators. 249 249 inline std::ostream& operator<< (std::ostream& os, const Matrixd& m ) 250 250 { -
OpenSceneGraph/trunk/include/osgDB/DatabasePager
r7612 r7648 37 37 38 38 /** Database paging class which manages the loading of files in a background thread, 39 * and sync ronizing of loaded models with the main scene graph.*/39 * and synchronizing of loaded models with the main scene graph.*/ 40 40 class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandler, public OpenThreads::Thread 41 41 { … … 207 207 } 208 208 209 /** Turn the compilation of rendering objects for spec fied graphics context on (true) or off(false). */209 /** Turn the compilation of rendering objects for specified graphics context on (true) or off(false). */ 210 210 void setCompileGLObjectsForContextID(unsigned int contextID, bool on); 211 211 212 /** Get whether the compilation of rendering objects for spec fied graphics context on (true) or off(false). */212 /** Get whether the compilation of rendering objects for specified graphics context on (true) or off(false). */ 213 213 bool getCompileGLObjectsForContextID(unsigned int contextID); 214 214 215 /** Re rturn true if an external draw thread should call compileGLObjects(..) or not.*/215 /** Return true if an external draw thread should call compileGLObjects(..) or not.*/ 216 216 bool requiresExternalCompileGLObjects(unsigned int contextID) const; 217 217 -
OpenSceneGraph/trunk/include/osgDB/Export
r5328 r7648 43 43 44 44 The osgDB library provides support for reading and writing scene graphs, providing a plugin framework and file utility classes. 45 The plugin framework in cent red around the osgDB::Registry, and allows plugins which provide specific file format support to be dynamically loaded on demand.45 The plugin framework in centered around the osgDB::Registry, and allows plugins which provide specific file format support to be dynamically loaded on demand. 46 46 */ 47 47 -
OpenSceneGraph/trunk/include/osgDB/FileUtils
r5328 r7648 44 44 45 45 46 /** return true if a file exis its. */46 /** return true if a file exists. */ 47 47 extern OSGDB_EXPORT bool fileExists(const std::string& filename); 48 48 … … 56 56 * return "" if directory does not contain file. If caseInsensitive is set to true then 57 57 * a case insensitive comparison is used to compare fileName to directory contents. 58 * This is useful when unix programs attempt read case insen tive windows filenames.58 * This is useful when unix programs attempt read case insensitive windows filenames. 59 59 */ 60 60 extern OSGDB_EXPORT std::string findFileInDirectory(const std::string& fileName,const std::string& dirName,CaseSensitivity caseSensitivity=CASE_SENSITIVE); … … 93 93 extern OSGDB_EXPORT std::string findLibraryFile(const std::string& filename,CaseSensitivity caseSensitivity=CASE_SENSITIVE); 94 94 95 /** convert a string containing a list of paths delimi nated either with ';' (Windows) or ':' (All other platforms) into FilePath represetation.*/95 /** convert a string containing a list of paths delimited either with ';' (Windows) or ':' (All other platforms) into FilePath representation.*/ 96 96 extern OSGDB_EXPORT void convertStringPathIntoFilePathList(const std::string& paths,FilePathList& filepath); 97 97 -
OpenSceneGraph/trunk/include/osgDB/Registry
r7518 r7648 87 87 88 88 /** Reads a file that configures extension mappings. File is ASCII text 89 * and each line contains the parame yters to the addFileExtensionAlias89 * and each line contains the parameters to the addFileExtensionAlias 90 90 * method. Lines can be commented out with an initial '#' character.*/ 91 91 bool readPluginAliasConfigurationFile( const std::string& file ); … … 289 289 290 290 291 /** initi lize both the Data and Library FilePaths, by default called by the291 /** initialize both the Data and Library FilePaths, by default called by the 292 292 * constructor, so it should only be required if you want to force 293 293 * the re-reading of environmental variables.*/ 294 294 void initFilePathLists() { initDataFilePathList(); initLibraryFilePathList(); } 295 295 296 /** initi lize the Data FilePath by reading the OSG_FILE_PATH environmental variable.*/296 /** initialize the Data FilePath by reading the OSG_FILE_PATH environmental variable.*/ 297 297 void initDataFilePathList(); 298 298 … … 300 300 void setDataFilePathList(const FilePathList& filepath) { _dataFilePath = filepath; } 301 301 302 /** Set the data file path using a single string delimi nated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files.*/302 /** Set the data file path using a single string delimited either with ';' (Windows) or ':' (All other platforms), which is used when search for data files.*/ 303 303 void setDataFilePathList(const std::string& paths); 304 304 … … 309 309 const FilePathList& getDataFilePathList() const { return _dataFilePath; } 310 310 311 /** initi lize the Library FilePath by reading the OSG_LIBRARY_PATH311 /** initialize the Library FilePath by reading the OSG_LIBRARY_PATH 312 312 * and the appropriate system environmental variables*/ 313 313 void initLibraryFilePathList(); … … 316 316 void setLibraryFilePathList(const FilePathList& filepath) { _libraryFilePath = filepath; } 317 317 318 /** Set the library file path using a single string delimi nated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files.*/318 /** Set the library file path using a single string delimited either with ';' (Windows) or ':' (All other platforms), which is used when search for data files.*/ 319 319 void setLibraryFilePathList(const std::string& paths); 320 320 … … 330 330 * This would typically be called once per frame by applications which are doing database paging, 331 331 * and need to prune objects that are no longer required. 332 * Time value is time in s ceonds.*/332 * Time value is time in seconds.*/ 333 333 void updateTimeStampOfObjectsInCacheWithExternalReferences(double currentTime); 334 334 … … 339 339 * Note, the currentTime is not the expiryTime, one would typically set the expiry time 340 340 * to a fixed amount of time before currentTime, such as expiryTime = currentTime-10.0. 341 * Time value is time in s ceonds.*/341 * Time value is time in seconds.*/ 342 342 void removeExpiredObjectsInCache(double expiryTime); 343 343 … … 345 345 void clearObjectCache(); 346 346 347 /** Add a filename,object,timestamp trip ple to the Registry::ObjectCache.*/347 /** Add a filename,object,timestamp triple to the Registry::ObjectCache.*/ 348 348 void addEntryToObjectCache(const std::string& filename, osg::Object* object, double timestamp = 0.0); 349 349 … … 461 461 462 462 463 // forward declar helper class463 // forward declare helper class 464 464 class AvailableReaderWriterIterator; 465 465 friend class AvailableReaderWriterIterator; -
OpenSceneGraph/trunk/include/osgDB/SharedStateManager
r5328 r7648 69 69 StateSetSet _sharedStateSetList; 70 70 71 // Temporary lists just to avoid unneces ary find calls71 // Temporary lists just to avoid unnecessary find calls 72 72 typedef std::pair<osg::StateAttribute*, bool> TextureSharePair; 73 73 typedef std::map<osg::StateAttribute*, TextureSharePair> TextureTextureSharePairMap; -
OpenSceneGraph/trunk/include/osgGA/AnimationPathManipulator
r7101 r7648 28 28 // time px py pz ax ay az aw 29 29 // where: 30 // time = elapsed time in seconds from the begin ing of the animation31 // px py pz = World position in ca tesian coordinates30 // time = elapsed time in seconds from the beginning of the animation 31 // px py pz = World position in cartesian coordinates 32 32 // ax ay az aw = Orientation (attitude) defined as a quaternion 33 33 -
OpenSceneGraph/trunk/include/osgGA/EventQueue
r7114 r7648 175 175 176 176 177 /** conv inience method for create an event ready to fill in. Clones the getCurrentEventState() to produce a up to date event state. */177 /** convenience method for create an event ready to fill in. Clones the getCurrentEventState() to produce a up to date event state. */ 178 178 GUIEventAdapter* createEvent(); 179 179 -
OpenSceneGraph/trunk/include/osgGA/GUIActionAdapter
r7561 r7648 22 22 /** 23 23 Abstract base class defining the interface by which GUIEventHandlers may request 24 actions of the GUI system in use. These requests for actions should then be hono ured24 actions of the GUI system in use. These requests for actions should then be honored 25 25 by the GUI toolkit of the user's application. 26 26 … … 58 58 virtual ~GUIActionAdapter() {} 59 59 60 /** Provide a mechanism for getting the osg::View assoc aited with this GUIActionAdapter.60 /** Provide a mechanism for getting the osg::View associated with this GUIActionAdapter. 61 61 * One would use this to case view to osgViewer::View(er) if supported by the subclass.*/ 62 62 virtual osg::View* asView() { return 0; } -
OpenSceneGraph/trunk/include/osgGA/GUIEventAdapter
r7420 r7648 143 143 144 144 /* 145 * Auxil liary Functions; note the duplicate definitions for left and right145 * Auxiliary Functions; note the duplicate definitions for left and right 146 146 * function keys; Sun keyboards and a few other manufactures have such 147 147 * function key groups on the left and/or right sides of the keyboard. … … 323 323 float getXmax() const { return _Xmax; } 324 324 325 /** get m mouse minimum y. */325 /** get mouse minimum y. */ 326 326 float getYmin() const { return _Ymin; } 327 327 … … 378 378 379 379 380 /** return the getX() value normali sed to the range of -1 to 1.380 /** return the getX() value normalized to the range of -1 to 1. 381 381 * -1 would be the left hand side of the window. 382 382 * 0.0 would be the middle of the window. … … 384 384 inline float getXnormalized() const { return 2.0f*(getX()-getXmin())/(getXmax()-getXmin())-1.0f; } 385 385 386 /** return the getY() value normali sed to the range of -1 to 1.386 /** return the getY() value normalized to the range of -1 to 1. 387 387 * -1 would be the bottom of the window. 388 388 * 0.0 would be the middle of the window. -
OpenSceneGraph/trunk/include/osgGA/GUIEventHandler
r7420 r7648 67 67 virtual bool handle(const GUIEventAdapter& ea,GUIActionAdapter& aa, osg::Object*, osg::NodeVisitor*) { return handle(ea,aa); } 68 68 69 /** Conv nience method that only passes on to the handle(,,,) method events that either haven't been69 /** Convenience method that only passes on to the handle(,,,) method events that either haven't been 70 70 * handled yet, or have been handled but haven't be set to be ignored by the IgnoreHandledEventsMask. 71 71 * Note, this method is an inline method, and not appropriate for users to override, override the handle(,,,) … … 89 89 virtual bool handle(const GUIEventAdapter&,GUIActionAdapter&) { return false; } 90 90 91 /** Conv nience method that only passes on to the handle(,) method events that either haven't been91 /** Convenience method that only passes on to the handle(,) method events that either haven't been 92 92 * handled yet, or have been handled but haven't be set to be ignored by the IgnoreHandledEventsMask. 93 93 * Note, this method is an inline method, and not appropriate for users to override, override the handle(,) -
OpenSceneGraph/trunk/include/osgGA/KeySwitchMatrixManipulator
r6461 r7648 101 101 virtual osg::Matrixd getInverseMatrix() const { return _current->getInverseMatrix(); } 102 102 103 /** Get the FusionDistanceMode. Used by SceneView for setting up s etereo convergence.*/103 /** Get the FusionDistanceMode. Used by SceneView for setting up stereo convergence.*/ 104 104 virtual osgUtil::SceneView::FusionDistanceMode getFusionDistanceMode() const { return _current->getFusionDistanceMode(); } 105 105 106 /** Get the FusionDistanceValue. Used by SceneView for setting up s etereo convergence.*/106 /** Get the FusionDistanceValue. Used by SceneView for setting up stereo convergence.*/ 107 107 virtual float getFusionDistanceValue() const { return _current->getFusionDistanceValue(); } 108 108 -
OpenSceneGraph/trunk/include/osgGA/MatrixManipulator
r5638 r7648 44 44 virtual const char* className() const { return "MatrixManipulator"; } 45 45 46 /** callback class to use to allow matrix manipulators to quer ry the application for the local coordinate frame.*/46 /** callback class to use to allow matrix manipulators to query the application for the local coordinate frame.*/ 47 47 class CoordinateFrameCallback : public osg::Referenced 48 48 { … … 95 95 virtual osg::Matrixd getInverseMatrix() const = 0; 96 96 97 /** Get the FusionDistanceMode. Used by SceneView for setting up s etereo convergence.*/97 /** Get the FusionDistanceMode. Used by SceneView for setting up stereo convergence.*/ 98 98 virtual osgUtil::SceneView::FusionDistanceMode getFusionDistanceMode() const { return osgUtil::SceneView::PROPORTIONAL_TO_SCREEN_DISTANCE; } 99 99 100 /** Get the FusionDistanceValue. Used by SceneView for setting up s etereo convergence.*/100 /** Get the FusionDistanceValue. Used by SceneView for setting up stereo convergence.*/ 101 101 virtual float getFusionDistanceValue() const { return 1.0f; } 102 102 … … 130 130 } 131 131 132 /** Get the m naully set home position. */132 /** Get the manually set home position. */ 133 133 virtual void getHomePosition(osg::Vec3d& eye, osg::Vec3d& center, osg::Vec3d& up) const 134 134 { -
OpenSceneGraph/trunk/include/osgGA/NodeTrackerManipulator
r7102 r7648 49 49 { 50 50 /** Track the center of the node's bounding sphere, but not rotations of the node. 51 * For data tbases which have a CoordinateSystemNode, the orientation is kept relative the coordinate frame if the center of the node.51 * For databases which have a CoordinateSystemNode, the orientation is kept relative the coordinate frame if the center of the node. 52 52 */ 53 53 NODE_CENTER, 54 54 /** Track the center of the node's bounding sphere, and the azimuth rotation (about the z axis of the current coordinate frame). 55 * For data tbases which have a CoordinateSystemNode, the orientation is kept relative the coordinate frame if the center of the node.55 * For databases which have a CoordinateSystemNode, the orientation is kept relative the coordinate frame if the center of the node. 56 56 */ 57 57 NODE_CENTER_AND_AZIM, … … 91 91 virtual osg::Matrixd getInverseMatrix() const; 92 92 93 /** Get the FusionDistanceMode. Used by SceneView for setting up s etereo convergence.*/93 /** Get the FusionDistanceMode. Used by SceneView for setting up stereo convergence.*/ 94 94 virtual osgUtil::SceneView::FusionDistanceMode getFusionDistanceMode() const { return osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE; } 95 95 96 /** Get the FusionDistanceValue. Used by SceneView for setting up s etereo convergence.*/96 /** Get the FusionDistanceValue. Used by SceneView for setting up stereo convergence.*/ 97 97 virtual float getFusionDistanceValue() const { return _distance; } 98 98 -
OpenSceneGraph/trunk/include/osgGA/TerrainManipulator
r6461 r7648 51 51 virtual osg::Matrixd getInverseMatrix() const; 52 52 53 /** Get the FusionDistanceMode. Used by SceneView for setting up s etereo convergence.*/53 /** Get the FusionDistanceMode. Used by SceneView for setting up stereo convergence.*/ 54 54 virtual osgUtil::SceneView::FusionDistanceMode getFusionDistanceMode() const { return osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE; } 55 55 56 /** Get the FusionDistanceValue. Used by SceneView for setting up s etereo convergence.*/56 /** Get the FusionDistanceValue. Used by SceneView for setting up stereo convergence.*/ 57 57 virtual float getFusionDistanceValue() const { return _distance; } 58 58 -
OpenSceneGraph/trunk/include/osgGA/TrackballManipulator
r5328 r7648 39 39 virtual osg::Matrixd getInverseMatrix() const; 40 40 41 /** Get the FusionDistanceMode. Used by SceneView for setting up s etereo convergence.*/41 /** Get the FusionDistanceMode. Used by SceneView for setting up stereo convergence.*/ 42 42 virtual osgUtil::SceneView::FusionDistanceMode getFusionDistanceMode() const { return osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE; } 43 43 44 /** Get the FusionDistanceValue. Used by SceneView for setting up s etereo convergence.*/44 /** Get the FusionDistanceValue. Used by SceneView for setting up stereo convergence.*/ 45 45 virtual float getFusionDistanceValue() const { return _distance; } 46 46 -
OpenSceneGraph/trunk/include/osgGA/UFOManipulator
r5328 r7648 71 71 virtual void setByMatrix( const osg::Matrixd &matrix ) ; 72 72 73 /** Set the current position with the invers matrix73 /** Set the current position with the inverse matrix 74 74 \param invmat The inverse of a viewpoint matrix 75 75 */ -
OpenSceneGraph/trunk/include/osgShadow/ShadowTechnique
r6232 r7648 28 28 class ShadowedScene; 29 29 30 /** ShadowedScene provides a mechan sim for decorating a scene that the needs to have shadows cast upon it.*/30 /** ShadowedScene provides a mechanism for decorating a scene that the needs to have shadows cast upon it.*/ 31 31 class OSGSHADOW_EXPORT ShadowTechnique : public osg::Object 32 32 { … … 43 43 virtual void init(); 44 44 45 /** run the update traversal of the ShadowedScene and update any loca chached data structures.*/45 /** run the update traversal of the ShadowedScene and update any local cached data structures.*/ 46 46 virtual void update(osg::NodeVisitor& nv); 47 47 … … 54 54 virtual void traverse(osg::NodeVisitor& nv); 55 55 56 /** Dirty so that cached data structures eare updated.*/56 /** Dirty so that cached data structures are updated.*/ 57 57 virtual void dirty() { _dirty = true; } 58 58 -
OpenSceneGraph/trunk/include/osgSim/ElevationSlice
r6667 r7648 22 22 namespace osgSim { 23 23 24 /** Helper class for setting up and a quiring height above terrain intersections with terrain.*/24 /** Helper class for setting up and acquiring height above terrain intersections with terrain.*/ 25 25 class OSGSIM_EXPORT ElevationSlice 26 26 { … … 69 69 70 70 /** Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. 71 * Note, if you have mul itple LineOfSight or ElevationSlice objects in use at one time then you should share a single71 * Note, if you have multiple LineOfSight or ElevationSlice objects in use at one time then you should share a single 72 72 * DatabaseCacheReadCallback between all of them. */ 73 73 void setDatabaseCacheReadCallback(DatabaseCacheReadCallback* dcrc); -
OpenSceneGraph/trunk/include/osgSim/HeightAboveTerrain
r6665 r7648 22 22 namespace osgSim { 23 23 24 /** Helper class for setting up and a quiring height above terrain intersections with terrain.*/24 /** Helper class for setting up and acquiring height above terrain intersections with terrain.*/ 25 25 class OSGSIM_EXPORT HeightAboveTerrain 26 26 { … … 47 47 48 48 /** Get the intersection height for a single height above terrain test. 49 * Note, you must call computeIntersections(..) before you can quer ry the HeightAboveTerrain.49 * Note, you must call computeIntersections(..) before you can query the HeightAboveTerrain. 50 50 * If no intersections are found then height returned will be the height above mean sea level. */ 51 51 double getHeightAboveTerrain(unsigned int i) const { return _HATList[i]._hat; } … … 73 73 74 74 /** Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. 75 * Note, if you have mul itple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single75 * Note, if you have multiple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single 76 76 * DatabaseCacheReadCallback between all of them. */ 77 77 void setDatabaseCacheReadCallback(DatabaseCacheReadCallback* dcrc); -
OpenSceneGraph/trunk/include/osgSim/ImpostorSprite
r6422 r7648 132 132 virtual bool supports(const Drawable::AttributeFunctor&) const { return true; } 133 133 134 /** Accept an Drawable::AttributeFunctor and call its methods to tell it about the inter al attributes that this Drawable has. */134 /** Accept an Drawable::AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. */ 135 135 virtual void accept(Drawable::AttributeFunctor& af); 136 136 … … 138 138 virtual bool supports(const Drawable::ConstAttributeFunctor&) const { return true; } 139 139 140 /** Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the inter al attributes that this Drawable has. */140 /** Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. */ 141 141 virtual void accept(Drawable::ConstAttributeFunctor& af) const; 142 142 … … 144 144 virtual bool supports(const osg::PrimitiveFunctor&) const { return true; } 145 145 146 /** Accept a PrimtiveFunctor and call its methods to tell it about the inter al primtives that this Drawable has. */146 /** Accept a PrimtiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. */ 147 147 virtual void accept(osg::PrimitiveFunctor& pf) const; 148 148 -
OpenSceneGraph/trunk/include/osgSim/LineOfSight
r5859 r7648 44 44 }; 45 45 46 /** Helper class for setting up and a quiring line of sight intersections with terrain.46 /** Helper class for setting up and acquiring line of sight intersections with terrain. 47 47 * Supports automatic paging in of PagedLOD tiles. */ 48 48 class OSGSIM_EXPORT LineOfSight … … 61 61 unsigned int getNumLOS() const { return _LOSList.size(); } 62 62 63 /** Set the start point of si gnelline of sight test.*/63 /** Set the start point of single line of sight test.*/ 64 64 void setStartPoint(unsigned int i, const osg::Vec3d& start) { _LOSList[i]._start = start; } 65 65 … … 90 90 91 91 /** Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. 92 * Note, if you have mul itple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single92 * Note, if you have multiple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single 93 93 * DatabaseCacheReadCallback between all of them. */ 94 94 void setDatabaseCacheReadCallback(DatabaseCacheReadCallback* dcrc); -
OpenSceneGraph/trunk/include/osgTerrain/Locator
r7434 r7648 43 43 GEOGRAPHIC, 44 44 45 /** PROJECTED coordinate systems are ones projected to a local projected coordin date system i.e. UTMs.*/45 /** PROJECTED coordinate systems are ones projected to a local projected coordinate system i.e. UTMs.*/ 46 46 PROJECTED 47 47 }; 48 48 49 49 /** Set the CoordinatesSyetemType. 50 * Note, the user must keep the CoordinateSystemString consistent with the type of the Coordin dateSystem.*/50 * Note, the user must keep the CoordinateSystemString consistent with the type of the CoordinateSystem.*/ 51 51 void setCoordinateSystemType(CoordinateSystemType type) { _coordinateSystemType = type; } 52 52 -
OpenSceneGraph/trunk/include/osgTerrain/Terrain
r7201 r7648 25 25 namespace osgTerrain { 26 26 27 /** Terrain provides a framework for loos ly coupling height field data with height rendering algorithms.28 * This allows TerrainTechnique's to be plug ed in at runtime.*/27 /** Terrain provides a framework for loosely coupling height field data with height rendering algorithms. 28 * This allows TerrainTechnique's to be plugged in at runtime.*/ 29 29 class OSGTERRAIN_EXPORT Terrain : public osg::Group 30 30 { -
OpenSceneGraph/trunk/include/osgTerrain/TerrainTechnique
r7201 r7648 49 49 virtual void cleanSceneGraph(); 50 50 51 /** Traverse the ter ain subgraph.*/51 /** Traverse the terrain subgraph.*/ 52 52 virtual void traverse(osg::NodeVisitor& nv); 53 53 54 /** Dirty so that cached data structures ewill be updated on next use.*/54 /** Dirty so that cached data structures will be updated on next use.*/ 55 55 virtual void dirty(); 56 56 57 /** Return true if cached data structures eneed updating.*/57 /** Return true if cached data structures need updating.*/ 58 58 virtual bool isDirty() const { return _dirty; } 59 59 -
OpenSceneGraph/trunk/include/osgText/Font
r7645 r7648 267 267 268 268 // parameter used to compute the size and position of empty space 269 // in the texture which could accom odate new glyphs.269 // in the texture which could accommodate new glyphs. 270 270 int _margin; 271 271 float _marginRatio; -
OpenSceneGraph/trunk/include/osgText/String
r6063 r7648 80 80 81 81 /** Set the text using a Unicode encoded std::string, which is converted to an internal TextString. 82 * The encoding parameter specifi cies which Unicode encodeding is used in the std::string. */82 * The encoding parameter specifies which Unicode encoding is used in the std::string. */ 83 83 void set(const std::string& text,Encoding encoding); 84 84 -
OpenSceneGraph/trunk/include/osgText/Text
r7645 r7648 264 264 virtual bool supports(const osg::Drawable::ConstAttributeFunctor&) const { return true; } 265 265 266 /** accept an ConstAttributeFunctor and call its methods to tell it about the inter al attributes that this Drawable has.*/266 /** accept an ConstAttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has.*/ 267 267 virtual void accept(osg::Drawable::ConstAttributeFunctor& af) const; 268 268 … … 270 270 virtual bool supports(const osg::PrimitiveFunctor&) const { return true; } 271 271 272 /** accept a PrimtiveFunctor and call its methods to tell it about the inter al primtives that this Drawable has.*/272 /** accept a PrimtiveFunctor and call its methods to tell it about the internal primitives that this Drawable has.*/ 273 273 virtual void accept(osg::PrimitiveFunctor& pf) const; 274 274 -
OpenSceneGraph/trunk/include/osgUtil/IntersectionVisitor
r6898 r7648 27 27 class IntersectionVisitor; 28 28 29 /** Pure virtual base class for implement ating custom intersection technique.29 /** Pure virtual base class for implementing custom intersection technique. 30 30 * To implement a specific intersection technique on must override all 31 31 * the pure virtue methods, concrete examples of how to do this can be seen in … … 78 78 79 79 80 /** Concre ntclass for passing multiple intersectors through the scene graph.80 /** Concrete class for passing multiple intersectors through the scene graph. 81 81 * To be used in conjunction with IntersectionVisitor. */ 82 82 class OSGUTIL_EXPORT IntersectorGroup : public Intersector … … 125 125 126 126 /** Callback used to implement the reading of external files, allowing support for paged databases to be 127 * inte rgrated with IntersectionVisitor. A concrete implementation can be found in osgDB.127 * integrated with IntersectionVisitor. A concrete implementation can be found in osgDB. 128 128 * Note, this loose coupling approach is required as osgUtil is independent from osgDB where the file reading 129 129 * is implemented, and osgDB itself is dependent upon osgUtil so a circular dependency would result from -
OpenSceneGraph/trunk/include/osgUtil/LineSegmentIntersector
r7222 r7648 20 20 { 21 21 22 /** Concre ntclass for implementing line intersections with the scene graph.22 /** Concrete class for implementing line intersections with the scene graph. 23 23 * To be used in conjunction with IntersectionVisitor. */ 24 24 class OSGUTIL_EXPORT LineSegmentIntersector : public Intersector … … 26 26 public: 27 27 28 /** Construct a LineSegmentIntersector the runs between the s ecified start and end points in MODEL coordinates. */28 /** Construct a LineSegmentIntersector the runs between the specified start and end points in MODEL coordinates. */ 29 29 LineSegmentIntersector(const osg::Vec3d& start, const osg::Vec3d& end); 30 30 31 /** Construct a LineSegmentIntersector the runs between the s ecified start and end points in the specified coordinate frame. */31 /** Construct a LineSegmentIntersector the runs between the specified start and end points in the specified coordinate frame. */ 32 32 LineSegmentIntersector(CoordinateFrame cf, const osg::Vec3d& start, const osg::Vec3d& end); 33 33 34 /** Conv inience constructor for supporting picking in WINDOW, or PROJECTION coorindates34 /** Convenience constructor for supporting picking in WINDOW, or PROJECTION coordinates 35 35 * In WINDOW coordinates creates a start value of (x,y,0) and end value of (x,y,1). 36 36 * In PROJECTION coordinates (clip space cube) creates a start value of (x,y,-1) and end value of (x,y,1). -
OpenSceneGraph/trunk/include/osgUtil/PlaneIntersector
r5792 r7648 22 22 { 23 23 24 /** Concre ntclass for implementing polytope intersections with the scene graph.24 /** Concrete class for implementing polytope intersections with the scene graph. 25 25 * To be used in conjunction with IntersectionVisitor. */ 26 26 class OSGUTIL_EXPORT PlaneIntersector : public Intersector -
OpenSceneGraph/trunk/include/osgUtil/PolytopeIntersector
r7626 r7648 20 20 { 21 21 22 /** Concre ntclass for implementing polytope intersections with the scene graph.22 /** Concrete class for implementing polytope intersections with the scene graph. 23 23 * To be used in conjunction with IntersectionVisitor. */ 24 24 class OSGUTIL_EXPORT PolytopeIntersector : public Intersector -
OpenSceneGraph/trunk/include/osgViewer/CompositeViewer
r7535 r7648 72 72 73 73 /** Execute a main frame loop. 74 * Equiv ialant to while (!viewer.done()) viewer.frame();74 * Equivalent to while (!viewer.done()) viewer.frame(); 75 75 * Also calls realize() if the viewer is not already realized, 76 76 * and installs trackball manipulator if one is not already assigned. -
OpenSceneGraph/trunk/include/osgViewer/Export
r7506 r7648 46 46 \namespace osgViewer 47 47 48 The osgViewer library provides high level viewer functionality designed to make it easier to write a range of differ nt types of viewers,48 The osgViewer library provides high level viewer functionality designed to make it easier to write a range of different types of viewers, 49 49 from viewers embedded in existing windows via SimpleViewer, through to highly scalable and flexible Viewer and Composite classes. A 50 set of event handlers add functionality to these viewers so that you can rapidly compose the viewer functionality ta ylored to your needs.50 set of event handlers add functionality to these viewers so that you can rapidly compose the viewer functionality tailored to your needs. 51 51 Finally the viewer classes can be adapted to work with a range of different window toolkit API's via GraphicsWindow implementations, 52 52 with native Win32, X11 and Carbon implementations on Windows, Unices and OSX respectively, and other window toolkits such as WxWidgets, Qt etc. -
OpenSceneGraph/trunk/include/osgViewer/GraphicsWindow
r7482 r7648 31 31 namespace osgViewer { 32 32 33 /** Base class for providing Windowing API agnostic access to creating and managing graphi scwindow and events.33 /** Base class for providing Windowing API agnostic access to creating and managing graphics window and events. 34 34 * Note, the GraphicsWindow is subclassed from osg::GraphicsContext, and to provide an implemention you'll need to implement its 35 35 * range of pure virtual functions, you'll find these all have naming convention methodNameImplemention(..). 36 * GraphicsWindow adds the event queue on top of the GraphicsContext, thereby adding a mechnism for adapting Windowing events36 * GraphicsWindow adds the event queue on top of the GraphicsContext, thereby adding a mechanism for adapting Windowing events 37 37 * as well as basics graphics context work, you should wire up custom GraphicsWindowImplementation to push their events through 38 38 * into the EventQueue. */ … … 136 136 virtual bool valid() const { osg::notify(osg::NOTICE)<<"GraphicsWindow::valid() not implemented."<<std::endl; return false; } 137 137 138 /** Reali se the GraphicsContext implementation,139 * Pure virtual - must be implemented by concr ate implementations of GraphicsContext. */138 /** Realize the GraphicsContext implementation, 139 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 140 140 virtual bool realizeImplementation() { osg::notify(osg::NOTICE)<<"GraphicsWindow::realizeImplementation() not implemented."<<std::endl; return false; } 141 141 142 /** Return true if the graphics context has been reali sed, and is ready to use, implementation.143 * Pure virtual - must be implemented by concr ate implementations of GraphicsContext. */142 /** Return true if the graphics context has been realized, and is ready to use, implementation. 143 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 144 144 virtual bool isRealizedImplementation() const { osg::notify(osg::NOTICE)<<"GraphicsWindow::isRealizedImplementation() not implemented."<<std::endl; return false; } 145 145 146 146 /** Close the graphics context implementation. 147 * Pure virtual - must be implemented by concr ate implementations of GraphicsContext. */147 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 148 148 virtual void closeImplementation() { osg::notify(osg::NOTICE)<<"GraphicsWindow::closeImplementation() not implemented."<<std::endl; } 149 149 150 150 /** Make this graphics context current implementation. 151 * Pure virtual - must be implemented by concr ate implementations of GraphicsContext. */151 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 152 152 virtual bool makeCurrentImplementation() { osg::notify(osg::NOTICE)<<"GraphicsWindow::makeCurrentImplementation() not implemented."<<std::endl; return false;} 153 153 154 154 /** Make this graphics context current with specified read context implementation. 155 * Pure virtual - must be implemented by concr ate implementations of GraphicsContext. */155 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 156 156 virtual bool makeContextCurrentImplementation(GraphicsContext* /*readContext*/) { osg::notify(osg::NOTICE)<<"GraphicsWindow::makeContextCurrentImplementation(..) not implemented."<<std::endl; return false;} 157 157 … … 160 160 161 161 /** Pure virtual, Bind the graphics context to associated texture implementation. 162 * Pure virtual - must be implemented by concr ate implementations of GraphicsContext. */162 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 163 163 virtual void bindPBufferToTextureImplementation(GLenum /*buffer*/) { osg::notify(osg::NOTICE)<<"GraphicsWindow::bindPBufferToTextureImplementation(..) not implemented."<<std::endl; } 164 164 165 165 /** Swap the front and back buffers implementation. 166 * Pure virtual - must be implemented by Concrate implementations of GraphicsContext. */166 * Pure virtual - must be implemented by concrete implementations of GraphicsContext. */ 167 167 virtual void swapBuffersImplementation() { osg::notify(osg::NOTICE)<<"GraphicsWindow:: swapBuffersImplementation() not implemented."<<std::endl; } 168 168 … … 232 232 } 233 233 234 // dum y implementations, assume that graphics context is *always* current and valid.234 // dummy implementations, assume that graphics context is *always* current and valid. 235 235 virtual bool valid() const { return true; } 236 236 virtual bool realizeImplementation() { return true; } -
OpenSceneGraph/trunk/include/osgViewer/Scene
r7453 r7648 25 25 namespace osgViewer{ 26 26 27 /** Scene holds the highe level reference to a single scene graph.*/27 /** Scene holds the higher level reference to a single scene graph.*/ 28 28 class OSGVIEWER_EXPORT Scene : public osg::Referenced 29 29 { -
OpenSceneGraph/trunk/include/osgViewer/View
r7561 r7648 42 42 META_Object(osgViewer,View); 43 43 44 /** Provide a mechanism for getting the osg::View assoc aited from the GUIActionAdapter.44 /** Provide a mechanism for getting the osg::View associated from the GUIActionAdapter. 45 45 * One would use this to case view to osgViewer::View(er) if supported by the subclass.*/ 46 46 virtual osg::View* asView() { return this; } … … 82 82 const osgDB::DatabasePager* getDatabasePager() const; 83 83 84 /* Set the EventQueue that View uses to int regrate external non window related events.*/84 /* Set the EventQueue that View uses to integrate external non window related events.*/ 85 85 void setEventQueue(osgGA::EventQueue* eventQueue) { _eventQueue = eventQueue; } 86 86 … … 152 152 153 153 154 /** Conv inience method for creating slave Cameras and associated GraphicsWindows across all screens.*/154 /** Convenience method for creating slave Cameras and associated GraphicsWindows across all screens.*/ 155 155 void setUpViewAcrossAllScreens(); 156 156 157 /** Conv inience method for a single Camara on a single window.*/157 /** Convenience method for a single camera on a single window.*/ 158 158 void setUpViewInWindow(int x, int y, int width, int height, unsigned int screenNum=0); 159 159 160 /** Conv inience method for a single Camara associated with a single full screen GraphicsWindow.*/160 /** Convenience method for a single camera associated with a single full screen GraphicsWindow.*/ 161 161 void setUpViewOnSingleScreen(unsigned int screenNum=0); 162 162 163 163 164 /** Conv inience method for spherical display using 6 slave cameras rendering the 6 sides of a cube map, and 7th camera doing distortion correction to present on a spherical display.*/164 /** Convenience method for spherical display using 6 slave cameras rendering the 6 sides of a cube map, and 7th camera doing distortion correction to present on a spherical display.*/ 165 165 void setUpViewFor3DSphericalDisplay(double radius=1.0, double collar=0.45, unsigned int screenNum=0, osg::Image* intensityMap=0); 166 166 167 /** Conv inience method for spherical display by rendering main scene to as panoramic 2:1 texture and then doing distortion correction to present onto a spherical display.*/167 /** Convenience method for spherical display by rendering main scene to as panoramic 2:1 texture and then doing distortion correction to present onto a spherical display.*/ 168 168 void setUpViewForPanoramicSphericalDisplay(double radius=1.0, double collar=0.45, unsigned int screenNum=0, osg::Image* intensityMap=0); 169 169 -
OpenSceneGraph/trunk/include/osgViewer/Viewer
r7535 r7648 69 69 70 70 /** Execute a main frame loop. 71 * Equiv ialant to while (!viewer.done()) viewer.frame();71 * Equivalent to while (!viewer.done()) viewer.frame(); 72 72 * Also calls realize() if the viewer is not already realized, 73 73 * and installs trackball manipulator if one is not already assigned. -
OpenSceneGraph/trunk/include/osgViewer/ViewerBase
r7535 r7648 32 32 class View; 33 33 34 /** ViewerBase is the view base class that is inher tied by both Viewer and CompositeViewer.*/34 /** ViewerBase is the view base class that is inherited by both Viewer and CompositeViewer.*/ 35 35 class OSGVIEWER_EXPORT ViewerBase : public virtual osg::Object 36 36 { … … 100 100 /** Set the position of the end barrier. 101 101 * AfterSwapBuffers will may result is slightly higher framerates, by may 102 * lead to incon cistent swapping between different windows.102 * lead to inconsistent swapping between different windows. 103 103 * BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers, 104 104 * especially important if you are likely to consistently break frame.*/ … … 110 110 111 111 112 /** Set the done flag to si ngnal the viewer's work is done and should exit the frame loop.*/112 /** Set the done flag to signal the viewer's work is done and should exit the frame loop.*/ 113 113 void setDone(bool done) { _done = done; } 114 114 115 /** Re urn true if viewer's work is done and should exit the frame loop.*/115 /** Return true if viewer's work is done and should exit the frame loop.*/ 116 116 bool done() const { return _done; } 117 117 … … 181 181 182 182 /** Execute a main frame loop. 183 * Equiv ialant to while (!viewer.done()) viewer.frame();183 * Equivalent to while (!viewer.done()) viewer.frame(); 184 184 * Also calls realize() if the viewer is not already realized, 185 185 * and installs trackball manipulator if one is not already assigned. -
OpenSceneGraph/trunk/include/osgViewer/api/Win32/GraphicsWindowWin32
r7500 r7648 47 47 virtual bool realizeImplementation(); 48 48 49 /** Return true if the graphics context has been reali sed and is ready to use.*/49 /** Return true if the graphics context has been realized and is ready to use.*/ 50 50 virtual bool isRealizedImplementation() const { return _realized; } 51 51 -
OpenSceneGraph/trunk/include/osgViewer/api/Win32/PixelBufferWin32
r7023 r7648 12 12 */ 13 13 14 /* Note, elements of PixeBufferWin32 have used Prod cer/RenderSurface_Win32.cpp as both14 /* Note, elements of PixeBufferWin32 have used Producer/RenderSurface_Win32.cpp as both 15 15 * a guide to use of X11/GLX and copiying directly in the case of setBorder(). 16 16 * These elements are license under OSGPL as above, with Copyright (C) 2001-2004 Don Burns. … … 48 48 virtual bool realizeImplementation(); 49 49 50 /** Return true if the graphics context has been reali sed and is ready to use.*/50 /** Return true if the graphics context has been realized and is ready to use.*/ 51 51 virtual bool isRealizedImplementation() const { return _realized; } 52 52 -
OpenSceneGraph/trunk/src/osg/AnimationPath.cpp
r6051 r7648 66 66 // we have both a lower bound and the next item. 67 67 68 // de ta_time = second.time - first.time68 // delta_time = second.time - first.time 69 69 double delta_time = second->first - first->first; 70 70 -
OpenSceneGraph/trunk/src/osg/ApplicationUsage.cpp
r7296 r7648 165 165 { 166 166 // word must be longer than a whole line so will need 167 // to concat inate it.167 // to concatenate it. 168 168 width = explanationWidth-1; 169 169 concatinated = true; -
OpenSceneGraph/trunk/src/osg/ClipNode.cpp
r7389 r7648 63 63 if (std::find(_planes.begin(),_planes.end(),clipplane)==_planes.end()) 64 64 { 65 // clip lane doesn't exist in list so add it.65 // clipplane doesn't exist in list so add it. 66 66 _planes.push_back(clipplane); 67 67 setLocalStateSetModes(_value); … … 83 83 if (itr!=_planes.end()) 84 84 { 85 // clip lane exist in list so erase it.85 // clipplane exist in list so erase it. 86 86 _planes.erase(itr); 87 87 setLocalStateSetModes(_value); -
OpenSceneGraph/trunk/src/osg/CullingSet.cpp
r5328 r7648 58 58 //std::cout<<" popping occluder "<<itr<<std::endl; 59 59 // we have trapped for the case an occlude potentially occluding itself, 60 // to prevent this we disable the results mask so that no subsequ nt60 // to prevent this we disable the results mask so that no subsequent 61 61 // when the next pushCurrentMask calls happens this occluder is switched off. 62 62 itr->popCurrentMask(); -
OpenSceneGraph/trunk/src/osg/DeleteHandler.cpp
r7091 r7648 17 17 { 18 18 19 // special zed smart pointer, used to get round auto_ptr<>'s lack of the destructor reseting itself to 0.19 // specialized smart pointer, used to get round auto_ptr<>'s lack of the destructor reseting itself to 0. 20 20 struct DeleteHandlerPointer 21 21 { -
OpenSceneGraph/trunk/src/osg/DrawPixels.cpp
r6422 r7648 72 72 BoundingBox DrawPixels::computeBound() const 73 73 { 74 // really needs to be depend ant of view poistion and projection... will implement simple version right now.74 // really needs to be dependent of view position and projection... will implement simple version right now. 75 75 BoundingBox bbox; 76 76 float diagonal = 0.0f; -
OpenSceneGraph/trunk/src/osg/Drawable.cpp
r7601 r7648 207 207 } 208 208 209 /** flush all the cached display list which need to be deleted209 /** flush all the cached display lists which need to be deleted 210 210 * in the OpenGL context related to contextID.*/ 211 211 void Drawable::flushDeletedVertexBufferObjects(unsigned int contextID,double /*currentTime*/, double& availableTime) … … 416 416 // the number of callbacks has changed, need to pass this 417 417 // on to parents so they know whether app traversal is 418 // req ired on this subgraph.418 // required on this subgraph. 419 419 for(ParentList::iterator itr =_parents.begin(); 420 420 itr != _parents.end(); … … 451 451 // the number of callbacks has changed, need to pass this 452 452 // on to parents so they know whether app traversal is 453 // req ired on this subgraph.453 // required on this subgraph. 454 454 for(ParentList::iterator itr =_parents.begin(); 455 455 itr != _parents.end(); … … 501 501 GLuint& globj = _globjList[contextID]; 502 502 503 // call the globj if already set otherwise comp le and execute.503 // call the globj if already set otherwise compile and execute. 504 504 if( globj != 0 ) 505 505 { … … 558 558 GLuint& globj = _globjList[contextID]; 559 559 560 // call the globj if already set otherwise comp le and execute.560 // call the globj if already set otherwise compile and execute. 561 561 if( globj != 0 ) 562 562 { -
OpenSceneGraph/trunk/src/osg/FrameBufferObject.cpp
r7379 r7648 192 192 193 193 /************************************************************************** 194 * FrameBufferAttach ement194 * FrameBufferAttachment 195 195 **************************************************************************/ 196 196 … … 594 594 if (dirtyAttachmentList) 595 595 { 596 // the set of of attach ements appears to be thread sensitive, it shouldn't be because596 // the set of of attachments appears to be thread sensitive, it shouldn't be because 597 597 // OpenGL FBO handles osg::FrameBufferObject has are multi-buffered... 598 598 // so as a temporary fix will stick in a mutex to ensure that only one thread passes through here -
OpenSceneGraph/trunk/src/osg/Geode.cpp
r5885 r7648 99 99 // remove this Geode from the child parent list. 100 100 _drawables[i]->removeParent(this); 101 // update the number of app cal backs removed101 // update the number of app callbacks removed 102 102 if (_drawables[i]->requiresUpdateTraversal()) ++updateCallbackRemoved; 103 103 if (_drawables[i]->requiresEventTraversal()) ++eventCallbackRemoved; … … 163 163 164 164 // note ref_ptr<> automatically handles decrementing origGset's reference count, 165 // and inc crementing newGset's reference count.165 // and incrementing newGset's reference count. 166 166 _drawables[i] = newDrawable; 167 167 -
OpenSceneGraph/trunk/src/osg/Geometry.cpp
r7628 r7648 1708 1708 1709 1709 1710 // draw prim tives by the more flexible "slow" path,1710 // draw primitives by the more flexible "slow" path, 1711 1711 // sending OpenGL glBegin/glVertex.../glEnd(). 1712 1712 switch(primitiveset->getType()) … … 2208 2208 break; 2209 2209 default: 2210 notify(WARN)<<"Warning: Geometry::accept(Prim tiveFunctor&) cannot handle Vertex Array type"<<_vertexData.array->getType()<<std::endl;2210 notify(WARN)<<"Warning: Geometry::accept(PrimitiveFunctor&) cannot handle Vertex Array type"<<_vertexData.array->getType()<<std::endl; 2211 2211 return; 2212 2212 } … … 2249 2249 break; 2250 2250 default: 2251 notify(WARN)<<"Warning: Geometry::accept(Prim tiveFunctor&) cannot handle Vertex Array type"<<_vertexData.array->getType()<<std::endl;2251 notify(WARN)<<"Warning: Geometry::accept(PrimitiveFunctor&) cannot handle Vertex Array type"<<_vertexData.array->getType()<<std::endl; 2252 2252 return; 2253 2253 } … … 2496 2496 break; 2497 2497 default: 2498 notify(WARN)<<"Warning: Geometry::accept(Prim tiveIndexFunctor&) cannot handle Vertex Array type"<<_vertexData.array->getType()<<std::endl;2498 notify(WARN)<<"Warning: Geometry::accept(PrimitiveIndexFunctor&) cannot handle Vertex Array type"<<_vertexData.array->getType()<<std::endl; 2499 2499 return; 2500 2500 } … … 2617 2617 } 2618 2618 2619 unsigned int _computeNumberOfPrim tives(const osg::Geometry& geom)2619 unsigned int _computeNumberOfPrimitives(const osg::Geometry& geom) 2620 2620 { 2621 2621 … … 2639 2639 } 2640 2640 2641 // draw prim tives by the more flexible "slow" path,2641 // draw primitives by the more flexible "slow" path, 2642 2642 // sending OpenGL glBegin/glVertex.../glEnd(). 2643 2643 switch(primitiveset->getType()) … … 2686 2686 break; 2687 2687 case(osg::Geometry::BIND_PER_PRIMITIVE): 2688 if (numElements!=_computeNumberOfPrim tives(geom)) return false;2688 if (numElements!=_computeNumberOfPrimitives(geom)) return false; 2689 2689 break; 2690 2690 case(osg::Geometry::BIND_PER_VERTEX): … … 2777 2777 2778 2778 // check to see if binding might be per primitive 2779 unsigned int numPrimitives = _computeNumberOfPrim tives(geom);2779 unsigned int numPrimitives = _computeNumberOfPrimitives(geom); 2780 2780 if (numElements==numPrimitives) 2781 2781 { -
OpenSceneGraph/trunk/src/osg/GraphicsContext.cpp
r7595 r7648 338 338 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(s_contextIDMapMutex); 339 339 s_contextIDMap[contextID]._compileContext = gc; 340 osg::notify(osg::INFO)<<" succe ded GraphicsContext::createCompileContext."<<std::endl;340 osg::notify(osg::INFO)<<" succeeded GraphicsContext::createCompileContext."<<std::endl; 341 341 return gc.release(); 342 342 } … … 437 437 } 438 438 439 // release all the OpenGL objects in the scene graphs associ ted with this439 // release all the OpenGL objects in the scene graphs associated with this 440 440 for(Cameras::iterator itr = _cameras.begin(); 441 441 itr != _cameras.end(); … … 505 505 _threadOfLastMakeCurrent = OpenThreads::Thread::CurrentThread(); 506 506 507 // initialize extension process, not e,only initializes on first507 // initialize extension process, not only initializes on first 508 508 // call, will be a non-op on subsequent calls. 509 509 getState()->initializeExtensionProcs(); … … 521 521 _threadOfLastMakeCurrent = OpenThreads::Thread::CurrentThread(); 522 522 523 // initialize extension proces , not only initializes on first523 // initialize extension process, not only initializes on first 524 524 // call, will be a non-op on subsequent calls. 525 525 getState()->initializeExtensionProcs(); … … 591 591 osg::notify(osg::INFO)<<"Doing add"<<std::endl; 592 592 593 // a quire the lock on the operations queue to prevent anyone else for modifying it at the same time593 // acquire the lock on the operations queue to prevent anyone else for modifying it at the same time 594 594 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_operationsMutex); 595 595 … … 604 604 osg::notify(osg::INFO)<<"Doing remove operation"<<std::endl; 605 605 606 // a quire the lock on the operations queue to prevent anyone else for modifying it at the same time606 // acquire the lock on the operations queue to prevent anyone else for modifying it at the same time 607 607 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_operationsMutex); 608 608 … … 624 624 osg::notify(osg::INFO)<<"Doing remove named operation"<<std::endl; 625 625 626 // a quire the lock on the operations queue to prevent anyone else for modifying it at the same time626 // acquire the lock on the operations queue to prevent anyone else for modifying it at the same time 627 627 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_operationsMutex); 628 628 629 // find the remove all operations with specifi ced name629 // find the remove all operations with specified name 630 630 for(OperationQueue::iterator itr = _operations.begin(); 631 631 itr!=_operations.end();) -
OpenSceneGraph/trunk/src/osg/GraphicsThread.cpp
r7379 r7648 87 87 reset(); 88 88 89 // block this thread, until lthe block is released externally.89 // block this thread, until the block is released externally. 90 90 block(); 91 91 92 // re a quire the graphcis context.92 // re acquire the graphics context. 93 93 context->makeCurrent(); 94 94 } -
OpenSceneGraph/trunk/src/osg/Node.cpp
r7332 r7648 240 240 // the number of callbacks has changed, need to pass this 241 241 // on to parents so they know whether app traversal is 242 // req ired on this subgraph.242 // required on this subgraph. 243 243 for(ParentList::iterator itr =_parents.begin(); 244 244 itr != _parents.end(); … … 276 276 // the number of callbacks has changed, need to pass this 277 277 // on to parents so they know whether app traversal is 278 // req ired on this subgraph.278 // required on this subgraph. 279 279 for(ParentList::iterator itr =_parents.begin(); 280 280 itr != _parents.end(); … … 318 318 // the number of callbacks has changed, need to pass this 319 319 // on to parents so they know whether app traversal is 320 // req ired on this subgraph.320 // required on this subgraph. 321 321 for(ParentList::iterator itr =_parents.begin(); 322 322 itr != _parents.end(); … … 354 354 // the number of callbacks has changed, need to pass this 355 355 // on to parents so they know whether app traversal is 356 // req ired on this subgraph.356 // required on this subgraph. 357 357 for(ParentList::iterator itr =_parents.begin(); 358 358 itr != _parents.end(); … … 394 394 // the number of callbacks has changed, need to pass this 395 395 // on to parents so they know whether app traversal is 396 // req ired on this subgraph.396 // required on this subgraph. 397 397 for(ParentList::iterator itr =_parents.begin(); 398 398 itr != _parents.end(); … … 429 429 // the number of callbacks has changed, need to pass this 430 430 // on to parents so they know whether app traversal is 431 // req ired on this subgraph.431 // required on this subgraph. 432 432 for(ParentList::iterator itr =_parents.begin(); 433 433 itr != _parents.end(); … … 466 466 // the number of callbacks has changed, need to pass this 467 467 // on to parents so they know whether app traversal is 468 // req ired on this subgraph.468 // required on this subgraph. 469 469 for(ParentList::iterator itr =_parents.begin(); 470 470 itr != _parents.end(); -
OpenSceneGraph/trunk/src/osg/OperationThread.cpp
r7213 r7648 69 69 if (_currentOperationIterator == _operations.end()) 70 70 { 71 // iterator at end of operations so reset to begin ing.71 // iterator at end of operations so reset to beginning. 72 72 _currentOperationIterator = _operations.begin(); 73 73 } … … 105 105 osg::notify(osg::INFO)<<"Doing add"<<std::endl; 106 106 107 // a quire the lock on the operations queue to prevent anyone else for modifying it at the same time107 // acquire the lock on the operations queue to prevent anyone else for modifying it at the same time 108 108 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_operationsMutex); 109 109 … … 118 118 osg::notify(osg::INFO)<<"Doing remove operation"<<std::endl; 119 119 120 // a quire the lock on the operations queue to prevent anyone else for modifying it at the same time120 // acquire the lock on the operations queue to prevent anyone else for modifying it at the same time 121 121 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_operationsMutex); 122 122 … … 141 141 osg::notify(osg::INFO)<<"Doing remove named operation"<<std::endl; 142 142 143 // a quire the lock on the operations queue to prevent anyone else for modifying it at the same time144 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_operationsMutex); 145 146 // find the remove all operations with specifi ced name143 // acquire the lock on the operations queue to prevent anyone else for modifying it at the same time 144 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_operationsMutex); 145 146 // find the remove all operations with specified name 147 147 for(Operations::iterator itr = _operations.begin(); 148 148 itr!=_operations.end();) … … 186 186 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_operationsMutex); 187 187 188 // reset current operation iterator to begin ing if at end.188 // reset current operation iterator to beginning if at end. 189 189 if (_currentOperationIterator==_operations.end()) _currentOperationIterator = _operations.begin(); 190 190 … … 422 422 { 423 423 // do a yield to get round a peculiar thread hang when testCancel() is called 424 // in certain cir umstances - of which there is no particular pattern.424 // in certain circumstances - of which there is no particular pattern. 425 425 YieldCurrentThread(); 426 426 firstTime = false; -
OpenSceneGraph/trunk/src/osg/PolygonOffset.cpp
r7170 r7648 60 60 { 61 61 if ((strstr((const char*)renderer,"Radeon")!=0) || 62 (strstr((const char*)renderer,"RADEON")!=0)) 62 (strstr((const char*)renderer,"RADEON")!=0) || 63 (strstr((const char*)renderer,"ALL-IN-WONDER")!=0)) 63 64 { 64 65 setFactorMultiplier(1.0f); -
OpenSceneGraph/trunk/src/osg/PolygonStipple.cpp
r5328 r7648 57 57 { 58 58 // check the types are equal and then create the rhs variable 59 // used by the COMPARE_StateAttribute_Param ter macro's below.59 // used by the COMPARE_StateAttribute_Parameter macro's below. 60 60 COMPARE_StateAttribute_Types(PolygonStipple,sa) 61 61 -
OpenSceneGraph/trunk/src/osg/Program.cpp
r7388 r7648 2008 2008 { 2009 2009 // check the types are equal and then create the rhs variable 2010 // used by the COMPARE_StateAttribute_Param ter macro's below.2010 // used by the COMPARE_StateAttribute_Parameter macro's below. 2011 2011 COMPARE_StateAttribute_Types(Program,sa) 2012 2012 -
OpenSceneGraph/trunk/src/osg/Referenced.cpp
r7261 r7648 32 32 { 33 33 34 // special zed smart pointer, used to get round auto_ptr<>'s lack of the destructor reseting itself to 0.34 // specialized smart pointer, used to get round auto_ptr<>'s lack of the destructor reseting itself to 0. 35 35 struct DeleteHandlerPointer 36 36 { … … 179 179 if (!_refMutex) 180 180 { 181 // we want thread safe ref()/unref() so assi nga mutex181 // we want thread safe ref()/unref() so assign a mutex 182 182 _refMutex = new OpenThreads::Mutex; 183 183 } -
OpenSceneGraph/trunk/src/osg/ShapeDrawable.cpp
r6422 r7648 960 960 glBegin(GL_QUAD_STRIP); 961 961 962 // draw skirt at begin ing if required.962 // draw skirt at beginning if required. 963 963 if (field.getSkirtHeight()!=0.0f) 964 964 { … … 1295 1295 /////////////////////////////////////////////////////////////////////////////// 1296 1296 // 1297 // Accept a prim tive functor for each of the shapes.1297 // Accept a primitive functor for each of the shapes. 1298 1298 // 1299 1299 -
OpenSceneGraph/trunk/src/osg/State.cpp
r7257 r7648 111 111 } 112 112 113 // we can do a straight clear, we arn't int rested in GL_DEPTH_TEST defaults in texture modes.113 // we can do a straight clear, we arn't interested in GL_DEPTH_TEST defaults in texture modes. 114 114 for(TextureModeMapList::iterator tmmItr=_textureModeMapList.begin(); 115 115 tmmItr!=_textureModeMapList.end(); … … 148 148 // note, this OpenGL op precludes the use of State::reset() without a 149 149 // valid graphics context, therefore the new implementation below 150 // is prefer ed.150 // is preferred. 151 151 setActiveTextureUnit(0); 152 152 #else … … 366 366 if (_checkGLErrors==ONCE_PER_ATTRIBUTE) checkGLErrors("start of State::apply(StateSet*)"); 367 367 368 // equiv ilant to:368 // equivalent to: 369 369 //pushStateSet(dstate); 370 370 //apply(); … … 429 429 else 430 430 { 431 // no incom ming stateset, so simply apply state.431 // no incoming stateset, so simply apply state. 432 432 apply(); 433 433 } -
OpenSceneGraph/trunk/src/osg/StateSet.cpp
r7630 r7648 612 612 (rhs_mitr->second & StateAttribute::PROTECTED)) 613 613 { 614 // override isn't on in rhs, so overri te it with incomming614 // override isn't on in rhs, so override it with incoming 615 615 // value. 616 616 lhs_mitr->second = rhs_mitr->second; … … 637 637 (rhs_aitr->second.second & StateAttribute::PROTECTED)) 638 638 { 639 // override isn't on in rhs, so overri te it with incomming639 // override isn't on in rhs, so override it with incoming 640 640 // value. 641 641 if (lhs_aitr->second.first!=rhs_aitr->second.first) … … 644 644 lhs_aitr->second.first->removeParent(this); 645 645 646 // override isn't on in rhs, so overri te it with incomming646 // override isn't on in rhs, so override it with incoming 647 647 // value. 648 648 lhs_aitr->second = rhs_aitr->second; … … 684 684 (rhs_mitr->second & StateAttribute::PROTECTED)) 685 685 { 686 // override isn't on in rhs, so overri te it with incomming686 // override isn't on in rhs, so override it with incoming 687 687 // value. 688 688 lhs_mitr->second = rhs_mitr->second; … … 716 716 (rhs_aitr->second.second & StateAttribute::PROTECTED)) 717 717 { 718 // override isn't on in rhs, so overri te it with incomming718 // override isn't on in rhs, so override it with incoming 719 719 // value. 720 720 … … 752 752 (rhs_uitr->second.second & StateAttribute::PROTECTED)) 753 753 { 754 // override isn't on in rhs, so overri te it with incomming754 // override isn't on in rhs, so override it with incoming 755 755 // value. 756 756 … … 1754 1754 // the number of callbacks has changed, need to pass this 1755 1755 // on to parents so they know whether app traversal is 1756 // req ired on this subgraph.1756 // required on this subgraph. 1757 1757 for(ParentList::iterator itr =_parents.begin(); 1758 1758 itr != _parents.end(); … … 1799 1799 // the number of callbacks has changed, need to pass this 1800 1800 // on to parents so they know whether app traversal is 1801 // req ired on this subgraph.1801 // required on this subgraph. 1802 1802 for(ParentList::iterator itr =_parents.begin(); 1803 1803 itr != _parents.end(); -
OpenSceneGraph/trunk/src/osg/Texture.cpp
r7385 r7648 511 511 if (_textureObjectBuffer[i].valid()) 512 512 { 513 //notify(INFO) << "releasing tex ure "<<toblm[i].size()<<std::endl;513 //notify(INFO) << "releasing texture "<<toblm[i].size()<<std::endl; 514 514 toblm[i].push_back(_textureObjectBuffer[i]); 515 515 } … … 543 543 { 544 544 545 const unsigned int contextID = 0; // state.getContextID(); // set to 0 right now, assume same param ters for each graphics context...545 const unsigned int contextID = 0; // state.getContextID(); // set to 0 right now, assume same parameters for each graphics context... 546 546 const Extensions* extensions = getExtensions(contextID,true); 547 547 -
OpenSceneGraph/trunk/src/osg/Texture1D.cpp
r7521 r7648 42 42 { 43 43 // check the types are equal and then create the rhs variable 44 // used by the COMPARE_StateAttribute_Param ter macro's below.44 // used by the COMPARE_StateAttribute_Parameter macro's below. 45 45 COMPARE_StateAttribute_Types(Texture1D,sa) 46 46 … … 79 79 if (result!=0) return result; 80 80 81 // compare each param ter in turn against the rhs.81 // compare each parameter in turn against the rhs. 82 82 COMPARE_StateAttribute_Parameter(_textureWidth) 83 83 COMPARE_StateAttribute_Parameter(_subloadCallback) -
OpenSceneGraph/trunk/src/osg/Texture2D.cpp
r7521 r7648 54 54 { 55 55 // check the types are equal and then create the rhs variable 56 // used by the COMPARE_StateAttribute_Param ter macro's below.56 // used by the COMPARE_StateAttribute_Parameter macro's below. 57 57 COMPARE_StateAttribute_Types(Texture2D,sa) 58 58 … … 91 91 if (result!=0) return result; 92 92 93 // compare each param ter in turn against the rhs.93 // compare each parameter in turn against the rhs. 94 94 #if 1 95 95 if (_textureWidth != 0 && rhs._textureWidth != 0) -
OpenSceneGraph/trunk/src/osg/Texture2DArray.cpp
r7636 r7648 52 52 { 53 53 // check the types are equal and then create the rhs variable 54 // used by the COMPARE_StateAttribute_Param ter macro's below.54 // used by the COMPARE_StateAttribute_Parameter macro's below. 55 55 COMPARE_StateAttribute_Types(Texture2DArray,sa) 56 56 … … 92 92 if (result!=0) return result; 93 93 94 // compare each param ter in turn against the rhs.94 // compare each parameter in turn against the rhs. 95 95 COMPARE_StateAttribute_Parameter(_textureWidth) 96 96 COMPARE_StateAttribute_Parameter(_textureHeight) … … 547 547 548 548 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &_max2DSize); 549 _maxLayerCount = 0; 550 if (_isTexture2DArraySupported) 551 glGetIntegerv(GL_MAX_ARRAY_TEXTURE_LAYERS_EXT, &_maxLayerCount); 549 glGetIntegerv(GL_MAX_ARRAY_TEXTURE_LAYERS_EXT, &_maxLayerCount); 552 550 553 551 setGLExtensionFuncPtr(_glTexImage3D, "glTexImage3D","glTexImage3DEXT"); -
OpenSceneGraph/trunk/src/osg/Texture3D.cpp
r7521 r7648 49 49 { 50 50 // check the types are equal and then create the rhs variable 51 // used by the COMPARE_StateAttribute_Param ter macro's below.51 // used by the COMPARE_StateAttribute_Parameter macro's below. 52 52 COMPARE_StateAttribute_Types(Texture3D,sa) 53 53 … … 86 86 if (result!=0) return result; 87 87 88 // compare each param ter in turn against the rhs.88 // compare each parameter in turn against the rhs. 89 89 COMPARE_StateAttribute_Parameter(_textureWidth) 90 90 COMPARE_StateAttribute_Parameter(_textureHeight) -
OpenSceneGraph/trunk/src/osg/TextureRectangle.cpp
r7392 r7648 77 77 { 78 78 // check the types are equal and then create the rhs variable 79 // used by the COMPARE_StateAttribute_Param ter macro's below.79 // used by the COMPARE_StateAttribute_Parameter macro's below. 80 80 COMPARE_StateAttribute_Types(TextureRectangle,sa) 81 81 … … 114 114 if (result!=0) return result; 115 115 116 // compare each param ter in turn against the rhs.116 // compare each parameter in turn against the rhs. 117 117 COMPARE_StateAttribute_Parameter(_textureWidth) 118 118 COMPARE_StateAttribute_Parameter(_textureHeight) -
OpenSceneGraph/trunk/src/osg/View.cpp
r7583 r7648 61 61 } 62 62 63 // deta tch the cameras from this View to prevent dangling pointers63 // detach the cameras from this View to prevent dangling pointers 64 64 for(Slaves::iterator itr = _slaves.begin(); 65 65 itr != _slaves.end(); -
OpenSceneGraph/trunk/src/osg/dxtctool.cpp
r6459 r7648 50 50 bool dxtc_pixels::VFlip() const 51 51 { 52 // Check that the given dimen tions are 2^x, 2^y52 // Check that the given dimensions are 2^x, 2^y 53 53 if (! OpenGLSize()) 54 54 return false; -
OpenSceneGraph/trunk/src/osgDB/DatabasePager.cpp
r7616 r7648 226 226 //join(); 227 227 228 // release the frameBlock and _databasePagerThreadBlock in case its holding up thread cancelation.228 // release the frameBlock and _databasePagerThreadBlock in case its holding up thread cancellation. 229 229 _databasePagerThreadBlock->release(); 230 230 … … 362 362 if (!foundEntry) 363 363 { 364 osg::notify(osg::INFO)<<"In DatabasePager:: requestNodeFile("<<fileName<<")"<<std::endl;364 osg::notify(osg::INFO)<<"In DatabasePager::fileRquest("<<fileName<<")"<<std::endl; 365 365 366 366 osg::ref_ptr<DatabaseRequest> databaseRequest = new DatabaseRequest; … … 449 449 if (stateset) 450 450 { 451 // search for the exist ance of any texture object attributes451 // search for the existence of any texture object attributes 452 452 bool foundTextureState = false; 453 453 for(unsigned int i=0;i<stateset->getTextureAttributeList().size();++i) … … 726 726 { 727 727 // do a yield to get round a peculiar thread hang when testCancel() is called 728 // in certain cir umstances - of which there is no particular pattern.728 // in certain circumstances - of which there is no particular pattern. 729 729 YieldCurrentThread(); 730 730 firstTime = false; … … 784 784 group->addChild(databaseRequest->_loadedModel.get()); 785 785 786 osg::notify(osg::INFO)<<"merged subgraph "<<databaseRequest->_fileName<<" after "<<databaseRequest->_numOfRequests<<" requests and time="<<(timeStamp-databaseRequest->_timestampFirstRequest)*1000.0<<std::endl;786 osg::notify(osg::INFO)<<"merged subgraph"<<databaseRequest->_fileName<<" after "<<databaseRequest->_numOfRequests<<" requests and time="<<(timeStamp-databaseRequest->_timestampFirstRequest)*1000.0<<std::endl; 787 787 788 788 double timeToMerge = timeStamp-databaseRequest->_timestampFirstRequest; … … 1043 1043 osg::ref_ptr<DatabaseRequest> databaseRequest; 1044 1044 1045 // get the first compil eable entry.1045 // get the first compilable entry. 1046 1046 { 1047 1047 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_dataToCompileListMutex); -
OpenSceneGraph/trunk/src/osgDB/DotOsgWrapper.cpp
r5328 r7648 28 28 29 29 30 // copy the names in the space delimi nated associates input into30 // copy the names in the space delimited associates input into 31 31 // a vector of separated names. 32 32 std::string::size_type start_of_name = associates.find_first_not_of(' '); -
OpenSceneGraph/trunk/src/osgDB/Registry.cpp
r7607 r7648 152 152 Registry::Registry() 153 153 { 154 // comment out because it was causing problems under OSX - causing it to crash osgconv when const ucting ostream in osg::notify().154 // comment out because it was causing problems under OSX - causing it to crash osgconv when constructing ostream in osg::notify(). 155 155 // notify(INFO) << "Constructing osg::Registry"<<std::endl; 156 156 … … 251 251 addFileExtensionAlias("fnt", "freetype"); // Windows bitmap fonts 252 252 253 // wont't add type1 and type2 until resolve extension collision with Pe former binary and ascii files.253 // wont't add type1 and type2 until resolve extension collision with Performer binary and ascii files. 254 254 // addFileExtensionAlias("pfb", "freetype"); // type1 binary 255 255 // addFileExtensionAlias("pfa", "freetype"); // type2 ascii … … 282 282 // the objects it contains when running the TXP plugin. 283 283 // Not sure why, but perhaps there is is something in a TXP plugin 284 // which is deletedthe data before its ref count hits zero, perhaps284 // which deletes the data before its ref count hits zero, perhaps 285 285 // even some issue with objects be allocated by a plugin that is 286 // maint ed after that plugin is deleted... Robert Osfield, Jan 2004.286 // maintained after that plugin is deleted... Robert Osfield, Jan 2004. 287 287 clearObjectCache(); 288 288 clearArchiveCache(); … … 757 757 // we have a composite name so now strip off the library name 758 758 // are try to load it, and then retry the readObject to see 759 // if we can reco ngise the objects.759 // if we can recognize the objects. 760 760 761 761 std::string libraryName = std::string(token,0,posDoubleColon); … … 822 822 // we have a composite name so now strip off the library name 823 823 // are try to load it, and then retry the find to see 824 // if we can reco ngise the objects.824 // if we can recognize the objects. 825 825 826 826 std::string libraryName = std::string(token,0,posDoubleColon); … … 884 884 // we have a composite name so now strip off the library name 885 885 // are try to load it, and then retry the readObject to see 886 // if we can reco ngise the objects.886 // if we can recognize the objects. 887 887 888 888 std::string libraryName = std::string(token,0,posDoubleColon); … … 944 944 // we have a composite name so now strip off the library name 945 945 // are try to load it, and then retry the find to see 946 // if we can reco ngise the objects.946 // if we can recognize the objects. 947 947 948 948 std::string libraryName = std::string(token,0,posDoubleColon); … … 1218 1218 // we have a composite name so now strip off the library name 1219 1219 // are try to load it, and then retry the find to see 1220 // if we can reco ngise the objects.1220 // if we can recognize the objects. 1221 1221 1222 1222 std::string libraryName = std::string(token,0,posDoubleColon); … … 1565 1565 ReaderWriter::ReadResult result = readImplementation(ReadArchiveFunctor(fileName, status, indexBlockSizeHint, options),false); 1566 1566 1567 // default to using c haching archive if no options structure provided, but if options are provided use archives1567 // default to using caching archive if no options structure provided, but if options are provided use archives 1568 1568 // only if supplied. 1569 1569 if (result.validArchive() && … … 1832 1832 ObjectsToRemove objectsToRemove; 1833 1833 1834 // first collect all the exp rired entries in the ObjectToRemove list.1834 // first collect all the expired entries in the ObjectToRemove list. 1835 1835 for(ObjectCache::iterator oitr=_objectCache.begin(); 1836 1836 oitr!=_objectCache.end(); -
OpenSceneGraph/trunk/src/osgGA/DriveManipulator.cpp
r7186 r7648 553 553 554 554 #if defined(ABOSULTE_PITCH) 555 // ab osolute pitch555 // absolute pitch 556 556 double dy = _ga_t0->getYnormalized(); 557 557 _pitch = -dy*0.5; -
OpenSceneGraph/trunk/src/osgGA/TerrainManipulator.cpp
r5371 r7648 341 341 ++i, endPoint = farPosition) 342 342 { 343 // compute the i tersection with the scene.343 // compute the intersection with the scene. 344 344 osgUtil::IntersectVisitor iv; 345 345 iv.setTraversalMask(_intersectTraversalMask); … … 368 368 } 369 369 370 // note LookAt = inv(CF)*inv(RM)*inv(T) which is equiv ilant to:370 // note LookAt = inv(CF)*inv(RM)*inv(T) which is equivalent to: 371 371 // inv(R) = CF*LookAt. 372 372 … … 481 481 _center += dv; 482 482 483 // need to recompute the i tersection point along the look vector.483 // need to recompute the intersection point along the look vector. 484 484 485 485 if (_node.valid()) -
OpenSceneGraph/trunk/src/osgManipulator/Projector.cpp
r6771 r7648 178 178 { 179 179 // To take a normal from world to local you need to transform it by the transpose of the inverse of the 180 // world to local matrix. Pre-multipl ing is equivalent to doing a post-multiplication of the transpose.180 // world to local matrix. Pre-multiplying is equivalent to doing a post-multiplication of the transpose. 181 181 osg::Vec3 localEyeDir = localToWorld * eyeDir; 182 182 localEyeDir.normalize(); -
OpenSceneGraph/trunk/src/osgPlugins/3ds/ReaderWriter3DS.cpp
r7623 r7648 323 323 324 324 invert the mesh matrix, apply this matrix to the object. This puts the object back at the origin 325 Transform the object by the nodes (n negative) pivot point coords, this puts the PP at the origin326 Tran form the node by the node matrix, which does the orientation about the pivot point, (and currently) transforms the object back by a translation to the PP.325 Transform the object by the nodes (negative) pivot point coords, this puts the PP at the origin 326 Transform the node by the node matrix, which does the orientation about the pivot point, (and currently) transforms the object back by a translation to the PP. 327 327 328 328 */ … … 787 787 // and no longer require the decal hack below... 788 788 #if 0 789 // Eric orig nal fallback789 // Eric original fallback 790 790 osg::Vec4 white(1.0f,1.0f,1.0f,alpha); 791 791 material->setAmbient(osg::Material::FRONT_AND_BACK,white); … … 793 793 material->setSpecular(osg::Material::FRONT_AND_BACK,white); 794 794 #else 795 // try alternative to avoid s taturating with white795 // try alternative to avoid saturating with white 796 796 // setting white as per OpenGL defaults. 797 797 material->setAmbient(osg::Material::FRONT_AND_BACK,osg::Vec4(0.2f,0.2f,0.2f,alpha)); -
OpenSceneGraph/trunk/src/osgPlugins/ive/DrawArrayLengths.cpp
r4401 r7648 53 53 } 54 54 else 55 throw Exception("DrawArrayLengths::read(): Could not cast this osg::DrawArrayLengths to an osg::Prim tiveSet.");55 throw Exception("DrawArrayLengths::read(): Could not cast this osg::DrawArrayLengths to an osg::PrimitiveSet."); 56 56 57 57 // Read properties -
OpenSceneGraph/trunk/src/osgPlugins/ive/DrawElementsUByte.cpp
r3564 r7648 49 49 } 50 50 else 51 throw Exception("DrawElementsUByte::read(): Could not cast this osg::DrawElementsUByte to an osg::Prim tiveSet.");51 throw Exception("DrawElementsUByte::read(): Could not cast this osg::DrawElementsUByte to an osg::PrimitiveSet."); 52 52 53 53 // Read array length and its elements. -
OpenSceneGraph/trunk/src/osgPlugins/ive/DrawElementsUInt.cpp
r3564 r7648 51 51 } 52 52 else 53 throw Exception("DrawElementsUInt::read(): Could not cast this osg::DrawElementsUInt to an osg::Prim tiveSet.");53 throw Exception("DrawElementsUInt::read(): Could not cast this osg::DrawElementsUInt to an osg::PrimitiveSet."); 54 54 55 55 // Read array length and its elements. -
OpenSceneGraph/trunk/src/osgPlugins/ive/DrawElementsUShort.cpp
r3564 r7648 50 50 } 51 51 else 52 throw Exception("DrawElementsUShort::read(): Could not cast this osg::DrawElementsUShort to an osg::Prim tiveSet.");52 throw Exception("DrawElementsUShort::read(): Could not cast this osg::DrawElementsUShort to an osg::PrimitiveSet."); 53 53 54 54 // Read array length and its elements. -
OpenSceneGraph/trunk/src/osgPlugins/normals/Normals.cpp
r5273 r7648 84 84 _local_coords->push_back( (v + n)); 85 85 } 86 else // BIND_PER_PRIM TIVE_SET, BIND_PER_PRIMTITIV, BIND_PER_VERTEX86 else // BIND_PER_PRIMITIVE_SET, BIND_PER_PRIMITIVE, BIND_PER_VERTEX 87 87 { 88 88 Geometry::PrimitiveSetList& primitiveSets = geom->getPrimitiveSetList(); -
OpenSceneGraph/trunk/src/osgPlugins/osgViewer/View.cpp
r7506 r7648 127 127 } 128 128 129 // skip trai nling '}'129 // skip trailing '}' 130 130 ++fr; 131 131 … … 198 198 } 199 199 200 // skip trai nling '}'200 // skip trailing '}' 201 201 ++fr; 202 202 -
OpenSceneGraph/trunk/src/osgShadow/ParallelSplitShadowMap.cpp
r7497 r7648 366 366 367 367 osg::Image* image = new osg::Image; 368 // allocate the image data, noPixels x 1 x 1 with 4 rgba floats - equiv ilant to a Vec4!368 // allocate the image data, noPixels x 1 x 1 with 4 rgba floats - equivalent to a Vec4! 369 369 int noPixels = 1; 370 370 image->allocateImage(noPixels,1,1,GL_RGBA,GL_FLOAT); … … 393 393 // texture for randomTexture (for smoothing shadow edges) 394 394 osg::Image* image = new osg::Image; 395 // allocate the image data, noPixels x noPixels x 1 with 4 rgba floats - equiv ilant to a Vec4!395 // allocate the image data, noPixels x noPixels x 1 with 4 rgba floats - equivalent to a Vec4! 396 396 int noPixels = 128; 397 397 image->allocateImage(noPixels,noPixels,1,GL_RGBA,GL_FLOAT); … … 494 494 osgUtil::RenderStage* orig_rs = cv.getRenderStage(); 495 495 496 // do traversal of shadow rec ieving scene which does need to be decorated by the shadow map496 // do traversal of shadow receiving scene which does need to be decorated by the shadow map 497 497 for (PSSMShadowSplitTextureMap::iterator it=_PSSMShadowSplitTextureMap.begin();it!=_PSSMShadowSplitTextureMap.end();it++) 498 498 { … … 551 551 { 552 552 553 // do traversal of shadow rec ieving scene which does need to be decorated by the shadow map553 // do traversal of shadow receiving scene which does need to be decorated by the shadow map 554 554 unsigned int iMaxSplit = _PSSMShadowSplitTextureMap.size(); 555 555 … … 752 752 ////////////////////////////////////////////////////////////////////////// 753 753 // 754 // compute directional light init al postion;754 // compute directional light initial position; 755 755 void ParallelSplitShadowMap::calculateLightInitalPosition(PSSMShadowSplitTexture &pssmShadowSplitTexture,osg::Vec3d *frustumCorners){ 756 756 pssmShadowSplitTexture._frustumSplitCenter = frustumCorners[0]; -
OpenSceneGraph/trunk/src/osgShadow/ShadowMap.cpp
r7635 r7648 303 303 osgUtil::RenderStage* orig_rs = cv.getRenderStage(); 304 304 305 // do traversal of shadow rec ieving scene which does need to be decorated by the shadow map305 // do traversal of shadow receiving scene which does need to be decorated by the shadow map 306 306 { 307 307 cv.pushStateSet(_stateset.get()); -
OpenSceneGraph/trunk/src/osgShadow/ShadowTexture.cpp
r6952 r7648 120 120 } 121 121 122 // do traversal of shadow rec ieving scene which does need to be decorated by the shadow texture122 // do traversal of shadow receiving scene which does need to be decorated by the shadow texture 123 123 { 124 124 cv.pushStateSet(_stateset.get()); -
OpenSceneGraph/trunk/src/osgShadow/SoftShadowMap.cpp
r7444 r7648 339 339 osgUtil::RenderStage* orig_rs = cv.getRenderStage(); 340 340 341 // do traversal of shadow rec ieving scene which does need to be decorated by the shadow map341 // do traversal of shadow receiving scene which does need to be decorated by the shadow map 342 342 { 343 343 cv.pushStateSet(_stateset.get()); -
OpenSceneGraph/trunk/src/osgSim/Impostor.cpp
r6248 r7648 264 264 265 265 // convert the corners of the sprite (in world coords) into their 266 // equiv ilant window coordinates by using the camera's project method.266 // equivalent window coordinates by using the camera's project method. 267 267 const osg::Matrix& MVPW = *(cv->getMVPW()); 268 268 Vec3 c00_win = c00 * MVPW; -
OpenSceneGraph/trunk/src/osgSim/LineOfSight.cpp
r6993 r7648 74 74 { 75 75 osg::notify(osg::NOTICE)<<"Erasing "<<itr->first<<std::endl; 76 // found a node which is only referenced in the cache so we can dis gard it76 // found a node which is only referenced in the cache so we can discard it 77 77 // and know that the actual memory will be released. 78 78 _filenameSceneMap.erase(itr); -
OpenSceneGraph/trunk/src/osgSim/SphereSegment.cpp
r6422 r7648 138 138 /** 139 139 SphereSegment::Side is a Drawable which represents one of the 140 planar areas, at either the minimum or maxi um azimuth.140 planar areas, at either the minimum or maximum azimuth. 141 141 */ 142 142 class SphereSegment::Side: public osg::Drawable … … 702 702 start = 0; 703 703 end = _density; 704 normal = -normal; // Make sure normals orient ationint'outwards'704 normal = -normal; // Make sure normals oriented 'outwards' 705 705 } 706 706 delta = end>start?1:-1; … … 764 764 start = _density; 765 765 end = 0; 766 normal = -normal; // Make sure normals orientat ionint'outwards'766 normal = -normal; // Make sure normals orientated 'outwards' 767 767 } 768 768 else … … 983 983 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 984 984 // 985 // SphereSegment inter esection code.985 // SphereSegment intersection code. 986 986 987 987 class PolytopeVisitor : public osg::NodeVisitor … … 1808 1808 1809 1809 // now need to build the toTraverse list for each hit edge, 1810 // but should only contain tr aingles that actually hit the intersection surface1810 // but should only contain triangles that actually hit the intersection surface 1811 1811 EdgeList::iterator hitr; 1812 1812 for(hitr = hitEdges.begin(); … … 1841 1841 } 1842 1842 1843 // osg::notify(osg::INFO)<<"Number active edges "<<numActiveEdges<<" num orig nal edges "<<numEdges<<std::endl;1843 // osg::notify(osg::INFO)<<"Number active edges "<<numActiveEdges<<" num original edges "<<numEdges<<std::endl; 1844 1844 } 1845 1845 } … … 1994 1994 1995 1995 1996 // handle a pair d of surfaces that work to enclose a convex region, which means that1996 // handle a paired of surfaces that work to enclose a convex region, which means that 1997 1997 // points can be inside either surface to be valid, and be outside both surfaces to be invalid. 1998 1998 template<class I> … … 2048 2048 2049 2049 // work out which intersector to use by discounting the one that 2050 // isn't a plausible candi ate.2050 // isn't a plausible candidate. 2051 2051 bool possible1 = end1>=0.0; 2052 2052 bool possible2 = end2>=0.0; … … 2107 2107 2108 2108 // work out which intersector to use by discounting the one that 2109 // isn't a plausible candi ate.2109 // isn't a plausible candidate. 2110 2110 bool possible1 = start1>=0.0; 2111 2111 bool possible2 = start2>=0.0; … … 2311 2311 SphereSegment::LineList unfusedLines; 2312 2312 2313 // first sep eratthe already fused lines from the unfused ones.2313 // first separate the already fused lines from the unfused ones. 2314 2314 for(SphereSegment::LineList::iterator itr = _generatedLines.begin(); 2315 2315 itr != _generatedLines.end(); … … 2461 2461 unfusedLines.push_back(newline); 2462 2462 2463 osg::notify(osg::INFO)<<"Fusing two sep erate lines "<<newline<<std::endl;2463 osg::notify(osg::INFO)<<"Fusing two separate lines "<<newline<<std::endl; 2464 2464 } 2465 2465 … … 2527 2527 edge->_p2Outside = _lowerOutside ? (d2<0.0) : (d2>0.0); 2528 2528 2529 // if both points inside then dis gard2529 // if both points inside then discard 2530 2530 if (d1<0.0 && d2<0.0) return false; 2531 2531 2532 // if both points outside then dis gard2532 // if both points outside then discard 2533 2533 if (d1>0.0 && d2>0.0) return false; 2534 2534 … … 2628 2628 edge->_p2Outside = _lowerOutside ? (elev2<_elev) : (elev2>_elev); 2629 2629 2630 // if both points inside then dis gard2630 // if both points inside then discard 2631 2631 if (elev1<_elev && elev2<_elev) return false; 2632 2632 2633 // if both points outside then dis gard2633 // if both points outside then discard 2634 2634 if (elev1>_elev && elev2>_elev) return false; 2635 2635 … … 2758 2758 edge->_p2Outside = radius2>_tif._radius; 2759 2759 2760 // if both points inside then dis gard2760 // if both points inside then discard 2761 2761 if (radius1<_tif._radius && radius2<_tif._radius) return false; 2762 2762 2763 // if both points outside then dis gard2763 // if both points outside then discard 2764 2764 if (radius1>_tif._radius && radius2>_tif._radius) return false; 2765 2765 … … 2978 2978 tif._generatedLines.insert(tif._generatedLines.end(), elevMaxLines.begin(), elevMaxLines.end()); 2979 2979 2980 osg::notify(osg::INFO)<<"number of sep erate lines = "<<tif._generatedLines.size()<<std::endl;2980 osg::notify(osg::INFO)<<"number of separate lines = "<<tif._generatedLines.size()<<std::endl; 2981 2981 2982 2982 float fuseDistance = 1.0; 2983 2983 tif.joinEnds(fuseDistance, true, true); 2984 2984 2985 osg::notify(osg::INFO)<<"number of sep erate lines after fuse = "<<tif._generatedLines.size()<<std::endl;2985 osg::notify(osg::INFO)<<"number of separate lines after fuse = "<<tif._generatedLines.size()<<std::endl; 2986 2986 2987 2987 float joinDistance = 1e8; 2988 2988 tif.joinEnds(joinDistance, false, false); 2989 osg::notify(osg::INFO)<<"number of sep erate lines after join = "<<tif._generatedLines.size()<<std::endl;2989 osg::notify(osg::INFO)<<"number of separate lines after join = "<<tif._generatedLines.size()<<std::endl; 2990 2990 2991 2991 tif.joinEnds(joinDistance, false, true); 2992 osg::notify(osg::INFO)<<"number of sep erate lines after second join = "<<tif._generatedLines.size()<<std::endl;2992 osg::notify(osg::INFO)<<"number of separate lines after second join = "<<tif._generatedLines.size()<<std::endl; 2993 2993 2994 2994 return tif._generatedLines; -
OpenSceneGraph/trunk/src/osgTerrain/GeometryTechnique.cpp
r7375 r7648 490 490 if (tf) 491 491 { 492 // up the precision of hte internal texture format to its maximum.492 // up the precision of the internal texture format to its maximum. 493 493 //image->setInternalTextureFormat(GL_LUMINANCE32F_ARB); 494 494 image->setInternalTextureFormat(GL_LUMINANCE16); … … 590 590 591 591 // if the elevationLayer and colorLayer are the same, and there is colorTF then 592 // simply assi ngas a texture coordinate.592 // simply assign as a texture coordinate. 593 593 if ((elevationLayer==colorLayer) && colorTF) colorLayer = 0; 594 594 -
OpenSceneGraph/trunk/src/osgTerrain/Layer.cpp
r7316 r7648 234 234 ///////////////////////////////////////////////////////////////////////////// 235 235 // 236 // H ieghtFieldLayer236 // HeightFieldLayer 237 237 // 238 238 HeightFieldLayer::HeightFieldLayer(): -
OpenSceneGraph/trunk/src/osgTerrain/TerrainTechnique.cpp
r7201 r7648 61 61 void TerrainTechnique::dirty() 62 62 { 63 // osg::notify(osg::NOTICE)<<className()<<"::dirty(..) not implement ated yet"<<std::endl;63 // osg::notify(osg::NOTICE)<<className()<<"::dirty(..) not implemented yet"<<std::endl; 64 64 _dirty = true; 65 65 } -
OpenSceneGraph/trunk/src/osgText/DefaultFont.cpp
r7359 r7648 223 223 glyph->setInternalTextureFormat(GL_ALPHA); 224 224 225 // now populate data arr y by converting bitmap into a luminance_alpha map.225 // now populate data array by converting bitmap into a luminance_alpha map. 226 226 unsigned char* ptr = rasters[i-32]; 227 227 unsigned char value_on = 255; -
OpenSceneGraph/trunk/src/osgText/Font.cpp
r7645 r7648 631 631 if (s_renderer && 632 632 (strstr((const char*)s_renderer,"Radeon")!=0) || 633 (strstr((const char*)s_renderer,"RADEON")!=0)) 633 (strstr((const char*)s_renderer,"RADEON")!=0) || 634 (strstr((const char*)s_renderer,"ALL-IN-WONDER")!=0)) 634 635 { 635 636 // we're running on an ATI, so need to work around its -
OpenSceneGraph/trunk/src/osgText/String.cpp
r5515 r7648 8 8 //////////////////////////////////////////////////////////////////////// 9 9 // 10 // helper class to make it safer to quer ry std::string's for encoding.10 // helper class to make it safer to query std::string's for encoding. 11 11 // 12 12 struct look_ahead_iterator -
OpenSceneGraph/trunk/src/osgText/Text.cpp
r7645 r7648 225 225 --lastValidChar; 226 226 227 // Substract off glyphs from the cursor position (to correctly center text)227 // Subtract off glyphs from the cursor position (to correctly center text) 228 228 Font::Glyph* glyph = activefont->getGlyph(*lastValidChar); 229 229 if (glyph) … … 366 366 { 367 367 // TODO: current behaviour top baselines lined up in both cases - need to implement 368 // top of characters alig ment - Question is this neccesary?368 // top of characters alignment - Question is this necessary? 369 369 // ... otherwise, nothing to be done for these 6 cases 370 370 //case LEFT_TOP: … … 1759 1759 } 1760 1760 1761 1761 1762 void Text::renderWithPolygonOffset(osg::State& state, const osg::Vec4& colorMultiplier) const 1762 1763 { … … 1819 1820 glPopAttrib(); 1820 1821 } 1822 1821 1823 1822 1824 void Text::renderWithNoDepthBuffer(osg::State& state, const osg::Vec4& colorMultiplier) const -
OpenSceneGraph/trunk/src/osgUtil/IntersectVisitor.cpp
r6109 r7648 181 181 { 182 182 183 // over ide the default node visitor mode.183 // override the default node visitor mode. 184 184 setTraversalMode(NodeVisitor::TRAVERSE_ACTIVE_CHILDREN); 185 185 … … 187 187 setEyePoint(Vec3(0.0f,0.0f,0.0f)); 188 188 189 setLODSelectionMode(USE_HIGHEST_LEVEL_OF_DETAIL); // orig nal IntersectVisitor behavior189 setLODSelectionMode(USE_HIGHEST_LEVEL_OF_DETAIL); // original IntersectVisitor behavior 190 190 //setLODSelectionMode(USE_SEGMENT_START_POINT_AS_EYE_POINT_FOR_LOD_LEVEL_SELECTION); 191 191 -
OpenSceneGraph/trunk/src/osgUtil/IntersectionVisitor.cpp
r5764 r7648 153 153 IntersectionVisitor::IntersectionVisitor(Intersector* intersector, ReadCallback* readCallback) 154 154 { 155 // over ide the default node visitor mode.155 // override the default node visitor mode. 156 156 setTraversalMode(NodeVisitor::TRAVERSE_ACTIVE_CHILDREN); 157 157 … … 163 163 void IntersectionVisitor::setIntersector(Intersector* intersector) 164 164 { 165 // keep refer nce around just in case intersector is already in the _intersectorStack, otherwsie the clear could delete it.165 // keep reference around just in case intersector is already in the _intersectorStack, otherwise the clear could delete it. 166 166 osg::ref_ptr<Intersector> temp = intersector; 167 167 … … 289 289 popModelMatrix(); 290 290 291 // tidy up an cached cull variab es in the current intersector.291 // tidy up an cached cull variables in the current intersector. 292 292 leave(); 293 293 } -
OpenSceneGraph/trunk/src/osgUtil/Optimizer.cpp
r7601 r7648 2060 2060 // now need to clean up primitiveset so it no longer contains the rhs combined primitives. 2061 2061 2062 // first swap with a empty prim tiveSet to empty it completely.2062 // first swap with a empty primitiveSet to empty it completely. 2063 2063 osg::Geometry::PrimitiveSetList oldPrimitives; 2064 2064 primitives.swap(oldPrimitives); … … 2163 2163 } 2164 2164 2165 // shift the indices of the incom ming primitives to account for the pre exisiting geometry.2165 // shift the indices of the incoming primitives to account for the pre existing geometry. 2166 2166 for(osg::Geometry::PrimitiveSetList::iterator primItr=geom.getPrimitiveSetList().begin(); 2167 2167 primItr!=geom.getPrimitiveSetList().end(); … … 2388 2388 2389 2389 2390 // shift the indices of the incom ming primitives to account for the pre exisiting geometry.2390 // shift the indices of the incoming primitives to account for the pre existing geometry. 2391 2391 for(osg::Geometry::PrimitiveSetList::iterator primItr=rhs.getPrimitiveSetList().begin(); 2392 2392 primItr!=rhs.getPrimitiveSetList().end(); -
OpenSceneGraph/trunk/src/osgUtil/PlaneIntersector.cpp
r5792 r7648 407 407 if (de<0.0) 408 408 { 409 // osg::notify(osg::NOTICE)<<"Dis gard segment "<<std::endl;409 // osg::notify(osg::NOTICE)<<"Discard segment "<<std::endl; 410 410 return; 411 411 } -
OpenSceneGraph/trunk/src/osgUtil/RenderBin.cpp
r7186 r7648 492 492 if (dw) 493 493 { 494 // then tot up the prim tive types and no vertices.494 // then tot up the primitive types and no vertices. 495 495 dw->accept(stats); // use sub-class to find the stats for each drawable 496 496 } … … 513 513 if (dw) 514 514 { 515 // then tot up the prim tive types and no vertices.515 // then tot up the primitive types and no vertices. 516 516 dw->accept(stats); // use sub-class to find the stats for each drawable 517 517 } -
OpenSceneGraph/trunk/src/osgUtil/RenderStage.cpp
r7122 r7648 222 222 osg::Camera::RenderTargetImplementation renderTargetFallback = _camera->getRenderTargetFallback(); 223 223 224 osg::Camera::BufferAttachmentMap& bufferAttach ements = _camera->getBufferAttachmentMap();224 osg::Camera::BufferAttachmentMap& bufferAttachments = _camera->getBufferAttachmentMap(); 225 225 226 226 // compute the required dimensions … … 229 229 int depth = 1; 230 230 osg::Camera::BufferAttachmentMap::iterator itr; 231 for(itr = bufferAttach ements.begin();232 itr != bufferAttach ements.end();231 for(itr = bufferAttachments.begin(); 232 itr != bufferAttachments.end(); 233 233 ++itr) 234 234 { … … 242 242 243 243 // attach an images that need to be copied after the stage is drawn. 244 for(itr = bufferAttach ements.begin();245 itr != bufferAttach ements.end();244 for(itr = bufferAttachments.begin(); 245 itr != bufferAttachments.end(); 246 246 ++itr) 247 247 { … … 332 332 bool depthAttached = false; 333 333 bool stencilAttached = false; 334 for(osg::Camera::BufferAttachmentMap::iterator itr = bufferAttach ements.begin();335 itr != bufferAttach ements.end();334 for(osg::Camera::BufferAttachmentMap::iterator itr = bufferAttachments.begin(); 335 itr != bufferAttachments.end(); 336 336 ++itr) 337 337 { … … 424 424 } 425 425 426 // if any of the renderTargetImplementations require a sep erate graphics context such as with pbuffer try in turn to426 // if any of the renderTargetImplementations require a separate graphics context such as with pbuffer try in turn to 427 427 // set up, but if each level fails then resort to the next level down. 428 428 while (!getGraphicsContext() && … … 455 455 bool depthAttached = false; 456 456 bool stencilAttached = false; 457 for(osg::Camera::BufferAttachmentMap::iterator itr = bufferAttach ements.begin();458 itr != bufferAttach ements.end();457 for(osg::Camera::BufferAttachmentMap::iterator itr = bufferAttachments.begin(); 458 itr != bufferAttachments.end(); 459 459 ++itr) 460 460 { … … 586 586 else 587 587 { 588 osg::notify(osg::INFO)<<"Failed to a quire Graphics Context"<<std::endl;588 osg::notify(osg::INFO)<<"Failed to acquire Graphics Context"<<std::endl; 589 589 590 590 if (renderTargetImplemntation==osg::Camera::PIXEL_BUFFER_RTT) … … 610 610 osg::notify(osg::INFO)<<"Setting up osg::Camera::FRAME_BUFFER"<<std::endl; 611 611 612 for(osg::Camera::BufferAttachmentMap::iterator itr = bufferAttach ements.begin();613 itr != bufferAttach ements.end();612 for(osg::Camera::BufferAttachmentMap::iterator itr = bufferAttachments.begin(); 613 itr != bufferAttachments.end(); 614 614 ++itr) 615 615 { … … 861 861 useRenderInfo.setState(useState); 862 862 863 // sync ronize the frame stamps863 // synchronize the frame stamps 864 864 useState->setFrameStamp(const_cast<osg::FrameStamp*>(state.getFrameStamp())); 865 865 … … 990 990 } 991 991 992 // push the stages camera so that drawing code can quer ry it992 // push the stages camera so that drawing code can query it 993 993 if (_camera) renderInfo.pushCamera(_camera); 994 994 -
OpenSceneGraph/trunk/src/osgUtil/Simplifier.cpp
r7440 r7648 357 357 { 358 358 _triangles.insert(triangle); 359 // if (_triangles.size()>2) osg::notify(osg::NOTICE)<<"Warning too many tr aingles ("<<_triangles.size()<<") sharing edge "<<std::endl;359 // if (_triangles.size()>2) osg::notify(osg::NOTICE)<<"Warning too many triangles ("<<_triangles.size()<<") sharing edge "<<std::endl; 360 360 } 361 361 … … 465 465 } 466 466 467 // note return 1 - dotproduct, so that deviation is in the range of 0.0 to 2.0, where 0 is coinc endent, 1.0 is 90 degrees, and 2.0 is 180 degrees.467 // note return 1 - dotproduct, so that deviation is in the range of 0.0 to 2.0, where 0 is coincident, 1.0 is 90 degrees, and 2.0 is 180 degrees. 468 468 float computeNormalDeviationOnEdgeCollapse(Edge* edge,Point* pNew) const 469 469 { … … 602 602 triangle->_e3 = replaceEdgePoint(triangle->_e3.get(),pOriginal,pNew); 603 603 604 // remove the triangle form the orig nal point, and possibly the point if its the last triangle to use it604 // remove the triangle form the original point, and possibly the point if its the last triangle to use it 605 605 removePoint(triangle, pOriginal); 606 606 -
OpenSceneGraph/trunk/src/osgUtil/Tessellator.cpp
r6786 r7648 623 623 } 624 624 625 // draw prim tives by the more flexible "slow" path,625 // draw primitives by the more flexible "slow" path, 626 626 // sending OpenGL glBegin/glVertex.../glEnd(). 627 627 switch(primitiveset->getType()) -
OpenSceneGraph/trunk/src/osgUtil/TriStripVisitor.cpp
r5328 r7648 217 217 } 218 218 219 // check for the exist ance of surface primitives219 // check for the existence of surface primitives 220 220 unsigned int numSurfacePrimitives = 0; 221 221 unsigned int numNonSurfacePrimitives = 0; -
OpenSceneGraph/trunk/src/osgViewer/CompositeViewer.cpp
r7535 r7648 923 923 if (scene->getDatabasePager()) 924 924 { 925 // sync ronize changes required by the DatabasePager thread to the scene graph925 // synchronize changes required by the DatabasePager thread to the scene graph 926 926 scene->getDatabasePager()->updateSceneGraph(_frameStamp->getReferenceTime()); 927 927 } -
OpenSceneGraph/trunk/src/osgViewer/Renderer.cpp
r7295 r7648 255 255 if (_done || _graphicsThreadDoesCull) return; 256 256 257 // note we assume lock has already been a quired.257 // note we assume lock has already been acquired. 258 258 osgUtil::SceneView* sceneView = _availableQueue.takeFront(); 259 259 … … 275 275 int frameNumber = fs ? fs->getFrameNumber() : 0; 276 276 277 // do cull t aversal277 // do cull traversal 278 278 osg::Timer_t beforeCullTick = osg::Timer::instance()->tick(); 279 279 … … 357 357 } 358 358 359 bool a quireGPUStats = stats && _timerQuerySupported && stats->collectStats("gpu");360 361 if (a quireGPUStats)359 bool acquireGPUStats = stats && _timerQuerySupported && stats->collectStats("gpu"); 360 361 if (acquireGPUStats) 362 362 { 363 363 checkQuery(stats); 364 364 } 365 365 366 // do draw traver al367 if (a quireGPUStats)366 // do draw traversal 367 if (acquireGPUStats) 368 368 { 369 369 checkQuery(stats); … … 405 405 } 406 406 407 if (a quireGPUStats)407 if (acquireGPUStats) 408 408 { 409 409 endQuery(); … … 465 465 } 466 466 467 bool a quireGPUStats = stats && _timerQuerySupported && stats->collectStats("gpu");468 469 if (a quireGPUStats)467 bool acquireGPUStats = stats && _timerQuerySupported && stats->collectStats("gpu"); 468 469 if (acquireGPUStats) 470 470 { 471 471 checkQuery(stats); 472 472 } 473 473 474 // do cull t aversal474 // do cull traversal 475 475 osg::Timer_t beforeCullTick = osg::Timer::instance()->tick(); 476 476 … … 488 488 489 489 490 // do draw traver al491 if (a quireGPUStats)490 // do draw traversal 491 if (acquireGPUStats) 492 492 { 493 493 checkQuery(stats); … … 527 527 } 528 528 529 if (a quireGPUStats)529 if (acquireGPUStats) 530 530 { 531 531 endQuery(); -
OpenSceneGraph/trunk/src/osgViewer/StatsHandler.cpp
r7507 r7648 567 567 568 568 569 // collect all the relevant camer s569 // collect all the relevant cameras 570 570 ViewerBase::Cameras validCameras; 571 571 viewer->getCameras(validCameras); … … 582 582 } 583 583 584 // check for quer ry time support584 // check for query time support 585 585 unsigned int numCamrasWithTimerQuerySupport = 0; 586 586 for(ViewerBase::Cameras::iterator citr = cameras.begin(); … … 599 599 } 600 600 601 bool a quireGPUStats = numCamrasWithTimerQuerySupport==cameras.size();601 bool acquireGPUStats = numCamrasWithTimerQuerySupport==cameras.size(); 602 602 603 603 float leftPos = 10.0f; … … 750 750 ++citr) 751 751 { 752 group->addChild(createCameraStats(font, pos, startBlocks, a quireGPUStats, characterSize, viewer->getStats(), *citr));752 group->addChild(createCameraStats(font, pos, startBlocks, acquireGPUStats, characterSize, viewer->getStats(), *citr)); 753 753 } 754 754 … … 887 887 } 888 888 889 osg::Node* StatsHandler::createCameraStats(const std::string& font, osg::Vec3& pos, float startBlocks, bool a quireGPUStats, float characterSize, osg::Stats* viewerStats, osg::Camera* camera)889 osg::Node* StatsHandler::createCameraStats(const std::string& font, osg::Vec3& pos, float startBlocks, bool acquireGPUStats, float characterSize, osg::Stats* viewerStats, osg::Camera* camera) 890 890 { 891 891 osg::Stats* stats = camera->getStats(); … … 973 973 } 974 974 975 if (a quireGPUStats)975 if (acquireGPUStats) 976 976 { 977 977 pos.x() = leftPos; … … 1016 1016 void StatsHandler::getUsage(osg::ApplicationUsage& usage) const 1017 1017 { 1018 usage.addKeyboardMouseBinding("s","On screen stats.");1018 usage.addKeyboardMouseBinding("s","On screen stats."); 1019 1019 usage.addKeyboardMouseBinding("S","Output stats to console."); 1020 1020 } -
OpenSceneGraph/trunk/src/osgViewer/View.cpp
r7622 r7648 60 60 61 61 62 /** callback class to use to allow matrix manipulators to quer ry the application for the local coordinate frame.*/62 /** callback class to use to allow matrix manipulators to query the application for the local coordinate frame.*/ 63 63 class ViewerCoordinateFrameCallback : public osgGA::MatrixManipulator::CoordinateFrameCallback 64 64 { … … 143 143 setThreadSafeRefUnref(true); 144 144 145 // need to attach a Renderer to the ma aster camera which has been default constructed145 // need to attach a Renderer to the master camera which has been default constructed 146 146 getCamera()->setRenderer(createRenderer(getCamera())); 147 147 … … 158 158 _scene = new Scene; 159 159 160 // need to attach a Renderer to the ma aster camera which has been default constructed160 // need to attach a Renderer to the master camera which has been default constructed 161 161 getCamera()->setRenderer(createRenderer(getCamera())); 162 162 … … 272 272 if (getSceneData()) 273 273 { 274 // now make sure the scene graph is set up with the correct DataVariance to protect the dy amic elements of274 // now make sure the scene graph is set up with the correct DataVariance to protect the dynamic elements of 275 275 // the scene graph from being run in parallel. 276 276 osgUtil::Optimizer::StaticObjectDetectionVisitor sodv; -
OpenSceneGraph/trunk/src/osgViewer/Viewer.cpp
r7535 r7648 431 431 osg::Timer::instance()->setStartTick(); 432 432 433 // pass on the start tick to all the associated event queues433 // pass on the start tick to all the associated event queues 434 434 setStartTick(osg::Timer::instance()->getStartTick()); 435 435 … … 840 840 if (_scene->getDatabasePager()) 841 841 { 842 // sync ronize changes required by the DatabasePager thread to the scene graph842 // synchronize changes required by the DatabasePager thread to the scene graph 843 843 _scene->getDatabasePager()->updateSceneGraph(_frameStamp->getReferenceTime()); 844 844 } -
OpenSceneGraph/trunk/src/osgViewer/ViewerEventHandlers.cpp
r7516 r7648 460 460 // to either the newly created one or the existing one. However, the code do that was 461 461 // EXTREMELY dirty, so I opted for a simpler solution. At a later date, someone may 462 // want to implement the original recom endation (which is in a mailing list reply462 // want to implement the original recommendation (which is in a mailing list reply 463 463 // from June 1st by Robert in a thread called "osgviewer Camera Animation (preliminary)". 464 464 else if (ea.getKey() == _keyEventTogglePlayback) … … 484 484 485 485 486 // If we succes fully found our _filename file, set it and keep a copy486 // If we successfully found our _filename file, set it and keep a copy 487 487 // around of the original MatrixManipulator to restore later. 488 488 if (_animPathManipulator.valid() && _animPathManipulator->valid())
