libmove3d-planners
|
Public Member Functions | |
ConnectedComponent (Graph *G, compco *Comp) | |
Out of use!!! | |
ConnectedComponent (Graph *G, Node *N) | |
Constructor. | |
~ConnectedComponent () | |
Destructor. | |
compco * | getCompcoStruct () const |
Get the Connected Component structure. | |
std::vector< Node * > & | getNodes () |
Get the vector of nodes. | |
Node * | getNode (unsigned i) const |
Get the ith node. | |
unsigned | getNumberOfNodes () const |
Get the number of nodes in the connected component. | |
const std::vector< double > & | getLowerBBox () const |
Get the lower bounds of the bounding box. | |
const std::vector< double > & | getUpperBBox () const |
Get the upper bounds of the bounding box. | |
double | getBBoxVolume () const |
Get the volume of the bounding box. | |
unsigned | getId () const |
Get the id of the connected component. | |
unsigned | getNumberOfRefinementNodes () const |
Get the number of refinement nodes. | |
void | updateNumberOfRefinementNodes () |
Add the given number to the current number of refinement nodes. | |
void | addNode (Node *N) |
Add a node to the connected component. More... | |
void | removeNode (Node *node) |
Remove the given node. | |
void | addToReachableList (ConnectedComponent *Comp) |
Add the compco to the reachable Compco. | |
void | addToReachableListAndUpdatePredecessors (ConnectedComponent *Comp) |
Add the compco to the reachable Compco and update predecessors. | |
void | mergeWith (ConnectedComponent *CompcoPt) |
Merge CompcoPt with this compco and delete it. More... | |
bool | isLinkedToCompco (ConnectedComponent *CompcoPt) |
Can reach the compco. More... | |
Node * | nearestNeighbor (confPtr_t conf, bool backward=false) |
Return the node whose configuration is the closest (in the C-space) to the given configuration. | |
std::vector< Node * > | kNearestNeighbors (unsigned k, confPtr_t conf) |
Return the k nodes whose configurations are the closest (in the C-space) to the given configuration. | |
std::vector< Node * > | neighborsInBall (confPtr_t conf, double radius) |
Return the nodes whose configurations are within a ball (in the C-space) having the given radius and centered on the given configuration. | |
Node * | nearestWeightNeighbour (std::tr1::shared_ptr< Configuration > q, bool weighted, int distConfigChoice) |
Nearest weithed Neigboor. | |
std::vector< Node * > | KNearestWeightNeighbour (confPtr_t config, int K, double radius, bool weighted, int distConfigChoice) |
K Nearest Weighted Neighbors in connected component. More... | |
Node * | searchConf (Configuration &q) |
Search configuration in connected compco. | |
Node * | randomNode () |
Return a node, randomly chosen in the connected component. | |
double | getTemperature () |
Get the temperature of the component. | |
void | setTemperature (double temp) |
Set the temperature of the component. | |
void ConnectedComponent::addNode | ( | Node * | N | ) |
Add a node to the connected component.
N | the node to be added |
bool ConnectedComponent::isLinkedToCompco | ( | ConnectedComponent * | CompcoPt | ) |
Can reach the compco.
This function is a copy of p3d_compco_linked_to_compco.
vector< Node * > ConnectedComponent::KNearestWeightNeighbour | ( | confPtr_t | q, |
int | K, | ||
double | radius, | ||
bool | weighted, | ||
int | distConfigChoice | ||
) |
K Nearest Weighted Neighbors in connected component.
Return the K Nearest Neighbors of the configuration q in the connected component within a minimum radius.
void ConnectedComponent::mergeWith | ( | ConnectedComponent * | CompcoPt | ) |
Merge CompcoPt with this compco and delete it.
This function is a copy of p3d_merge_comp which updates the graph and the connected components.
Pointer | to the Connected component that will be freed |