Class RealSenseDeviceInfo
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
A connected RealSense camera and the stream modes it reports.
public class RealSenseDeviceInfoInheritance
Inherited Members
Constructors
RealSenseDeviceInfo(string, string, string, IReadOnlyList<RealSenseStreamProfile>)
Initializes a new instance of the VisioForge.Core.Types.X.Sources.RealSenseDeviceInfo class.
public RealSenseDeviceInfo(string name, string serialNumber, string firmwareVersion, IReadOnlyList<RealSenseStreamProfile> profiles)Parameters
namestring-
The camera name.
serialNumberstring-
The serial number.
firmwareVersionstring-
The firmware version.
profilesIReadOnlyList<RealSenseStreamProfile>-
The stream modes.
Properties
FirmwareVersion
Gets the firmware version.
public string FirmwareVersion { get; }Property Value
Name
Gets the camera name, for example "Intel RealSense D435".
public string Name { get; }Property Value
Profiles
Gets the colour, depth and infrared modes the camera reports, in the formats the block opens them in.
public IReadOnlyList<RealSenseStreamProfile> Profiles { get; }Property Value
SerialNumber
Gets the serial number.
public string SerialNumber { get; }Property Value
Methods
FindProfile(RealSenseStreamType, int, int, int, int)
Finds a stream mode the camera reports.
public RealSenseStreamProfile FindProfile(RealSenseStreamType stream, int width, int height, int frameRate, int index = 0)Parameters
streamRealSenseStreamType-
The stream.
widthint-
The width.
heightint-
The height.
frameRateint-
The frame rate.
indexint-
The stream index; 0 takes the first index the camera reports for the stream.
Returns
- RealSenseStreamProfile
-
The mode, or null when the camera does not report it.
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
- string
-
A string that represents the current object.