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);
109 vtkSetClampMacro(FileType,
int, FILE_TYPE_IS_UNKNOWN, FILE_TYPE_IS_BINARY);
110 vtkGetMacro(FileType,
int);
123 vtkGetMacro(DataType,
int);
191 FILE_TYPE_IS_UNKNOWN = 0,
a simple class to control print indentation
Read ASCII or binary particle data and (optionally) one scalar value associated with each particle.
void SetDataByteOrder(int)
size_t Count
Count of the number of alliquots processed.
size_t Alliquot
Set an alliquot of bytes.
int ProduceOutputFromBinaryFileDouble(vtkInformationVector *outputVector)
This reader assumes that the file is binary and consists of floating point values by default.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool GetSwapBytes()
int ProduceOutputFromTextFileDouble(vtkInformationVector *outputVector)
The format that will be read if the file is a text file is: x, y, z, s (where s is some scalar value ...
int FileType
Used to decide which reader should be used.
static vtkParticleReader * New()
int ProduceOutputFromTextFileFloat(vtkInformationVector *outputVector)
int DetermineFileType()
Determine the type of file based on an analysis of its contents.
FILE_TYPE
Enumerate the supported file types.
void SetDataByteOrderToLittleEndian()
void SetDataTypeToDouble()
void SetFileTypeToBinary()
void DoProgressUpdate(size_t &bytesRead, size_t &fileLength)
Update of the progress.
void SetDataTypeToFloat()
~vtkParticleReader() override
const char * GetDataByteOrderAsString()
int DataType
Used to specify the data type.
int ProduceOutputFromBinaryFileFloat(vtkInformationVector *outputVector)
void SetFileTypeToUnknown()
void SetDataByteOrderToBigEndian()
These methods should be used instead of the SwapBytes methods.
Superclass for algorithms that produce only polydata as output.