158 virtual scalar
length()
const = 0;
const pointField & points
static autoPtr< curvedEdge > New(const pointField &, Istream &)
New function which constructs and returns pointer to a curvedEdge.
void operator=(const curvedEdge &)
Define a curved edge that is parameterized for 0<lambda<1 between the start and end point...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
label start() const
Return label of start point.
virtual autoPtr< curvedEdge > clone() const
Clone function.
const pointField & points_
TypeName("curvedEdge")
Runtime type information.
curvedEdge(const pointField &points, const label start, const label end)
Construct from components.
virtual ~curvedEdge()
Destructor.
static pointField appendEndPoints(const pointField &, const label start, const label end, const pointField &otherKnots)
Return a complete point field by appending the start/end points.
declareRunTimeSelectionTable(autoPtr, curvedEdge, Istream,( const pointField &points, Istream &is ),(points, is))
int compare(const curvedEdge &) const
Compare the given start and end points with this curve.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual scalar length() const =0
Return the length of the curve.
label end() const
Return label of end point.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
friend Ostream & operator<<(Ostream &, const curvedEdge &)
virtual point position(const scalar) const =0
Return the point position corresponding to the curve parameter.