Used for reading of the E57 file with E57 Simple API. More...
#include <E57SimpleReader.h>
Public Member Functions | |
bool | Close () |
This function closes the file. More... | |
bool | IsOpen () const |
This function returns true if the file is open. More... | |
Reader (const ustring &filePath) | |
This function is the constructor for the reader class. More... | |
File information | |
bool | GetE57Root (E57Root &fileHeader) const |
This function returns the file header information. More... | |
Image2D | |
int64_t | GetImage2DCount () const |
This function returns the total number of Picture Blocks. More... | |
bool | ReadImage2D (int64_t imageIndex, Image2D &image2DHeader) const |
This function returns the image2D header and positions the cursor. More... | |
bool | GetImage2DSizes (int64_t imageIndex, Image2DProjection &imageProjection, Image2DType &imageType, int64_t &imageWidth, int64_t &imageHeight, int64_t &imageSize, Image2DType &imageMaskType, Image2DType &imageVisualType) const |
This function returns the size of the image data. More... | |
int64_t | ReadImage2DData (int64_t imageIndex, Image2DProjection imageProjection, Image2DType imageType, void *buffer, int64_t start, int64_t count) const |
This function reads an image. More... | |
Data3D | |
int64_t | GetData3DCount () const |
This function returns the total number of Data3D Blocks. More... | |
bool | ReadData3D (int64_t dataIndex, Data3D &data3DHeader) const |
This function returns the Data3D header. More... | |
bool | GetData3DSizes (int64_t dataIndex, int64_t &rowMax, int64_t &columnMax, int64_t &pointsSize, int64_t &groupsSize, int64_t &countSize, bool &columnIndex) const |
This function returns the size of the point data. More... | |
bool | ReadData3DGroupsData (int64_t dataIndex, int64_t groupCount, int64_t *idElementValue, int64_t *startPointIndex, int64_t *pointCount) const |
This function reads the group data into the provided buffers. More... | |
CompressedVectorReader | SetUpData3DPointsData (int64_t dataIndex, size_t pointCount, const Data3DPointsData &buffers) const |
Use this function to read the actual 3D data. More... | |
CompressedVectorReader | SetUpData3DPointsData (int64_t dataIndex, size_t pointCount, const Data3DPointsData_d &buffers) const |
Use this function to read the actual 3D data. More... | |
Foundation API file information | |
StructureNode | GetRawE57Root () const |
Returns the file raw E57Root Structure Node. More... | |
VectorNode | GetRawData3D () const |
Returns the raw Data3D Vector Node. More... | |
VectorNode | GetRawImages2D () const |
Returns the raw Image2D Vector Node. More... | |
ImageFile | GetRawIMF () const |
Returns the ram ImageFile Node which is need to add enhancements. More... | |
Used for reading of the E57 file with E57 Simple API.
e57::Reader::Reader | ( | const ustring & | filePath | ) |
This function is the constructor for the reader class.
[in] | filePath | file path to E57 file |
bool e57::Reader::Close | ( | ) |
This function closes the file.
int64_t e57::Reader::GetData3DCount | ( | ) | const |
bool e57::Reader::GetData3DSizes | ( | int64_t | dataIndex, |
int64_t & | rowMax, | ||
int64_t & | columnMax, | ||
int64_t & | pointsSize, | ||
int64_t & | groupsSize, | ||
int64_t & | countSize, | ||
bool & | columnIndex | ||
) | const |
This function returns the size of the point data.
[in] | dataIndex | This in the index into the images3D vector. Must be less than GetData3DCount(). |
[out] | rowMax | This is the maximum row size |
[out] | columnMax | This is the maximum column size |
[out] | pointsSize | This is the total number of point records |
[out] | groupsSize | This is the total number of group reocrds |
[out] | countSize | This is the maximum point count per group |
[out] | columnIndex | This indicates that the idElementName is "columnIndex" |
This function returns the file header information.
[out] | fileHeader | is the main header information |
int64_t e57::Reader::GetImage2DCount | ( | ) | const |
This function returns the total number of Picture Blocks.
bool e57::Reader::GetImage2DSizes | ( | int64_t | imageIndex, |
Image2DProjection & | imageProjection, | ||
Image2DType & | imageType, | ||
int64_t & | imageWidth, | ||
int64_t & | imageHeight, | ||
int64_t & | imageSize, | ||
Image2DType & | imageMaskType, | ||
Image2DType & | imageVisualType | ||
) | const |
This function returns the size of the image data.
[in] | imageIndex | This in the index into the image2D vector |
[out] | imageProjection | identifies the projection in the image2D. |
[out] | imageType | identifies the image format of the projection. |
[out] | imageWidth | The image width (in pixels). |
[out] | imageHeight | The image height (in pixels). |
[out] | imageSize | This is the total number of bytes for the image blob. |
[out] | imageMaskType | This is E57_PNG_IMAGE_MASK if "imageMask" is defined in the projection |
[out] | imageVisualType | This is image type of the VisualReferenceRepresentation if given. |
VectorNode e57::Reader::GetRawData3D | ( | ) | const |
StructureNode e57::Reader::GetRawE57Root | ( | ) | const |
VectorNode e57::Reader::GetRawImages2D | ( | ) | const |
ImageFile e57::Reader::GetRawIMF | ( | ) | const |
bool e57::Reader::IsOpen | ( | ) | const |
This function returns true if the file is open.
This function returns the Data3D header.
[in] | dataIndex | This in the index into the images3D vector. Must be less than GetData3DCount(). |
[out] | data3DHeader | Data3D header |
bool e57::Reader::ReadData3DGroupsData | ( | int64_t | dataIndex, |
int64_t | groupCount, | ||
int64_t * | idElementValue, | ||
int64_t * | startPointIndex, | ||
int64_t * | pointCount | ||
) | const |
This function reads the group data into the provided buffers.
[in] | dataIndex | This in the index into the images3D vector. Must be less than GetData3DCount(). |
[in] | groupCount | size of each of the buffers given |
[out] | idElementValue | pointer to the buffer holding indices index for this group |
[out] | startPointIndex | pointer to the buffer holding Starting index in to the "points" data vector for the groups |
[out] | pointCount | pointer to the buffer holding size of the groups given |
This function returns the image2D header and positions the cursor.
[in] | imageIndex | This in the index into the image2D vector |
[out] | image2DHeader | pointer to the Image2D structure to receive the picture information |
int64_t e57::Reader::ReadImage2DData | ( | int64_t | imageIndex, |
Image2DProjection | imageProjection, | ||
Image2DType | imageType, | ||
void * | buffer, | ||
int64_t | start, | ||
int64_t | count | ||
) | const |
This function reads an image.
[in] | imageIndex | index of the image. Must be less than GetImage2DCount() |
[in] | imageProjection | identifies the projection desired. |
[in] | imageType | identifies the image format desired. |
[out] | buffer | pointer the raw image buffer |
[in] | start | position in the block to start reading |
[in] | count | size of desired chuck or buffer size |
CompressedVectorReader e57::Reader::SetUpData3DPointsData | ( | int64_t | dataIndex, |
size_t | pointCount, | ||
const Data3DPointsData & | buffers | ||
) | const |
Use this function to read the actual 3D data.
All the non-NULL buffers in buffers have number of elements = pointCount. Call the CompressedVectorReader::read() until all data is read.
[in] | dataIndex | data block index given by the NewData3D |
[in] | pointCount | size of each element buffer. |
[in] | buffers | pointers to user-provided buffers |
CompressedVectorReader e57::Reader::SetUpData3DPointsData | ( | int64_t | dataIndex, |
size_t | pointCount, | ||
const Data3DPointsData_d & | buffers | ||
) | const |
Use this function to read the actual 3D data.
All the non-NULL buffers in buffers have number of elements = pointCount. Call the CompressedVectorReader::read() until all data is read.
[in] | dataIndex | data block index given by the NewData3D |
[in] | pointCount | size of each element buffer. |
[in] | buffers | pointers to user-provided buffers |