Exemplo n.º 1
0
        /// <summary>
        /// Returns the material overwrite assigned, if any.
        /// The material property name is indicated as None if there is no material overwrite assignment.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        protected void getMaterialOverwrite(IObservableMaterialOverwrite app)
        {
            string name = app.GetMaterialOverwrite(Name);

            MaterialOverwrite = HelperFunctions.Fill(name, Material.Factory);
            MaterialOverwrite = (name == Constants.None) ? null : Material.Factory(name);
        }
 /// <summary>
 /// Returns the material overwrite assigned, if any.
 /// The material property name is indicated as None if there is no material overwrite assignment.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <returns>System.String.</returns>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 protected string getMaterialOverwriteName(IObservableMaterialOverwrite app)
 {
     _materialOverwriteName = app.GetMaterialOverwrite(Name);
     return(MaterialOverwriteName);
 }