VTK
|
Helper class due to PIMPL excess. More...
#include <vtkXMLOffsetsManager.h>
Public Member Functions | |
OffsetsManager () | |
~OffsetsManager () | |
void | Allocate (int numTimeStep) |
vtkTypeInt64 & | GetPosition (unsigned int t) |
vtkTypeInt64 & | GetRangeMinPosition (unsigned int t) |
vtkTypeInt64 & | GetRangeMaxPosition (unsigned int t) |
vtkTypeInt64 & | GetOffsetValue (unsigned int t) |
unsigned long & | GetLastMTime () |
Helper class due to PIMPL excess.
This class is deisgned to work within vtkXMLWriter. It store a position in a file (unsigned long) and associate a offset in the file. This is useful when writing TimeStep XML file when you want to forward the same offset from the AppendData section on every entry in let say <Points> definition Example:
<Points> <DataArray type="Float32" TimeStep="0" format="appended" offset="268" /> <DataArray type="Float32" TimeStep="1" format="appended" offset="268" /> ... </Points>
Therefore data is only stored once in the XML file. At read time the offset value is stored to determine whenever we need to read data (ie when offset different from previously stored offset)
Definition at line 53 of file vtkXMLOffsetsManager.h.
OffsetsManager::OffsetsManager | ( | ) | [inline] |
Definition at line 57 of file vtkXMLOffsetsManager.h.
OffsetsManager::~OffsetsManager | ( | ) | [inline] |
Definition at line 61 of file vtkXMLOffsetsManager.h.
void OffsetsManager::Allocate | ( | int | numTimeStep | ) | [inline] |
Definition at line 64 of file vtkXMLOffsetsManager.h.
vtkTypeInt64& OffsetsManager::GetPosition | ( | unsigned int | t | ) | [inline] |
Definition at line 72 of file vtkXMLOffsetsManager.h.
vtkTypeInt64& OffsetsManager::GetRangeMinPosition | ( | unsigned int | t | ) | [inline] |
Definition at line 77 of file vtkXMLOffsetsManager.h.
vtkTypeInt64& OffsetsManager::GetRangeMaxPosition | ( | unsigned int | t | ) | [inline] |
Definition at line 82 of file vtkXMLOffsetsManager.h.
vtkTypeInt64& OffsetsManager::GetOffsetValue | ( | unsigned int | t | ) | [inline] |
Definition at line 87 of file vtkXMLOffsetsManager.h.
unsigned long& OffsetsManager::GetLastMTime | ( | ) | [inline] |
Definition at line 92 of file vtkXMLOffsetsManager.h.