Table of Contents

Class ManagedGenICam

Namespace
VisioForge.Core.GenICam
Assembly
VisioForge.Core.dll

Managed wrapper class for ArvGc providing safe access to GenICam functionality

public class ManagedGenICam : IDisposable

Inheritance

Implements

Inherited Members

Constructors

ManagedGenICam(nint, byte[])

Creates a new GenICam object from XML data

public ManagedGenICam(nint device, byte[] xmlData)

Parameters

device nint

Device handle

xmlData byte[]

GenICam XML data

ManagedGenICam(nint, bool)

Creates a managed wrapper around an existing GenICam handle

public ManagedGenICam(nint handle, bool ownsHandle = true)

Parameters

handle nint

Existing GenICam handle

ownsHandle bool

Whether this wrapper owns the handle and should dispose it

Properties

Handle

Gets the native handle

public nint Handle { get; }

Property Value

nint

IsValid

Gets whether the GenICam object is valid

public bool IsValid { get; }

Property Value

bool

Methods

Dispose()

Disposes the GenICam object

public void Dispose()

Dispose(bool)

Disposes the GenICam object

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

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

nodeName string

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

node nint

Feature node handle

SetAccessCheckPolicy(GenICamAccessCheckPolicy)

Sets the access check policy

public void SetAccessCheckPolicy(GenICamAccessCheckPolicy policy)

Parameters

policy GenICamAccessCheckPolicy

Access check policy

SetBuffer(nint)

Sets the buffer for chunk data parsing

public void SetBuffer(nint buffer)

Parameters

buffer nint

Buffer handle

SetRangeCheckPolicy(GenICamRangeCheckPolicy)

Sets the range check policy

public void SetRangeCheckPolicy(GenICamRangeCheckPolicy policy)

Parameters

policy GenICamRangeCheckPolicy

Range check policy

SetRegisterCachePolicy(GenICamRegisterCachePolicy)

Sets the register cache policy

public void SetRegisterCachePolicy(GenICamRegisterCachePolicy policy)

Parameters

policy GenICamRegisterCachePolicy

Cache policy