| 
    KiCad PCB EDA Suite
    
   | 
 
#include <ring_2d.h>
  
Public Member Functions | |
| RING_2D (const SFVEC2F &aCenter, float aInnerRadius, float aOuterRadius, const BOARD_ITEM &aBoardItem) | |
| bool | Overlaps (const BBOX_2D &aBBox) const override | 
| Test if the box overlaps the object.   | |
| bool | Intersects (const BBOX_2D &aBBox) const override | 
| a.Intersects(b) ⇔ !a.Disjoint(b) ⇔ !(a ∩ b = ∅)   | |
| bool | Intersect (const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut) const override | 
| INTERSECTION_RESULT | IsBBoxInside (const BBOX_2D &aBBox) const override | 
| Test this object if it's completely outside, intersects, or is completely inside aBBox.   | |
| bool | IsPointInside (const SFVEC2F &aPoint) const override | 
| const SFVEC2F & | GetCenter () const | 
| float | GetInnerRadius () const | 
| float | GetOuterRadius () const | 
| float | GetInnerRadiusSquared () const | 
| float | GetOuterRadiusSquared () const | 
| const BOARD_ITEM & | GetBoardItem () const | 
| const BBOX_2D & | GetBBox () const | 
| const SFVEC2F & | GetCentroid () const | 
| OBJECT_2D_TYPE | GetObjectType () const | 
Protected Attributes | |
| BBOX_2D | m_bbox | 
| SFVEC2F | m_centroid | 
| OBJECT_2D_TYPE | m_obj_type | 
| const BOARD_ITEM & | m_boardItem | 
Private Attributes | |
| SFVEC2F | m_center | 
| float | m_inner_radius | 
| float | m_outer_radius | 
| float | m_inner_radius_squared | 
| float | m_outer_radius_squared | 
| RING_2D::RING_2D | ( | const SFVEC2F & | aCenter, | 
| float | aInnerRadius, | ||
| float | aOuterRadius, | ||
| const BOARD_ITEM & | aBoardItem ) | 
Definition at line 35 of file ring_2d.cpp.
References OBJECT_2D::m_bbox, m_center, OBJECT_2D::m_centroid, m_inner_radius, m_inner_radius_squared, m_outer_radius, m_outer_radius_squared, OBJECT_2D::OBJECT_2D(), and RING.
      
  | 
  inlineinherited | 
Definition at line 103 of file object_2d.h.
References m_bbox.
Referenced by CONTAINER_2D_BASE::Add(), RENDER_3D_RAYTRACE_BASE::createObject(), RENDER_3D_RAYTRACE_BASE::insertHole(), LAYER_ITEM_2D::LAYER_ITEM_2D(), and BVH_CONTAINER_2D::recursiveBuild_MIDDLE_SPLIT().
      
  | 
  inlineinherited | 
Definition at line 66 of file object_2d.h.
References m_boardItem.
Referenced by RENDER_3D_RAYTRACE_BASE::createItemsFromContainer().
      
  | 
  inline | 
Definition at line 46 of file ring_2d.h.
References m_center.
Referenced by RENDER_3D_OPENGL::addObjectTriangles().
      
  | 
  inlineinherited | 
Definition at line 105 of file object_2d.h.
References m_centroid.
Referenced by LAYER_ITEM::LAYER_ITEM(), sortByCentroidX(), sortByCentroidY(), and sortByCentroidZ().
      
  | 
  inline | 
Definition at line 47 of file ring_2d.h.
References m_inner_radius.
Referenced by RENDER_3D_OPENGL::addObjectTriangles().
      
  | 
  inline | 
Definition at line 50 of file ring_2d.h.
References m_inner_radius_squared.
      
  | 
  inlineinherited | 
Definition at line 107 of file object_2d.h.
References m_obj_type.
Referenced by RENDER_3D_OPENGL::createBoard(), RENDER_3D_RAYTRACE_BASE::createObject(), and RENDER_3D_OPENGL::generateViasAndPads().
      
  | 
  inline | 
Definition at line 48 of file ring_2d.h.
References m_outer_radius.
Referenced by RENDER_3D_OPENGL::addObjectTriangles().
      
  | 
  inline | 
Definition at line 51 of file ring_2d.h.
References m_outer_radius_squared.
      
  | 
  overridevirtual | 
| aOutT | a value between 0.0 and 1.0 in relation to the time of the hit of the segment. | 
Implements OBJECT_2D.
Definition at line 72 of file ring_2d.cpp.
References RAYSEG2D::at(), m_center, RAYSEG2D::m_Dir, m_inner_radius, m_inner_radius_squared, RAYSEG2D::m_Length, m_outer_radius, m_outer_radius_squared, and RAYSEG2D::m_Start.
      
  | 
  overridevirtual | 
