Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 Robert Osfield
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
@@ -60,7 +60,7 @@ VolumeTile::VolumeTile(const VolumeTile& volumeTile,const osg::CopyOp& copyop):
|
||||
_hasBeenTraversal(false),
|
||||
_layer(volumeTile._layer)
|
||||
{
|
||||
setNumChildrenRequiringUpdateTraversal(getNumChildrenRequiringUpdateTraversal()+1);
|
||||
setNumChildrenRequiringUpdateTraversal(getNumChildrenRequiringUpdateTraversal()+1);
|
||||
|
||||
if (volumeTile.getVolumeTechnique())
|
||||
{
|
||||
@@ -72,13 +72,13 @@ VolumeTile::~VolumeTile()
|
||||
{
|
||||
if (_volume) setVolume(0);
|
||||
}
|
||||
|
||||
|
||||
void VolumeTile::setVolume(Volume* volume)
|
||||
{
|
||||
if (_volume == volume) return;
|
||||
|
||||
|
||||
if (_volume) _volume->unregisterVolumeTile(this);
|
||||
|
||||
|
||||
_volume = volume;
|
||||
|
||||
if (_volume) _volume->registerVolumeTile(this);
|
||||
@@ -110,18 +110,18 @@ void VolumeTile::traverse(osg::NodeVisitor& nv)
|
||||
++itr)
|
||||
{
|
||||
osgVolume::Volume* volume = dynamic_cast<Volume*>(*itr);
|
||||
if (volume)
|
||||
if (volume)
|
||||
{
|
||||
OSG_INFO<<"Assigning volume system "<<volume<<std::endl;
|
||||
OSG_INFO<<"Assigning volume system "<<volume<<std::endl;
|
||||
setVolume(volume);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
_hasBeenTraversal = true;
|
||||
}
|
||||
|
||||
|
||||
if (nv.getVisitorType()==osg::NodeVisitor::UPDATE_VISITOR &&
|
||||
_layer->requiresUpdateTraversal())
|
||||
{
|
||||
@@ -143,9 +143,9 @@ void VolumeTile::init()
|
||||
if (_volumeTechnique.valid() && getDirty())
|
||||
{
|
||||
_volumeTechnique->init();
|
||||
|
||||
|
||||
setDirty(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void VolumeTile::setLayer(Layer* layer)
|
||||
@@ -155,23 +155,23 @@ void VolumeTile::setLayer(Layer* layer)
|
||||
|
||||
void VolumeTile::setVolumeTechnique(VolumeTechnique* volumeTechnique)
|
||||
{
|
||||
if (_volumeTechnique == volumeTechnique) return;
|
||||
if (_volumeTechnique == volumeTechnique) return;
|
||||
|
||||
int dirtyDelta = _dirty ? -1 : 0;
|
||||
|
||||
if (_volumeTechnique.valid())
|
||||
if (_volumeTechnique.valid())
|
||||
{
|
||||
_volumeTechnique->_volumeTile = 0;
|
||||
}
|
||||
|
||||
_volumeTechnique = volumeTechnique;
|
||||
|
||||
if (_volumeTechnique.valid())
|
||||
|
||||
if (_volumeTechnique.valid())
|
||||
{
|
||||
_volumeTechnique->_volumeTile = this;
|
||||
++dirtyDelta;
|
||||
++dirtyDelta;
|
||||
}
|
||||
|
||||
|
||||
if (dirtyDelta>0) setDirty(true);
|
||||
else if (dirtyDelta<0) setDirty(false);
|
||||
}
|
||||
@@ -186,7 +186,7 @@ void VolumeTile::setDirty(bool dirty)
|
||||
{
|
||||
setNumChildrenRequiringUpdateTraversal(getNumChildrenRequiringUpdateTraversal()+1);
|
||||
}
|
||||
else if (getNumChildrenRequiringUpdateTraversal()>0)
|
||||
else if (getNumChildrenRequiringUpdateTraversal()>0)
|
||||
{
|
||||
setNumChildrenRequiringUpdateTraversal(getNumChildrenRequiringUpdateTraversal()-1);
|
||||
}
|
||||
@@ -195,7 +195,7 @@ void VolumeTile::setDirty(bool dirty)
|
||||
osg::BoundingSphere VolumeTile::computeBound() const
|
||||
{
|
||||
const Locator* masterLocator = getLocator();
|
||||
if (_layer.valid() && !masterLocator)
|
||||
if (_layer.valid() && !masterLocator)
|
||||
{
|
||||
masterLocator = _layer->getLocator();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user