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
55 vtkSetStringMacro(FileName);
74 void SetDataByteOrderToBigEndian();
75 void SetDataByteOrderToLittleEndian();
76 int GetDataByteOrder();
77 void SetDataByteOrder(
int);
78 const char *GetDataByteOrderAsString();
96 vtkGetMacro(HasScalar,
int);
110 vtkSetClampMacro(FileType,
int, FILE_TYPE_IS_UNKNOWN, FILE_TYPE_IS_BINARY);
111 vtkGetMacro(FileType,
int);
124 vtkGetMacro(DataType,
int);
140 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
153 int ProduceOutputFromTextFileDouble(vtkInformationVector *outputVector);
154 int ProduceOutputFromTextFileFloat(vtkInformationVector *outputVector);
162 int ProduceOutputFromBinaryFileDouble(vtkInformationVector *outputVector);
163 int ProduceOutputFromBinaryFileFloat(vtkInformationVector *outputVector);
176 int DetermineFileType();
181 void DoProgressUpdate(
size_t & bytesRead,
size_t & fileLength );
FILE_TYPE
Enumerate the supported file types.
int FileType
Used to decide which reader should be used.
size_t Count
Count of the number of alliquots processed.
void SetFileTypeToText()
Get/Set the file type.
int GetSwapBytes()
Set/Get the byte swapping to explicitly swap the bytes of a file.
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
void SetFileTypeToBinary()
Get/Set the file type.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
void SetDataTypeToDouble()
Get/Set the data type.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetFileTypeToUnknown()
Get/Set the file type.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.