Example #1
0
        private PropertyInfo _pi; // cache PropertyInfo for C1.C1Schedule.Appointment property
        #endregion

        //-----------------------------------------------------
        #region ** Initializing
        // internal because only predefined fields are allowed
        internal AppointmentField(string name, Type dataType, bool editable = true, bool hidden = false)
        {
            _caption    = Name = name;
            Hidden      = hidden;
            DataType    = dataType;
            ReadOnly    = !editable;
            _visible    = !hidden;
            _sort       = SortFlags.None;
            _groupIndex = -1;
            _pi         = typeof(Appointment).GetProperty(name);
        }
 protected DrawRendererSettings CreateDrawRendererSettings(Camera camera, SortFlags sortFlags, RendererConfiguration rendererConfiguration, bool supportsDynamicBatching)
 {
     DrawRendererSettings settings = new DrawRendererSettings(camera, m_ShaderPassNames[0]);
     for (int i = 1; i < m_ShaderPassNames.Count; ++i)
         settings.SetShaderPassName(i, m_ShaderPassNames[i]);
     settings.sorting.flags = sortFlags;
     settings.rendererConfiguration = rendererConfiguration;
     settings.flags = DrawRendererFlags.EnableInstancing;
     if (supportsDynamicBatching)
         settings.flags |= DrawRendererFlags.EnableDynamicBatching;
     return settings;
 }
Example #3
0
 /// <summary>
 /// sorts independently each matrix row or each matrix column
 /// </summary>
 /// <param name="src">The source single-channel array</param>
 /// <param name="dst">The destination integer array of the same size as src</param>
 /// <param name="flags">The operation flags, a combination of SortFlag values</param>
 public static void SortIdx(InputArray src, OutputArray dst, SortFlags flags)
 {
     if (src == null)
         throw new ArgumentNullException("src");
     if (dst == null)
         throw new ArgumentNullException("dst");
     src.ThrowIfDisposed();
     dst.ThrowIfNotReady();
     NativeMethods.core_sortIdx(src.CvPtr, dst.CvPtr, (int)flags);
     GC.KeepAlive(src);
     dst.Fix();
 }
Example #4
0
        public void RenderObjectsWithError(ScriptableRenderContext context, ref CullResults cullResults, Camera camera, FilterRenderersSettings filterSettings, SortFlags sortFlags)
        {
            Material errorMaterial = GetMaterial(MaterialHandles.Error);

            if (errorMaterial != null)
            {
                DrawRendererSettings errorSettings = new DrawRendererSettings(camera, m_LegacyShaderPassNames[0]);
                for (int i = 1; i < m_LegacyShaderPassNames.Count; ++i)
                {
                    errorSettings.SetShaderPassName(i, m_LegacyShaderPassNames[i]);
                }

                errorSettings.sorting.flags         = sortFlags;
                errorSettings.rendererConfiguration = RendererConfiguration.None;
                errorSettings.SetOverrideMaterial(errorMaterial, 0);
                context.DrawRenderers(cullResults.visibleRenderers, ref errorSettings, filterSettings);
            }
        }
Example #5
0
 // ** ctor
 public NullComparer(C1.Win.C1FlexGrid.C1FlexGrid flex, C1.Win.C1FlexGrid.SortColEventArgs e)
 {
     _flex  = flex;
     _order = e.Order;
     _col   = e.Col;
 }
Example #6
0
 // ctor
 public FileNameComparer(C1FlexGrid flex, SortFlags order)
 {
     _flex = flex;
     _desc = ((order & SortFlags.Descending) != 0);
 }
    // 指定された Passでキャラクターを描画します
    private void DrawCharacter(ScriptableRenderContext context, Camera camera, ShaderPassName pass, SortFlags sortFlags)
    {
        var settings = new DrawRendererSettings(camera, pass);

        settings.sorting.flags = sortFlags;

        var filterSettings = new FilterRenderersSettings(true)
        {
            renderQueueRange = RenderQueueRange.transparent,
            layerMask        = 1 << LayerDefine.CHARA
        };

        context.DrawRenderers(cull.visibleRenderers, ref settings, filterSettings);
    }
Example #8
0
 internal static extern void cvSort(Arr src, Arr dst, Arr idxmat, SortFlags flags);
