145 lines
3.6 KiB
C#
145 lines
3.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Frames;
|
|
using Data.DataModel;
|
|
|
|
namespace Projects
|
|
{
|
|
public class Project
|
|
{
|
|
int _projectId;
|
|
string _projectName;
|
|
string _outPath;
|
|
DateTime _createdDate;
|
|
DateTime _lastUpdatedDate;
|
|
int _frameResolutionX;
|
|
int _frameResolutionY;
|
|
double _hologramWidth;
|
|
double _hologramHeight;
|
|
double _frameWidth;
|
|
double _frameHeight;
|
|
int _grayRangeHigh;
|
|
int _grayRangeLow;
|
|
List<Layer> _layers = new List<Layer>();
|
|
FrameGroup[,] _frameGroups;
|
|
|
|
public int ProjectId
|
|
{
|
|
get { return _projectId; }
|
|
set { _projectId = value; }
|
|
}
|
|
|
|
public string ProjectName
|
|
{
|
|
get { return _projectName; }
|
|
set { _projectName = value; }
|
|
}
|
|
|
|
public string OutPath
|
|
{
|
|
get { return _outPath; }
|
|
set { _outPath = value; }
|
|
}
|
|
|
|
public DateTime CreatedDate
|
|
{
|
|
get { return _createdDate; }
|
|
set { _createdDate = value; }
|
|
}
|
|
|
|
public DateTime LastUpdatedDate
|
|
{
|
|
get { return _lastUpdatedDate; }
|
|
set { _lastUpdatedDate = value; }
|
|
}
|
|
|
|
public int ResolutionX
|
|
{
|
|
get { return _frameResolutionX; }
|
|
set { _frameResolutionX = value; }
|
|
}
|
|
|
|
public int ResolutionY
|
|
{
|
|
get { return _frameResolutionY; }
|
|
set { _frameResolutionY = value; }
|
|
}
|
|
|
|
public int GrayRangeHigh
|
|
{
|
|
get { return _grayRangeHigh; }
|
|
set { _grayRangeHigh = value; }
|
|
}
|
|
|
|
public int GrayRangeLow
|
|
{
|
|
get { return _grayRangeLow; }
|
|
set { _grayRangeLow = value; }
|
|
}
|
|
|
|
public double HologramWidth
|
|
{
|
|
get { return _hologramWidth; }
|
|
set { _hologramWidth = value; }
|
|
}
|
|
|
|
public double HologramHeight
|
|
{
|
|
get { return _hologramHeight; }
|
|
set { _hologramHeight = value; }
|
|
}
|
|
|
|
public double FrameWidth
|
|
{
|
|
get { return _frameWidth; }
|
|
set { _frameWidth = value; }
|
|
}
|
|
|
|
public double FrameHeight
|
|
{
|
|
get { return _frameHeight; }
|
|
set { _frameHeight = value; }
|
|
}
|
|
|
|
public List<Layer> Layers
|
|
{
|
|
get { return _layers; }
|
|
set { _layers = value; }
|
|
}
|
|
|
|
public FrameGroup[,] FrameGroups
|
|
{
|
|
get { return _frameGroups; }
|
|
set { _frameGroups = value; }
|
|
}
|
|
|
|
Project()
|
|
{
|
|
|
|
}
|
|
|
|
public Project(ProjectModel projectModel)
|
|
{
|
|
_projectId = projectModel.Id;
|
|
_projectName = projectModel.ProjectName;
|
|
_outPath = projectModel.OutPath;
|
|
_createdDate = projectModel.CreatedDate;
|
|
_lastUpdatedDate = projectModel.LastUpdatedDate;
|
|
_hologramWidth = projectModel.HologramWidth;
|
|
_hologramHeight = projectModel.HologramHeight;
|
|
_frameWidth = projectModel.FrameWidth;
|
|
_frameHeight = projectModel.FrameHeight;
|
|
_frameResolutionX = projectModel.FrameResolutionX;
|
|
_frameResolutionY = projectModel.FrameResolutionY;
|
|
_grayRangeHigh = projectModel.GrayRangeHigh;
|
|
_grayRangeLow = projectModel.GrayRangeLow;
|
|
|
|
foreach (LayerModel lM in projectModel.Layers)
|
|
{
|
|
Layer layer = new Layer(lM);
|
|
_layers.Add(layer);
|
|
}
|
|
}
|
|
}
|
|
}
|