/* * vtkCubeReader.h * * * Created by Samuel D. Crow on 7/3/08. * Copyright 2008 Kodak. All rights reserved. * */ #ifndef __vtk_CUBE_READER__ #define __vtk_CUBE_READER__ #define CUBEDEBUG #include #include #include "vtkPolyDataAlgorithm.h" // .NAME vtkCubeReader an experimental reader that generates colored cubes // .SECTION Desctiption // vtkCubeReader reads in the length of a side and the color of 8 vertices and displays that cube class VTK_IO_EXPORT vtkCubeReader:public vtkPolyDataAlgorithm { public: static vtkCubeReader *New(); vtkTypeRevisionMacro(vtkCubeReader, vtkPolyDataAlgorithm); virtual void PrintSelf(ostream&,vtkIndent); vtkSetStringMacro(FileName); //store filename of object vtkGetStringMacro(FileName); //retrieve filename of object protected: vtkCubeReader(); ~vtkCubeReader(); // void ExecuteData(vtkDataObject *output); // int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *outVec); int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *outputVector); char *FileName; private: int halfsize; float size; float vertexRGB[8][3]; ifstream myfile; vtkCubeReader(const vtkCubeReader&); // not implemented void operator=(const vtkCubeReader&); // not implemented #ifdef CUBEDEBUG ofstream log; #endif }; #endif