Go to the documentation of this file.
41 #ifndef searchableSurface_H
42 #define searchableSurface_H
122 word surfaceType(is);
127 namedIO().rename(readName);
150 const word& surfaceType,
353 const bool keepNonLocal,
virtual ~searchableSurface()
Destructor.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Class used for the read-construction of.
const boundBox & bounds() const
Return const reference to boundBox.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from string.
virtual void getNormal(const List< pointIndexHit > &, vectorField &normal) const =0
From a set of points and indices get the normal.
A class for managing temporary objects.
virtual tmp< pointField > coordinates() const =0
Get representative set of element coordinates.
virtual label globalSize() const
Range of global indices that can be returned.
virtual autoPtr< searchableSurface > clone() const
Clone.
virtual label size() const =0
Range of local indices that can be returned.
InfoProxy< IOobject > info() const
Return info proxy.
virtual bool hasVolumeType() const =0
Whether supports volume type below.
scalarField samples(nIntervals, 0)
virtual void getRegion(const List< pointIndexHit > &, labelList ®ion) const =0
From a set of points and indices get the region.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
searchableSurface(const searchableSurface &)
Disallow default bitwise copy construct.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
virtual const wordList & regions() const =0
Names of regions.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual tmp< pointField > points() const =0
Get the points that define the surface.
virtual bool overlaps(const boundBox &bb) const =0
Does any part of the surface overlap the supplied bound box?
virtual void findLineAny(const pointField &start, const pointField &end, List< pointIndexHit > &) const =0
Return any intersection on segment from start to end.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
void operator=(const searchableSurface &)
Disallow default bitwise assignment.
autoPtr< searchableSurface > operator()(Istream &is) const
TypeName("searchableSurface")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void findNearest(const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &) const =0
static autoPtr< searchableSurface > New(const word &surfaceType, const IOobject &io, const dictionary &dict)
Return a reference to the selected searchableSurface.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Macros to ease declaration of run-time selection tables.
virtual void setField(const labelList &values)
WIP. Store element-wise field.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Foam::autoPtr< IOobject > clone() const
Clone.
void clear()
Clear the list, i.e. set size to zero.
A bounding box defined in terms of the points at its extremities.
virtual void boundingSpheres(pointField ¢res, scalarField &radiusSqr) const =0
Get bounding spheres (centre and radius squared), one per element.
boundBox & bounds()
Return non-const access to the boundBox to allow it to be set.
declareRunTimeSelectionTable(autoPtr, searchableSurface, dict,(const IOobject &io, const dictionary &dict),(io, dict))
virtual void findLineAll(const pointField &start, const pointField &end, List< List< pointIndexHit > > &) const =0
Get all intersections in order from start to end.
virtual void findLine(const pointField &start, const pointField &end, List< pointIndexHit > &) const =0
Find first intersection on segment from start to end.
virtual void distribute(const List< treeBoundBox > &, const bool keepNonLocal, autoPtr< mapDistribute > &faceMap, autoPtr< mapDistribute > &pointMap)
Set bounds of surface. Bounds currently set as list of.
virtual void getField(const List< pointIndexHit > &, labelList &values) const
WIP. From a set of hits (points and.
virtual void getVolumeType(const pointField &, List< volumeType > &) const =0
Determine type (inside/outside) for point. unknown if.
A normal distribution model.