a.Intersects(b) ⇔ !a.Disjoint(b) ⇔ !(a ∩ b = ∅)
Implements OBJECT_2D.
Definition at line 65 of file ring_2d.cpp.
References BBOX_2D::Intersects(), m_center, and m_outer_radius_squared.
      
  | 
  overridevirtual | 
Test this object if it's completely outside, intersects, or is completely inside aBBox.
Implements OBJECT_2D.
Definition at line 148 of file ring_2d.cpp.
References MISSES.
      
  | 
  overridevirtual | 
Implements OBJECT_2D.
Definition at line 154 of file ring_2d.cpp.
References m_center, m_inner_radius_squared, and m_outer_radius_squared.
      
  | 
  overridevirtual | 
Test if the box overlaps the object.
Conformance Implements the Overlaps function from the OGC Simple Feature Specification at http://www.opengeospatial.org/standards/sfa. a.Overlaps(b) ⇔ ( dim(I(a)) = dim(I(b)) = dim(I(a) ∩ I(b))) ∧ (a ∩ b ≠ a) ∧ (a ∩ b ≠ b) It means that the result dimension of an overlap is the same dimensions of the bounding box (so the overlap cannot be a point or a line) and one of the boxes cannot full contain the other box.
| aBBox | is the bounding box to test. | 
Implements OBJECT_2D.
Definition at line 58 of file ring_2d.cpp.
      
  | 
  protectedinherited | 
Definition at line 110 of file object_2d.h.
Referenced by DUMMY_BLOCK_2D::DUMMY_BLOCK_2D(), DUMMY_BLOCK_2D::DUMMY_BLOCK_2D(), FILLED_CIRCLE_2D::FILLED_CIRCLE_2D(), GetBBox(), DUMMY_BLOCK_2D::Intersects(), LAYER_ITEM_2D::Intersects(), POLYGON_2D::Intersects(), POLYGON_4PT_2D::Intersects(), ROUND_SEGMENT_2D::Intersects(), TRIANGLE_2D::Intersects(), FILLED_CIRCLE_2D::IsBBoxInside(), ROUND_SEGMENT_2D::IsBBoxInside(), TRIANGLE_2D::IsBBoxInside(), DUMMY_BLOCK_2D::IsPointInside(), LAYER_ITEM_2D::LAYER_ITEM_2D(), POLYGON_2D::POLYGON_2D(), POLYGON_4PT_2D::POLYGON_4PT_2D(), RING_2D::RING_2D(), ROUND_SEGMENT_2D::ROUND_SEGMENT_2D(), and TRIANGLE_2D::TRIANGLE_2D().
      
  | 
  protectedinherited | 
Definition at line 114 of file object_2d.h.
Referenced by GetBoardItem(), and OBJECT_2D().
      
  | 
  private | 
Definition at line 54 of file ring_2d.h.
Referenced by GetCenter(), Intersect(), Intersects(), IsPointInside(), and RING_2D().
      
  | 
  protectedinherited | 
Definition at line 111 of file object_2d.h.
Referenced by DUMMY_BLOCK_2D::DUMMY_BLOCK_2D(), DUMMY_BLOCK_2D::DUMMY_BLOCK_2D(), FILLED_CIRCLE_2D::FILLED_CIRCLE_2D(), GetCentroid(), LAYER_ITEM_2D::LAYER_ITEM_2D(), POLYGON_2D::POLYGON_2D(), POLYGON_4PT_2D::POLYGON_4PT_2D(), RING_2D::RING_2D(), ROUND_SEGMENT_2D::ROUND_SEGMENT_2D(), and TRIANGLE_2D::TRIANGLE_2D().
      
  | 
  private | 
Definition at line 55 of file ring_2d.h.
Referenced by GetInnerRadius(), Intersect(), and RING_2D().
      
  | 
  private | 
Definition at line 57 of file ring_2d.h.
Referenced by GetInnerRadiusSquared(), Intersect(), IsPointInside(), and RING_2D().
      
  | 
  protectedinherited | 
Definition at line 112 of file object_2d.h.
Referenced by GetObjectType(), and OBJECT_2D().
      
  | 
  private | 
Definition at line 56 of file ring_2d.h.
Referenced by GetOuterRadius(), Intersect(), and RING_2D().
      
  | 
  private | 
Definition at line 58 of file ring_2d.h.
Referenced by GetOuterRadiusSquared(), Intersect(), Intersects(), IsPointInside(), and RING_2D().