Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Christian Butz
VTK
Commits
a9d7aebf
Commit
a9d7aebf
authored
Jun 17, 2009
by
Utkarsh Ayachit
⛰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: Fixed Bounds computation and static flag check.
parent
44d56820
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
Rendering/vtkCompositePolyDataMapper2.cxx
Rendering/vtkCompositePolyDataMapper2.cxx
+8
-5
No files found.
Rendering/vtkCompositePolyDataMapper2.cxx
View file @
a9d7aebf
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#include "vtkDefaultPainter.h"
#include "vtkDefaultPainter.h"
vtkStandardNewMacro
(
vtkCompositePolyDataMapper2
);
vtkStandardNewMacro
(
vtkCompositePolyDataMapper2
);
vtkCxxRevisionMacro
(
vtkCompositePolyDataMapper2
,
"1.
4
"
);
vtkCxxRevisionMacro
(
vtkCompositePolyDataMapper2
,
"1.
5
"
);
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
vtkCompositePolyDataMapper2
::
vtkCompositePolyDataMapper2
()
vtkCompositePolyDataMapper2
::
vtkCompositePolyDataMapper2
()
{
{
...
@@ -221,15 +221,18 @@ double *vtkCompositePolyDataMapper2::GetBounds()
...
@@ -221,15 +221,18 @@ double *vtkCompositePolyDataMapper2::GetBounds()
else
else
{
{
this
->
Update
();
if
(
!
this
->
Static
)
{
this
->
Update
();
}
//only compute bounds when the input data has changed
//only compute bounds when the input data has changed
vtkCompositeDataPipeline
*
executive
=
vtkCompositeDataPipeline
::
SafeDownCast
(
this
->
GetExecutive
());
vtkCompositeDataPipeline
*
executive
=
if
(
executive
->
GetPipelineMTime
()
>
this
->
BoundsMTime
.
GetMTime
()
)
vtkCompositeDataPipeline
::
SafeDownCast
(
this
->
GetExecutive
());
if
(
executive
->
GetPipelineMTime
()
>=
this
->
BoundsMTime
.
GetMTime
()
)
{
{
this
->
ComputeBounds
();
this
->
ComputeBounds
();
}
}
return
this
->
Bounds
;
return
this
->
Bounds
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment