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