- Extended CJMS11 camera handling with new functionalities, including image grabbing, resolution configuration, and improved ROI support. - Added new `ToString` method implementations for enhanced debugging and logging in key classes like `JmsMessage`, `JmsPacket`, and `RoiCfg`. - Introduced additional commands (`start_stream_images`, `stop_stream_images`) in `CommandM` and its enum. - Implemented new resolution handling in `RoiCfg` with support for configurable image frames. - Refactored resolution-related UI elements in `RoiCfgCtrl` to add a dropdown for selecting resolution. - Made minor UX improvements by replacing inconsistent string formats with verbatim strings in console messages. - Updated project dependencies with new resolution-related utilities (`Frame` and `ResolutionFrames`). - Resolved camera-specific symbolic issues by transitioning to `CJMS11.Camera` over prior naming inconsistencies.
223 lines
8.7 KiB
C#
223 lines
8.7 KiB
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
namespace TBF.Rig.Network.Camera.RoiForFixedStartCJMS11
|
|
{
|
|
partial class RoiCfgCtrl
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Component Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.parentNameLabel = new System.Windows.Forms.Label();
|
|
this.nameTextBox = new System.Windows.Forms.TextBox();
|
|
this.nameLabel = new System.Windows.Forms.Label();
|
|
this.classNameLabel = new System.Windows.Forms.Label();
|
|
this.parentNameComboBox = new System.Windows.Forms.ComboBox();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
|
this.imageRotationComboBox = new System.Windows.Forms.ComboBox();
|
|
this.imageRotationLabel = new System.Windows.Forms.Label();
|
|
this.blackAndWhiteCheckBox = new System.Windows.Forms.CheckBox();
|
|
this.loResolutionCheckBox = new System.Windows.Forms.CheckBox();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.resolutionComboBox = new System.Windows.Forms.ComboBox();
|
|
this.SuspendLayout();
|
|
//
|
|
// parentNameLabel
|
|
//
|
|
this.parentNameLabel.AutoSize = true;
|
|
this.parentNameLabel.Location = new System.Drawing.Point(30, 118);
|
|
this.parentNameLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.parentNameLabel.Name = "parentNameLabel";
|
|
this.parentNameLabel.Size = new System.Drawing.Size(65, 20);
|
|
this.parentNameLabel.TabIndex = 3;
|
|
this.parentNameLabel.Text = "Camera";
|
|
//
|
|
// nameTextBox
|
|
//
|
|
this.nameTextBox.Enabled = false;
|
|
this.nameTextBox.Location = new System.Drawing.Point(208, 75);
|
|
this.nameTextBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.nameTextBox.Name = "nameTextBox";
|
|
this.nameTextBox.Size = new System.Drawing.Size(259, 26);
|
|
this.nameTextBox.TabIndex = 2;
|
|
//
|
|
// nameLabel
|
|
//
|
|
this.nameLabel.AutoSize = true;
|
|
this.nameLabel.Location = new System.Drawing.Point(30, 80);
|
|
this.nameLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.nameLabel.Name = "nameLabel";
|
|
this.nameLabel.Size = new System.Drawing.Size(51, 20);
|
|
this.nameLabel.TabIndex = 1;
|
|
this.nameLabel.Text = "Name";
|
|
//
|
|
// classNameLabel
|
|
//
|
|
this.classNameLabel.AutoSize = true;
|
|
this.classNameLabel.Location = new System.Drawing.Point(204, 40);
|
|
this.classNameLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.classNameLabel.Name = "classNameLabel";
|
|
this.classNameLabel.Size = new System.Drawing.Size(173, 20);
|
|
this.classNameLabel.TabIndex = 0;
|
|
this.classNameLabel.Text = "ComponentClassName";
|
|
//
|
|
// parentNameComboBox
|
|
//
|
|
this.parentNameComboBox.Enabled = false;
|
|
this.parentNameComboBox.FormattingEnabled = true;
|
|
this.parentNameComboBox.Location = new System.Drawing.Point(208, 114);
|
|
this.parentNameComboBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.parentNameComboBox.Name = "parentNameComboBox";
|
|
this.parentNameComboBox.Size = new System.Drawing.Size(259, 28);
|
|
this.parentNameComboBox.TabIndex = 4;
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(-316, -226);
|
|
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(87, 20);
|
|
this.label1.TabIndex = 5;
|
|
this.label1.Text = "Arguments";
|
|
//
|
|
// textBox1
|
|
//
|
|
this.textBox1.Enabled = false;
|
|
this.textBox1.Location = new System.Drawing.Point(-188, -231);
|
|
this.textBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.textBox1.Name = "textBox1";
|
|
this.textBox1.Size = new System.Drawing.Size(556, 26);
|
|
this.textBox1.TabIndex = 6;
|
|
//
|
|
// imageRotationComboBox
|
|
//
|
|
this.imageRotationComboBox.Enabled = false;
|
|
this.imageRotationComboBox.FormattingEnabled = true;
|
|
this.imageRotationComboBox.Location = new System.Drawing.Point(208, 237);
|
|
this.imageRotationComboBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.imageRotationComboBox.Name = "imageRotationComboBox";
|
|
this.imageRotationComboBox.Size = new System.Drawing.Size(138, 28);
|
|
this.imageRotationComboBox.TabIndex = 8;
|
|
//
|
|
// imageRotationLabel
|
|
//
|
|
this.imageRotationLabel.AutoSize = true;
|
|
this.imageRotationLabel.Location = new System.Drawing.Point(30, 242);
|
|
this.imageRotationLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.imageRotationLabel.Name = "imageRotationLabel";
|
|
this.imageRotationLabel.Size = new System.Drawing.Size(153, 20);
|
|
this.imageRotationLabel.TabIndex = 7;
|
|
this.imageRotationLabel.Text = "Image rotation (ccw)";
|
|
//
|
|
// blackAndWhiteCheckBox
|
|
//
|
|
this.blackAndWhiteCheckBox.AutoSize = true;
|
|
this.blackAndWhiteCheckBox.Enabled = false;
|
|
this.blackAndWhiteCheckBox.Location = new System.Drawing.Point(208, 166);
|
|
this.blackAndWhiteCheckBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.blackAndWhiteCheckBox.Name = "blackAndWhiteCheckBox";
|
|
this.blackAndWhiteCheckBox.Size = new System.Drawing.Size(134, 24);
|
|
this.blackAndWhiteCheckBox.TabIndex = 5;
|
|
this.blackAndWhiteCheckBox.Text = "Black && White";
|
|
this.blackAndWhiteCheckBox.UseVisualStyleBackColor = true;
|
|
//
|
|
// loResolutionCheckBox
|
|
//
|
|
this.loResolutionCheckBox.AutoSize = true;
|
|
this.loResolutionCheckBox.Enabled = false;
|
|
this.loResolutionCheckBox.Location = new System.Drawing.Point(208, 202);
|
|
this.loResolutionCheckBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.loResolutionCheckBox.Name = "loResolutionCheckBox";
|
|
this.loResolutionCheckBox.Size = new System.Drawing.Size(137, 24);
|
|
this.loResolutionCheckBox.TabIndex = 6;
|
|
this.loResolutionCheckBox.Text = "Low resolution";
|
|
this.loResolutionCheckBox.UseVisualStyleBackColor = true;
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.Location = new System.Drawing.Point(30, 293);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(152, 28);
|
|
this.label2.TabIndex = 9;
|
|
this.label2.Text = "Choose resolution:";
|
|
//
|
|
// resolutionComboBox
|
|
//
|
|
this.resolutionComboBox.DropDownWidth = 259;
|
|
this.resolutionComboBox.Enabled = false;
|
|
this.resolutionComboBox.FormattingEnabled = true;
|
|
this.resolutionComboBox.Location = new System.Drawing.Point(208, 290);
|
|
this.resolutionComboBox.Name = "resolutionComboBox";
|
|
this.resolutionComboBox.Size = new System.Drawing.Size(262, 28);
|
|
this.resolutionComboBox.TabIndex = 10;
|
|
//
|
|
// RoiCfgCtrl
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.Controls.Add(this.resolutionComboBox);
|
|
this.Controls.Add(this.label2);
|
|
this.Controls.Add(this.imageRotationComboBox);
|
|
this.Controls.Add(this.imageRotationLabel);
|
|
this.Controls.Add(this.blackAndWhiteCheckBox);
|
|
this.Controls.Add(this.loResolutionCheckBox);
|
|
this.Controls.Add(this.parentNameComboBox);
|
|
this.Controls.Add(this.textBox1);
|
|
this.Controls.Add(this.label1);
|
|
this.Controls.Add(this.parentNameLabel);
|
|
this.Controls.Add(this.nameTextBox);
|
|
this.Controls.Add(this.nameLabel);
|
|
this.Controls.Add(this.classNameLabel);
|
|
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.Name = "RoiCfgCtrl";
|
|
this.Size = new System.Drawing.Size(750, 462);
|
|
this.Load += new System.EventHandler(this.PumpCfgCtrl_Load);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
|
|
private System.Windows.Forms.ComboBox resolutionComboBox;
|
|
|
|
private System.Windows.Forms.Label label2;
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Label parentNameLabel;
|
|
private System.Windows.Forms.TextBox nameTextBox;
|
|
private System.Windows.Forms.Label nameLabel;
|
|
private System.Windows.Forms.Label classNameLabel;
|
|
private System.Windows.Forms.ComboBox parentNameComboBox;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.TextBox textBox1;
|
|
private System.Windows.Forms.ComboBox imageRotationComboBox;
|
|
private System.Windows.Forms.Label imageRotationLabel;
|
|
private System.Windows.Forms.CheckBox blackAndWhiteCheckBox;
|
|
private System.Windows.Forms.CheckBox loResolutionCheckBox;
|
|
}
|
|
}
|