Go to the documentation of this file.
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);
102 vtkGetMacro(HasScalar,
int);
116 vtkSetClampMacro(FileType,
int, FILE_TYPE_IS_UNKNOWN, FILE_TYPE_IS_BINARY);
117 vtkGetMacro(FileType,
int);
130 vtkGetMacro(DataType,
int);
void SetDataByteOrder(int)
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()
int FileType
Used to decide which reader should be used.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int ProduceOutputFromTextFileFloat(vtkInformationVector *outputVector)
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 ...
void SetDataTypeToFloat()
size_t Alliquot
Set an alliquot of bytes.
a simple class to control print indentation
void SetFileTypeToUnknown()
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
Read ASCII or binary particle data and (optionally) one scalar value associated with each particle.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
void SetDataByteOrderToBigEndian()
These methods should be used instead of the SwapBytes methods.
static vtkParticleReader * New()
void SetFileTypeToBinary()
int ProduceOutputFromBinaryFileFloat(vtkInformationVector *outputVector)
void SetDataTypeToDouble()
int DataType
Used to specify the data type.
FILE_TYPE
Enumerate the supported file types.
const char * GetDataByteOrderAsString()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int ProduceOutputFromBinaryFileDouble(vtkInformationVector *outputVector)
This reader assumes that the file is binary and consists of floating point values by default.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
size_t Count
Count of the number of alliquots processed.
Superclass for algorithms that produce only polydata as output.