Commit c4608f74 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

ENH: Added API to remove all lights.

parent 89e28a41
......@@ -38,7 +38,7 @@
#include "vtkPainterPolyDataMapper.h"
#include "vtkPolyDataPainter.h"
vtkCxxRevisionMacro(vtkRenderer, "1.234");
vtkCxxRevisionMacro(vtkRenderer, "1.235");
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)
{
......
......@@ -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();
......
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