/// <summary>
 /// Creates a timeseries plot from a function list.
 /// </summary>
 /// <param name="functionList"></param>
 /// <param name="name"></param>
 /// <param name="row"></param>
 /// <param name="numRows"></param>
 /// <param name="mainVisualization"></param>
 public oTimeseriesPlot(oFunctionList functionList, string name, int row, int numRows, Microsoft.DirectX.Direct3D.Font directxFont, oVisMain mainVisualization, Device device )
 {
     this.functionList = functionList;
     this.name = name;
     this.row = row;
     this.numRows = numRows;
     this.directxFont = directxFont;
     this.mainVisualization = mainVisualization;
     this.device = device;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a timeseries plot from a function list.
 /// </summary>
 /// <param name="functionList"></param>
 /// <param name="name"></param>
 /// <param name="row"></param>
 /// <param name="numRows"></param>
 /// <param name="mainVisualization"></param>
 public oTimeseriesPlot(oFunctionList functionList, string name, int row, int numRows, Microsoft.DirectX.Direct3D.Font directxFont, oVisMain mainVisualization, Device device)
 {
     this.functionList      = functionList;
     this.name              = name;
     this.row               = row;
     this.numRows           = numRows;
     this.directxFont       = directxFont;
     this.mainVisualization = mainVisualization;
     this.device            = device;
 }
Esempio n. 3
0
        public void render(ref Device device, ref Microsoft.DirectX.Direct3D.Font directxFont)
        {
            if (this.functions != null && this.functions.Count > 0)
            {
                // Render this module name and bounding box

                // Draw the module name
                directxFont.DrawText(null, name, x, y, Color.White);

                // TODO: Draw the module border
            }
        }
Esempio n. 4
0
 public void render(ref Device device, ref Microsoft.DirectX.Direct3D.Font directxFont)
 {
     // Render each module
     foreach (oVisModule module in moduleList)
     {
         // Render this module
         if (module != null)
         {
             module.render(ref device, ref directxFont);
         }
     }
 }
Esempio n. 5
0
        public void setDevice(Device device, Font drawingFont)
        {
            // Update the device
            this.device      = device;
            this.directxFont = drawingFont;

            // Invalidate everything
            validAxis      = false;
            validCursor    = false;
            validLogPlot   = false;
            validSelection = false;
            validMouse     = false;
        }
Esempio n. 6
0
        public void render(ref Device device, ref Microsoft.DirectX.Direct3D.Font directxFont)
        {
            // Render the module names and outlines
            if (moduleManager != null)
            {
                moduleManager.render(ref device, ref directxFont);
            }

            // Render the functions
            if (vertexBufferFunctions != null)
            {
                device.SetStreamSource(0, vertexBufferFunctions, 0);
                device.VertexFormat = CustomVertex.TransformedColored.Format;
                device.DrawPrimitives(PrimitiveType.PointList, 0, vertexFunctionsCount);
            }

            // Render the function links
            if (vertexBufferLinks != null && vertexLinksCount > 0)
            {
                device.SetStreamSource(0, vertexBufferLinks, 0);
                device.VertexFormat = CustomVertex.TransformedColored.Format;
                device.DrawPrimitives(PrimitiveType.LineList, 0, vertexLinksCount / 2);
            }
        }
        public void setDevice(Device device, Font drawingFont)
        {
            // Update the device
            this.device = device;
            this.directxFont = drawingFont;

            // Invalidate everything
            validAxis = false;
            validCursor = false;
            validLogPlot = false;
            validSelection = false;
            validMouse = false;
        }