Show
Ignore:
Timestamp:
03/21/12 18:36:20 (2 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgSim/Impostor

    r5328 r13041  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
     1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 
    22 * 
    3  * This library is open source and may be redistributed and/or modified under   
    4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or  
     3 * This library is open source and may be redistributed and/or modified under 
     4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
    55 * (at your option) any later version.  The full license is in LICENSE file 
    66 * included with this distribution, and on the openscenegraph.org website. 
    7  *  
     7 * 
    88 * This library is distributed in the hope that it will be useful, 
    99 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1111 * OpenSceneGraph Public License for more details. 
    1212*/ 
     
    2424namespace osgSim { 
    2525 
    26 /** Impostor - is a form of Level Of Detail group node which allows both switching  
     26/** Impostor - is a form of Level Of Detail group node which allows both switching 
    2727  * between children depending on distance from eye point and image caching. 
    28   *  
    29   * The principle behind Imposters is that they cache an image of real geometry and then the image is drawn  
     28  * 
     29  * The principle behind Imposters is that they cache an image of real geometry and then the image is drawn 
    3030  * in subsequent frames instead of the real geometry. It's a bit like a 
    3131  * Billboard *but* is updated at runtime and w.r.t view point. By drawing 
    3232  * just the texture mapped quad you can cut down scene complexity and 
    3333  * improve performance. 
    34   *  
     34  * 
    3535  * For more details have a look at: 
    36   *  
     36  * 
    3737  *    http://grail.cs.washington.edu/projects/hic/ 
    38   *  
     38  * 
    3939  * The OSG doesn't implement exactly the same technique as above, but its 
    4040  * should be a good starting place. The OSG's impostors are much less 
     
    4848  * automatically handles all the setting of pre-rendering stages to 
    4949  * calculate the required ImpostorSprites (which encapsulates the image 
    50   * cache and quad), and updates them as the view point changes. If you  
    51   * use osg::SceneView/CullVisitor all the complexity of supporting  
     50  * cache and quad), and updates them as the view point changes. If you 
     51  * use osg::SceneView/CullVisitor all the complexity of supporting 
    5252  * Impostor will be nicely hidden away. 
    5353  * 
     
    7070            osg::LOD(es,copyop), 
    7171            _impostorThreshold(es._impostorThreshold) {} 
    72              
     72 
    7373        META_Node(osgSim, Impostor); 
    74          
     74 
    7575        virtual void traverse(osg::NodeVisitor& nv); 
    7676 
     
    8282        */ 
    8383        inline void setImpostorThreshold(float distance) { _impostorThreshold = distance; } 
    84          
     84 
    8585        /* Get the Impostor threshold distance. */ 
    8686        inline float getImpostorThreshold() const { return _impostorThreshold; } 
     
    9393        /** Find the ImposterSprite which fits the current eye point best. */ 
    9494        ImpostorSprite* findBestImpostorSprite(unsigned int contextID, const osg::Vec3& currLocalEyePoint) const; 
    95          
     95 
    9696        /** Add an ImpostorSprite to the Impostor. */ 
    9797        void addImpostorSprite(unsigned int contextID, ImpostorSprite* is); 
     
    104104 
    105105        virtual osg::BoundingSphere computeBound() const; 
    106          
     106 
    107107    protected : 
    108108 
     
    110110 
    111111        mutable osg::buffered_object<ImpostorSpriteList>  _impostorSpriteListBuffer; 
    112          
     112 
    113113        ImpostorSprite* createImpostorSprite(osgUtil::CullVisitor* cv); 
    114114