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/src/osgPlugins/dxf/scene.h

    r12171 r13041  
    11/* dxfReader for OpenSceneGraph  Copyright (C) 2005 by GraphArchitecture ( grapharchitecture.com ) 
    22 * Programmed by Paul de Repentigny <pdr@grapharchitecture.com> 
    3  *  
     3 * 
    44 * OpenSceneGraph is (C) 2004 Robert Osfield 
    5  *  
     5 * 
    66 * This library is provided as-is, without support of any kind. 
    77 * 
    88 * Read DXF docs or OSG docs for any related questions. 
    9  *  
     9 * 
    1010 * You may contact the author if you have suggestions/corrections/enhancements. 
    1111 */ 
     
    1313 
    1414/** Simulate the scene with double precision before passing it back to osg. 
    15     this permits us to scale down offsets from 0,0,0 with a few matrixtransforms,  
     15    this permits us to scale down offsets from 0,0,0 with a few matrixtransforms, 
    1616    in case the objects are too far from that center. 
    1717    */ 
     
    4646    inline void makeMinValid() { 
    4747        // we count on _min to offset the whole scene 
    48         // so, we make sure its at 0,0,0 if  
     48        // so, we make sure its at 0,0,0 if 
    4949        // bounds are not set (anyway, the scene should be empty, 
    5050        // if we need to set any value of _min to 0). 
     
    5858 
    5959 
    60 static inline  
     60static inline 
    6161osg::Geometry* createPtGeometry( osg::PrimitiveSet::Mode pointType, osg::Vec3Array* vertices, const osg::Vec4 & color) 
    6262{ 
    6363    osg::Geometry* geom = new osg::Geometry; 
    6464    geom->setVertexArray(vertices); 
    65     geom->addPrimitiveSet(new osg::DrawArrays(pointType, 0, vertices->size()));  
     65    geom->addPrimitiveSet(new osg::DrawArrays(pointType, 0, vertices->size())); 
    6666    osg::Vec4Array* colors = new osg::Vec4Array; 
    6767    colors->push_back(color); 
     
    7575} 
    7676 
    77 static inline  
     77static inline 
    7878osg::Geometry* createLnGeometry( osg::PrimitiveSet::Mode lineType, osg::Vec3Array* vertices, const osg::Vec4 & color) 
    7979{ 
    8080    osg::Geometry* geom = new osg::Geometry; 
    8181    geom->setVertexArray(vertices); 
    82     geom->addPrimitiveSet(new osg::DrawArrays(lineType, 0, vertices->size()));  
     82    geom->addPrimitiveSet(new osg::DrawArrays(lineType, 0, vertices->size())); 
    8383    osg::Vec4Array* colors = new osg::Vec4Array; 
    8484    colors->push_back(color); 
     
    9292} 
    9393 
    94 static inline  
     94static inline 
    9595osg::Geometry* createTriGeometry( osg::Vec3Array* vertices, osg::Vec3Array* normals, const osg::Vec4 & color) 
    9696{ 
    9797    osg::Geometry* geom = new osg::Geometry; 
    9898    geom->setVertexArray(vertices); 
    99     geom->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::TRIANGLES, 0, vertices->size()));  
     99    geom->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::TRIANGLES, 0, vertices->size())); 
    100100    osg::Vec4Array* colors = new osg::Vec4Array; 
    101101    colors->push_back(color); 
     
    107107} 
    108108 
    109 static inline  
     109static inline 
    110110osg::Geometry* createQuadGeometry( osg::Vec3Array* vertices, osg::Vec3Array* normals, const osg::Vec4 & color) 
    111111{ 
    112112    osg::Geometry* geom = new osg::Geometry; 
    113113    geom->setVertexArray(vertices); 
    114     geom->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::QUADS, 0, vertices->size()));  
     114    geom->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::QUADS, 0, vertices->size())); 
    115115    osg::Vec4Array* colors = new osg::Vec4Array; 
    116116    colors->push_back(color); 
     
    122122} 
    123123 
    124 static inline  
     124static inline 
    125125osg::Geode* createModel(const std::string & name, osg::Drawable* drawable) 
    126126{ 
     
    173173    MapVList        _quads; 
    174174    MapVList        _quadnorms; 
    175      
     175 
    176176    struct textInfo 
    177177    { 
     
    183183    }; 
    184184 
    185     typedef std::vector<textInfo> TextList;     
     185    typedef std::vector<textInfo> TextList; 
    186186    TextList _textList; 
    187      
     187 
    188188protected: 
    189189    std::string        _name; 
     
    193193    void osgPoints(osg::Group* root, bounds &b) 
    194194    { 
    195         
     195 
    196196        for (MapVList::iterator mitr = _points.begin(); 
    197197            mitr != _points.end(); ++mitr) { 
     
    213213        { 
    214214            for(VListList::iterator itr = mlitr->second.begin(); 
    215                 itr != mlitr->second.end();  
     215                itr != mlitr->second.end(); 
    216216                ++itr) 
    217217            {