 |
VTK
9.1.0
|
Go to the documentation of this file.
53 #ifndef vtkParticleReader_h
54 #define vtkParticleReader_h
56 #include "vtkIOGeometryModule.h"
59 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
60 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
128 vtkSetClampMacro(FileType,
int, FILE_TYPE_IS_UNKNOWN, FILE_TYPE_IS_BINARY);
129 vtkGetMacro(FileType,
int);
142 vtkGetMacro(DataType,
int);
209 FILE_TYPE_IS_UNKNOWN = 0,
vtkTypeBool GetSwapBytes()
Set/Get the byte swapping to explicitly swap the bytes of a file.
~vtkParticleReader() override
void SetDataByteOrder(int)
These methods should be used instead of the SwapBytes methods.
vtkSetFilePathMacro(FileName)
Specify file name.
int DetermineFileType()
Determine the type of file based on an analysis of its contents.
void DoProgressUpdate(size_t &bytesRead, size_t &fileLength)
Update of the progress.
void SetDataByteOrderToLittleEndian()
These methods should be used instead of the SwapBytes methods.
int GetDataByteOrder()
These methods should be used instead of the SwapBytes methods.
int FileType
Used to decide which reader should be used.
int ProduceOutputFromTextFileFloat(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 ...
void SetFileTypeToText()
Get/Set the file type.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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 ...
vtkGetFilePathMacro(FileName)
Specify file name.
void SetDataTypeToFloat()
Get/Set the data type.
size_t Alliquot
Set an alliquot of bytes.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
a simple class to control print indentation
void SetFileTypeToUnknown()
Get/Set the file type.
Read ASCII or binary particle data and (optionally) one scalar value associated with each particle.
void SetDataByteOrderToBigEndian()
These methods should be used instead of the SwapBytes methods.
static vtkParticleReader * New()
void SetFileTypeToBinary()
Get/Set the file type.
int ProduceOutputFromBinaryFileFloat(vtkInformationVector *outputVector)
This reader assumes that the file is binary and consists of floating point values by default.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetDataTypeToDouble()
Get/Set the data type.
int DataType
Used to specify the data type.
FILE_TYPE
Enumerate the supported file types.
const char * GetDataByteOrderAsString()
These methods should be used instead of the SwapBytes methods.
int ProduceOutputFromBinaryFileDouble(vtkInformationVector *outputVector)
This reader assumes that the file is binary and consists of floating point values by default.
size_t Count
Count of the number of alliquots processed.
Superclass for algorithms that produce only polydata as output.