40 #ifndef vtkParticleReader_h
41 #define vtkParticleReader_h
43 #include "vtkIOGeometryModule.h"
46 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
47 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
60 vtkSetFilePathMacro(FileName);
61 vtkGetFilePathMacro(FileName);
79 void SetDataByteOrderToBigEndian();
80 void SetDataByteOrderToLittleEndian();
81 int GetDataByteOrder();
82 void SetDataByteOrder(
int);
83 const char* GetDataByteOrderAsString();
115 vtkSetClampMacro(FileType,
int, FILE_TYPE_IS_UNKNOWN, FILE_TYPE_IS_BINARY);
116 vtkGetMacro(FileType,
int);
129 vtkGetMacro(DataType,
int);
180 int DetermineFileType();
185 void DoProgressUpdate(
size_t& bytesRead,
size_t& fileLength);
196 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.