Loading include/wxPcbStruct.h +1 −1 Original line number Diff line number Diff line Loading @@ -1340,7 +1340,7 @@ public: void ShowTargetOptionsDialog( PCB_TARGET* aTarget, wxDC* DC ); // Graphic segments type DRAWSEGMENT handling: DRAWSEGMENT* Begin_DrawSegment( DRAWSEGMENT* Segment, int shape, wxDC* DC ); DRAWSEGMENT* Begin_DrawSegment( DRAWSEGMENT* Segment, STROKE_T shape, wxDC* DC ); void End_Edge( DRAWSEGMENT* Segment, wxDC* DC ); void Delete_Segment_Edge( DRAWSEGMENT* Segment, wxDC* DC ); void Delete_Drawings_All_Layer( int aLayer ); Loading pcbnew/class_drawsegment.cpp +45 −35 Original line number Diff line number Diff line Loading @@ -124,6 +124,10 @@ const wxPoint DRAWSEGMENT::GetArcEnd() const // m_Start is the arc centre endPoint = m_End; // m_End = start point of arc RotatePoint( &endPoint, m_Start, -m_Angle ); break; default: ; } return endPoint; // after rotation, the end of the arc. Loading Loading @@ -429,8 +433,11 @@ EDA_RECT DRAWSEGMENT::GetBoundingBox() const } bbox.SetEnd( p_end ); break; } break; default: ; } bbox.Inflate( ((m_Width+1) / 2) + 1 ); Loading Loading @@ -520,6 +527,9 @@ bool DRAWSEGMENT::HitTest( const EDA_RECT& aRect ) const if( aRect.Contains( GetEnd() ) ) return true; break; default: ; } return false; } Loading pcbnew/class_drawsegment.h +14 −14 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ protected: wxPoint m_Start; ///< Line start point or Circle and Arc center wxPoint m_End; ///< Line end point or circle and arc start point int m_Shape; ///< Shape: line, Circle, Arc STROKE_T m_Shape; ///< Shape: line, Circle, Arc int m_Type; ///< Used in complex associations ( Dimensions.. ) double m_Angle; ///< Used only for Arcs: Arc angle in 1/10 deg wxPoint m_BezierC1; ///< Bezier Control Point 1 Loading Loading @@ -83,8 +83,8 @@ public: void SetType( int aType ) { m_Type = aType; } int GetType() const { return m_Type; } void SetShape( int aShape ) { m_Shape = aShape; } int GetShape() const { return m_Shape; } void SetShape( STROKE_T aShape ) { m_Shape = aShape; } STROKE_T GetShape() const { return m_Shape; } void SetBezControl1( const wxPoint& aPoint ) { m_BezierC1 = aPoint; } const wxPoint& GetBezControl1() const { return m_BezierC1; } Loading pcbnew/class_module.h +5 −0 Original line number Diff line number Diff line Loading @@ -294,6 +294,11 @@ public: m_Value->m_Text = aValue; } /// read/write accessors: TEXTE_MODULE& Value() { return *m_Value; } TEXTE_MODULE& Reference() { return *m_Reference; } /** * Function FindPadByName * returns a D_PAD* with a matching name. Note that names may not be Loading pcbnew/eagle_plugin.cpp +556 −27 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
include/wxPcbStruct.h +1 −1 Original line number Diff line number Diff line Loading @@ -1340,7 +1340,7 @@ public: void ShowTargetOptionsDialog( PCB_TARGET* aTarget, wxDC* DC ); // Graphic segments type DRAWSEGMENT handling: DRAWSEGMENT* Begin_DrawSegment( DRAWSEGMENT* Segment, int shape, wxDC* DC ); DRAWSEGMENT* Begin_DrawSegment( DRAWSEGMENT* Segment, STROKE_T shape, wxDC* DC ); void End_Edge( DRAWSEGMENT* Segment, wxDC* DC ); void Delete_Segment_Edge( DRAWSEGMENT* Segment, wxDC* DC ); void Delete_Drawings_All_Layer( int aLayer ); Loading
pcbnew/class_drawsegment.cpp +45 −35 Original line number Diff line number Diff line Loading @@ -124,6 +124,10 @@ const wxPoint DRAWSEGMENT::GetArcEnd() const // m_Start is the arc centre endPoint = m_End; // m_End = start point of arc RotatePoint( &endPoint, m_Start, -m_Angle ); break; default: ; } return endPoint; // after rotation, the end of the arc. Loading Loading @@ -429,8 +433,11 @@ EDA_RECT DRAWSEGMENT::GetBoundingBox() const } bbox.SetEnd( p_end ); break; } break; default: ; } bbox.Inflate( ((m_Width+1) / 2) + 1 ); Loading Loading @@ -520,6 +527,9 @@ bool DRAWSEGMENT::HitTest( const EDA_RECT& aRect ) const if( aRect.Contains( GetEnd() ) ) return true; break; default: ; } return false; } Loading
pcbnew/class_drawsegment.h +14 −14 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ protected: wxPoint m_Start; ///< Line start point or Circle and Arc center wxPoint m_End; ///< Line end point or circle and arc start point int m_Shape; ///< Shape: line, Circle, Arc STROKE_T m_Shape; ///< Shape: line, Circle, Arc int m_Type; ///< Used in complex associations ( Dimensions.. ) double m_Angle; ///< Used only for Arcs: Arc angle in 1/10 deg wxPoint m_BezierC1; ///< Bezier Control Point 1 Loading Loading @@ -83,8 +83,8 @@ public: void SetType( int aType ) { m_Type = aType; } int GetType() const { return m_Type; } void SetShape( int aShape ) { m_Shape = aShape; } int GetShape() const { return m_Shape; } void SetShape( STROKE_T aShape ) { m_Shape = aShape; } STROKE_T GetShape() const { return m_Shape; } void SetBezControl1( const wxPoint& aPoint ) { m_BezierC1 = aPoint; } const wxPoint& GetBezControl1() const { return m_BezierC1; } Loading
pcbnew/class_module.h +5 −0 Original line number Diff line number Diff line Loading @@ -294,6 +294,11 @@ public: m_Value->m_Text = aValue; } /// read/write accessors: TEXTE_MODULE& Value() { return *m_Value; } TEXTE_MODULE& Reference() { return *m_Reference; } /** * Function FindPadByName * returns a D_PAD* with a matching name. Note that names may not be Loading
pcbnew/eagle_plugin.cpp +556 −27 File changed.Preview size limit exceeded, changes collapsed. Show changes