Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
blockEdge Class Referenceabstract

Define a curved edge that is parameterized for 0<lambda<1 between the start/end points. More...

Inheritance diagram for blockEdge:
Inheritance graph
[legend]
Collaboration diagram for blockEdge:
Collaboration graph
[legend]

Classes

class  iNew
 

Public Member Functions

 TypeName ("blockEdge")
 
 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)
 
 blockEdge (const dictionary &dict, const label index, const pointField &points, Istream &is)
 
virtual autoPtr< blockEdgeclone () const
 
virtual ~blockEdge ()=default
 
bool valid () const noexcept
 
label start () const noexcept
 
label end () const noexcept
 
const pointfirstPoint () const
 
const pointlastPoint () const
 
int compare (const blockEdge &e) const
 
int compare (const edge &e) const
 
int compare (const label start, const label end) const
 
point linearPosition (const scalar lambda) const
 
virtual point position (const scalar lambda) const =0
 
virtual tmp< pointFieldposition (const scalarList &lambdas) const
 
virtual scalar length () const =0
 
void write (Ostream &os, const dictionary &dict) const
 

Static Public Member Functions

static autoPtr< blockEdgeNew (const dictionary &dict, const label index, const searchableSurfaces &geometry, const pointField &points, Istream &is)
 

Protected Member Functions

 blockEdge (const pointField &points, const label from, const label to)
 

Static Protected Member Functions

static pointField appendEndPoints (const pointField &p, const label from, const label to, const pointField &intermediate)
 

Protected Attributes

const pointFieldpoints_
 
const label start_
 
const label end_
 

Friends

Ostreamoperator<< (Ostream &os, const blockEdge &e)
 

Detailed Description

Define a curved edge that is parameterized for 0<lambda<1 between the start/end points.

Source files

Definition at line 60 of file blockEdge.H.

Constructor & Destructor Documentation

◆ blockEdge() [1/3]

blockEdge ( const pointField points,
const label  from,
const label  to 
)
inlineprotected
Parameters
pointsReferenced point field
fromStart point in point field
toEnd point in point field

Definition at line 94 of file blockEdge.H.

◆ blockEdge() [2/3]

blockEdge ( const pointField points,
const edge fromTo 
)
Parameters
pointsReferenced point field
fromToStart/end in point field

Definition at line 38 of file blockEdge.C.

◆ blockEdge() [3/3]

blockEdge ( const dictionary dict,
const label  index,
const pointField points,
Istream is 
)
Parameters
pointsReferenced point field

Definition at line 50 of file blockEdge.C.

◆ ~blockEdge()

virtual ~blockEdge ( )
virtualdefault

Member Function Documentation

◆ appendEndPoints()

Foam::pointField appendEndPoints ( const pointField p,
const label  from,
const label  to,
const pointField intermediate 
)
staticprotected
Parameters
pReferenced point field
fromStart point in point field
toEnd point in point field
intermediateIntermediate points (knots)

Definition at line 103 of file blockEdge.C.

References polyLine::concat(), and p.

Here is the call graph for this function:

◆ TypeName()

TypeName ( "blockEdge"  )

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
blockEdge  ,
Istream  ,
(const dictionary &dict, const label index, const searchableSurfaces &geometry, const pointField &points, Istream &is)  ,
(dict, index, geometry, points, is)   
)

◆ clone()

Foam::autoPtr< Foam::blockEdge > clone ( ) const
virtual

Definition at line 63 of file blockEdge.C.

References NotImplemented.

◆ New()

Foam::autoPtr< Foam::blockEdge > New ( const dictionary dict,
const label  index,
const searchableSurfaces geometry,
const pointField points,
Istream is 
)
static

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()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ valid()

bool valid ( ) const
inlinenoexcept

Definition at line 24 of file blockEdgeI.H.

References blockEdge::end_, and blockEdge::start_.

◆ start()

Foam::label start ( ) const
inlinenoexcept

Definition at line 30 of file blockEdgeI.H.

◆ end()

Foam::label end ( ) const
inlinenoexcept

Definition at line 36 of file blockEdgeI.H.

◆ firstPoint()

const Foam::point & firstPoint ( ) const
inline

Definition at line 42 of file blockEdgeI.H.

◆ lastPoint()

const Foam::point & lastPoint ( ) const
inline

Definition at line 48 of file blockEdgeI.H.

◆ compare() [1/3]

int compare ( const blockEdge e) const
inline

Definition at line 69 of file blockEdgeI.H.

References Foam::constant::electromagnetic::e.

Referenced by blockEdge::compare().

Here is the caller graph for this function:

◆ compare() [2/3]

int compare ( const edge e) const
inline

Definition at line 75 of file blockEdgeI.H.

References blockEdge::compare(), and Foam::constant::electromagnetic::e.

Here is the call graph for this function:

◆ compare() [3/3]

int compare ( const label  start,
const label  end 
) const
inline

Definition at line 54 of file blockEdgeI.H.

References stdFoam::end().

Here is the call graph for this function:

◆ linearPosition()

Foam::point linearPosition ( const scalar  lambda) const
inline

Definition at line 81 of file blockEdgeI.H.

References InfoInFunction, lambda(), and Foam::nl.

Referenced by lineEdge::position(), projectEdge::position(), and projectCurveEdge::position().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ position() [1/2]

virtual point position ( const scalar  lambda) const
pure virtual

Implemented in splineEdge, BSplineEdge, projectEdge, projectCurveEdge, lineEdge, arcEdge, bezier, and polyLineEdge.

Referenced by lineDivide::lineDivide().

Here is the caller graph for this function:

◆ position() [2/2]

Foam::tmp< Foam::pointField > position ( const scalarList lambdas) const
virtual

Reimplemented in projectEdge, and projectCurveEdge.

Definition at line 117 of file blockEdge.C.

References forAll, tmp::New(), and points.

Here is the call graph for this function:

◆ length()

virtual scalar length ( ) const
pure virtual

◆ write()

void write ( Ostream os,
const dictionary dict 
) const

Definition at line 130 of file blockEdge.C.

References dict, Foam::endl(), os(), Foam::tab, and blockVertex::write().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream os,
const blockEdge e 
)
friend

Member Data Documentation

◆ points_

const pointField& points_
protected

Definition at line 67 of file blockEdge.H.

◆ start_

const label start_
protected

Definition at line 70 of file blockEdge.H.

Referenced by blockEdge::valid().

◆ end_

const label end_
protected

Definition at line 73 of file blockEdge.H.

Referenced by blockEdge::valid().


The documentation for this class was generated from the following files: