コード例 #1
0
        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;
            }
        }
コード例 #2
0
        void SwitchTo2D()
        {
            Marker1DSpecific = System.Windows.Visibility.Collapsed;
            Marker2DSpecific = System.Windows.Visibility.Visible;

            markerMode = MarkerMode.M2D;
            CollapseInfoPanel();
            deptheditor.SwitchTo2DMode();
        }
コード例 #3
0
 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;
 }
コード例 #4
0
 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;
 }
コード例 #5
0
        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;
            }
        }
コード例 #6
0
        void SwitchTo2D() {
            Marker1DSpecific = System.Windows.Visibility.Collapsed;
            Marker2DSpecific = System.Windows.Visibility.Visible;

            markerMode = MarkerMode.M2D;
            CollapseInfoPanel();
            deptheditor.SwitchTo2DMode();
        }