Class ManagedGenICam
- Namespace
- VisioForge.Core.GenICam
- Assembly
- VisioForge.Core.dll
Managed wrapper class for ArvGc providing safe access to GenICam functionality
public class ManagedGenICam : IDisposableInheritance
Implements
Inherited Members
Constructors
ManagedGenICam(nint, byte[])
Creates a new GenICam object from XML data
public ManagedGenICam(nint device, byte[] xmlData)Parameters
ManagedGenICam(nint, bool)
Creates a managed wrapper around an existing GenICam handle
public ManagedGenICam(nint handle, bool ownsHandle = true)Parameters
handlenint-
Existing GenICam handle
ownsHandlebool-
Whether this wrapper owns the handle and should dispose it
Properties
Handle
Gets the native handle
public nint Handle { get; }Property Value
IsValid
Gets whether the GenICam object is valid
public bool IsValid { get; }Property Value
Methods
Dispose()
Disposes the GenICam object
public void Dispose()Dispose(bool)
Disposes the GenICam object
protected virtual void Dispose(bool disposing)Parameters
disposingbool-
Whether disposing from Dispose method
~ManagedGenICam()
Finalizer
protected ~ManagedGenICam()GetAccessCheckPolicy()
Gets the access check policy
public GenICamAccessCheckPolicy GetAccessCheckPolicy()Returns
- GenICamAccessCheckPolicy
-
Current access check policy
GetBuffer()
Gets the current buffer
public nint GetBuffer()Returns
- nint
-
Buffer handle
GetDevice()
Gets the associated device
public nint GetDevice()Returns
- nint
-
Device handle
GetNode(string)
Gets a GenICam node by name
public nint GetNode(string nodeName)Parameters
nodeNamestring-
Name of the node
Returns
- nint
-
Node handle or IntPtr.Zero if not found
GetRangeCheckPolicy()
Gets the range check policy
public GenICamRangeCheckPolicy GetRangeCheckPolicy()Returns
- GenICamRangeCheckPolicy
-
Current range check policy
GetRegisterCachePolicy()
Gets the register cache policy
public GenICamRegisterCachePolicy GetRegisterCachePolicy()Returns
- GenICamRegisterCachePolicy
-
Current cache policy
RegisterFeatureNode(nint)
Registers a feature node with the GenICam object
public void RegisterFeatureNode(nint node)Parameters
nodenint-
Feature node handle
SetAccessCheckPolicy(GenICamAccessCheckPolicy)
Sets the access check policy
public void SetAccessCheckPolicy(GenICamAccessCheckPolicy policy)Parameters
policyGenICamAccessCheckPolicy-
Access check policy
SetBuffer(nint)
Sets the buffer for chunk data parsing
public void SetBuffer(nint buffer)Parameters
buffernint-
Buffer handle
SetRangeCheckPolicy(GenICamRangeCheckPolicy)
Sets the range check policy
public void SetRangeCheckPolicy(GenICamRangeCheckPolicy policy)Parameters
policyGenICamRangeCheckPolicy-
Range check policy
SetRegisterCachePolicy(GenICamRegisterCachePolicy)
Sets the register cache policy
public void SetRegisterCachePolicy(GenICamRegisterCachePolicy policy)Parameters
policyGenICamRegisterCachePolicy-
Cache policy