Пример #1
0
        public void VerifyPluginConfig(AgUtPluginConfigVerifyResult pPluginCfgResult)
        {
            DebugMessage(AgEUtLogMsgType.eUtLogMsgDebug, "DragLiftExample:VerifyPluginConfig()");

            pPluginCfgResult.Result  = true;
            pPluginCfgResult.Message = "OK";
        }
        public void VerifyPluginConfig(AgUtPluginConfigVerifyResult pPluginCfgResult)
        {
            Message(AgEUtLogMsgType.eUtLogMsgDebug, "DensityExponentialExample:VerifyPluginConfig()");

            pPluginCfgResult.Result  = true;
            pPluginCfgResult.Message = "OK";
        }
Пример #3
0
        public void VerifyPluginConfig(AgUtPluginConfigVerifyResult apcvr)
        {
            bool   result  = true;
            string message = "Ok";

            apcvr.Result  = result;
            apcvr.Message = message;
        }
Пример #4
0
        public void VerifyPluginConfig(AgUtPluginConfigVerifyResult pPluginCfgResult)
        {
            Debug.WriteLine(m_DisplayName + ".VerifyPluginConfig()", "Entered:");

            pPluginCfgResult.Result  = true;
            pPluginCfgResult.Message = "Ok";

            Debug.WriteLine(m_DisplayName + ".VerifyPluginConfig()", "Exited:");
        }
Пример #5
0
        public void VerifyPluginConfig(AgUtPluginConfigVerifyResult apcvr)
        {
            bool   result  = true;
            string message = "Ok";

            if (m_diameter < 0.000001)
            {
                result  = false;
                message = "Diameter is too small.";
            }

            apcvr.Result  = result;
            apcvr.Message = message;
        }
Пример #6
0
        public void VerifyPluginConfig(AgUtPluginConfigVerifyResult result)
        {
            try
            {
                Debug.WriteLine("Entered", "VerifyPluginConfig()");

                result.Result  = true;
                result.Message = "Ok";
            }
            finally
            {
                Debug.WriteLine("Exited", "VerifyPluginConfig()");
            }
        }
        public void VerifyPluginConfig(AgUtPluginConfigVerifyResult apcvr)
        {
            bool   result  = true;
            string message = "Ok";

            Debug.WriteLine("--> Entered", m_Name + ".VerifyPluginConfig()");

            if (m_SRPArea < 0.0)
            {
                result  = false;
                message = "SRP Area must be > 0";
            }

            Debug.WriteLine("<-- Exited", m_Name + ".VerifyPluginConfig()");

            apcvr.Result  = result;
            apcvr.Message = message;
        }
Пример #8
0
        public void VerifyPluginConfig(AgUtPluginConfigVerifyResult apcvr)
        {
            bool   result  = true;
            string message = "Ok";

            try
            {
                Debug.WriteLine("--> Entered", this.m_Name + ".VerifyPluginConfig()");

                //====================================================
                // NOTE:
                // The following reasonable acceleration limits are
                // added only to show a sample of code that checks
                // for a range of attribute values that you impose
                // on a user using the plugin.
                //====================================================
                if (!(this.m_AccelX <= 10 && this.m_AccelX >= -10))
                {
                    throw new Exception("AccelX was not within the range of -10 to +10 meters per second squared");
                }
                else if (!(this.m_AccelY <= 10 && this.m_AccelY >= -10))
                {
                    throw new Exception("AccelY was not within the range of -10 to +10 meters per second squared");
                }
                else if (!(this.m_AccelZ <= 10 && this.m_AccelZ >= -10))
                {
                    throw new Exception("AccelZ was not within the range of -10 to +10 meters per second squared");
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine("Exception Message( " + ex.Message + " )", this.m_Name + ".VerifyPluginConfig()");

                result  = false;
                message = ex.Message;
            }
            finally
            {
                Debug.WriteLine("<-- Exited", this.m_Name + ".VerifyPluginConfig()");
            }

            apcvr.Result  = result;
            apcvr.Message = message;
        }
Пример #9
0
        public void VerifyPluginConfig(AgUtPluginConfigVerifyResult apcvr)
        {
            bool   result  = true;
            string message = "Ok";

            Debug.WriteLine("--> Entered", this.m_Name + ".VerifyPluginConfig()");

            if (m_SpecularReflectivity < 0.0 || m_SpecularReflectivity > 1.0)
            {
                result  = false;
                message = "Specular Reflectivity must be between 0.0 and 1.0";
            }
            else if (m_DiffuseReflectivity < 0.0 || m_DiffuseReflectivity > (1.0 - m_SpecularReflectivity))
            {
                result  = false;
                message = "Diffuse Reflectivity must be between 0.0 and (1.0 - Specular)";
            }

            Debug.WriteLine("<-- Exited", this.m_Name + ".VerifyPluginConfig()");

            apcvr.Result  = result;
            apcvr.Message = message;
        }
Пример #10
0
 public void VerifyPluginConfig(AgUtPluginConfigVerifyResult pPluginCfgResult)
 {
     pPluginCfgResult.Result  = true;
     pPluginCfgResult.Message = "Ok";
 }