MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
WEMConnectedComponent.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#pragma once
14
17
19
24namespace WEMConnectedComponent
25{
27 typedef std::vector<WEMNode*> WEMNodeVector;
28
30 typedef std::vector<WEMFace*> WEMFaceVector;
31
37 bool unvisitedValue = false);
38
43 double maxDistance, bool unvisitedValue = false);
44
49 bool unvisitedValue = false);
50
57 MLWEM_EXPORT bool collectComponentFaceCut(WEMNode* node, std::vector<WEMNode*>& cNodes, std::vector<WEMFace*>& cFaces,
59 unsigned int intersectingFlag, bool visitedValue = true);
60
69 unsigned int connectedFlag, bool unvisitedValue = false);
70
74
78 double maxDistance, bool unvisitedValue = false);
79
81 MLWEM_EXPORT double getPathLengthBetweenNodes(WEMPatch* wemPatch, const std::vector<unsigned int>& nodeIndicesPath);
82}; // namespace WEMConnectedComponent
83
#define MLWEM_EXPORT
Definition MLWEMSystem.h:18
Defines the mesh component: node.
Definition WEMNode.h:33
Base class for triangle and quad patches.
Definition WEMPatch.h:61
Stores a value list where the values are associated to primitives (WEMNode, WEMEdge,...
Dynamic templated vector.
Definition WEMVector.h:27
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLWEM_EXPORT void collectComponentBoundary(WEMPatch *wemPatch, WEMNode *node, WEMNodeVector &cNodes, bool unvisitedValue=false)
Same as 'collectComponent', but now the starting node should be on a boundary.
std::vector< WEMNode * > WEMNodeVector
Defines a vector of WEMNode pointers for temporary use.
MLWEM_EXPORT bool collectComponentFaceCut(WEMNode *node, std::vector< WEMNode * > &cNodes, std::vector< WEMFace * > &cFaces, WEMVector< WEMFaceCut > **faceCuts, unsigned int outerFlag, unsigned int intersectingFlag, bool visitedValue=true)
Collects a connected component of a WEM, starting with a node.
MLWEM_EXPORT void collectComponent(WEMPatch *wemPatch, WEMNode *node, WEMNodeVector &cNodes, bool unvisitedValue=false)
Collects a connected component of a wemPatch, starting with a node.
MLWEM_EXPORT double getPathLengthBetweenNodes(WEMPatch *wemPatch, const std::vector< unsigned int > &nodeIndicesPath)
Returns the sum of the lengths of the edges between the nodes given as indices in a given WEMPatch.
MLWEM_EXPORT void collectComponentPrimitiveValueList(WEMPatch *wemPatch, WEMNode *node, WEMNodeVector &cNodes, WEMFaceVector &cFaces, WEMFaceVector &iFaces, WEMPrimitiveValueList *valueList, double valueRange, unsigned int connectedFlag, bool unvisitedValue=false)
Collects a connected component of a WEMPatch, starting with a node.
MLWEM_EXPORT void collectComponentPseudoGeodesicDistance(WEMPatch *wemPatch, WEMNode *node, WEMNodeVector &cNodes, double maxDistance, bool unvisitedValue=false)
Collects all connected (node) components up to a given maximum distance which is measured as the sum ...
std::vector< WEMFace * > WEMFaceVector
Defines a vector of WEMFace pointers for temporary use.
MLWEM_EXPORT void collectComponentEuclideanDistance(WEMPatch *wemPatch, WEMNode *node, WEMNodeVector &cNodes, double maxDistance, bool unvisitedValue=false)
Same as 'collectComponent', but with an additional range parameter maxDistance.