|
|
| GmpMmBucketIndexBase (GmSimulationData *simulation, QString id, QString description, GSBIType type, const GmLogCategory &logger) |
| |
| | GmpMmBucketIndexBase (GmSimulationData *simulation, GmMesh *mesh, GSBIType type, const GmLogCategory &logger, const QVariantMap &options=QVariantMap()) |
| | Bucket index constructor for an object created by the process.
|
| |
| virtual const char * | pluginName () const |
| |
|
void | init (const QVariantMap &options) |
| | Initializes the object with the given options (or defaults in their absence)
|
| |
| virtual bool | loadPrivateData (LuaTable &table) |
| | Loads from the given Lua table the mesh information + additional options, calling init() to effectively int a plugin created object.
|
| |
|
const QVector< GmpMmBIBucket< T > > & | bucketList () const |
| |
| virtual bool | activeOnly () const |
| |
| virtual int | ruleSet () const |
| |
| virtual bool | isOutsideOfDomain (const GmVector &crd) const |
| |
|
virtual const GmpMmBIBucket< T > & | getBucket (const GmVector &crd, bool &ok) const |
| | Returns a reference to the bucket in which the given point falls in.
|
| |
|
bool | getClosestReference (const GmVector &crd, GmpRefDist< T > &closestRef, const PointValidator &pv=defaultPointValidator) const |
| | Returns the id of the closest reference.
|
| |
|
void | getClosestReferences (const GmVector &crd, int n, QVector< GmpRefDist< T > > &refList, bool sort, const PointValidator &pv=defaultPointValidator) const |
| | Returns the ids of the n closest references.
|
| |
|
void | getClosestReferences (const GmVector &crd, double radius, QVector< GmpRefDist< T > > &refList, bool sort, const PointValidator &pv=defaultPointValidator) const |
| | Returns the ids of the references which distance to crd is less than radius.
|
| |
|
void | printInfo () |
| |
| virtual void | printParameters (const GmLogCategory &logger) |
| |
| virtual int | numReferences () const |
| | Number of stored references.
|
| |
|
| GmpMmBucketIndex (GmSimulationData *simulation, QString id, QString description, GSBIType type, const GmLogCategory &logger) |
| | Constructor for plugin created objects.
|
| |
|
| GmpMmBucketIndex (GmSimulationData *simulation, GmMesh *mesh, GSBIType type, const GmLogCategory &logger) |
| | Constructor for process created objects.
|
| |
|
virtual | ~GmpMmBucketIndex () |
| | Destructor.
|
| |
| virtual GmMesh * | mesh () const |
| |
| virtual const GmValueAccessor * | coordAccessor () const |
| |
|
virtual int | ndim () const |
| |
|
GSBIType | type () const |
| |
|
| GmSpatialIndex (GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger) |
| |
| virtual const char * | pluginCategory () const |
| |
|
virtual bool | hasCapability (QString capabilityName) const=0 |
| |
|
virtual bool | getClosestNode (const GmVector &crd, double &sqrDist, int &outNodeId, const PointValidator &pv=defaultPointValidator) const=0 |
| |
|
virtual void | getClosestNodes (const GmVector &crd, int n, QVector< GmpRefDist< int > > &nodeList, bool ordered, const PointValidator &pv=defaultPointValidator) const=0 |
| |
|
virtual void | getClosestNodes (const GmVector &crd, double r, QVector< GmpRefDist< int > > &nodeList, bool ordered, const PointValidator &pv=defaultPointValidator) const=0 |
| |
|
virtual void | getClosestNodes (const GmVector &crd, int n, QVector< int > &nodeList, bool ordered, const PointValidator &pv=defaultPointValidator) const=0 |
| |
|
virtual void | getClosestNodes (const GmVector &crd, double r, QVector< int > &nodeList, bool ordered, const PointValidator &pv=defaultPointValidator) const=0 |
| |
|
virtual GmCell * | getContainingCell (const GmVector &crd) const=0 |
| |
|
virtual bool | getClosestGaussPoint (const GmVector &crd, double &sqrDist, GmpMmGaussData &outRef, const PointValidator &pv=defaultPointValidator) const=0 |
| |
|
virtual void | getClosestGaussPoints (const GmVector &crd, int n, QVector< GmpRefDist< GmpMmGaussData > > &gpList, bool ordered, const PointValidator &pv=defaultPointValidator) const=0 |
| |
|
virtual void | getClosestGaussPoints (const GmVector &crd, double r, QVector< GmpRefDist< GmpMmGaussData > > &gpList, bool ordered, const PointValidator &pv=defaultPointValidator) const=0 |
| |
|
virtual void | getClosestGaussPoints (const GmVector &crd, int n, QVector< GmpMmGaussData > &gpList, bool ordered, const PointValidator &pv=defaultPointValidator) const=0 |
| |
|
virtual void | getClosestGaussPoints (const GmVector &crd, double r, QVector< GmpMmGaussData > &gpList, bool ordered, const PointValidator &pv=defaultPointValidator) const=0 |
| |
|
| GmPluginObject (GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger) |
| |
|
QString | id () const |
| |
|
QString | description () const |
| |
|
QString | pluginTypeName () const |
| |
| virtual const char * | pluginType () const=0 |
| |
|
|
bool | meshHasChanged () const |
| |
|
void | insertValue (const T &val, int gridId) |
| | Add a new reference in the bucket index.
|
| |
|
bool | getGridCrd (const GmVector &crd, int gridCrd[GMP_MAX_INDEX_DIM]) const |
| | Return the grid coordinates for a point.
|
| |
|
int | getGridId (const GmVector &crd) const |
| | Return the grid cell id in which the given point falls in.
|
| |
|
int | getBucketId (int gridId) const |
| | Return the bucket id referenced by a cell.
|
| |
|
void | getBoxBucketIds (const int minGrid[GMP_MAX_INDEX_DIM], const int maxGrid[GMP_MAX_INDEX_DIM], ISet &bucketIds) const |
| |
|
void | getBoxBucketIds1D (int x0, int x1, ISet &buecketIds) const |
| |
|
void | getBoxBucketIds2D (int x0, int x1, int y0, int y1, ISet &bucketIds) const |
| |
|
void | getBoxBucketIds3D (int x0, int x1, int y0, int y1, int z0, int z1, ISet &bucketIds) const |
| |
|
void | computeStep () |
| |
|
void | processRadiusLayerBucketIds (const GmVector &crd, double radius, std::function< void(int[])> &proc, int curMin[GMP_MAX_INDEX_DIM], int curMax[GMP_MAX_INDEX_DIM]) const |
| |
|
void | processLayerBuckets1D (const int curMin[GMP_MAX_INDEX_DIM], const int curMax[GMP_MAX_INDEX_DIM], const int newMin[GMP_MAX_INDEX_DIM], const int newMax[GMP_MAX_INDEX_DIM], std::function< void(int[])> &proc) const |
| |
|
void | processLayerBuckets2D (const int curMin[GMP_MAX_INDEX_DIM], const int curMax[GMP_MAX_INDEX_DIM], const int newMin[GMP_MAX_INDEX_DIM], const int newMax[GMP_MAX_INDEX_DIM], std::function< void(int[])> &proc) const |
| |
|
void | processLayerBuckets3D (const int curMin[GMP_MAX_INDEX_DIM], const int curMax[GMP_MAX_INDEX_DIM], const int newMin[GMP_MAX_INDEX_DIM], const int newMax[GMP_MAX_INDEX_DIM], std::function< void(int[])> &proc) const |
| |
|
void | getLayerBucketIds (const int gridCrd[GMP_MAX_INDEX_DIM], int layer, ISet &bucketIds, int min[GMP_MAX_INDEX_DIM], int max[GMP_MAX_INDEX_DIM], const int minBound[GMP_MAX_INDEX_DIM], const int maxBound[GMP_MAX_INDEX_DIM]) const |
| |
|
virtual const GmLogCategory & | logger () const |
| |
|
GmSimulationData * | simulationData () const |
| |
|
|
void | computeInitGridSize (const GmVector &bboxSize, int *initialSize, int *finalSize) |
| | Automatically define the initial size of the grid.
|
| |
|
virtual void | insertValues ()=0 |
| |
|
int | computeGridSize (int dim) const |
| | Return the number of cells in the dim axe direction.
|
| |
|
int | getGridSize (int dim) const |
| |
|
double | getGridLength (int dim) const |
| | Return the grid length in the dim axe direction.
|
| |
|
double | getCellLength (int dim) const |
| | Return the cell length in the dim axe direction.
|
| |
|
bool | getGridDimCrd (int dim, double dimCrd, int &gridDimCrd) const |
| | Return the grid cell coord for an euclidean coordinate in the given dimension.
|
| |
|
int | getMaxCellLengthDim () const |
| | Return the dimension in which cells have the maximum length.
|
| |
|
int | getMinCellLengthDim () const |
| | Return the dimension in which cells have the minimum length.
|
| |
| virtual int | getCrdFromRef (const GmpMmBIReference< T > &ref, GmCRVector &crd) const =0 |
| | Get the coordinates of the point associated to the given reference.
|
| |
|
void | recBoxBucketIds (const int minGrid[GMP_MAX_INDEX_DIM], const int maxGrid[GMP_MAX_INDEX_DIM], int gridCrd[GMP_MAX_INDEX_DIM], int dim, ISet &bucketIds) const |
| | Recursively find grid ids in box.
|
| |
|
void | recLayerBucketIds (const int minGrid[GMP_MAX_INDEX_DIM], const int maxGrid[GMP_MAX_INDEX_DIM], const int minBound[GMP_MAX_INDEX_DIM], const int maxBound[GMP_MAX_INDEX_DIM], int gridCrd[GMP_MAX_INDEX_DIM], int dim, ISet &bucketIds) const |
| | Recursively find grid ids in layer.
|
| |
|
int | gridLinearizeCrd (const int gridCrd[GMP_MAX_INDEX_DIM]) const |
| | Return grid id from grid coordinates for CURRENT grid size;.
|
| |
|
int | gridLinearizeCrd (const int gridCrd[GMP_MAX_INDEX_DIM], const int gridSizes[GMP_MAX_INDEX_DIM]) const |
| | Return grid id from grid coordinates for a given grid size;.
|
| |
|
void | gridExtractId (int gridId, const int gridSizes[GMP_MAX_INDEX_DIM], int crd[GMP_MAX_INDEX_DIM]) const |
| | Extract grid coordinates from grid id.
|
| |
|
int | splitGrid () |
| | Increase the number of splits in the dimension in which cells have the maximum length. Return the dimension.
|
| |
|
bool | redistributeBucket (int fullBucketId) |
| | Redistribute references among buckets.
|
| |
|
int | createBucket (int gridId) |
| | Create a new bucket pointing to the given cell id. Return a reference to the created bucket.
|
| |
|
void | splitSharedBucket (int fullBucketId, int gridId, const GmpMmBIReference< T > &ref) |
| | Split overflowing shared bucket.
|
| |
|
bool | refineGrid (int fullBucketId, const GmpMmBIReference< T > &ref) |
| | Refine the grid.
|
| |
|
bool | recRefineGrid (int fullBucketId, const GmpMmBIReference< T > &ref) |
| | Split overflowing non-shared bucket and recursively refine the grid.
|
| |
template<class T>
class GmpMmBucketIndexBase< T >
Class GmpMmBucketIndexBase.