34 #ifndef vtkParticleReader_h 35 #define vtkParticleReader_h 37 #include "vtkIOGeometryModule.h" 40 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0 41 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1 54 vtkSetStringMacro(FileName);
55 vtkGetStringMacro(FileName);
73 void SetDataByteOrderToBigEndian();
74 void SetDataByteOrderToLittleEndian();
75 int GetDataByteOrder();
76 void SetDataByteOrder(
int);
77 const char* GetDataByteOrderAsString();
109 vtkSetClampMacro(FileType,
int, FILE_TYPE_IS_UNKNOWN, FILE_TYPE_IS_BINARY);
110 vtkGetMacro(FileType,
int);
123 vtkGetMacro(DataType,
int);
174 int DetermineFileType();
179 void DoProgressUpdate(
size_t& bytesRead,
size_t& fileLength);
191 FILE_TYPE_IS_UNKNOWN = 0,
FILE_TYPE
Enumerate the supported file types.
vtkTypeBool GetSwapBytes()
Set/Get the byte swapping to explicitly swap the bytes of a file.
int FileType
Used to decide which reader should be used.
size_t Count
Count of the number of alliquots processed.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void SetFileTypeToText()
Get/Set the file type.
Read ASCII or binary particle data and (optionally) one scalar value associated with each particle...
static vtkPolyDataAlgorithm * New()
void SetDataTypeToFloat()
Get/Set the data type.
Superclass for algorithms that produce only polydata as output.
size_t Alliquot
Set an alliquot of bytes.
a simple class to control print indentation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetFileTypeToBinary()
Get/Set the file type.
void SetDataTypeToDouble()
Get/Set the data type.
void SetFileTypeToUnknown()
Get/Set the file type.
int DataType
Used to specify the data type.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.