Commit 99a87903 authored by Ken Martin's avatar Ken Martin
Browse files

fixed some warnings

parent 47ddf422
......@@ -98,7 +98,7 @@ void vtkRenderWindow::SetDesiredUpdateRate(float rate)
if (this->DesiredUpdateRate != rate)
{
for (this->Renderers.InitTraversal();
aren = this->Renderers.GetNextItem(); )
(aren = this->Renderers.GetNextItem()); )
{
aren->SetAllocatedRenderTime(1.0/
(rate*this->Renderers.GetNumberOfItems()));
......@@ -281,7 +281,7 @@ void vtkRenderWindow::DoAARender()
offsets[1] = math.Random() - 0.5;
for (this->Renderers.InitTraversal();
aren = this->Renderers.GetNextItem(); )
(aren = this->Renderers.GetNextItem()); )
{
acam = aren->GetActiveCamera();
......@@ -315,7 +315,7 @@ void vtkRenderWindow::DoAARender()
// restore the jitter to normal
for (this->Renderers.InitTraversal();
aren = this->Renderers.GetNextItem(); )
(aren = this->Renderers.GetNextItem()); )
{
acam = aren->GetActiveCamera();
......@@ -421,7 +421,7 @@ void vtkRenderWindow::DoFDRender()
// store offsets for each renderer
for (this->Renderers.InitTraversal();
aren = this->Renderers.GetNextItem(); )
(aren = this->Renderers.GetNextItem()); )
{
acam = aren->GetActiveCamera();
focalDisk = acam->GetFocalDisk()*offsets[0];
......@@ -450,7 +450,7 @@ void vtkRenderWindow::DoFDRender()
// restore the jitter to normal
j = 0;
for (this->Renderers.InitTraversal();
aren = this->Renderers.GetNextItem(); )
(aren = this->Renderers.GetNextItem()); )
{
acam = aren->GetActiveCamera();
acam->SetPosition(orig + j*3);
......
......@@ -235,7 +235,8 @@ void vtkRenderer::ResetCamera()
allBounds[1] = allBounds[3] = allBounds[5] = -VTK_LARGE_FLOAT;
// loop through actors
for ( this->Actors.InitTraversal(); anActor = this->Actors.GetNextItem(); )
for (this->Actors.InitTraversal();
(anActor = this->Actors.GetNextItem()); )
{
// if it's invisible, we can skip the rest
if ( anActor->GetVisibility() )
......@@ -256,7 +257,7 @@ void vtkRenderer::ResetCamera()
if (this->VolumeRenderer)
{
for (this->VolumeRenderer->GetVolumes()->InitTraversal();
aVolume = this->VolumeRenderer->GetVolumes()->GetNextItem(); )
(aVolume = this->VolumeRenderer->GetVolumes()->GetNextItem()); )
{
// if it's invisible, we can skip the rest
if ( aVolume->GetVisibility() )
......
......@@ -47,7 +47,7 @@ void vtkRendererCollection::Render()
{
vtkRenderer *ren;
for ( this->InitTraversal(); ren = GetNextItem(); )
for (this->InitTraversal(); (ren = GetNextItem()); )
{
ren->Render();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment