eBUS SDK .NET API
  • Getting Started
    • Getting started with the eBUS SDK .NET API
    • Configuring Your IDE
    • Receiving Data from a GigE Vision or USB3 Vision Transmitter
    • Sample Applications
    • GigE Vision Device Communication Parameters
    • USB3 Vision Device Communication Parameters
    • PvStream USB3 Vision Parameters
    • PvStream GigE Vision Parameters
  • eBUS SDK .NET API Reference
    • API Overview
    • eBUSDotNet
    • eBUSDotNetReceive
    • eBUSDotNetEdge
Search Results for

    Show / Hide Table of Contents
      • GenDCComponentFlagsGroup
      • GenDCComponentHeader
      • GenDCComponentHeaderBase
      • GenDCComponentType
      • GenDCContainerFlagsGroup
      • GenDCContainerHeader
      • GenDCContainerHeaderBase
      • GenDCContainerVariableFieldsGroup
      • GenDCFlowTable
      • GenDCFlowTableHeader
      • GenDCGenericPartType
      • GenDCHeaderType
      • GenDCInfoTypeSpecificH264
      • GenDCInfoTypeSpecificH264.H264Flags
      • GenDCInfoTypeSpecificJPEG
      • GenDCPartFlagsGroup
      • GenDCPartHeader
      • GenDCPartHeader1D
      • GenDCPartHeader1DBase
      • GenDCPartHeader2D
      • GenDCPartHeader2DBase
      • GenDCPartHeaderBase
      • GenDCPartHeaderGenICamChunk
      • GenDCPartHeaderGenICamXML
      • GenDCPartHeaderH264
      • GenDCPartHeaderJPEG
      • GenDCPartHeaderJPEG2000
      • GenDCPartType
      • GenDCPredefinedComponentValue
      • GenDCPredefinedPartValue
      • GenDCPredefinedValue16
      • GenDCPredefinedValue32
      • GenDCPredefinedValue64
      • GenDCReservedValue
      • GenDCSignature
      • GenDCVersionValue
      • IPvChunkData
      • IPvFilter
      • IPvGenDCChunkData
      • IPvGenDCChunkWriter
      • IPvGenDCImage
      • IPvGenDCManager
      • IPvGenericDataComponent
      • IPvGenericDataContainer
      • IPvGenericDataPart
      • IPvH264AccessUnit
      • IPvImage
      • IPvImageJPEG
      • IPvMultiPartContainer
      • IPvMultiPartContainerReader
      • IPvMultiPartContainerWriter
      • IPvMultiPartSection
      • OnDeviceFoundHandler
      • OnParameterUpdateHandler
      • PvBuffer
      • PvChunkData
      • PvComponentType
      • PvCompressionFilter
      • PvDeInterlacer
      • PvDecompressionFilter
      • PvDeviceClass
      • PvDeviceInfo
      • PvDeviceInfoGEV
      • PvDeviceInfoPleoraProtocol
      • PvDeviceInfoType
      • PvDeviceInfoU3V
      • PvDeviceInfoUSB
      • PvDeviceType
      • PvEncodingEnum
      • PvException
      • PvFPSStabilizer
      • PvGenAccessMode
      • PvGenBoolean
      • PvGenCache
      • PvGenCategory
      • PvGenCommand
      • PvGenDCPart1DFields
      • PvGenDCPart2DFields
      • PvGenDCPartH264Fields
      • PvGenDCPartH264Fields.H264Flags
      • PvGenDCPartMetadataFields
      • PvGenDCPartType
      • PvGenDCVariableField
      • PvGenEndianness
      • PvGenEnum
      • PvGenEnumEntry
      • PvGenEventSink
      • PvGenEventSinkSwigInterface
      • PvGenFile
      • PvGenFloat
      • PvGenInteger
      • PvGenNameSpace
      • PvGenOpenMode
      • PvGenParameter
      • PvGenParameterArray
      • PvGenParameterList
      • PvGenRefresh
      • PvGenRegister
      • PvGenRepresentation
      • PvGenSign
      • PvGenStateStack
      • PvGenString
      • PvGenType
      • PvGenVisibility
      • PvImage
      • PvInterface
      • PvInterfaceType
      • PvMultiPartDataType
      • PvNetworkAdapter
      • PvPayloadType
      • PvPixelType
      • PvPleoraCompressed
      • PvRawData
      • PvResult
      • PvResult.Code
      • PvResult.Code.CodeEnum
      • PvSessionInfo
      • PvString
      • PvStringList
      • PvSystem
      • PvSystemEventSink
      • PvTapFilter
      • PvTapGeometryEnum
      • PvTftpClient
      • PvUSBHostController
      • PvUSBSpeed
      • PvUSBStatus
      • SWIGTYPE_p_PV_GENAPI_NS__INode
      • SWIGTYPE_p_PV_GENAPI_NS__INodeMap
      • SWIGTYPE_p_long_long
      • SWIGTYPE_p_unsigned_char
      • SWIGTYPE_p_unsigned_long_long
      • eBUSDotNet
      • uint24_t

    Class PvGenStateStack

    Performs changes to a GenICam node map, tracks them and restores the previous state on destruction.

    Inheritance
    object
    PvGenStateStack
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: eBUSDotNet
    Assembly: eBUSDotNet.dll
    Syntax
    public class PvGenStateStack : IDisposable
    Remarks

    This class can be used to perform temporary changes to a GenICam node map. Every parameter changed through this class is tracked and its original value is saved. When the object is destroyed, the original value of all parameters is restored in the reverse order.

     This class is very useful when dealing with selectors. If you want to change a selected value
     without affecting the current selector state of the node map, create an object of this type,
     change the selector(s) using the Set methods, perform your changes and let the object go
     out of scope: the selectors will go back to their original values.
    
     Assume A is originally 1, B is 2, C is 3. If you use this class to change A 4, B to 5 and C to 6
     (in that order) when the object goes out of scope C will be set back to 3, B to 2 and A to 1 (in that
     order as well).
    
     If a value cannot be set (an error occurs) the previous value is not pushed on the stack of 
     parameters that will be restored when the destructor is called.
    
     If the parameter is already set to the requested value, its value IS NOT changed, and IS NOT
     pushed on the stack to be eventually restored. This is done to minimize traffic to the device
     and prevent too much invalidators to be fired when a selector is already set to the rigth value.
    

    Constructors

    View Source

    PvGenStateStack(PvGenParameterArray)

    Constructor.

    Declaration
    public PvGenStateStack(PvGenParameterArray aParameters)
    Parameters
    Type Name Description
    PvGenParameterArray aParameters

    The GenICam parameter array to operate on.

    Fields

    View Source

    swigCMemOwn

    Determines who is responsible for deleting the underlying C++ object.

    Declaration
    protected bool swigCMemOwn
    Field Value
    Type Description
    bool

    Methods

    View Source

    Dispose()

    Dispose.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Dispose

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    View Source

    ~PvGenStateStack()

    Destructor.

    Declaration
    protected ~PvGenStateStack()
    View Source

    SetBooleanValue(string, bool)

    Changes the value of a boolean parameter.

    Declaration
    public PvResult SetBooleanValue(string aName, bool aValue)
    Parameters
    Type Name Description
    string aName

    The name of the parameter to change.

    bool aValue

    The new value of the parameter.

    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::OK
    • #PvResult::Code::GENERIC_ERROR (Use #PvResult::GetDescription to get more information.)
    • #PvResult::Code::NOT_FOUND if the parameter does not exist
    View Source

    SetEnumValue(string, long)

    Changes the value of an enum parameter.

    Declaration
    public PvResult SetEnumValue(string aName, long aValue)
    Parameters
    Type Name Description
    string aName

    The name of the parameter to change.

    long aValue

    The new integer value of the parameter.

    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::OK
    • #PvResult::Code::GENERIC_ERROR (Use #PvResult::GetDescription to get more information.)
    • #PvResult::Code::NOT_FOUND if the parameter does not exist
    View Source

    SetEnumValue(string, string)

    Changes the value of an enum parameter.

    Declaration
    public PvResult SetEnumValue(string aName, string aValue)
    Parameters
    Type Name Description
    string aName

    The name of the parameter to change.

    string aValue

    The new symbolic (string) value of the parameter.

    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::OK
    • #PvResult::Code::GENERIC_ERROR (Use #PvResult::GetDescription to get more information.)
    • #PvResult::Code::NOT_FOUND if the parameter does not exist
    View Source

    SetFloatValue(string, double)

    Changes the value of a float parameter.

    Declaration
    public PvResult SetFloatValue(string aName, double aValue)
    Parameters
    Type Name Description
    string aName

    The name of the parameter to change.

    double aValue

    The new value of the parameter.

    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::OK
    • #PvResult::Code::GENERIC_ERROR (Use #PvResult::GetDescription to get more information.)
    • #PvResult::Code::NOT_FOUND if the parameter does not exist
    View Source

    SetIntegerValue(string, long)

    Changes the value of an integer parameter.

    Declaration
    public PvResult SetIntegerValue(string aName, long aValue)
    Parameters
    Type Name Description
    string aName

    The name of the parameter to change.

    long aValue

    The new value of the parameter.

    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::OK
    • #PvResult::Code::GENERIC_ERROR (Use #PvResult::GetDescription to get more information.)
    • #PvResult::Code::NOT_FOUND if the parameter does not exist
    View Source

    SetStringValue(string, string)

    Changes the value of a string parameter.

    Declaration
    public PvResult SetStringValue(string aName, string aValue)
    Parameters
    Type Name Description
    string aName

    The name of the parameter to change.

    string aValue

    The new value of the parameter.

    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::OK
    • #PvResult::Code::GENERIC_ERROR (Use #PvResult::GetDescription to get more information.)
    • #PvResult::Code::NOT_FOUND if the parameter does not exist

    Implements

    IDisposable
    • View Source
    In this article
    Back to top Generated by DocFX