xmsextractor
1.0
|
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< XmUGrid2dDataExtractor > | GetDataExtractor () 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< XmUGrid2dPolylineDataExtractor > | New (std::shared_ptr< XmUGrid > a_ugrid, DataLocationEnum a_scalarLocation) |
Create a new XmUGrid2dPolylineDataExtractor. More... | |
Protected Member Functions | |
XmUGrid2dPolylineDataExtractor () | |
Constructor. | |
Provides ability to interpolate and extract the scalar values along a polyline for an unstructured grid.
Definition at line 39 of file XmUGrid2dPolylineDataExtractor.h.
|
pure virtual |
Extract data for given polyline.
[in] | a_polyline | The polyline. |
[out] | a_extractedData | The interpolated scalar data at the extracted locations. |
[out] | a_extractedLocations | The locations. |
|
pure virtual |
Extract data at previously computed locations returned by GetExtractLocations.
[out] | a_extractedData | The interpolated scalar data at the previously computed locations. |
|
pure virtual |
Gets cell indexes associated with the extract location points.
|
pure virtual |
Gets the underlying data extractor. Convenience so a user would not have to create a new if this one existed.
|
pure virtual |
Gets computed locations along polyline to extract interpolated scalar data from.
|
pure virtual |
Gets the no data value.
|
pure virtual |
Gets the location of the scalars (points or cells)
|
pure virtual |
Gets the scalars.
|
pure virtual |
Gets the option for using IDW for point data.
|
static |
Create a new XmUGrid2dPolylineDataExtractor.
[in] | a_ugrid | The UGrid geometry to use to extract values from |
[in] | a_scalarLocation | The location of the scalars (points or cells). |
Definition at line 313 of file XmUGrid2dPolylineDataExtractor.cpp.
Referenced by XmUGrid2dPolylineDataExtractorUnitTests::testCellScalars(), XmUGrid2dPolylineDataExtractorUnitTests::testOneCellOneSegment(), XmUGrid2dPolylineDataExtractorUnitTests::testSegmentAcrossCellIntoSecond(), XmUGrid2dPolylineDataExtractorUnitTests::testSegmentAcrossSplitCells(), XmUGrid2dPolylineDataExtractorUnitTests::testSegmentAllInCell(), XmUGrid2dPolylineDataExtractorUnitTests::testSegmentAllOutside(), XmUGrid2dPolylineDataExtractorUnitTests::testSegmentAlongEdge(), XmUGrid2dPolylineDataExtractorUnitTests::testSegmentCrossCellPoint(), XmUGrid2dPolylineDataExtractorUnitTests::testSegmentOutToTouch(), XmUGrid2dPolylineDataExtractorUnitTests::testSegmentTouchToOut(), XmUGrid2dPolylineDataExtractorUnitTests::testThreeSegmentsCrossOnBoundary(), XmUGrid2dPolylineDataExtractorUnitTests::testTransientTutorial(), XmUGrid2dPolylineDataExtractorUnitTests::testTwoSegmentsAcrossOneCell(), XmUGrid2dPolylineDataExtractorUnitTests::testTwoSegmentsAllOutside(), XmUGrid2dPolylineDataExtractorUnitTests::testTwoSegmentsFirstExiting(), XmUGrid2dPolylineDataExtractorUnitTests::testTwoSegmentsJoinInCell(), and XmUGrid2dPolylineDataExtractorUnitTests::testTwoSegmentsJoinOnBoundary().
|
pure virtual |
Setup point scalars to be used to extract interpolated data.
[in] | a_scalars | The cell or point scalars. |
[in] | a_activity | The activity of the cells. |
[in] | a_activityLocation | The location at which the data is currently stored. |
|
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 |
|
pure virtual |
Set the polyline along which to extract the scalar data. Locations crossing cell boundaries are computed along the polyline.
[in] | a_polyline | The polyline. |
|
pure virtual |
Set to use IDW to calculate point scalar values from cell scalars.
a_useIdw | Whether to turn IDW on or off. |