Esempio n. 1
0
        public bool IsConsistent(CamSchema cas)
        {
            if (scale != FramingType.None)
            {
                if (scale != cas.scale)
                {
                    //Debug.Log("not same scale");
                    return(false);
                }
            }

            if (targetLocation != "" && targetLocation != null)
            {
                if (targetLocation != cas.targetLocation)
                {
                    //Debug.Log("not same location");
                    return(false);
                }
            }

            if (targetOrientation != Orient.None)
            {
                if (targetOrientation != cas.targetOrientation)
                {
                    //Debug.Log("not same target Orient");
                    return(false);
                }
            }

            if (!hangle.Equals(Hangle.None))
            {
                if (hangle != cas.hangle)
                {
                    //Debug.Log("not same hangle");
                    return(false);
                }
            }

            if (!vangle.Equals(Vangle.None))
            {
                if (vangle != cas.vangle)
                {
                    //Debug.Log("not same vangle");
                    return(false);
                }
            }

            return(true);
        }
Esempio n. 2
0
 public CamPlanStep(CamPlanStep cps) : base(cps.Action)
 {
     if (cps.CamDetails != null)
     {
         CamDetails = cps.CamDetails.Clone();
     }
     if (cps.TargetDetails != null)
     {
         TargetDetails = cps.TargetDetails.Clone();
     }
     if (cps.CamObject != null)
     {
         CamObject = cps.CamObject;
     }
     //directive = cps.directive;
 }