Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 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(); 
 }