MedicalHelperFindNodeType Method |
Convenience function to find first specified node in the scene graph
Note: The function is Generic with defined constraint of NodeType : SoNode
Namespace: OIV.Medical.HelpersAssembly: OIV.Medical (in OIV.Medical.dll) Version: 2023.1.3.0.Release.5fd1c1ad27c99c06f73891d4218ee7122fbde35a
Syntax public static NodeType Find<NodeType>(
SoNode root,
string nodeName = "",
bool okIfNotFound = false
)
where NodeType : SoNode
Public Shared Function Find(Of NodeType As SoNode) (
root As SoNode,
Optional nodeName As String = "",
Optional okIfNotFound As Boolean = false
) As NodeType
public:
generic<typename NodeType>
where NodeType : SoNode
static NodeType Find(
SoNode^ root,
String^ nodeName = L"",
bool okIfNotFound = false
)
static member Find :
root : SoNode *
?nodeName : string *
?okIfNotFound : bool
(* Defaults:
let _nodeName = defaultArg nodeName ""
let _okIfNotFound = defaultArg okIfNotFound false
*)
-> 'NodeType when 'NodeType : SoNode
Parameters
- root
- Type: OIV.Inventor.NodesSoNode
Root of scene graph you want to search - nodeName (Optional)
- Type: SystemString
Name (string) of node you want to find - okIfNotFound (Optional)
- Type: SystemBoolean
Debug parameter
Type Parameters
- NodeType
- Generic Type
Return Value
Type:
NodeTypeSee Also