Exemple #1
0
        public StateRenderObj GetStateRenderObj(string state)
        {
            StateRenderObj render = null;

            collection.TryGetValue(state, out render);
            return(render);
        }
Exemple #2
0
        public List <List <PartInfo> > ListStatePartInfos(string stateId)
        {
            StateRenderObj stateRender = classRenderObj.GetStateRenderObj(stateId);

            if (stateRender != null)
            {
                return(stateRender.ListPartInfo);
            }
            return(null);
        }
Exemple #3
0
        public ControlRenderObj(Object parent, ClassRenderObj classRenderObj)
        {
            this.parent = parent;

            /*
             *          ITransform transformThis = this as ITransform;
             *          transformThis.Local = Matrix.Identity;
             */
            this.classRenderObj = classRenderObj;
            this.staticRender   = classRenderObj.GetStateRenderObj(ClassRenderObj.StaticStateName);
        }
Exemple #4
0
        protected void AddStateRender(Model model, ModelBone bone)
        {
            string controlName;
            int    indexSplit = bone.Name.IndexOf(":");

            if (indexSplit > 0)
            {
                controlName = bone.Name.Substring(0, indexSplit + 1).Trim();
            }
            else
            {
                controlName = bone.Name.Trim();
            }

            // create a state render object
            StateRenderObj stateRender = new StateRenderObj(model, bone);

            collection.Add(controlName, stateRender);
        }