Define a curved edge that is parameterized for 0<lambda<1 between the start/end points. 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 edge &fromTo) | |
| Construct from components. More... | |
| blockEdge (const dictionary &dict, const label index, const pointField &points, Istream &is) | |
| Construct from Istream and point field. More... | |
| virtual autoPtr< blockEdge > | clone () const |
| Clone function. More... | |
| virtual | ~blockEdge ()=default |
| Destructor. More... | |
| bool | good () const noexcept |
| True if first/last indices are unique and non-negative. More... | |
| bool | valid () const noexcept |
| Same as good() More... | |
| label | start () const noexcept |
| Index of start (first) point. More... | |
| label | end () const noexcept |
| Index of end (last) point. More... | |
| const point & | firstPoint () const |
| The location of the first point. More... | |
| const point & | lastPoint () const |
| The location of the last point. More... | |
| int | compare (const blockEdge &e) const |
| Compare the given start/end points with this block edge. More... | |
| int | compare (const edge &e) const |
| Compare the given start/end points with this block edge. More... | |
| int | compare (const label start, const label end) const |
| Compare the given start/end points with this block edge. More... | |
| point | linearPosition (const scalar lambda) const |
| The point position in the straight line. More... | |
| virtual point | position (const scalar lambda) const =0 |
| The point position corresponding to the curve parameter. More... | |
| virtual tmp< pointField > | position (const scalarList &lambdas) const |
| The point positions corresponding to the curve parameters. More... | |
| virtual scalar | length () const =0 |
| The length of the curve. More... | |
| void | write (Ostream &os, const dictionary &dict) const |
| Write edge with variable back-substitution. More... | |
Static Public Member Functions | |
| static autoPtr< blockEdge > | New (const dictionary &dict, const label index, const searchableSurfaces &geometry, const pointField &points, Istream &is) |
| New function which constructs and returns pointer to a blockEdge. More... | |
Protected Member Functions | |
| blockEdge (const pointField &points, const label from, const label to) | |
| Construct from components. More... | |
Static Protected Member Functions | |
| static pointField | appendEndPoints (const pointField &p, const label from, const label to, const pointField &intermediate) |
| Return a complete point field by appending the start/end points to the given list. More... | |
Protected Attributes | |
| const pointField & | points_ |
| The referenced point field. More... | |
| const label | start_ |
| Index of the first point. More... | |
| const label | end_ |
| Index of the last point. More... | |
Friends | |
| Ostream & | operator<< (Ostream &os, const blockEdge &e) |
Define a curved edge that is parameterized for 0<lambda<1 between the start/end points.
Definition at line 60 of file blockEdge.H.
|
inlineprotected |
Construct from components.
| points | Referenced point field |
| from | Start point in point field |
| to | End point in point field |
Definition at line 106 of file blockEdge.H.
| blockEdge | ( | const pointField & | points, |
| const edge & | fromTo | ||
| ) |
Construct from components.
| points | Referenced point field |
| fromTo | Start/end in point field |
Definition at line 38 of file blockEdge.C.
| blockEdge | ( | const dictionary & | dict, |
| const label | index, | ||
| const pointField & | points, | ||
| Istream & | is | ||
| ) |
Construct from Istream and point field.
| points | Referenced point field |
Definition at line 50 of file blockEdge.C.
|
virtualdefault |
Destructor.
|
staticprotected |
Return a complete point field by appending the start/end points to the given list.
| p | Referenced point field |
| from | Start point in point field |
| to | End point in point field |
| intermediate | Intermediate points (knots) |
Definition at line 103 of file blockEdge.C.
References polyLine::concat(), and p.

| 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 71 of file blockEdge.C.
References Foam::abort(), DebugInFunction, dict, Foam::endl(), Foam::FatalIOError, FatalIOErrorInLookup, and points.
Referenced by blockEdge::iNew::operator()().


|
inlinenoexcept |
True if first/last indices are unique and non-negative.
Definition at line 24 of file blockEdgeI.H.
References blockEdge::end_, and blockEdge::start_.
Referenced by blockEdge::valid().

|
inlinenoexcept |
Same as good()
Definition at line 229 of file blockEdge.H.
References blockEdge::good().

|
inlinenoexcept |
Index of start (first) point.
Definition at line 30 of file blockEdgeI.H.
|
inlinenoexcept |
Index of end (last) point.
Definition at line 36 of file blockEdgeI.H.
|
inline |
The location of the first point.
Definition at line 42 of file blockEdgeI.H.
|
inline |
The location of the last point.
Definition at line 48 of file blockEdgeI.H.
|
inline |
Compare the given start/end points with this block edge.
Return:
Definition at line 69 of file blockEdgeI.H.
References Foam::constant::electromagnetic::e.
Referenced by blockEdge::compare().

|
inline |
Compare the given start/end points with this block edge.
Return:
Definition at line 75 of file blockEdgeI.H.
References blockEdge::compare(), and Foam::constant::electromagnetic::e.

|
inline |
Compare the given start/end points with this block edge.
Return:
Definition at line 54 of file blockEdgeI.H.
References stdFoam::end().

|
inline |
The point position in the straight line.
0 <= lambda <= 1
Definition at line 81 of file blockEdgeI.H.
References InfoInFunction, lambda(), and Foam::nl.
Referenced by lineEdge::position(), projectEdge::position(), and projectCurveEdge::position().


|
pure virtual |
The point position corresponding to the curve parameter.
0 <= lambda <= 1
Implemented in arcEdge, bezier, splineEdge, BSplineEdge, polyLineEdge, projectEdge, projectCurveEdge, and lineEdge.
Referenced by lineDivide::lineDivide().

|
virtual |
The point positions corresponding to the curve parameters.
0 <= lambda <= 1
Reimplemented in projectEdge, and projectCurveEdge.
Definition at line 117 of file blockEdge.C.
References forAll, tmp< T >::New(), points, and UList< T >::size().

|
pure virtual |
The length of the curve.
Implemented in arcEdge, bezier, projectEdge, splineEdge, BSplineEdge, projectCurveEdge, polyLineEdge, and lineEdge.
| void write | ( | Ostream & | os, |
| const dictionary & | dict | ||
| ) | const |
Write edge with variable back-substitution.
Definition at line 130 of file blockEdge.C.
References dict, Foam::endl(), os(), Foam::tab, and blockVertex::write().

|
protected |
The referenced point field.
Definition at line 69 of file blockEdge.H.
|
protected |
Index of the first point.
Definition at line 74 of file blockEdge.H.
Referenced by blockEdge::good().
|
protected |
Index of the last point.
Definition at line 79 of file blockEdge.H.
Referenced by blockEdge::good().