vtkParticleReader Class Reference
#include <vtkParticleReader.h>
Inheritance diagram for vtkParticleReader:
[legend]Collaboration diagram for vtkParticleReader:
[legend]List of all members.
Detailed Description
Read raw particle data and one array.
vtkParticleReader reads a raw file with particles. It supports random access into the file to read pieces. The format is: x, y, z, value (all floats). This class was developed with a specific file in mind, but may be made more general in the future. Here are a couple of features I am considering: any data types could be used, arbitrary list of arrays to read (extended to vectors as well), and time serries based on file names.
- Created by:
-
- CVS contributions (if > 5%):
- Law, Charles (85%)
- Cedilnik, Andy (7%)
- CVS logs (CVSweb):
.h (/IO/vtkParticleReader
.h)
.cxx (/IO/vtkParticleReader
.cxx)
- Tests:
- vtkParticleReader (Tests)
Definition at line 50 of file vtkParticleReader.h.
Member Typedef Documentation
Constructor & Destructor Documentation
vtkParticleReader::vtkParticleReader |
( |
|
) |
[protected] |
|
Member Function Documentation
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm. |
virtual const char* vtkParticleReader::GetClassName |
( |
|
) |
[virtual] |
|
int vtkParticleReader::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataSource. |
virtual int vtkParticleReader::IsA |
( |
const char * |
type |
) |
[virtual] |
|
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataSource. |
void vtkParticleReader::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
[virtual] |
|
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkPolyDataSource. |
virtual void vtkParticleReader::SetFileName |
( |
const char * |
|
) |
[virtual] |
|
virtual char* vtkParticleReader::GetFileName |
( |
|
) |
[virtual] |
|
void vtkParticleReader::SetDataByteOrderToBigEndian |
( |
|
) |
|
|
|
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian. |
void vtkParticleReader::SetDataByteOrderToLittleEndian |
( |
|
) |
|
|
|
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian. |
int vtkParticleReader::GetDataByteOrder |
( |
|
) |
|
|
|
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian. |
void vtkParticleReader::SetDataByteOrder |
( |
int |
|
) |
|
|
|
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian. |
const char* vtkParticleReader::GetDataByteOrderAsString |
( |
|
) |
|
|
|
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian. |
virtual void vtkParticleReader::SetSwapBytes |
( |
int |
|
) |
[virtual] |
|
|
Set/Get the byte swapping to explicitly swap the bytes of a file. |
int vtkParticleReader::GetSwapBytes |
( |
|
) |
[inline] |
|
|
Set/Get the byte swapping to explicitly swap the bytes of a file.
Definition at line 84 of file vtkParticleReader.h. |
virtual void vtkParticleReader::SwapBytesOn |
( |
|
) |
[virtual] |
|
|
Set/Get the byte swapping to explicitly swap the bytes of a file. |
virtual void vtkParticleReader::SwapBytesOff |
( |
|
) |
[virtual] |
|
|
Set/Get the byte swapping to explicitly swap the bytes of a file. |
void vtkParticleReader::OpenFile |
( |
|
) |
[protected] |
|
void vtkParticleReader::ExecuteInformation |
( |
|
) |
[protected, virtual] |
|
void vtkParticleReader::Execute |
( |
|
) |
[protected, virtual] |
|
|
This method is the old style execute method
Reimplemented from vtkSource. |
Member Data Documentation
The documentation for this class was generated from the following file: