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 61 vtkSetStringMacro(FileName);
62 vtkGetStringMacro(FileName);
80 void SetDataByteOrderToBigEndian();
81 void SetDataByteOrderToLittleEndian();
82 int GetDataByteOrder();
83 void SetDataByteOrder(
int);
84 const char *GetDataByteOrderAsString();
116 vtkSetClampMacro(FileType,
int, FILE_TYPE_IS_UNKNOWN, FILE_TYPE_IS_BINARY);
117 vtkGetMacro(FileType,
int);
130 vtkGetMacro(DataType,
int);
182 int DetermineFileType();
187 void DoProgressUpdate(
size_t & bytesRead,
size_t & fileLength );
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.