Ejemplo n.º 1
0
 public TopMarkers(ProfileAnalyzerWindow profileAnalyzerWindow, Draw2D draw2D, Color backgroundColor, Color textColor)
 {
     m_ProfileAnalyzerWindow = profileAnalyzerWindow;
     m_2D = draw2D;
     m_BackgroundColor = backgroundColor;
     m_TextColor       = textColor;
 }
        public TopMarkers(ProfileAnalyzerWindow profileAnalyzerWindow, Draw2D draw2D, Color backgroundColor, Color textColor)
        {
            m_ProfileAnalyzerWindow = profileAnalyzerWindow;
            m_2D = draw2D;
            m_BackgroundColor = backgroundColor;
            m_TextColor       = textColor;

            m_CurrentSettings = new Settings(new RangeSettings(null, 0, null, null, TimingOptions.TimingOption.Time, 0), 0, 0, false, false);
            m_TimeRangeDirty  = true;
        }
 public TopMarkerList(Draw2D draw2D, Units units,
                      int widthColumn0, int widthColumn1, int widthColumn2,
                      Color colorBar, Color colorBarBackground, DrawFrameIndexButton drawFrameIndexButton)
 {
     m_2D = draw2D;
     SetUnits(units);
     m_WidthColumn0          = widthColumn0;
     m_WidthColumn1          = widthColumn1;
     m_WidthColumn2          = widthColumn2;
     this.colorBar           = colorBar;
     this.colorBarBackground = colorBarBackground;
     m_DrawFrameIndexButton  = drawFrameIndexButton;
 }
Ejemplo n.º 4
0
        public ProfileTable(TreeViewState state, MultiColumnHeader multicolumnHeader, ProfileAnalysis model, ProfileAnalyzerWindow profileAnalyzerWindow, Draw2D draw2D, Color barColor) : base(state, multicolumnHeader)
        {
            m_2D    = draw2D;
            m_Model = model;
            m_ProfileAnalyzerWindow = profileAnalyzerWindow;
            m_BarColor = barColor;

            m_MaxColumns = Enum.GetValues(typeof(MyColumns)).Length;
            Assert.AreEqual(m_SortOptions.Length, m_MaxColumns, "Ensure number of sort options are in sync with number of MyColumns enum values");

            // Custom setup
            rowHeight = kRowHeights;
            showAlternatingRowBackgrounds = true;
            showBorder           = true;
            customFoldoutYOffset = (kRowHeights - EditorGUIUtility.singleLineHeight) * 0.5f; // center foldout in the row since we also center content. See RowGUI
            // extraSpaceBeforeIconAndLabel = 0;
            multicolumnHeader.sortingChanged        += OnSortingChanged;
            multicolumnHeader.visibleColumnsChanged += OnVisibleColumnsChanged;

            Reload();
        }
Ejemplo n.º 5
0
 public BoxAndWhiskerPlot(Draw2D draw2D, Units units)
 {
     m_2D = draw2D;
     SetUnits(units);
     m_ColorBackground = new Color(0.4f, 0.4f, 0.4f);
 }
Ejemplo n.º 6
0
 public BoxAndWhiskerPlot(Draw2D draw2D, Units units, Color colorBackground)
 {
     m_2D = draw2D;
     SetUnits(units);
     m_ColorBackground = colorBackground;
 }
Ejemplo n.º 7
0
 public Histogram(Draw2D draw2D, Units units, Color barBackground)
 {
     m_2D = draw2D;
     SetUnits(units);
     m_ColorBarBackground = barBackground;
 }
Ejemplo n.º 8
0
 public Histogram(Draw2D draw2D, Units units)
 {
     m_2D = draw2D;
     SetUnits(units);
     m_ColorBarBackground = new Color(0.5f, 0.5f, 0.5f);
 }