Define a curved edge that is parameterized for 0<lambda<1 between the start and end point. More...
Public Member Functions | |
TypeName ("curvedEdge") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, curvedEdge, Istream,(const pointField &points, Istream &is),(points, is)) | |
curvedEdge (const pointField &points, const label start, const label end) | |
Construct from components. More... | |
curvedEdge (const pointField &, Istream &) | |
Construct from Istream setting pointsList. More... | |
curvedEdge (const curvedEdge &) | |
Copy construct. More... | |
virtual autoPtr< curvedEdge > | clone () const |
Clone function. More... | |
virtual | ~curvedEdge () |
Destructor. More... | |
label | start () const |
Return label of start point. More... | |
label | end () const |
Return label of end point. More... | |
int | compare (const curvedEdge &) const |
Compare the given start and end points with this curve. More... | |
int | compare (const edge &) const |
Compare the given start and end points with this curve. More... | |
int | compare (const label start, const label end) const |
Compare the given start and end points with this curve. More... | |
virtual point | position (const scalar) const =0 |
Return the point position corresponding to the curve parameter. More... | |
virtual scalar | length () const =0 |
Return the length of the curve. More... | |
void | operator= (const curvedEdge &) |
Static Public Member Functions | |
static autoPtr< curvedEdge > | New (const pointField &, Istream &) |
New function which constructs and returns pointer to a curvedEdge. More... | |
Static Protected Member Functions | |
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. More... | |
Protected Attributes | |
const pointField & | points_ |
const label | start_ |
const label | end_ |
Friends | |
Ostream & | operator<< (Ostream &, const curvedEdge &) |
Define a curved edge that is parameterized for 0<lambda<1 between the start and end point.
Definition at line 53 of file curvedEdge.H.
curvedEdge | ( | const pointField & | points, |
const label | start, | ||
const label | end | ||
) |
Construct from components.
Definition at line 41 of file curvedEdge.C.
curvedEdge | ( | const pointField & | points, |
Istream & | is | ||
) |
Construct from Istream setting pointsList.
Definition at line 53 of file curvedEdge.C.
curvedEdge | ( | const curvedEdge & | c | ) |
Copy construct.
Definition at line 61 of file curvedEdge.C.
|
inlinevirtual |
Destructor.
Definition at line 120 of file curvedEdge.H.
|
staticprotected |
Return a complete point field by appending the start/end points.
to the given list
Definition at line 111 of file curvedEdge.C.
TypeName | ( | "curvedEdge" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
curvedEdge | , | ||
Istream | , | ||
(const pointField &points, Istream &is) | , | ||
(points, is) | |||
) |
|
virtual |
|
static |
New function which constructs and returns pointer to a curvedEdge.
Definition at line 77 of file curvedEdge.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::nl, and points.
|
inline |
Return label of start point.
Definition at line 28 of file curvedEdgeI.H.
References curvedEdge::start_.
|
inline |
Return label of end point.
Definition at line 34 of file curvedEdgeI.H.
|
inline |
Compare the given start and end points with this curve.
Return:
Definition at line 57 of file curvedEdgeI.H.
References Foam::e.
Referenced by curvedEdge::compare(), and blockDescriptor::setEdge().
|
inline |
Compare the given start and end points with this curve.
Return:
Definition at line 63 of file curvedEdgeI.H.
References curvedEdge::compare(), and Foam::e.
Compare the given start and end points with this curve.
Return:
Definition at line 40 of file curvedEdgeI.H.
|
pure virtual |
Return the point position corresponding to the curve parameter.
0 <= lambda <= 1
Implemented in arcEdge, BSplineEdge, splineEdge, lineEdge, bezier, and polyLineEdge.
Referenced by lineDivide::lineDivide().
|
pure virtual |
Return the length of the curve.
Implemented in bezier, arcEdge, BSplineEdge, polyLineEdge, splineEdge, and lineEdge.
void operator= | ( | const curvedEdge & | ) |
Definition at line 136 of file curvedEdge.C.
References NotImplemented.
|
friend |
|
protected |
Definition at line 59 of file curvedEdge.H.
|
protected |
Definition at line 60 of file curvedEdge.H.
Referenced by curvedEdge::start().
|
protected |
Definition at line 61 of file curvedEdge.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.