38 #ifndef Foam_coordSet_H 39 #define Foam_coordSet_H 182 static_cast<pointField&
>(*this) = std::move(newPoints);
Use 'x' component of points for (scalar) axis.
const word & axis() const
The sort axis name.
Use 'y' component of points for (scalar) axis.
Use 'z' component of points for (scalar) axis.
const scalarList & curveDist() const noexcept
Return the cumulative distance.
const scalarList & distance() const noexcept
Return the cumulative distance.
const vector & vectorCoord(const label index) const
Get point according to axis="xyz" specification.
autoPtr< coordSet > gatherSort(labelList &sortOrder) const
Gather and sort.
bool hasVectorAxis() const noexcept
True if axis specification is a vector.
void setDistance(const scalarList &dist, const bool check=true)
Copy assign the cumulative distance.
vectorField pointField
pointField is a vectorField.
Holds list of sampling positions.
label nPoints() const noexcept
Return the number of points.
void checkDimensions() const
Check for consistent dimensions of points and curve distance.
A class for handling words, derived from Foam::string.
Ostream & write(Ostream &os) const
Write to stream.
scalarList distance_
Cumulative distance for "distance" write specifier.
const pointField & points() const noexcept
Return the points.
void setCurveDist(const scalarList &dist)
Copy assign the cumulative distance.
coordFormat
Enumeration defining the output format for coordinates.
const word & name() const noexcept
The coord-set name.
void rename(const word &newName)
Rename the coordinate set.
coordFormat axis_
Axis type.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
label size() const noexcept
The number of elements in the container.
OBJstream os(runTime.globalPath()/outputName)
static void check(const int retVal, const char *what)
Use mag of points for (scalar) axis.
coordSet(const word &name, const coordFormat axisType)
Default construct with name and axis type.
Use additional distance field for (scalar) axis.
void setPoints(const List< point > &newPoints)
Copy assign new points.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
scalar scalarCoord(const label index) const
Get coordinate of point according to axis specification.
static const Enum< coordFormat > coordFormatNames
String representation of coordFormat enum.