Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | Friends
curvedEdge Class Referenceabstract

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

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

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< curvedEdgeclone () 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< curvedEdgeNew (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 pointFieldpoints_
 
const label start_
 
const label end_
 

Friends

Ostreamoperator<< (Ostream &, const curvedEdge &)
 

Detailed Description

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

Source files

Definition at line 53 of file curvedEdge.H.

Constructor & Destructor Documentation

◆ curvedEdge() [1/3]

curvedEdge ( const pointField points,
const label  start,
const label  end 
)

Construct from components.

Definition at line 41 of file curvedEdge.C.

◆ curvedEdge() [2/3]

curvedEdge ( const pointField points,
Istream is 
)

Construct from Istream setting pointsList.

Definition at line 53 of file curvedEdge.C.

◆ curvedEdge() [3/3]

curvedEdge ( const curvedEdge c)

Copy construct.

Definition at line 61 of file curvedEdge.C.

◆ ~curvedEdge()

virtual ~curvedEdge ( )
inlinevirtual

Destructor.

Definition at line 120 of file curvedEdge.H.

Member Function Documentation

◆ appendEndPoints()

Foam::pointField appendEndPoints ( const pointField points,
const label  start,
const label  end,
const pointField otherKnots 
)
staticprotected

Return a complete point field by appending the start/end points.

to the given list

Definition at line 111 of file curvedEdge.C.

References forAll, and points.

◆ TypeName()

TypeName ( "curvedEdge"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
curvedEdge  ,
Istream  ,
(const pointField &points, Istream &is)  ,
(points, is)   
)

◆ clone()

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

Clone function.

Definition at line 69 of file curvedEdge.C.

References NotImplemented.

◆ New()

Foam::autoPtr< Foam::curvedEdge > New ( const pointField points,
Istream is 
)
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.

Here is the call graph for this function:

◆ start()

Foam::label start ( ) const
inline

Return label of start point.

Definition at line 28 of file curvedEdgeI.H.

References curvedEdge::start_.

◆ end()

Foam::label end ( ) const
inline

Return label of end point.

Definition at line 34 of file curvedEdgeI.H.

◆ compare() [1/3]

int compare ( const curvedEdge e) const
inline

Compare the given start and end points with this curve.

Return:

  • 0: different
  • +1: identical
  • -1: same edge, but different orientation

Definition at line 57 of file curvedEdgeI.H.

References Foam::e.

Referenced by curvedEdge::compare(), and blockDescriptor::setEdge().

Here is the caller graph for this function:

◆ compare() [2/3]

int compare ( const edge e) const
inline

Compare the given start and end points with this curve.

Return:

  • 0: different
  • +1: identical
  • -1: same edge, but different orientation

Definition at line 63 of file curvedEdgeI.H.

References curvedEdge::compare(), and Foam::e.

Here is the call graph for this function:

◆ compare() [3/3]

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

Compare the given start and end points with this curve.

Return:

  • 0: different
  • +1: identical
  • -1: same edge, but different orientation

Definition at line 40 of file curvedEdgeI.H.

◆ position()

virtual point position ( const  scalar) const
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().

Here is the caller graph for this function:

◆ length()

virtual scalar length ( ) const
pure virtual

Return the length of the curve.

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

◆ operator=()

void operator= ( const curvedEdge )

Definition at line 136 of file curvedEdge.C.

References NotImplemented.

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream ,
const curvedEdge  
)
friend

Field Documentation

◆ points_

const pointField& points_
protected

Definition at line 59 of file curvedEdge.H.

◆ start_

const label start_
protected

Definition at line 60 of file curvedEdge.H.

Referenced by curvedEdge::start().

◆ end_

const label end_
protected

Definition at line 61 of file curvedEdge.H.


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