A CurveSet represents an entry in a record's "curve_set".
More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/sina/core/CurveSet.hpp>
A CurveSet represents an entry in a record's "curve_set".
A CurveSet consist of a set of independent and dependent curves. Each curve is a list of numbers along with optional units and tags.
- See also
- Record
-
Curve
◆ CurveMap
An unordered map of Curve objects.
◆ CurveOrder
An enum representing supported orderings for curves within a CurveSet.
| Enumerator |
|---|
| REGISTRATION_OLDEST_FIRST | |
| REGISTRATION_NEWEST_FIRST | |
| ALPHABETIC | |
| REVERSE_ALPHABETIC | |
| ALPHABETICAL | |
| REVERSE_ALPHABETICAL | |
◆ CurveSet() [1/2]
| axom::sina::CurveSet::CurveSet |
( |
std::string |
name | ) |
|
|
explicit |
Create a CurveSet with the given name.
- Parameters
-
◆ CurveSet() [2/2]
| axom::sina::CurveSet::CurveSet |
( |
std::string |
name, |
|
|
conduit::Node const & |
node |
|
) |
| |
Create a CurveSet from the given Conduit node.
- Parameters
-
◆ getName()
| std::string const& axom::sina::CurveSet::getName |
( |
| ) |
const |
|
inline |
Get the name of the this CurveSet.
- Returns
- the curve set's name
◆ getOrderedIndependentCurveNames()
| std::vector<std::string> const& axom::sina::CurveSet::getOrderedIndependentCurveNames |
( |
| ) |
|
|
inline |
Get the insertion order of this curveset's independents.
- Returns
- a vector of curve names in the order of insertion.
◆ getOrderedDependentCurveNames()
| std::vector<std::string> const& axom::sina::CurveSet::getOrderedDependentCurveNames |
( |
| ) |
|
|
inline |
Get the insertion order of this curveset's dependents.
- Returns
- a vector of curve names in the order of insertion.
◆ applyCustomIndependentCurveOrder()
| bool axom::sina::CurveSet::applyCustomIndependentCurveOrder |
( |
const std::vector< std::string > |
newOrderedCurveNames | ) |
|
Set the insertion order of this curveset's independents.
Note that this overwrites the INSERTION ORDER, meaning this is treated as the new "oldest first".
- Returns
- a bool for whether the reorder went through. Name lists must match exactly
◆ applyCustomDependentCurveOrder()
| bool axom::sina::CurveSet::applyCustomDependentCurveOrder |
( |
const std::vector< std::string > |
newOrderedCurveNames | ) |
|
Set the insertion order of this curveset's independents.
Note that this overwrites the INSERTION ORDER, meaning this is treated as the new "oldest first".
- Returns
- a bool for whether the reorder went through. Name lists must match exactly
◆ addIndependentCurve()
| void axom::sina::CurveSet::addIndependentCurve |
( |
Curve |
curve | ) |
|
Add an independent curve.
- Parameters
-
◆ addDependentCurve()
| void axom::sina::CurveSet::addDependentCurve |
( |
Curve |
curve | ) |
|
Add a dependent curve.
- Parameters
-
◆ getIndependentCurves()
| CurveMap const& axom::sina::CurveSet::getIndependentCurves |
( |
| ) |
const |
|
inline |
Get a map of all the independent curves.
- Returns
- a map of all the independent curves
◆ getDependentCurves()
| CurveMap const& axom::sina::CurveSet::getDependentCurves |
( |
| ) |
const |
|
inline |
Get a map of all the dependent curves.
- Returns
- a map of all the dependent curves
◆ toNode() [1/2]
| conduit::Node axom::sina::CurveSet::toNode |
( |
| ) |
const |
Convert this CurveSet to a Conduit node.
- Parameters
-
| curveOrder | The order to add curves to the node in. Ex: registration vs alphabetic |
- Returns
- the Node representation of this CurveSet
◆ toNode() [2/2]
| conduit::Node axom::sina::CurveSet::toNode |
( |
CurveOrder |
curveOrder | ) |
const |
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/sina/core/CurveSet.hpp