Exemple #1
0
        public List <GameObject> FindCandidatesForCamSchema(CamSchema cschema)
        {
            List <GameObject> cndts = new List <GameObject>();

            foreach (var cam in camCollection.CameraList)
            {
                if (cschema.IsConsistent(cam.GetComponent <CamAttributesStruct>().AsSchema()))
                {
                    cndts.Add(cam);
                }
            }

            return(cndts);
        }
Exemple #2
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);
        }
Exemple #3
0
 public CamTransitionSchema(CamSchema s1, CamSchema s2)
 {
     Shot1 = s1;
     Shot2 = s2;
 }