Example #9
0
 /// <summary>
 /// sorts independently each matrix row or each matrix column
 /// </summary>
 /// <param name="flags">The operation flags, a combination of SortFlag values</param>
 /// <returns>The destination integer array of the same size as src</returns>
 public Mat SortIdx(SortFlags flags)
 {
     var dst = new Mat();
     Cv2.SortIdx(this, dst, flags);
     return dst;
 }
Example #10
0
        private void ConfigurarGrilla()
        {
            proyectosC1FlexGrid.DataSource = _grillaBindingSource;

            var columnsEditor = proyectosC1FlexGrid.ColumnEditor<ResumenProyecto>();

            //Definicion de las columnas
            columnsEditor.AddColumn(x => x.EstadoDescripcion, "Estado", 100);
            columnsEditor.AddColumn(x => x.NombreProyectoPadre, "Proyecto Padre", 100);
            columnsEditor.AddColumn(x => x.OrdenTrabajoCodigo, "OT", 100);
            columnsEditor.AddColumn(x => x.AvancePorcentaje, "Avance", 50);
            columnsEditor.AddColumn(x => x.UsuarioLiderSiglas, "Líder", 50);
            columnsEditor.AddColumn(x => x.ProductividadPorcentaje, "Productividad", 60);
            columnsEditor.AddColumn(x => x.FechaInicio, "Inicio Proyecto", 80);
            columnsEditor.AddColumn(x => x.UltimaActualizacion, "Actualizado a", 80);
            columnsEditor.AddColumn(x => x.DiasDisponibles, "Días Disponibles", 70);
            columnsEditor.AddColumn(x => x.PrecioFinal, "Precio Final", 70);
            columnsEditor.AddColumn(x => x.MonedaDescripcion, "Moneda", 50);
            columnsEditor.AddColumn(x => x.TotalCOPC, "COPC", 60);
            columnsEditor.AddColumn(x => x.TotalNoCOPC, "No COPC", 60);
            var columnaNombre = columnsEditor.AddColumn(x => x.NombreProyecto, "Nombre", 100);
            var columnaProbabilidad = columnsEditor.AddColumn(x => x.Probabilidad, "Probabilidad", 80);
            columnaProbabilidad.Format = Formatos.FormatoPorcentaje;
            columnsEditor.AddColumn(x => x.PaisDescripcion, "País", 80);
            columnsEditor.AddColumn(x => x.UnidadNegocioDescripcion, "UN", 70);
            columnsEditor.AddColumn(x => x.ClienteDescripcion, "Cliente", 120);
            columnsEditor.AddColumn(x => x.UsuarioCreadorSiglas, "Creador", 50);

            //Configurar ordenamiento por defecto
            _ordenamientoColumna = columnaNombre.SafeIndex;
            _ordenamientoDireccion = SortFlags.Ascending;
        }
Example #11
0
        private void ProyectosC1FlexGrid_BeforeSort(object sender, SortColEventArgs e)
        {
            var nroFilaActual = proyectosC1FlexGrid.Row;

            if (proyectosC1FlexGrid.IsCellValid(nroFilaActual, 0))
            {
                //Si la celda seleccionada es valida, se guarda el item
                _itemSeleccionado = proyectosC1FlexGrid.Rows[nroFilaActual].DataSource as ResumenProyecto;
            }
            else
            {
                _itemSeleccionado = null;
            }

            if (proyectosC1FlexGrid.Cols[e.Col] == null)
            {
                return;
            }

            _ordenamientoColumna = e.Col;
            _ordenamientoDireccion = e.Order;

            ObtenerDatos();
        }
        private void RenderObjectsWithError(ref ScriptableRenderContext context, FilterRenderersSettings filterSettings, SortFlags sortFlags, FilterResults visibleRenderers, CameraContext cameraContext)
        {
            if (m_ErrorMaterial != null)
            {
                DrawRendererSettings errorSettings = new DrawRendererSettings(cameraContext.Camera, s_LegacyPassNames[0]);
                for (int i = 1; i < s_LegacyPassNames.Length; ++i)
                {
                    errorSettings.SetShaderPassName(i, s_LegacyPassNames[i]);
                }

                errorSettings.sorting.flags         = sortFlags;
                errorSettings.rendererConfiguration = RendererConfiguration.None;
                errorSettings.SetOverrideMaterial(m_ErrorMaterial, 0);
                context.DrawRenderers(visibleRenderers, ref errorSettings, filterSettings);
            }
        }