Define a curved edge that is parameterized for 0<lambda<1 between the start and end point. More...
Classes | |
class | iNew |
Class used for the read-construction of. More... | |
Public Member Functions | |
TypeName ("blockEdge") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, blockEdge, Istream,(const dictionary &dict, const label index, const searchableSurfaces &geometry, const pointField &points, Istream &is),(dict, index, geometry, points, is)) | |
blockEdge (const pointField &points, const label start, const label end) | |
Construct from components. More... | |
blockEdge (const dictionary &dict, const label index, const pointField &, Istream &) | |
Construct from Istream setting pointsList. More... | |
virtual autoPtr< blockEdge > | clone () const |
Clone function. More... | |
virtual | ~blockEdge () |
Destructor. More... | |
label | start () const |
Return label of start point. More... | |
label | end () const |
Return label of end point. More... | |
int | compare (const blockEdge &) 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 tmp< pointField > | position (const scalarList &) const |
Return the point positions corresponding to the curve parameters. More... | |
virtual scalar | length () const =0 |
Return the length of the curve. More... | |
void | write (Ostream &, const dictionary &) const |
Write edge with variable backsubstitution. More... | |
Static Public Member Functions | |
static autoPtr< blockEdge > | New (const dictionary &dict, const label index, const searchableSurfaces &geometry, const pointField &, Istream &) |
New function which constructs and returns pointer to a blockEdge. 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 blockEdge &) |
Define a curved edge that is parameterized for 0<lambda<1 between the start and end point.
Definition at line 56 of file blockEdge.H.
blockEdge | ( | const pointField & | points, |
const label | start, | ||
const label | end | ||
) |
Construct from components.
Definition at line 41 of file blockEdge.C.
blockEdge | ( | const dictionary & | dict, |
const label | index, | ||
const pointField & | points, | ||
Istream & | is | ||
) |
Construct from Istream setting pointsList.
Definition at line 54 of file blockEdge.C.
|
inlinevirtual |
Destructor.
Definition at line 168 of file blockEdge.H.
References blockEdge::compare(), blockEdge::end(), blockEdge::length(), blockEdge::operator<<, blockEdge::position(), blockEdge::start(), and blockEdge::write().
|
staticprotected |
Return a complete point field by appending the start/end points.
to the given list
Definition at line 110 of file blockEdge.C.
References forAll, and List< T >::size().
Referenced by blockEdge::New().
TypeName | ( | "blockEdge" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
blockEdge | , | ||
Istream | , | ||
(const dictionary &dict, const label index, const searchableSurfaces &geometry, const pointField &points, Istream &is) | , | ||
(dict, index, geometry, points, is) | |||
) |
|
virtual |
Clone function.
Definition at line 67 of file blockEdge.C.
References blockEdge::New(), and NotImplemented.
|
static |
New function which constructs and returns pointer to a blockEdge.
Definition at line 75 of file blockEdge.C.
References Foam::abort(), blockEdge::appendEndPoints(), dict, Foam::endl(), Foam::FatalError, FatalErrorInFunction, InfoInFunction, Foam::nl, and points.
Referenced by blockEdge::clone(), and blockEdge::iNew::operator()().
|
inline |
Return label of start point.
Definition at line 28 of file blockEdgeI.H.
References blockEdge::start_.
Referenced by blockEdge::compare(), and blockEdge::~blockEdge().
|
inline |
Return label of end point.
Definition at line 34 of file blockEdgeI.H.
References blockEdge::end_.
Referenced by blockEdge::compare(), and blockEdge::~blockEdge().
|
inline |
Compare the given start and end points with this curve.
Return:
Definition at line 57 of file blockEdgeI.H.
References blockEdge::end(), and blockEdge::start().
Referenced by blockEdge::compare(), and blockEdge::~blockEdge().
|
inline |
Compare the given start and end points with this curve.
Return:
Definition at line 63 of file blockEdgeI.H.
References blockEdge::compare(), edge::end(), and edge::start().
Compare the given start and end points with this curve.
Return:
Definition at line 40 of file blockEdgeI.H.
References blockEdge::end_, and blockEdge::start_.
|
pure virtual |
Return the point position corresponding to the curve parameter.
0 <= lambda <= 1
Implemented in arcEdge, projectEdge, BSplineEdge, polyLineEdge, splineEdge, projectCurveEdge, and lineEdge.
Referenced by lineDivide::lineDivide(), and blockEdge::~blockEdge().
|
virtual |
Return the point positions corresponding to the curve parameters.
0 <= lambda <= 1
Reimplemented in projectEdge, and projectCurveEdge.
Definition at line 134 of file blockEdge.C.
References forAll, tmp< T >::ref(), and List< T >::size().
|
pure virtual |
Return the length of the curve.
Implemented in arcEdge, projectEdge, projectCurveEdge, BSplineEdge, polyLineEdge, splineEdge, and lineEdge.
Referenced by blockEdge::~blockEdge().
void write | ( | Ostream & | os, |
const dictionary & | d | ||
) | const |
Write edge with variable backsubstitution.
Definition at line 147 of file blockEdge.C.
References Foam::endl(), Foam::tab, and blockVertex::write().
Referenced by blockEdge::~blockEdge().
Referenced by blockEdge::~blockEdge().
|
protected |
Definition at line 62 of file blockEdge.H.
|
protected |
Definition at line 64 of file blockEdge.H.
Referenced by blockEdge::compare(), Foam::operator<<(), and blockEdge::start().
|
protected |
Definition at line 65 of file blockEdge.H.
Referenced by blockEdge::compare(), blockEdge::end(), and Foam::operator<<().