void InitDepthEditor() { deptheditor.Init(videoInfo.Resolution, calibrationMarkers); var hmarkerCalibration = model.Markers.Item as synesis.HeightMarkerCalibration; if (hmarkerCalibration != null) { //1d Marker1DSpecific = System.Windows.Visibility.Visible; Marker2DSpecific = System.Windows.Visibility.Collapsed; markerMode = MarkerMode.M1D; deptheditor.SwitchTo1DMode(); btn1D.IsChecked = true; } else { //2d Marker1DSpecific = System.Windows.Visibility.Collapsed; Marker2DSpecific = System.Windows.Visibility.Visible; markerMode = MarkerMode.M2D; deptheditor.SwitchTo2DMode(); btn2D.IsChecked = true; } }
void SwitchTo2D() { Marker1DSpecific = System.Windows.Visibility.Collapsed; Marker2DSpecific = System.Windows.Visibility.Visible; markerMode = MarkerMode.M2D; CollapseInfoPanel(); deptheditor.SwitchTo2DMode(); }
public CSharpOutputBuilder(string name, string indentationString = DefaultIndentationString, bool isTestOutput = false, MarkerMode markerMode = MarkerMode.None) { _name = name; _contents = new List <string>(); _currentLine = new StringBuilder(); _usingDirectives = new SortedSet <string>(); _staticUsingDirectives = new SortedSet <string>(); _indentationString = indentationString; _isTestOutput = isTestOutput; _markerMode = markerMode; }
public CSharpOutputBuilder(string name, PInvokeGeneratorConfiguration config, string indentationString = DefaultIndentationString, bool isTestOutput = false, MarkerMode markerMode = MarkerMode.None, bool writeSourceLocation = false) { _name = name; _config = config; _contents = new List <string>(); _currentLine = new StringBuilder(); _usingDirectives = new SortedSet <string>(); _staticUsingDirectives = new SortedSet <string>(); _indentationString = indentationString; _isTestOutput = isTestOutput; _markerMode = markerMode; _writeSourceLocation = writeSourceLocation; }