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
c4608f74
Commit
c4608f74
authored
Aug 14, 2007
by
Utkarsh Ayachit
⛰
Browse files
ENH: Added API to remove all lights.
parent
89e28a41
Changes
2
Show whitespace changes
Inline
Side-by-side
Rendering/vtkRenderer.cxx
View file @
c4608f74
...
...
@@ -38,7 +38,7 @@
#include "vtkPainterPolyDataMapper.h"
#include "vtkPolyDataPainter.h"
vtkCxxRevisionMacro
(
vtkRenderer
,
"1.23
4
"
);
vtkCxxRevisionMacro
(
vtkRenderer
,
"1.23
5
"
);
vtkCxxSetObjectMacro
(
vtkRenderer
,
IdentPainter
,
vtkIdentColoredPainter
);
...
...
@@ -765,6 +765,12 @@ void vtkRenderer::RemoveLight(vtkLight *light)
this
->
Lights
->
RemoveItem
(
light
);
}
// Remove all lights from the list of lights.
void
vtkRenderer
::
RemoveAllLights
()
{
this
->
Lights
->
RemoveAllItems
();
}
// Add an culler to the list of cullers.
void
vtkRenderer
::
AddCuller
(
vtkCuller
*
culler
)
{
...
...
Rendering/vtkRenderer.h
View file @
c4608f74
...
...
@@ -76,6 +76,10 @@ public:
// Remove a light from the list of lights.
void
RemoveLight
(
vtkLight
*
);
// Description:
// Remove all lights from the list of lights.
void
RemoveAllLights
();
// Description:
// Return the collection of lights.
vtkLightCollection
*
GetLights
();
...
...
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