49 setToPointZone::typeName,
50 "\n Usage: setToPointZone <pointSet>\n\n"
51 " Select all points in the pointSet.\n\n"
101 <<
"Operation only allowed on a pointZoneSet." <<
endl;
112 Info<<
" Adding all points from point set: "
113 << setName_ <<
" ..." <<
endl;
125 if (!zoneSet.found(pointi))
127 newAddressing.push_back(pointi);
131 zoneSet.addressing().transfer(newAddressing);
138 Info<<
" Removing all points from point set: "
139 << setName_ <<
" ..." <<
endl;
148 for (
const label pointi : zoneSet.addressing())
150 if (!loadedSet.found(pointi))
152 newAddressing.push_back(pointi);
155 zoneSet.addressing().transfer(newAddressing);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void push_back(const T &val)
Copy append an element to the end of this list.
@ NO_REGISTER
Do not request registration (bool: false).
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void transfer(List< T > &list)
Transfer the contents of the argument List into this list and annul the argument list.
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Like pointSet but -reads data from pointZone -updates pointZone when writing.
const labelList & addressing() const noexcept
void updateSet()
Sort addressing and make pointSet part consistent with addressing.
Mesh consisting of general polyhedral cells.
A topoSetSource to convert a pointSet to a pointZone (and associated pointSet).
setToPointZone(const polyMesh &mesh, const word &setName)
Construct from components.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
The topoSetPointZoneSource is a intermediate class for handling topoSet sources for selecting point z...
topoSetPointZoneSource(const polyMesh &mesh)
Construct from mesh.
Class with constructor to add usage string to table.
Base class of a source for a topoSet.
setAction
Enumeration defining various actions.
@ SUBTRACT
Subtract elements from current set.
@ ADD
Add elements to current set.
@ NEW
Create a new set and ADD elements to it.
bool verbose_
Output verbosity (default: true).
const polyMesh & mesh() const noexcept
Reference to the mesh.
const polyMesh & mesh_
Reference to the mesh.
static Istream & checkIs(Istream &is)
Check state of stream.
General set of labels of mesh quantity (points, cells, faces).
virtual bool found(const label id) const
Has the given index?
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define WarningInFunction
Report a warning using Foam::Warning.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
labelList pointLabels(nPoints, -1)