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 ()=default |
| 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 59 of file blockEdge.H.
| blockEdge | ( | const pointField & | points, |
| const label | start, | ||
| const label | end | ||
| ) |
Construct from components.
Definition at line 44 of file blockEdge.C.
| blockEdge | ( | const dictionary & | dict, |
| const label | index, | ||
| const pointField & | points, | ||
| Istream & | is | ||
| ) |
Construct from Istream setting pointsList.
Definition at line 57 of file blockEdge.C.
|
virtualdefault |
Destructor.
|
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 stdFoam::end(), forAll, and points.
| 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 |
|
static |
New function which constructs and returns pointer to a blockEdge.
Definition at line 78 of file blockEdge.C.
References Foam::abort(), DebugInFunction, dict, Foam::endl(), Foam::FatalIOError, FatalIOErrorInLookup, and points.
Referenced by blockEdge::iNew::operator()().
|
inline |
Return label of start point.
Definition at line 30 of file blockEdgeI.H.
References blockEdge::start_.
Referenced by projectCurveEdge::position().
|
inline |
Return label of end point.
Definition at line 36 of file blockEdgeI.H.
|
inline |
Compare the given start and end points with this curve.
Return:
Definition at line 59 of file blockEdgeI.H.
References Foam::constant::electromagnetic::e.
Referenced by blockEdge::compare().
|
inline |
Compare the given start and end points with this curve.
Return:
Definition at line 65 of file blockEdgeI.H.
References blockEdge::compare(), and Foam::constant::electromagnetic::e.
|
inline |
Compare the given start and end points with this curve.
Return:
Definition at line 42 of file blockEdgeI.H.
References stdFoam::end().
|
pure virtual |
Return the point position corresponding to the curve parameter.
0 <= lambda <= 1
Implemented in projectEdge, BSplineEdge, splineEdge, projectCurveEdge, lineEdge, arcEdge, bezier, and polyLineEdge.
Referenced by lineDivide::lineDivide().
|
virtual |
Return the point positions corresponding to the curve parameters.
0 <= lambda <= 1
Reimplemented in projectCurveEdge, and projectEdge.
Definition at line 134 of file blockEdge.C.
References forAll, points, and tmp< T >::ref().
|
pure virtual |
Return the length of the curve.
Implemented in arcEdge, bezier, projectCurveEdge, projectEdge, BSplineEdge, polyLineEdge, splineEdge, and lineEdge.
| 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().
|
protected |
Definition at line 65 of file blockEdge.H.
Referenced by lineEdge::position(), and projectCurveEdge::position().
|
protected |
Definition at line 67 of file blockEdge.H.
Referenced by lineEdge::position(), projectCurveEdge::position(), and blockEdge::start().
|
protected |
Definition at line 68 of file blockEdge.H.
Referenced by lineEdge::position(), and projectCurveEdge::position().