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: 10.12.3.0.Release.03fa3fc14f5d05a3007fab6bc6264244021464bb
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