[longomatch] Add a CameraConfig object.



commit 80e5ba9bddd83f6762216725ae28d6e8dfd1dd9e
Author: Julien Moutte <julien fluendo com>
Date:   Wed Apr 22 15:34:50 2015 +0200

    Add a CameraConfig object.
    
    This object will be used to store information about the camera such as the index in the media file set, a 
region of interest, etc... CamerasVisible which was a list of int will be replaces by a list of CameraConfig.

 LongoMatch.Core/LongoMatch.Core.csproj |    1 +
 LongoMatch.Core/Makefile.am            |    1 +
 LongoMatch.Core/Store/CameraConfig.cs  |   54 ++++++++++++++++++++++++++++++++
 3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/LongoMatch.Core.csproj b/LongoMatch.Core/LongoMatch.Core.csproj
index 5357d07..d34c928 100644
--- a/LongoMatch.Core/LongoMatch.Core.csproj
+++ b/LongoMatch.Core/LongoMatch.Core.csproj
@@ -146,6 +146,7 @@
     <Compile Include="Interfaces\GUI\IViewPort.cs" />
     <Compile Include="Store\ActionLink.cs" />
     <Compile Include="Interfaces\IService.cs" />
+    <Compile Include="Store\CameraConfig.cs" />
   </ItemGroup>
   <ItemGroup>
     <Folder Include="Common\" />
diff --git a/LongoMatch.Core/Makefile.am b/LongoMatch.Core/Makefile.am
index 53604df..9fdb07b 100644
--- a/LongoMatch.Core/Makefile.am
+++ b/LongoMatch.Core/Makefile.am
@@ -78,6 +78,7 @@ SOURCES = ../AssemblyInfo/AssemblyInfo.cs \
        Stats/TeamStats.cs \
        Stats/TimerStats.cs \
        Store/ActionLink.cs \
+       Store/CameraConfig.cs \
        Store/Coordinates.cs \
        Store/DashboardButton.cs \
        Store/Drawables/Angle.cs \
diff --git a/LongoMatch.Core/Store/CameraConfig.cs b/LongoMatch.Core/Store/CameraConfig.cs
new file mode 100644
index 0000000..f187af3
--- /dev/null
+++ b/LongoMatch.Core/Store/CameraConfig.cs
@@ -0,0 +1,54 @@
+//
+//  Copyright (C) 2015 FLUENDO S.A.
+//
+//  This program is free software; you can redistribute it and/or modify
+//  it under the terms of the GNU General Public License as published by
+//  the Free Software Foundation; either version 2 of the License, or
+//  (at your option) any later version.
+//
+//  This program is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+//  GNU General Public License for more details.
+//
+//  You should have received a copy of the GNU General Public License
+//  along with this program; if not, write to the Free Software
+//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+//
+using System;
+using LongoMatch.Core.Common;
+
+namespace LongoMatch.Core.Store
+{
+       /// <summary>
+       /// Defines a configuration for a camera.
+       /// </summary>
+       [Serializable]
+       public class CameraConfig
+       {
+               public CameraConfig (int index)
+               {
+                       Index = index;
+                       RegionOfInterest = new Area (0, 0, 0, 0);
+               }
+
+               /// <summary>
+               /// Gets or sets the index of this camera with regards to the MediaFileSet.
+               /// </summary>
+               /// <value>The index of the camera.</value>
+               public int Index {
+                       get;
+                       set;
+               }
+
+               /// <summary>
+               /// Gets or sets the region of interest for this camera.
+               /// </summary>
+               /// <value>The region of interest.</value>
+               public Area RegionOfInterest {
+                       get;
+                       set;
+               }
+       }
+}
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]