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);
198 FILE_TYPE_IS_TEXT, FILE_TYPE_IS_BINARY };
a simple class to control print indentation
Read ASCII or binary particle data and (optionally) one scalar value associated with each particle.
void SetDataByteOrder(int)
size_t Count
Count of the number of alliquots processed.
size_t Alliquot
Set an alliquot of bytes.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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 *)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
const char * GetDataByteOrderAsString()
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 ...
int FileType
Used to decide which reader should be used.
int ProduceOutputFromTextFileFloat(vtkInformationVector *outputVector)
int DetermineFileType()
Determine the type of file based on an analysis of its contents.
FILE_TYPE
Enumerate the supported file types.
void SetDataByteOrderToLittleEndian()
void SetDataTypeToDouble()
void SetFileTypeToBinary()
void DoProgressUpdate(size_t &bytesRead, size_t &fileLength)
Update of the progress.
void SetDataTypeToFloat()
int DataType
Used to specify the data type.
int ProduceOutputFromBinaryFileFloat(vtkInformationVector *outputVector)
void SetFileTypeToUnknown()
void SetDataByteOrderToBigEndian()
These methods should be used instead of the SwapBytes methods.
static vtkParticleReader * New()
Superclass for algorithms that produce only polydata as output.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.