Example #1
0
 protected override void m_globalClipping_Changed(object sender, ClippingChangedEventArgs e)
 {
     base.m_globalClipping_Changed(sender, e);
     m_vertexReady = false;
     m_indexReady  = false;
     Configure();
 }
Example #2
0
 private void clipping_Changed(object sender, ClippingChangedEventArgs e)
 {
     m_minValue = e.ClippingData.ZMin;
     m_maxValue = e.ClippingData.ZMax;
     if (m_minValue == m_maxValue)
     {
         m_minValue -= 1f;
         m_maxValue += 1f;
     }
 }
        ///// <summary>
        ///// signaled when one/some of the ILGraphs have changed
        ///// </summary>
        ///// <param name="sender"></param>
        ///// <param name="e"></param>
        //void Graph_Changed(object sender, ILGraphChangedEventArgs e) {
        //    OnGraphChanged(sender as ILGraph,e);
        //}
        /// <summary>
        /// called once the limits of a graph have changed
        /// </summary>
        /// <param name="sender">graph</param>
        /// <param name="e">event args, holding a reference to the clipping data</param>
        void Limits_Changed(object sender, ClippingChangedEventArgs e)
        {
            ILPoint3Df max = ILPoint3Df.MinValue;
            ILPoint3Df min = ILPoint3Df.MaxValue;

            foreach (ILGraph graph in this)
            {
                max = ILPoint3Df.Max(max, graph.Limits.Max);
                min = ILPoint3Df.Min(min, graph.Limits.Min);
            }
            m_clippingData.Set(min, max);
        }
Example #4
0
 protected virtual void m_globalClipping_Changed(object sender, ClippingChangedEventArgs e)
 {
     // override this event in derived class, if neccessary
 }
Example #5
0
 protected virtual void m_globalClipping_Changed(object sender, ClippingChangedEventArgs e) {
     // override this event in derived class, if neccessary
 }
 protected override void m_globalClipping_Changed(object sender, ClippingChangedEventArgs e)
 {
     base.m_globalClipping_Changed(sender, e);
     Configure();
 }
Example #7
0
 private void clipping_Changed(object sender, ClippingChangedEventArgs e) {
     m_minValue = e.ClippingData.ZMin; 
     m_maxValue = e.ClippingData.ZMax;
     if (m_minValue == m_maxValue) {
         m_minValue -= 1f; 
         m_maxValue += 1f;
     }
 }
Example #8
0
 protected override void m_globalClipping_Changed(object sender, ClippingChangedEventArgs e) {
     base.m_globalClipping_Changed(sender, e);
     //m_vertexReady = false; 
     //m_indexReady = false; 
 }
Example #9
0
 protected override void m_globalClipping_Changed(object sender, ClippingChangedEventArgs e) {
     base.m_globalClipping_Changed(sender, e);
     Configure(); 
 }