コード例 #1
0
 protected override void CalculateBoundingBox(Rhino.Display.CalculateBoundingBoxEventArgs e)
 {
     base.CalculateBoundingBox(e);
     if (corbel != null)
     {
         e.IncludeBoundingBox(corbel.GetBoundingBox(true));
     }
 }
コード例 #2
0
    // 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);
    }
コード例 #3
0
 protected override void CalculateBoundingBox(CalculateBoundingBoxEventArgs e)
 {
   base.CalculateBoundingBox(e);
   e.IncludeBoundingBox(e.Display.Viewport.ConstructionPlane().Origin);
 }
コード例 #4
0
ファイル: Level.cs プロジェクト: henrydm/PacMan
 private void DisplayPipeline_CalculateBoundingBox(object sender, CalculateBoundingBoxEventArgs e)
 {
 }
コード例 #5
0
ファイル: SelectionScreen.cs プロジェクト: henrydm/PacMan
 private static void DisplayPipeline_CalculateBoundingBox(object sender, CalculateBoundingBoxEventArgs e)
 {
     e.IncludeBoundingBox(_box);
 }
コード例 #6
0
    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);
    }
コード例 #7
0
 private void _CalculateBoundingBoxZoomExtents(object sender, CalculateBoundingBoxEventArgs e) { CalculateBoundingBoxZoomExtents(e); }
コード例 #8
0
 private void _CalculateBoundingBox(object sender, CalculateBoundingBoxEventArgs e) { CalculateBoundingBox(e); }
コード例 #9
0
 /// <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) {}
コード例 #10
0
 /// <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) {}
コード例 #11
0
 protected override void CalculateBoundingBox(Rhino.Display.CalculateBoundingBoxEventArgs e)
 {
     base.CalculateBoundingBox(e);
     //e.IncludeBoundingBox(new Rhino.Geometry.Point3d(0, 0, 0));
 }