LibCorr3D 2.2
All Classes Namespaces Files Functions
Public Member Functions | Protected Member Functions | List of all members
geotess::LibCorr3DGrid Class Reference

This is a LibCorr3D extension of the GeoTessGrid object for use by LibCorr3D. More...

#include <LibCorr3DGrid.h>

Inheritance diagram for geotess::LibCorr3DGrid:

Public Member Functions

 LibCorr3DGrid (const string &fileName, const string &gridID)
 Parameterized constructor. More...
 
virtual ~LibCorr3DGrid ()
 Destructor. More...
 
const string & getComments () const
 Return tessellation comments string. More...
 
const string & getDescription () const
 Return tessellation description. More...
 
virtual LONG_INT getMemory ()
 Return the amount of memory currently occupied by all of the LibCorr3DModel objects NOT INCLUDING THE GRIDS. More...
 
const string & getParameters () const
 Return tessellation parameters string. More...
 

Protected Member Functions

virtual GeoTessGrid * loadGridBinary (IFStreamBinary &ifs)
 Builds this grid from the contents of the input binary file stream. More...
 

Detailed Description

This is a LibCorr3D extension of the GeoTessGrid object for use by LibCorr3D.

It acts as home for the the overloaded GeoTessGrid::loadGridBinary(...) function which actually creates a new GeoTessGrid from an old LibCorr2D file.

This extended grid is only created in the case where a LibCorr2D model file is being read.

Constructor & Destructor Documentation

◆ LibCorr3DGrid()

geotess::LibCorr3DGrid::LibCorr3DGrid ( const string &  fileName,
const string &  gridID 
)

Parameterized constructor.

Parameters
fileNamethe name of the file that contains the desired grid.
gridIDthe gridID of the grid to be loaded. Only used by the method that loads the old LibCorr2D tessellations.

◆ ~LibCorr3DGrid()

virtual geotess::LibCorr3DGrid::~LibCorr3DGrid ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ getComments()

const string & geotess::LibCorr3DGrid::getComments ( ) const
inline

Return tessellation comments string.

◆ getDescription()

const string & geotess::LibCorr3DGrid::getDescription ( ) const
inline

Return tessellation description.

◆ getMemory()

virtual LONG_INT geotess::LibCorr3DGrid::getMemory ( )
inlinevirtual

Return the amount of memory currently occupied by all of the LibCorr3DModel objects NOT INCLUDING THE GRIDS.

To retrieve the size of the LibCorr3DGrid call model.getGrid().getMemory(). Note that multiple LibCorr3DModels may reference the same LibCorr3DGrid object so if you are working with multiple models and they might be sharing references to the same grids then the best way to find the memory requirements of the set of LibCorr3DGrid objects currently in use is to call the static method GeoTessModel::getReuseGridMapMemory().

Returns
memory in bytes.

◆ getParameters()

const string & geotess::LibCorr3DGrid::getParameters ( ) const
inline

Return tessellation parameters string.

◆ loadGridBinary()

virtual GeoTessGrid * geotess::LibCorr3DGrid::loadGridBinary ( IFStreamBinary &  ifs)
protectedvirtual

Builds this grid from the contents of the input binary file stream.


The documentation for this class was generated from the following file: