public ILDXAxis (AxisNames name, ILClippingData clippingView, ILLayoutData layoutData,ILDXPanel panel) : base (name,clippingView, layoutData) { m_dxPanel = panel; m_dxPanel.GraphicsDeviceReset += new ILGraphicsDeviceResetEvent(recreateVertexBuffer); m_dxPanel.GraphicsDeviceCreated += new ILGraphicsDeviceCreatedEvent(initialize); }
public ILDXGraphSurf3D(ILDXPanel panel, ILBaseArray sourceArray, ILClippingData clippingContainer) : base(sourceArray, clippingContainer) { m_localClipping = new ILClippingData(); if (!sourceArray.IsMatrix) { throw new ILArgumentException("source arrray must be matrix!"); } if (!sourceArray.IsNumeric) { throw new ILArgumentException("source arrray must be numeric!"); } m_dxPanel = panel; m_dxPanel.GraphicsDeviceReset += new ILGraphicsDeviceResetEvent(m_dxPanel_GraphicsDeviceReset); m_cols = m_sourceArray.Dimensions[0]; m_rows = m_sourceArray.Dimensions[1]; m_Vertcount = m_rows * m_cols; m_primitiveType = PrimitiveType.TriangleList; m_vertexReady = false; m_indexReady = false; m_rowsInChunk = 1; // primitives per chunk m_primsInChunk = m_cols * 2 * m_rowsInChunk; updateClipping(); Configure(); }
public ILDXAxis(AxisNames name, ILClippingData clippingView, ILLayoutData layoutData, ILDXPanel panel) : base(name, clippingView, layoutData) { m_dxPanel = panel; m_dxPanel.GraphicsDeviceReset += new ILGraphicsDeviceResetEvent(recreateVertexBuffer); m_dxPanel.GraphicsDeviceCreated += new ILGraphicsDeviceCreatedEvent(initialize); }
public ILDXGraphPlot2D(ILDXPanel panel, ILBaseArray sourceArray, ILClippingData clippingContainer) : base(sourceArray, clippingContainer) { m_dxPanel = panel; m_graphType = GraphType.Plot2D; m_dxPanel.GraphicsDeviceReset += new ILGraphicsDeviceResetEvent(m_dxPanel_GraphicsDeviceReset); create(); }
public ILDXGraphSurf3D ( ILDXPanel panel, ILBaseArray sourceArray, ILClippingData clippingContainer) : base(sourceArray,clippingContainer) { m_localClipping = new ILClippingData(); if (!sourceArray.IsMatrix) throw new ILArgumentException ("source arrray must be matrix!"); if (!sourceArray.IsNumeric) throw new ILArgumentException ("source arrray must be numeric!"); m_dxPanel = panel; m_dxPanel.GraphicsDeviceReset += new ILGraphicsDeviceResetEvent(m_dxPanel_GraphicsDeviceReset); m_cols = m_sourceArray.Dimensions[0]; m_rows = m_sourceArray.Dimensions[1]; m_Vertcount = m_rows * m_cols; m_primitiveType = PrimitiveType.TriangleList; m_vertexReady = false; m_indexReady = false; m_rowsInChunk = 1; // primitives per chunk m_primsInChunk = m_cols * 2 * m_rowsInChunk; updateClipping(); Configure(); }