Ejemplo n.º 1
0
        public EventValueRenderer(XElement valueentry, double guisignaldisplaywidth, int imagewidth)
            : base(valueentry)
        {
            this.Baseline = (float)ValueEntry.GetBaseline(valueentry);
            this.Lsbvalue = (float)ValueEntry.GetLsbValue(valueentry);
            this.Unit     = ValueEntry.GetUnit(valueentry);

            this.samplespersec = ValueEntry.GetSampleRate(valueentry);
            this.channels      = ValueEntry.GetNumChannels(valueentry);

            this.imageheight = (int)guisignaldisplaywidth;
            this.imagewidth  = imagewidth;
            this.dirtyrect   = new Int32Rect(0, 0, this.imagewidth, this.imageheight);

            this.sampledata = new SampleD[this.channels];

            this.ReOpen();

            // for VectorRenderSlices
            this.geometries = new Hashtable();
            this.typeface   = new Typeface(SystemFonts.MessageFontFamily, SystemFonts.MessageFontStyle, SystemFonts.MessageFontWeight, FontStretches.Normal);
        }
Ejemplo n.º 2
0
 public EventValueData(XElement valueentry)
     : base(valueentry, ValueEntry.GetNumChannels(valueentry))
 {
 }