Beispiel #1
0
        public TeethVisual3D(Color color, GumVisual3D p)
        {
            if (p != null)
            {
                this.parent = p;
                gc          = this.parent.gc;
                tc          = this.parent.tc;
                bc          = this.parent.bc;
                wc          = this.parent.wc;

                Id = p.Id + "_teeth" + tc.Children.Count.ToString("00") + "." + p.Parent.patient.Id;

                if (model == null)
                {
                    model = new Teeth();
                }
                model.Id     = Id;
                model.Length = 0.0;

                sample(color);

                //addTeethRoot();
                //showHideBoundingBox();
            }
        }
Beispiel #2
0
        public BraceVisual3D(Color color, TeethVisual3D p, bool generatedSample)
        {
            if (p != null)
            {
                this.parent = p;
                gc          = this.parent.gc;
                tc          = this.parent.tc;
                bc          = this.parent.bc;
                wc          = this.parent.wc;

                Id = p.Id + "_brace" + bc.Children.Count.ToString("00") + "." + p.Parent.Parent.patient.Id;;

                if (model == null)
                {
                    model = new Brace();
                }
                model.Id       = Id;
                model.Location = (IsOuterBrace ? Smile.OUTERBRACE : Smile.INNERBRACE);

                if (generatedSample)
                {
                    sample(color);
                }

                Bind(parent);
                //BindingOperations.SetBinding(this, TransformProperty, new Binding("TargetTransform") { Source = this });
                //BindingOperations.SetBinding(this.Manipulator,CombinedManipulator.TargetTransformProperty,new Binding("TargetTransform") { Source = this });
            }
        }
Beispiel #3
0
        public TeethRootVisual3D(Color color, TeethVisual3D p)
        {
            if (p != null)
            {
                this.parent = p;
                gc          = this.parent.gc;
                tc          = this.parent.tc;
                bc          = this.parent.bc;
                wc          = this.parent.wc;

                Id = p.Id + "_rootth" + tc.Children.Count.ToString("00") + "." + p.Parent.Parent.patient.Id;

                if (model == null)
                {
                    model = new Teeth();
                }
                model.Id     = Id;
                model.Length = 0.0;

                sample(color);

                //Adding Teeth Label
                //TextVisual3D text = new TextVisual3D();
                //text.Text = Id.ToString();
                //this.Children.Add(text);

                //showHideBoundingBox();
            }
        }
        public TeethRootVisual3D(Color color, TeethVisual3D p)
        {
            if (p != null)
            {
                this.parent = p;
                gc = this.parent.gc;
                tc = this.parent.tc;
                bc = this.parent.bc;
                wc = this.parent.wc;

                Id = p.Id + "_rootth" + tc.Children.Count.ToString("00") + "." + p.Parent.Parent.patient.Id;
                
                if (model == null) model = new Teeth();
                model.Id = Id;
                model.Length = 0.0;

                sample(color);

                //Adding Teeth Label
                //TextVisual3D text = new TextVisual3D();
                //text.Text = Id.ToString();
                //this.Children.Add(text);
                
                //showHideBoundingBox();
            }

        }
        public JawVisual3D(Patient p)
        {
            //sample();
            this.patient = p;

            gc = new GumContainer();
            tc = new ToothContainer();
            bc = new BraceContainer();
            wc = new WireContainer();
            mc = new MeasurementContainer();

            displayGumContainer(true);
            displayTeethContainer(true);
            displayBraceContainer(true);
            displayWireContainer(true);
            displayMeasurementContainer(true);
        }
Beispiel #6
0
        public JawVisual3D(Patient p)
        {
            //sample();
            this.patient = p;

            gc = new GumContainer();
            tc = new ToothContainer();
            bc = new BraceContainer();
            wc = new WireContainer();
            mc = new MeasurementContainer();

            displayGumContainer(true);
            displayTeethContainer(true);
            displayBraceContainer(true);
            displayWireContainer(true);
            displayMeasurementContainer(true);
        }
        public GumVisual3D(JawVisual3D p, Color color, string id)
        {
            this.parent = p;
            gc = this.parent.gc;
            tc = this.parent.tc;
            bc = this.parent.bc;
            wc = this.parent.wc;
            if (id == null)
                Id = "gum" + p.gums.Count.ToString("00") + "." + p.patient.Id;
            else
                Id = id;

            sample(color);

            teethDictionaries = new Dictionary<int, string>();
            braceDictionaries = new Dictionary<string, BraceVisual3D>();
            braces = new List<BraceVisual3D>();

        }
Beispiel #8
0
        public GumVisual3D(JawVisual3D p, Color color, string id)
        {
            this.parent = p;
            gc          = this.parent.gc;
            tc          = this.parent.tc;
            bc          = this.parent.bc;
            wc          = this.parent.wc;
            if (id == null)
            {
                Id = "gum" + p.gums.Count.ToString("00") + "." + p.patient.Id;
            }
            else
            {
                Id = id;
            }

            sample(color);

            teethDictionaries = new Dictionary <int, string>();
            braceDictionaries = new Dictionary <string, BraceVisual3D>();
            braces            = new List <BraceVisual3D>();
        }
        public BraceVisual3D(Material material, TeethVisual3D p)
        {
            if (p != null)
            {
                this.parent = p;
                gc = this.parent.gc;
                tc = this.parent.tc;
                bc = this.parent.bc;
                wc = this.parent.wc;

                Id = p.Id + "_brace" + p.Children.Count.ToString("00") + "." + p.Parent.Parent.patient.Id; ;

                if (model == null) model = new Brace();
                model.Id = Id;
                model.Location = (IsOuterBrace ? Smile.OUTERBRACE : Smile.INNERBRACE);

                //sample(material);
                //BindingOperations.SetBinding(this, TransformProperty, new Binding("TargetTransform") { Source = this });
                //BindingOperations.SetBinding(this.Manipulator,CombinedManipulator.TargetTransformProperty,new Binding("TargetTransform") { Source = this });

            }
        }
        public TeethVisual3D(Color color, GumVisual3D p)
        {
            if (p != null)
            {
                this.parent = p;
                gc = this.parent.gc;
                tc = this.parent.tc;
                bc = this.parent.bc;
                wc = this.parent.wc;

                Id = p.Id + "_teeth" + tc.Children.Count.ToString("00") + "." + p.Parent.patient.Id;
                
                if (model == null) model = new Teeth();
                model.Id = Id;
                model.Length = 0.0;

                sample(color);

                //addTeethRoot();
                //showHideBoundingBox();
            }

        }