[Paraview] Custom Reader FileName
Bob Anderson
banderson at mirarco.org
Mon Jun 18 14:51:51 EDT 2007
Skipped content of type multipart/alternative-------------- next part --------------
FIND_PACKAGE(ParaView REQUIRED)
INCLUDE(${PARAVIEW_USE_FILE})
ADD_PARAVIEW_PLUGIN(GocadReaderClientPlugin "1.0"
GUI_RESOURCES GocadReader.qrc)
ADD_PARAVIEW_PLUGIN(GocadReaderServerManagerPlugin "1.0"
SERVER_MANAGER_XML GocadReader.xml
SERVER_MANAGER_SOURCES vtkGocadReader.cxx)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GocadReader.qrc
Type: application/octet-stream
Size: 103 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20070618/802529fa/GocadReader.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GocadReader.xml
Type: text/xml
Size: 440 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20070618/802529fa/GocadReader.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GocadReaderGUI.xml
Type: text/xml
Size: 146 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20070618/802529fa/GocadReaderGUI.bin
-------------- next part --------------
// .NAME vtkGocadReader from VTK\IO\vtkSimplePointsReader & vtkLocalConeSource - Example ParaView Plugin Source
// .SECTION Description
// vtkGocadReader is a subclass of vtkPolyDataAlgorithm to read Gocad TSurf ASCII Files
#ifndef __vtkGocadReader_h
#define __vtkGocadReader_h
#include "vtkPolyDataAlgorithm.h"
#include "vtkInformation.h"
#include <string>
using namespace std;
class VTK_EXPORT vtkGocadReader : public vtkPolyDataAlgorithm
{
public:
static vtkGocadReader* New();
vtkTypeRevisionMacro(vtkGocadReader,vtkPolyDataAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
void SetFileName(const char* file);
const char* GetFileName();
int IsValidFile();
protected:
vtkGocadReader();
virtual ~vtkGocadReader();
//BTX
class MyInternal;
MyInternal* Internal;
//ETX
int OpenFile();
void CloseFile();
private:
int RequestData(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
int my_getline(char* sbuff);
};
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkGocadReader.cxx_reduced
Type: application/octet-stream
Size: 3047 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20070618/802529fa/vtkGocadReader.obj
More information about the ParaView
mailing list