14 #ifndef vtkAMRVelodyneReader_h
15 #define vtkAMRVelodyneReader_h
17 #include "vtkIOAMRModule.h"
19 #include <unordered_map>
22 VTK_ABI_NAMESPACE_BEGIN
78 const char* vtkNotUsed(
field))
override
93 void CalculateSpacing(
double* dx,
int lvl,
double*
spacing);
94 void CalculateBlockDims(
int* bDims,
bool isFull,
int* curDims);
95 void MarkFileAsRead(
char* fN);
96 bool IsFileRead(
char* fN);
97 bool IsFileRead(
const char* fN);
98 void UpdateFileName(
int index);
99 std::vector<vtkOverlappingAMR*> amrVector;
100 std::vector<double> timeList;
101 std::vector<std::string> fileList;
102 std::unordered_map<std::string, bool> LoadedHash;
103 unsigned int currentIndex;
105 VTK_ABI_NAMESPACE_END
Consists of the low-level Velodyne Reader used by the vtkAMRVelodyneReader.
virtual int GetNumberOfBlocks()=0
Returns the total number of blocks.
int RequestInformation(vtkInformation *rqst, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Standard Pipeline methods, subclasses may override this method if needed.
virtual vtkUniformGrid * GetAMRGrid(int blockIdx)=0
Loads the block according to the index w.r.t.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetAMRGridPointData(int vtkNotUsed(blockIdx), vtkUniformGrid *vtkNotUsed(block), const char *vtkNotUsed(field)) override
See vtkAMRBaseReader::GetAMRGridData.
virtual void ReadMetaData()=0
Reads all the metadata from the file.
virtual int GetBlockLevel(int blockIdx)=0
Returns the block level for the given block.
int RequestData(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *outputVector) override
Standard Pipeline methods, subclasses may override this method if needed.
virtual void SetFileName(VTK_FILEPATH const char *fileName)=0
Set/Get the filename.
virtual int GetNumberOfLevels()=0
Returns the total number of levels.
a simple class to control print indentation
virtual void GetAMRGridData(int blockIdx, vtkUniformGrid *block, const char *field)=0
Loads the block data.
A concrete instance of vtkAMRBaseReader that implements functionality for reading Velodyne AMR datase...
hierarchical dataset of vtkUniformGrids
vtkOverlappingAMR * GetOutput()
Get the output data object for a port on this algorithm.
An abstract class that encapsulates common functionality for all AMR readers.
static vtkOverlappingAMRAlgorithm * New()
virtual int FillMetaData()=0
Loads all the AMR metadata & constructs the LevelIdxPair12InternalIdx datastructure which maps (level...
virtual void SetUpDataArraySelections()=0
Initializes the PointDataArraySelection & CellDataArraySelection.