Commit 65debdf7 authored by Bill Lorensen's avatar Bill Lorensen Committed by Code Review
Browse files

Merge topic 'RestoreIVWriter' into master

c14caaf9 ENH: Restore vtkIVWriter
parents c78d99d8 c14caaf9
...@@ -14,7 +14,7 @@ SET(Module_SRCS ...@@ -14,7 +14,7 @@ SET(Module_SRCS
vtkGenericDataObjectReader.cxx vtkGenericDataObjectReader.cxx
vtkGenericDataObjectWriter.cxx vtkGenericDataObjectWriter.cxx
vtkGenericMovieWriter.cxx vtkGenericMovieWriter.cxx
#vtkIVWriter.cxx # Needs vtkAbstractMapper vtkIVWriter.cxx
vtkMaterialLibrary.cxx vtkMaterialLibrary.cxx
vtkMCubesReader.cxx vtkMCubesReader.cxx
vtkMCubesWriter.cxx vtkMCubesWriter.cxx
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
=========================================================================*/ =========================================================================*/
#include "vtkIVWriter.h" #include "vtkIVWriter.h"
#include "vtkAbstractMapper.h"
#include "vtkCellArray.h" #include "vtkCellArray.h"
#include "vtkLookupTable.h" #include "vtkLookupTable.h"
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
#include "vtkPolyData.h" #include "vtkPolyData.h"
#include "vtkPointData.h"
vtkStandardNewMacro(vtkIVWriter); vtkStandardNewMacro(vtkIVWriter);
...@@ -65,13 +65,11 @@ void vtkIVWriter::WritePolyData(vtkPolyData *pd, FILE *fp) ...@@ -65,13 +65,11 @@ void vtkIVWriter::WritePolyData(vtkPolyData *pd, FILE *fp)
vtkIdType npts = 0; vtkIdType npts = 0;
vtkIdType *indx = 0; vtkIdType *indx = 0;
vtkUnsignedCharArray *colors=NULL; vtkUnsignedCharArray *colors=NULL;
int offset=0;
points = pd->GetPoints(); points = pd->GetPoints();
// create colors for vertices // create colors for vertices
vtkDataArray *scalars = vtkAbstractMapper:: vtkDataArray *scalars = pd->GetPointData()->GetScalars();
GetScalars(pd, VTK_SCALAR_MODE_USE_POINT_DATA, 0, 0, NULL, offset);
if ( scalars ) if ( scalars )
{ {
......
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