protected override void CalculateBoundingBox(Rhino.Display.CalculateBoundingBoxEventArgs e)
 {
     base.CalculateBoundingBox(e);
     if (corbel != null)
     {
         e.IncludeBoundingBox(corbel.GetBoundingBox(true));
     }
 }
    // this is called every frame inside the drawing code so try to do as little as possible
    // in order to not degrade display speed. Don't create new objects if you don't have to as this
    // will incur an overhead on the heap and garbage collection.
    protected override void CalculateBoundingBox(CalculateBoundingBoxEventArgs e)
    {
        base.CalculateBoundingBox(e);
        // Since we are dynamically drawing geometry, we needed to override
        // CalculateBoundingBox. Otherwise, there is a good chance that our
        // dynamically drawing geometry would get clipped.

        // Union the mesh's bbox with the scene's bounding box
        e.BoundingBox.Union(m_bbox);
    }
 protected override void CalculateBoundingBox(CalculateBoundingBoxEventArgs e)
 {
   base.CalculateBoundingBox(e);
   e.IncludeBoundingBox(e.Display.Viewport.ConstructionPlane().Origin);
 }
Exemple #4
0
 private void DisplayPipeline_CalculateBoundingBox(object sender, CalculateBoundingBoxEventArgs e)
 {
 }
Exemple #5
0
 private static void DisplayPipeline_CalculateBoundingBox(object sender, CalculateBoundingBoxEventArgs e)
 {
     e.IncludeBoundingBox(_box);
 }
    void DisplayPipeline_CalculateBoundingBox(object sender, CalculateBoundingBoxEventArgs e)
    {
      if (!m_enabled) { return; }
      if (m_disposed) { return; }

      if (e.Viewport.ViewportType == ViewportType.PageViewMainViewport) { return; }
      e.IncludeBoundingBox(m_clip);
    }
 private void _CalculateBoundingBoxZoomExtents(object sender, CalculateBoundingBoxEventArgs e) { CalculateBoundingBoxZoomExtents(e); }
 private void _CalculateBoundingBox(object sender, CalculateBoundingBoxEventArgs e) { CalculateBoundingBox(e); }
 /// <summary>
 /// If you want to participate in the Zoom Extents command with your display conduit,
 /// then you will need to override ZoomExtentsBoundingBox.  Typically you could just
 /// call your CalculateBoundingBox override, but you may also want to spend a little
 /// more time here and compute a tighter bounding box for your conduit geometry if
 /// that is needed.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="e">The event argument contain the current bounding box state.</param>
 protected virtual void CalculateBoundingBoxZoomExtents(CalculateBoundingBoxEventArgs e) {}
 /// <summary>
 /// Library developers should override this function to increase the bounding box of scene so it includes the
 /// geometry that you plan to draw in the "Draw" virtual functions.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="e">The event argument contain the current bounding box state.</param>
 protected virtual void CalculateBoundingBox(CalculateBoundingBoxEventArgs e) {}
Exemple #11
0
 protected override void CalculateBoundingBox(Rhino.Display.CalculateBoundingBoxEventArgs e)
 {
     base.CalculateBoundingBox(e);
     //e.IncludeBoundingBox(new Rhino.Geometry.Point3d(0, 0, 0));
 }