28 #ifndef vtkParticleReader_h
29 #define vtkParticleReader_h
31 #include "vtkIOGeometryModule.h"
34 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
35 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
37 VTK_ABI_NAMESPACE_BEGIN
49 vtkSetFilePathMacro(FileName);
50 vtkGetFilePathMacro(FileName);
68 void SetDataByteOrderToBigEndian();
69 void SetDataByteOrderToLittleEndian();
70 int GetDataByteOrder();
71 void SetDataByteOrder(
int);
72 const char* GetDataByteOrderAsString();
104 vtkSetClampMacro(FileType,
int, FILE_TYPE_IS_UNKNOWN, FILE_TYPE_IS_BINARY);
105 vtkGetMacro(FileType,
int);
118 vtkGetMacro(DataType,
int);
169 int DetermineFileType();
174 void DoProgressUpdate(
size_t& bytesRead,
size_t& fileLength);
185 FILE_TYPE_IS_UNKNOWN = 0,
217 VTK_ABI_NAMESPACE_END
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.