38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
/*
|
|
* Copyright (c) 2025 LG Electronics Inc.
|
|
* SPDX-License-Identifier: LicenseRef-LGE-Proprietary
|
|
*/
|
|
using System;
|
|
|
|
namespace VisionCommon {
|
|
public enum eFixturePoints {
|
|
One = 1,
|
|
Two = 2
|
|
}
|
|
|
|
public class FixtureSetting : ICloneable {
|
|
public bool Enabled { get; set; } = false;
|
|
public eFixturePoints FixturePoints = eFixturePoints.One;
|
|
public int Pattern1 { get; set; } = 0;
|
|
public int Pattern2 { get; set; } = 0;
|
|
|
|
public object Clone() {
|
|
return new FixtureSetting() {
|
|
Enabled = Enabled,
|
|
FixturePoints = FixturePoints,
|
|
Pattern1 = Pattern1,
|
|
Pattern2 = Pattern2,
|
|
};
|
|
}
|
|
|
|
public static PatternIndex GetFixturePatternIndex(
|
|
PatternIndex curPatternIndex, int fixturePatternId) {
|
|
|
|
var fixturePatternIndex = curPatternIndex.Clone() as PatternIndex;
|
|
fixturePatternIndex.PatternId = fixturePatternId;
|
|
|
|
return fixturePatternIndex;
|
|
}
|
|
}
|
|
}
|