mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 12:15:01 +00:00
Removes essentials-framework as a submodule and brings the files back into the main repo
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
using PepperDash.Core;
|
||||
using PepperDash.Essentials.Core;
|
||||
using PepperDash.Essentials.Devices.Common.Codec;
|
||||
using System.Text.RegularExpressions;
|
||||
using Crestron.SimplSharp.Reflection;
|
||||
|
||||
|
||||
namespace PepperDash.Essentials.Devices.Common.Cameras
|
||||
{
|
||||
public enum eCameraCapabilities
|
||||
{
|
||||
None = 0,
|
||||
Pan = 1,
|
||||
Tilt = 2,
|
||||
Zoom = 4,
|
||||
Focus = 8
|
||||
}
|
||||
|
||||
public abstract class CameraBase : Device
|
||||
{
|
||||
public bool CanPan
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Capabilities & eCameraCapabilities.Pan) == eCameraCapabilities.Pan;
|
||||
}
|
||||
}
|
||||
|
||||
public bool CanTilt
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Capabilities & eCameraCapabilities.Tilt) == eCameraCapabilities.Tilt;
|
||||
}
|
||||
}
|
||||
|
||||
public bool CanZoom
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Capabilities & eCameraCapabilities.Zoom) == eCameraCapabilities.Zoom;
|
||||
}
|
||||
}
|
||||
|
||||
public bool CanFocus
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Capabilities & eCameraCapabilities.Focus) == eCameraCapabilities.Focus;
|
||||
}
|
||||
}
|
||||
|
||||
// A bitmasked value to indicate the movement capabilites of this camera
|
||||
protected eCameraCapabilities Capabilities { get; set; }
|
||||
|
||||
public CameraBase(string key, string name) :
|
||||
base(key, name) { }
|
||||
}
|
||||
|
||||
public class CameraPropertiesConfig
|
||||
{
|
||||
public CommunicationMonitorConfig CommunicationMonitorProperties { get; set; }
|
||||
|
||||
public ControlPropertiesConfig Control { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user