Loading...
Searching...
No Matches
surfaceLocation Class Reference

Contains information about location on a triSurface. More...

#include <surfaceLocation.H>

Inheritance diagram for surfaceLocation:
Collaboration diagram for surfaceLocation:

Public Member Functions

 surfaceLocation ()
 Default construct.
 surfaceLocation (const pointIndexHit &pHit, const triPointRef::proxType elementType, const label triangle)
 Construct from components.
 surfaceLocation (Istream &is)
 Construct from Istream.
triPointRef::proxTypeelementType () noexcept
triPointRef::proxType elementType () const noexcept
label & triangle () noexcept
label triangle () const noexcept
vector normal (const triSurface &s) const
 Normal. Approximate for points.
InfoProxy< surfaceLocationinfo () const noexcept
 Return info proxy, to print information to a stream.
void write (Ostream &os, const triSurface &s) const
 Write info about selected face index to a stream.
Public Member Functions inherited from PointIndexHit< point >
 PointIndexHit ()
 Default construct. A zero point, with no hit and index = -1.
 PointIndexHit (const point_type &p)
 Construct from a point, with no hit and index = -1.
 PointIndexHit (const PointHit< point_type > &p, label index=-1)
 Construct from hitPoint with index = -1 or specified.
 PointIndexHit (const PointIndexHit< point_type > &p, label index)
 Copy construct with different index.
 PointIndexHit (bool success, const point_type &p, label index)
 Construct from components.
 PointIndexHit (Istream &is)
 Construct from Istream.
bool hit () const noexcept
 Is there a hit?
label index () const noexcept
 Return the hit index.
const point_typepoint () const noexcept
 Return point, no checks.
point_typepoint () noexcept
 Access the point, no checks.
const point_typehitPoint () const
 Return hit point. Fatal if not hit.
const point_typemissPoint () const
 Return miss point. Fatal if hit.
const point_typerawPoint () const noexcept
 The point, no checks. Same as point().
point_typerawPoint () noexcept
 The point, no checks. Same as point().
void setHit () noexcept
 Set the hit status on.
void setMiss () noexcept
 Set the hit status off.
void setPoint (const point_type &p)
 Set the point.
void setIndex (const label index) noexcept
 Set the index.
void hitPoint (const point_type &p)
 Set the point as hit without changing the hit-index.
void hitPoint (const point_type &p, const label index)
 Set the point as hit and set the hit-index.
void write (Ostream &os)
 Report hit/miss status, point and index.
bool operator== (const PointIndexHit &rhs) const
 Test for equality of all components.
bool operator!= (const PointIndexHit &rhs) const
 Test for inequality of components.

Friends

Istreamoperator>> (Istream &is, surfaceLocation &sl)
Ostreamoperator<< (Ostream &os, const surfaceLocation &sl)

Additional Inherited Members

Public Types inherited from PointIndexHit< point >
typedef point point_type
 The point type.

Detailed Description

Contains information about location on a triSurface.

Access to data:

Source files

Definition at line 69 of file surfaceLocation.H.

Constructor & Destructor Documentation

◆ surfaceLocation() [1/3]

surfaceLocation ( )
inline

Default construct.

Definition at line 87 of file surfaceLocation.H.

Referenced by operator<<, and operator>>.

Here is the caller graph for this function:

◆ surfaceLocation() [2/3]

surfaceLocation ( const pointIndexHit & pHit,
const triPointRef::proxType elementType,
const label triangle )
inline

Construct from components.

Definition at line 97 of file surfaceLocation.H.

References elementType(), and triangle().

Here is the call graph for this function:

◆ surfaceLocation() [3/3]

surfaceLocation ( Istream & is)
inlineexplicit

Construct from Istream.

Definition at line 112 of file surfaceLocation.H.

References Foam::readLabel().

Here is the call graph for this function:

Member Function Documentation

◆ elementType() [1/2]

triPointRef::proxType & elementType ( )
inlinenoexcept

Definition at line 122 of file surfaceLocation.H.

References Foam::noexcept.

Referenced by triSurfaceTools::classify(), surfaceLocation(), triSurfaceTools::trackToEdge(), and write().

Here is the caller graph for this function:

◆ elementType() [2/2]

triPointRef::proxType elementType ( ) const
inlinenoexcept

Definition at line 127 of file surfaceLocation.H.

References Foam::noexcept.

◆ triangle() [1/2]

label & triangle ( )
inlinenoexcept

Definition at line 132 of file surfaceLocation.H.

References Foam::noexcept.

Referenced by surfaceLocation(), triSurfaceTools::track(), and triSurfaceTools::trackToEdge().

Here is the caller graph for this function:

◆ triangle() [2/2]

label triangle ( ) const
inlinenoexcept

Definition at line 137 of file surfaceLocation.H.

References Foam::noexcept.

◆ normal()

Foam::vector normal ( const triSurface & s) const

Normal. Approximate for points.

Definition at line 27 of file surfaceLocation.C.

References triangle< point, const point & >::EDGE, PointIndexHit< point >::index(), Foam::mag(), n, triangle< point, const point & >::NONE, s(), UList< T >::size(), and Foam::Zero.

Here is the call graph for this function:

◆ info()

InfoProxy< surfaceLocation > info ( ) const
inlinenoexcept

Return info proxy, to print information to a stream.

Definition at line 151 of file surfaceLocation.H.

References Foam::noexcept.

◆ write()

void write ( Ostream & os,
const triSurface & s ) const

Write info about selected face index to a stream.

Definition at line 65 of file surfaceLocation.C.

References e, triangle< point, const point & >::EDGE, elementType(), PointIndexHit< point >::index(), triangle< point, const point & >::NONE, os(), and s().

Here is the call graph for this function:

◆ operator>>

Istream & operator>> ( Istream & is,
surfaceLocation & sl )
friend

References surfaceLocation().

◆ operator<<

Ostream & operator<< ( Ostream & os,
const surfaceLocation & sl )
friend

References os(), and surfaceLocation().


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