| 
    KiCad PCB EDA Suite
    
   | 
 
A dynamic state checking if a point lies within polygon with a dynamically built outline ( with each piece of the outline added by AddPolyline () More...
#include <shape_line_chain.h>
Public Member Functions | |
| POINT_INSIDE_TRACKER (const VECTOR2I &aPoint) | |
| void | AddPolyline (const SHAPE_LINE_CHAIN &aPolyline) | 
| bool | IsInside () | 
Private Member Functions | |
| bool | processVertex (const VECTOR2I &ip, const VECTOR2I &ipNext) | 
Private Attributes | |
| VECTOR2I | m_point | 
| VECTOR2I | m_lastPoint | 
| VECTOR2I | m_firstPoint | 
| bool | m_finished | 
| int | m_state | 
| int | m_count | 
A dynamic state checking if a point lies within polygon with a dynamically built outline ( with each piece of the outline added by AddPolyline ()
Definition at line 130 of file shape_line_chain.h.
| SHAPE_LINE_CHAIN::POINT_INSIDE_TRACKER::POINT_INSIDE_TRACKER | ( | const VECTOR2I & | aPoint | ) | 
Definition at line 2927 of file shape_line_chain.cpp.
References m_count, m_finished, m_point, and m_state.
| void SHAPE_LINE_CHAIN::POINT_INSIDE_TRACKER::AddPolyline | ( | const SHAPE_LINE_CHAIN & | aPolyline | ) | 
Definition at line 2998 of file shape_line_chain.cpp.
References SHAPE_LINE_CHAIN::CPoint(), m_count, m_firstPoint, m_lastPoint, SHAPE_LINE_CHAIN::PointCount(), processVertex(), and SHAPE_LINE_CHAIN::SHAPE_LINE_CHAIN().
Referenced by PNS::SHOVE::checkShoveDirection().
| bool SHAPE_LINE_CHAIN::POINT_INSIDE_TRACKER::IsInside | ( | ) | 
Definition at line 3021 of file shape_line_chain.cpp.
References m_firstPoint, m_lastPoint, m_state, and processVertex().
Referenced by PNS::SHOVE::checkShoveDirection().
      
  | 
  private | 
Definition at line 2936 of file shape_line_chain.cpp.
References m_finished, m_point, m_state, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by AddPolyline(), and IsInside().
      
  | 
  private | 
Definition at line 147 of file shape_line_chain.h.
Referenced by AddPolyline(), and POINT_INSIDE_TRACKER().
      
  | 
  private | 
Definition at line 145 of file shape_line_chain.h.
Referenced by POINT_INSIDE_TRACKER(), and processVertex().
      
  | 
  private | 
Definition at line 144 of file shape_line_chain.h.
Referenced by AddPolyline(), and IsInside().
      
  | 
  private | 
Definition at line 143 of file shape_line_chain.h.
Referenced by AddPolyline(), and IsInside().
      
  | 
  private | 
Definition at line 142 of file shape_line_chain.h.
Referenced by POINT_INSIDE_TRACKER(), and processVertex().
      
  | 
  private | 
Definition at line 146 of file shape_line_chain.h.
Referenced by IsInside(), POINT_INSIDE_TRACKER(), and processVertex().