Go to the documentation of this file.
54 const auto& slctd = selectedPoints();
56 if(slctd.empty())
return realx3Vector(
"selectedPointPositions");
58 realx3Vector slctdPoints(
"selectedPointPositions", slctd.size());
60 auto pPos =
pStruct().pointPositionHost();
62 for(
uint32 i=0; i<slctd.size(); i++)
64 slctdPoints[i] = pPos[slctd[i]];
78 if( dictionaryvCtorSelector_.search(selectorMethod) )
80 return dictionaryvCtorSelector_[selectorMethod] (
pStruct, dict);
86 fatalError <<
"Ctor Selector "<< selectorMethod <<
" does not exist. \n"
87 <<
"Avaiable ones are: \n\n"
89 dictionaryvCtorSelector_
105 if( wordvCtorSelector_.search(selectorMethod) )
107 return wordvCtorSelector_[selectorMethod] (type,
pStruct, dict);
113 fatalError <<
"Ctor Selector "<< selectorMethod <<
" does not exist. \n"
114 <<
"Avaiable ones are: \n\n"
static uniquePtr< pStructSelector > create(const pointStructure &pStruct, const dictionary &dict)
#define fatalExit
Fatal exit.
iOstream & printKeys(iOstream &os, const wordHashMap< T > &m)
word angleBracketsNames(const word &w1, const word &w2)
Output <w1,w2>
const pointStructure & pStruct() const
#define fatalError
Report a fatal error and exit the applicaiton.
Vector< realx3 > realx3Vector
T getVal(const word &keyword) const
get the value of data entry
pStructSelector(const pointStructure &pStruct, const dictionary &UNUSED(dict))
the dictionary contains the selector keyword and another dictionary which is used for creating select...
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
realx3Vector selectedPointPositions() const