xmsextractor  1.0
xms::XmUGrid2dDataExtractor Class Referenceabstract

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

Inheritance diagram for xms::XmUGrid2dDataExtractor:
xms::XmUGrid2dDataExtractorImpl

Public Member Functions

virtual ~XmUGrid2dDataExtractor ()
 Destructor.
 
virtual void SetGridPointScalars (const VecFlt &a_pointScalars, const DynBitset &a_activity, DataLocationEnum a_activityType)=0
 Setup point scalars to be used to extract interpolated data. More...
 
virtual void SetGridCellScalars (const VecFlt &a_cellScalars, const DynBitset &a_activity, DataLocationEnum a_activityType)=0
 Setup cell scalars to be used to extract interpolated data. More...
 
virtual void SetExtractLocations (const VecPt3d &a_locations)=0
 Sets locations of points to extract interpolated scalar data from. More...
 
virtual void ExtractData (VecFlt &a_outData)=0
 Extract interpolated data for the previously set locations. More...
 
virtual float ExtractAtLocation (const Pt3d &a_location)=0
 Extract interpolated data for the previously set locations. 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 void BuildTriangles (DataLocationEnum a_location)=0
 Build triangles for UGrid for either point or cell scalars. More...
 
virtual const BSHP< XmUGridTriangles2dGetUGridTriangles () const =0
 Get the UGrid triangles. 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 locations of points 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< XmUGrid2dDataExtractorNew (std::shared_ptr< XmUGrid > a_ugrid)
 Create a new XmUGrid2dDataExtractor. More...
 
static BSHP< XmUGrid2dDataExtractorNew (BSHP< XmUGrid2dDataExtractor > a_extractor)
 Create a new XmUGrid2dDataExtractor using shallow copy from existing extractor. More...
 

Protected Member Functions

 XmUGrid2dDataExtractor ()
 Constructor.
 

Detailed Description

Provides ability to interpolate and extract the scalar values points and along arcs for an unstructured grid.

Definition at line 43 of file XmUGrid2dDataExtractor.h.

Member Function Documentation

◆ BuildTriangles()

virtual void xms::XmUGrid2dDataExtractor::BuildTriangles ( DataLocationEnum  a_location)
pure virtual

Build triangles for UGrid for either point or cell scalars.

Parameters
[in]a_locationLocation to build on (points or cells).

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ ExtractAtLocation()

virtual float xms::XmUGrid2dDataExtractor::ExtractAtLocation ( const Pt3d &  a_location)
pure virtual

Extract interpolated data for the previously set locations.

Parameters
[in]a_locationThe location to get the interpolated scalar.
Returns
The interpolated value.

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ ExtractData()

virtual void xms::XmUGrid2dDataExtractor::ExtractData ( VecFlt &  a_outData)
pure virtual

Extract interpolated data for the previously set locations.

Parameters
[out]a_outDataThe interpolated scalars.

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ GetCellIndexes()

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

Gets cell indexes associated with the extract location points.

Returns
The cell indexes.

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ GetExtractLocations()

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

Gets locations of points to extract interpolated scalar data from.

Returns
The locations.

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ GetNoDataValue()

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

Gets the no data value.

Returns
The no data value.

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ GetScalarLocation()

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

Gets the location of the scalars (points or cells)

Returns
The location of the scalars.

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ GetScalars()

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

Gets the scalars.

Returns
The scalars.

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ GetUGridTriangles()

virtual const BSHP<XmUGridTriangles2d> xms::XmUGrid2dDataExtractor::GetUGridTriangles ( ) const
pure virtual

Get the UGrid triangles.

Returns
Shared pointer to triangles.

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ GetUseIdwForPointData()

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

Gets the option for using IDW for point data.

Returns
The option.

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ New() [1/2]

◆ New() [2/2]

BSHP< XmUGrid2dDataExtractor > xms::XmUGrid2dDataExtractor::New ( BSHP< XmUGrid2dDataExtractor a_extractor)
static

Create a new XmUGrid2dDataExtractor using shallow copy from existing extractor.

Parameters
[in]a_extractorThe extractor to shallow copy
Returns
the new XmUGrid2dDataExtractor.

Definition at line 535 of file XmUGrid2dDataExtractor.cpp.

◆ SetExtractLocations()

virtual void xms::XmUGrid2dDataExtractor::SetExtractLocations ( const VecPt3d &  a_locations)
pure virtual

Sets locations of points to extract interpolated scalar data from.

Parameters
[in]a_locationsThe locations.

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ SetGridCellScalars()

virtual void xms::XmUGrid2dDataExtractor::SetGridCellScalars ( const VecFlt &  a_cellScalars,
const DynBitset &  a_activity,
DataLocationEnum  a_activityType 
)
pure virtual

Setup cell scalars to be used to extract interpolated data.

Parameters
[in]a_cellScalarsThe point scalars.
[in]a_activityThe activity of the cells.
[in]a_activityTypeThe location at which the data is currently stored.

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ SetGridPointScalars()

virtual void xms::XmUGrid2dDataExtractor::SetGridPointScalars ( const VecFlt &  a_pointScalars,
const DynBitset &  a_activity,
DataLocationEnum  a_activityType 
)
pure virtual

Setup point scalars to be used to extract interpolated data.

Parameters
[in]a_pointScalarsThe point scalars.
[in]a_activityThe activity of the cells.
[in]a_activityTypeThe location at which the data is currently stored.

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ SetNoDataValue()

virtual void xms::XmUGrid2dDataExtractor::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

Implemented in xms::XmUGrid2dDataExtractorImpl.

◆ SetUseIdwForPointData()

virtual void xms::XmUGrid2dDataExtractor::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.

Implemented in xms::XmUGrid2dDataExtractorImpl.


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