xmsextractor
1.0
|
Provides ability to interpolate and extract the scalar values points and along arcs for an unstructured grid. More...
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< XmUGridTriangles2d > | GetUGridTriangles () 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< XmUGrid2dDataExtractor > | New (std::shared_ptr< XmUGrid > a_ugrid) |
Create a new XmUGrid2dDataExtractor. More... | |
static BSHP< XmUGrid2dDataExtractor > | New (BSHP< XmUGrid2dDataExtractor > a_extractor) |
Create a new XmUGrid2dDataExtractor using shallow copy from existing extractor. More... | |
Protected Member Functions | |
XmUGrid2dDataExtractor () | |
Constructor. | |
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.
|
pure virtual |
Build triangles for UGrid for either point or cell scalars.
[in] | a_location | Location to build on (points or cells). |
Implemented in xms::XmUGrid2dDataExtractorImpl.
|
pure virtual |
Extract interpolated data for the previously set locations.
[in] | a_location | The location to get the interpolated scalar. |
Implemented in xms::XmUGrid2dDataExtractorImpl.
|
pure virtual |
Extract interpolated data for the previously set locations.
[out] | a_outData | The interpolated scalars. |
Implemented in xms::XmUGrid2dDataExtractorImpl.
|
pure virtual |
Gets cell indexes associated with the extract location points.
Implemented in xms::XmUGrid2dDataExtractorImpl.
|
pure virtual |
Gets locations of points to extract interpolated scalar data from.
Implemented in xms::XmUGrid2dDataExtractorImpl.
|
pure virtual |
|
pure virtual |
Gets the location of the scalars (points or cells)
Implemented in xms::XmUGrid2dDataExtractorImpl.
|
pure virtual |
|
pure virtual |
Get the UGrid triangles.
Implemented in xms::XmUGrid2dDataExtractorImpl.
|
pure virtual |
Gets the option for using IDW for point data.
Implemented in xms::XmUGrid2dDataExtractorImpl.
|
static |
Create a new XmUGrid2dDataExtractor.
[in] | a_ugrid | The UGrid geometry to use to extract values from |
Definition at line 524 of file XmUGrid2dDataExtractor.cpp.
Referenced by XmUGrid2dDataExtractorUnitTests::testCellScalarCellActivity(), XmUGrid2dDataExtractorUnitTests::testCellScalarCellActivityIdw(), XmUGrid2dDataExtractorUnitTests::testCellScalarPointActivity(), XmUGrid2dDataExtractorUnitTests::testCellScalarsOnly(), XmUGrid2dDataExtractorUnitTests::testChangingScalarsAndActivity(), XmUGrid2dDataExtractorUnitTests::testCopiedExtractor(), XmUGrid2dDataExtractorUnitTests::testInvalidCellScalarsAndActivitySize(), XmUGrid2dDataExtractorUnitTests::testInvalidPointScalarsAndActivitySize(), XmUGrid2dDataExtractorUnitTests::testPointScalarCellActivity(), XmUGrid2dDataExtractorUnitTests::testPointScalarPointActivity(), XmUGrid2dDataExtractorUnitTests::testPointScalarsOnly(), and XmUGrid2dDataExtractorUnitTests::testTutorial().
|
static |
Create a new XmUGrid2dDataExtractor using shallow copy from existing extractor.
[in] | a_extractor | The extractor to shallow copy |
Definition at line 535 of file XmUGrid2dDataExtractor.cpp.
|
pure virtual |
Sets locations of points to extract interpolated scalar data from.
[in] | a_locations | The locations. |
Implemented in xms::XmUGrid2dDataExtractorImpl.
|
pure virtual |
Setup cell scalars to be used to extract interpolated data.
[in] | a_cellScalars | The point scalars. |
[in] | a_activity | The activity of the cells. |
[in] | a_activityType | The location at which the data is currently stored. |
Implemented in xms::XmUGrid2dDataExtractorImpl.
|
pure virtual |
Setup point scalars to be used to extract interpolated data.
[in] | a_pointScalars | The point scalars. |
[in] | a_activity | The activity of the cells. |
[in] | a_activityType | The location at which the data is currently stored. |
Implemented in xms::XmUGrid2dDataExtractorImpl.
|
pure virtual |
Set value to use when extracted value is in inactive cell or doesn't intersect with the grid.
[in] | a_noDataValue | The no data value |
Implemented in xms::XmUGrid2dDataExtractorImpl.
|
pure virtual |
Set to use IDW to calculate point scalar values from cell scalars.
a_useIdw | Whether to turn IDW on or off. |
Implemented in xms::XmUGrid2dDataExtractorImpl.