示例#1
0
		public AnimSkin(IResourceManager resourceManager, ManagedList<AnimBone> b)
		{
			this.bones = b;
			this.resourceManager = resourceManager;
			this.skeleton = new ResourceReference(AnimSkel.TypeHash, resourceManager, this);
			this.skeletonModel = new ResourceReference(Model.TypeHash, resourceManager, this);
		}
示例#2
0
        /// <summary>
        /// Collects all available tuners from the device.
        /// </summary>
        private void fetchTuners()
        {
            tuners = new ManagedList<V4LTuner>();
            v4l2_tuner cur = new v4l2_tuner();

            cur.index = 0;
            while (ioControl.GetTuner(ref cur) == 0)
            {
                tuners.Add(new V4LTuner(this, cur.index, cur.type));
                cur.index++;
            }
        }
示例#3
0
        /// <summary>
        /// Collects all available video outputs from the device.
        /// </summary>
        private void fetchOutputs()
        {
            outputs = new ManagedList<V4LOutput>();
            v4l2_output cur = new v4l2_output();

            cur.index = 0;
            while (ioControl.EnumerateOutputs(ref cur) == 0)
            {
                outputs.Add(new V4LOutput(cur));
                cur.index++;
            }
        }
示例#4
0
        /// <summary>
        /// Collects all available TV standards from the device.
        /// </summary>
        private void fetchStandards()
        {
            standards = new ManagedList<V4LStandard>();
            v4l2_standard cur = new v4l2_standard();

            cur.index = 0;
            while (ioControl.EnumerateStandards(ref cur) == 0)
            {
                standards.Add(new V4LStandard(cur));
                cur.index++;
            }
        }
示例#5
0
        /// <summary>
        /// Collects all available video inputs from the device.
        /// </summary>
        private void fetchInputs()
        {
            inputs = new ManagedList<V4LInput>();
            v4l2_input cur = new v4l2_input();

            cur.index = 0;
            while (ioControl.EnumerateInputs(ref cur) == 0)
            {
                inputs.Add(new V4LInput(this, cur));
                cur.index++;
            }
        }
示例#6
0
        /// <summary>
        /// Collects all available audio inputs from the device.
        /// </summary>
        private void fetchAudioInputs()
        {
            audioInputs = new ManagedList<V4LAudioInput>();
            v4l2_audio cur = new v4l2_audio();

            cur.index = 0;
            while (ioControl.EnumerateAudioInputs(ref cur) == 0)
            {
                audioInputs.Add(new V4LAudioInput(this, cur));
                cur.index++;
            }
        }
示例#7
0
        /// <summary>
        /// Destruye todo el modelo y lo deja limpio
        /// </summary>
        /// <TODO>Modified, Save, Load</TODO>
        public void Reset()
        {
            try
            {
                this.undoManager = new UndoManager(this);
                undoManager.Enabled = false;
                this.abstractCases = new ManagedList<Canguro.Model.Load.AbstractCase>();
                abstractCases.ElementRemoved += new ManagedList<AbstractCase>.ListChangedEventHandler(abstractCases_ElementRemoved);
                this.activeLoadCase = null;
                this.areaList = new ItemList<AreaElement>();
                this.constraintList = new ManagedList<Constraint>();
                this.isLocked = false;
                this.jointList = new ItemList<Joint>();
                this.layers = new ItemList<Layer>();
                layers.ElementRemoved += new ManagedList<Layer>.ListChangedEventHandler(layers_ElementRemoved);
                this.lineList = new ItemList<LineElement>();
                this.loadCases = new ManagedDictionary<string, LoadCase>();
                loadCases.ElementRemoved += new ManagedDictionary<string, LoadCase>.ListChangedEventHandler(loadCases_ElementRemoved);
                this.summary = new ModelSummary(this);

                this.designOptions = new List<DesignOptions>();
                designOptions.Add(NoDesign.Instance);
                designOptions.Add(new LRFD99());
                designOptions.Add(new ACI318_02());
                designOptions.Add(new ASD01());
                designOptions.Add(new RCDF2001());
                designOptions.Add(new UBC97_ASD());
                designOptions.Add(new UBC97_LRFD());
                designOptions.Add(new UBC97_Conc());
                steelDesignOptions = NoDesign.Instance;
                concreteDesignOptions = NoDesign.Instance;
                coldFormedDesignOptions = NoDesign.Instance;
                aluminumDesignOptions = NoDesign.Instance;

                this.results = new Canguro.Model.Results.Results(0);

                // Layer es un Item y todos los Items asignan su propiedad layer
                // de acuerdo a ActiveLayer, por lo que hay que asignarla en null
                // antes de crear el primer Layer, root de todos los demás
                activeLayer = null;
                Layer rootLayer = new Layer(Culture.Get("defaultLayerName"));
                ActiveLayer = rootLayer;

                activeLoadCase = new LoadCase(Culture.Get("defaultLoadCase"), LoadCase.LoadCaseType.Dead);
                activeLoadCase.SelfWeight = 1.0f;
                loadCases.Add(activeLoadCase.Name, activeLoadCase);

                AnalysisCase anc = new Canguro.Model.Load.AnalysisCase(Culture.Get("defaultLoadCase"));
                AbstractCases.Add(anc);
                if (anc != null)
                {
                    StaticCaseProps props = anc.Properties as StaticCaseProps;
                    if (props != null)
                    {
                        List<StaticCaseFactor> list = props.Loads;
                        list.Add(new StaticCaseFactor(ActiveLoadCase));
                        props.Loads = list;
                    }
                }

                MaterialManager.Instance.Initialize();
                SectionManager.Instance.Initialize(ref sections);
                sections.ElementRemoved += new Catalog<Canguro.Model.Section.Section>.ListChangedEventHandler(sections_ElementRemoved);
                this.currentPath = "";
                foreach (Canguro.Model.UnitSystem.UnitSystem us in UnitSystemsManager.Instance.UnitSystems)
                    if (Properties.Settings.Default.UnitSystem.Equals(us.GetType().Name))
                        UnitSystemsManager.Instance.CurrentSystem = us;

                viewManager = Canguro.View.GraphicViewManager.Instance;
                modified = false;
            }
            catch (Exception e)
            {
                Console.WriteLine(e.StackTrace);
                throw e;
            }
            finally
            {
                if (ModelReset != null)
                    ModelReset(this, EventArgs.Empty);
                undoManager.Enabled = true;
            }
        }
示例#8
0
		private AnimKeyFrame(ManagedList<AnimBone> b)
		{
			this.bones = b;
		}
示例#9
0
		public AnimSkel(ManagedList<AnimBone> b)
		{
			this.bones = b;
		}