xmsextractor  1.0
xms::XmUGrid2dPolylineDataExtractor Class Referenceabstract

Provides ability to interpolate and extract the scalar values along a polyline for an unstructured grid. More...

Public Member Functions

virtual ~XmUGrid2dPolylineDataExtractor ()
 Destructor.
 
virtual BSHP< XmUGrid2dDataExtractorGetDataExtractor () const =0
 Gets the underlying data extractor. Convenience so a user would not have to create a new if this one existed. More...
 
virtual void SetGridScalars (const VecFlt &a_scalars, const DynBitset &a_activity, DataLocationEnum a_activityLocation)=0
 Setup point scalars to be used to extract interpolated data. More...
 
virtual void SetPolyline (const VecPt3d &a_polyline)=0
 Set the polyline along which to extract the scalar data. Locations crossing cell boundaries are computed along the polyline. More...
 
virtual void ExtractData (VecFlt &a_extractedData)=0
 Extract data at previously computed locations returned by GetExtractLocations. More...
 
virtual void ComputeLocationsAndExtractData (const VecPt3d &a_polyline, VecFlt &a_extractedData, VecPt3d &a_extractedLocations)=0
 Extract data for given polyline. More...
 
virtual void SetUseIdwForPointData (bool a_useIdw)=0
 Set to use IDW to calculate point scalar values from cell scalars. More...
 
virtual void SetNoDataValue (float a_noDataValue)=0
 Set value to use when extracted value is in inactive cell or doesn't intersect with the grid. More...
 
virtual const VecFlt & GetScalars () const =0
 Gets the scalars. More...
 
virtual DataLocationEnum GetScalarLocation () const =0
 Gets the location of the scalars (points or cells) More...
 
virtual const VecPt3d & GetExtractLocations () const =0
 Gets computed locations along polyline to extract interpolated scalar data from. More...
 
virtual const VecInt & GetCellIndexes () const =0
 Gets cell indexes associated with the extract location points. More...
 
virtual bool GetUseIdwForPointData () const =0
 Gets the option for using IDW for point data. More...
 
virtual float GetNoDataValue () const =0
 Gets the no data value. More...
 

Static Public Member Functions

static BSHP< XmUGrid2dPolylineDataExtractorNew (std::shared_ptr< XmUGrid > a_ugrid, DataLocationEnum a_scalarLocation)
 Create a new XmUGrid2dPolylineDataExtractor. More...
 

Protected Member Functions

 XmUGrid2dPolylineDataExtractor ()
 Constructor.
 

Detailed Description

Provides ability to interpolate and extract the scalar values along a polyline for an unstructured grid.

Definition at line 39 of file XmUGrid2dPolylineDataExtractor.h.

Member Function Documentation

◆ ComputeLocationsAndExtractData()

virtual void xms::XmUGrid2dPolylineDataExtractor::ComputeLocationsAndExtractData ( const VecPt3d &  a_polyline,
VecFlt &  a_extractedData,
VecPt3d &  a_extractedLocations 
)
pure virtual

Extract data for given polyline.

Parameters
[in]a_polylineThe polyline.
[out]a_extractedDataThe interpolated scalar data at the extracted locations.
[out]a_extractedLocationsThe locations.

◆ ExtractData()

virtual void xms::XmUGrid2dPolylineDataExtractor::ExtractData ( VecFlt &  a_extractedData)
pure virtual

Extract data at previously computed locations returned by GetExtractLocations.

Parameters
[out]a_extractedDataThe interpolated scalar data at the previously computed locations.

◆ GetCellIndexes()

virtual const VecInt& xms::XmUGrid2dPolylineDataExtractor::GetCellIndexes ( ) const
pure virtual

Gets cell indexes associated with the extract location points.

Returns
The cell indexes.

◆ GetDataExtractor()

virtual BSHP<XmUGrid2dDataExtractor> xms::XmUGrid2dPolylineDataExtractor::GetDataExtractor ( ) const
pure virtual

Gets the underlying data extractor. Convenience so a user would not have to create a new if this one existed.

Returns
shared pointer to a data extractor

◆ GetExtractLocations()

virtual const VecPt3d& xms::XmUGrid2dPolylineDataExtractor::GetExtractLocations ( ) const
pure virtual

Gets computed locations along polyline to extract interpolated scalar data from.

Returns
The locations.

◆ GetNoDataValue()

virtual float xms::XmUGrid2dPolylineDataExtractor::GetNoDataValue ( ) const
pure virtual

Gets the no data value.

Returns
The no data value.

◆ GetScalarLocation()

virtual DataLocationEnum xms::XmUGrid2dPolylineDataExtractor::GetScalarLocation ( ) const
pure virtual

Gets the location of the scalars (points or cells)

Returns
The location of the scalars.

◆ GetScalars()

virtual const VecFlt& xms::XmUGrid2dPolylineDataExtractor::GetScalars ( ) const
pure virtual

Gets the scalars.

Returns
The scalars.

◆ GetUseIdwForPointData()

virtual bool xms::XmUGrid2dPolylineDataExtractor::GetUseIdwForPointData ( ) const
pure virtual

Gets the option for using IDW for point data.

Returns
The option.

◆ New()

BSHP< XmUGrid2dPolylineDataExtractor > xms::XmUGrid2dPolylineDataExtractor::New ( std::shared_ptr< XmUGrid >  a_ugrid,
DataLocationEnum  a_scalarLocation 
)
static

◆ SetGridScalars()

virtual void xms::XmUGrid2dPolylineDataExtractor::SetGridScalars ( const VecFlt &  a_scalars,
const DynBitset &  a_activity,
DataLocationEnum  a_activityLocation 
)
pure virtual

Setup point scalars to be used to extract interpolated data.

Parameters
[in]a_scalarsThe cell or point scalars.
[in]a_activityThe activity of the cells.
[in]a_activityLocationThe location at which the data is currently stored.

◆ SetNoDataValue()

virtual void xms::XmUGrid2dPolylineDataExtractor::SetNoDataValue ( float  a_noDataValue)
pure virtual

Set value to use when extracted value is in inactive cell or doesn't intersect with the grid.

Parameters
[in]a_noDataValueThe no data value

◆ SetPolyline()

virtual void xms::XmUGrid2dPolylineDataExtractor::SetPolyline ( const VecPt3d &  a_polyline)
pure virtual

Set the polyline along which to extract the scalar data. Locations crossing cell boundaries are computed along the polyline.

Parameters
[in]a_polylineThe polyline.

◆ SetUseIdwForPointData()

virtual void xms::XmUGrid2dPolylineDataExtractor::SetUseIdwForPointData ( bool  a_useIdw)
pure virtual

Set to use IDW to calculate point scalar values from cell scalars.

Parameters
a_useIdwWhether to turn IDW on or off.

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