Skip to content
Snippets Groups Projects
Commit 35a3bbaa authored by Tom Fischer's avatar Tom Fischer
Browse files

Reducing include dependencies and mem leak in VtkPointsSource.

parent 21908de5
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
*/ */
// ** INCLUDES ** // ** INCLUDES **
// GeoLib
#include "Color.h"
#include "VtkPointsSource.h" #include "VtkPointsSource.h"
#include <vtkCellArray.h> #include <vtkCellArray.h>
...@@ -35,6 +38,7 @@ VtkPointsSource::VtkPointsSource() ...@@ -35,6 +38,7 @@ VtkPointsSource::VtkPointsSource()
const GeoLib::Color* c = GeoLib::getRandomColor(); const GeoLib::Color* c = GeoLib::getRandomColor();
GetProperties()->SetColor((*c)[0] / 255.0,(*c)[1] / 255.0,(*c)[2] / 255.0); GetProperties()->SetColor((*c)[0] / 255.0,(*c)[1] / 255.0,(*c)[2] / 255.0);
delete c;
} }
void VtkPointsSource::PrintSelf( ostream& os, vtkIndent indent ) void VtkPointsSource::PrintSelf( ostream& os, vtkIndent indent )
......
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
#include "VtkAlgorithmProperties.h" #include "VtkAlgorithmProperties.h"
#include <vtkPolyDataAlgorithm.h> #include <vtkPolyDataAlgorithm.h>
#include "GEOObjects.h" // GeoLib
#include "Point.h"
/** /**
* \brief VtkPointsSource is a VTK source object for the visualization * \brief VtkPointsSource is a VTK source object for the visualization
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment