public CalibrationTestTab() { InitializeComponent(); _testMode = TestModes.None; _currentPointTest = EmptyPointTest; _camImageFirst.TemporaryPoint.IsNullChanged += LeftImageTempPointChanged; _camImageSec.TemporaryPoint.IsNullChanged += RightImageTempPointChanged; }
public NiAlphaProperty(NiFile niFile) : base(niFile) { flags = niFile.Reader.ReadInt16(); cutoff = niFile.Reader.ReadByte(); // flags into useful values alphaBlend = (flags & 1) == 1; sourceBlendMode = (BlendModes)(BitConverter.GetBytes(flags >> 1)[0] & 15); destinationBlendMode = (BlendModes)(BitConverter.GetBytes(flags >> 5)[0] & 15); alphaTest = (flags & 9) == 1; alphaTestMode = (TestModes)(BitConverter.GetBytes(flags >> 10)[0] & 15); zWrite = (flags & 13) == 1 ? 1 : 0; }
private void _butEpiLineTest_Click(object sender, RoutedEventArgs e) { CurrentTestMode = TestModes.EpiLineTest; }