Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
3a1884ee
Commit
3a1884ee
authored
Jul 06, 2016
by
Tim Thirion
Browse files
Ensure composite polydata mapper has correct MTime
parent
06377931
Changes
2
Hide whitespace changes
Inline
Side-by-side
Rendering/OpenGL2/vtkCompositePolyDataMapper2.cxx
View file @
3a1884ee
...
@@ -660,6 +660,18 @@ int vtkCompositePolyDataMapper2::CanUseTextureMapForColoring(vtkDataObject*)
...
@@ -660,6 +660,18 @@ int vtkCompositePolyDataMapper2::CanUseTextureMapForColoring(vtkDataObject*)
return
this
->
CanUseTextureMapForColoringValue
;
return
this
->
CanUseTextureMapForColoringValue
;
}
}
//-------------------------------------------------------------------------
bool
vtkCompositePolyDataMapper2
::
GetNeedToRebuildBufferObjects
(
vtkRenderer
*
ren
,
vtkActor
*
act
)
{
if
(
vtkCompositePolyDataMapper2
::
Superclass
::
GetNeedToRebuildBufferObjects
(
ren
,
act
)
||
(
this
->
GetInput
()
&&
this
->
VBOBuildTime
<
this
->
GetInput
()
->
GetMTime
()))
{
return
true
;
}
return
false
;
}
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
void
vtkCompositePolyDataMapper2
::
BuildBufferObjects
(
void
vtkCompositePolyDataMapper2
::
BuildBufferObjects
(
vtkRenderer
*
ren
,
vtkRenderer
*
ren
,
...
...
Rendering/OpenGL2/vtkCompositePolyDataMapper2.h
View file @
3a1884ee
...
@@ -52,6 +52,10 @@ protected:
...
@@ -52,6 +52,10 @@ protected:
std
::
map
<
vtkShader
::
Type
,
vtkShader
*>
shaders
,
std
::
map
<
vtkShader
::
Type
,
vtkShader
*>
shaders
,
vtkRenderer
*
ren
,
vtkActor
*
act
);
vtkRenderer
*
ren
,
vtkActor
*
act
);
// Description:
// Determine if the buffer objects need to be rebuilt
virtual
bool
GetNeedToRebuildBufferObjects
(
vtkRenderer
*
ren
,
vtkActor
*
act
);
// Description:
// Description:
// Build the VBO/IBO, called by UpdateBufferObjects
// Build the VBO/IBO, called by UpdateBufferObjects
virtual
void
BuildBufferObjects
(
vtkRenderer
*
ren
,
vtkActor
*
act
);
virtual
void
BuildBufferObjects
(
vtkRenderer
*
ren
,
vtkActor
*
act
);
...
...
Write
Preview
Supports
Markdown
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