You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

535 lines
17 KiB

8 years ago
5 years ago
14 years ago
14 years ago
14 years ago
14 years ago
18 years ago
* KIWAY Milestone A): Make major modules into DLL/DSOs. ! The initial testing of this commit should be done using a Debug build so that all the wxASSERT()s are enabled. Also, be sure and keep enabled the USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it off is senseless anyways. If you want stable code, go back to a prior version, the one tagged with "stable". * Relocate all functionality out of the wxApp derivative into more finely targeted purposes: a) DLL/DSO specific b) PROJECT specific c) EXE or process specific d) configuration file specific data e) configuration file manipulations functions. All of this functionality was blended into an extremely large wxApp derivative and that was incompatible with the desire to support multiple concurrently loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects. An amazing amount of organization come from simply sorting each bit of functionality into the proper box. * Switch to wxConfigBase from wxConfig everywhere except instantiation. * Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD, PGM_SINGLE_TOP, * Remove "Return" prefix on many function names. * Remove obvious comments from CMakeLists.txt files, and from else() and endif()s. * Fix building boost for use in a DSO on linux. * Remove some of the assumptions in the CMakeLists.txt files that windows had to be the host platform when building windows binaries. * Reduce the number of wxStrings being constructed at program load time via static construction. * Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that these functions are useful even when the wxConfigBase comes from another source, as is the case in the KICAD_MANAGER_FRAME. * Move the setting of the KIPRJMOD environment variable into class PROJECT, so that it can be moved into a project variable soon, and out of FP_LIB_TABLE. * Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all its child wxFrames and wxDialogs now have a Kiway() member function which returns a KIWAY& that that window tree branch is in support of. This is like wxWindows DNA in that child windows get this member with proper value at time of construction. * Anticipate some of the needs for milestones B) and C) and make code adjustments now in an effort to reduce work in those milestones. * No testing has been done for python scripting, since milestone C) has that being largely reworked and re-thought-out.
12 years ago
Introduction of Graphics Abstraction Layer based rendering for pcbnew. New classes: - VIEW - represents view that is seen by user, takes care of layer ordering & visibility and how it is displayed (which location, how much zoomed, etc.) - VIEW_ITEM - Base class for every item that can be displayed on VIEW (the biggest change is that now it may be necessary to override ViewBBox & ViewGetLayers method for derived classes). - EDA_DRAW_PANEL_GAL - Inherits after EDA_DRAW_PANEL, displays VIEW output, right now it is not editable (in opposite to usual EDA_DRAW_PANEL). - GAL/OPENGL_GAL/CAIRO_GAL - Base Graphics Abstraction Layer class + two different flavours (Cairo is not fully supported yet), that offers methods to draw primitives using different libraries. - WX_VIEW_CONTROLS - Controller for VIEW, handles user events, allows zooming, panning, etc. - PAINTER/PCB_PAINTER - Classes that uses GAL interface to draw items (as you may have already guessed - PCB_PAINTER is a class for drawing PCB specific object, PAINTER is an abstract class). Its methods are invoked by VIEW, when an item has to be drawn. To display a new type of item - you need to implement draw(ITEM_TYPE*) method that draws it using GAL methods. - STROKE_FONT - Implements stroke font drawing using GAL methods. Most important changes to Kicad original code: * EDA_ITEM now inherits from VIEW_ITEM, which is a base class for all drawable objects. * EDA_DRAW_FRAME contains both usual EDA_DRAW_PANEL and new EDA_DRAW_PANEL_GAL, that can be switched anytime. * There are some new layers for displaying multilayer pads, vias & pads holes (these are not shown yet on the right sidebar in pcbnew) * Display order of layers is different than in previous versions (if you are curious - you may check m_galLayerOrder@pcbnew/basepcbframe.cpp). Preserving usual order would result in not very natural display, such as showing silkscreen texts on the bottom. * Introduced new hotkey (Alt+F12) and new menu option (View->Switch canvas) for switching canvas during runtime. * Some of classes (mostly derived from BOARD_ITEM) now includes ViewBBox & ViewGetLayers methods. * Removed tools/class_painter.h, as now it is extended and included in source code. Build changes: * GAL-based rendering option is turned on by a new compilation CMake option KICAD_GAL. * When compiling with CMake option KICAD_GAL=ON, GLEW and Cairo libraries are required. * GAL-related code is compiled into a static library (common/libgal). * Build with KICAD_GAL=OFF should not need any new libraries and should come out as a standard version of Kicad Currently most of items in pcbnew can be displayed using OpenGL (to be done are DIMENSIONS and MARKERS). More details about GAL can be found in: http://www.ohwr.org/attachments/1884/view-spec.pdf
13 years ago
  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2004 Jean-Pierre Charras, jaen-pierre.charras@gipsa-lab.inpg.com
  5. * Copyright (C) 1992-2020 KiCad Developers, see AUTHORS.txt for contributors.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version 2
  10. * of the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, you may find one here:
  19. * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  20. * or you may search the http://www.gnu.org website for the version 2 license,
  21. * or you may write to the Free Software Foundation, Inc.,
  22. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  23. */
  24. /**
  25. * @file class_track.h
  26. * @brief A single base class (TRACK) represents both tracks and vias, with subclasses
  27. * for curved tracks (ARC) and vias (VIA). All told there are three KICAD_Ts:
  28. * PCB_TRACK_T, PCB_ARC_T, and PCB_VIA_T.
  29. *
  30. * For vias there is a further VIATYPE which indicates THROUGH, BLIND_BURIED, or
  31. * MICROVIA, which are supported by the synthetic KICAD_Ts PCB_LOCATE_STDVIA_T,
  32. * PCB_LOCATE_BBVIA_T, and PCB_LOCATE_UVIA_T.
  33. */
  34. #ifndef CLASS_TRACK_H
  35. #define CLASS_TRACK_H
  36. #include <board_connected_item.h>
  37. #include <board_item.h>
  38. #include <convert_to_biu.h>
  39. #include <pcb_display_options.h>
  40. #include <pcbnew.h>
  41. #include <geometry/seg.h>
  42. #include <geometry/shape_arc.h>
  43. #include <trigo.h>
  44. class TRACK;
  45. class VIA;
  46. class PAD;
  47. class MSG_PANEL_ITEM;
  48. class SHAPE_POLY_SET;
  49. // Flag used in locate routines (from which endpoint work)
  50. enum ENDPOINT_T : int
  51. {
  52. ENDPOINT_START = 0,
  53. ENDPOINT_END = 1
  54. };
  55. // Via types
  56. // Note that this enum must be synchronized to GAL_LAYER_ID
  57. enum class VIATYPE : int
  58. {
  59. THROUGH = 3, /* Always a through hole via */
  60. BLIND_BURIED = 2, /* this via can be on internal layers */
  61. MICROVIA = 1, /* this via which connect from an external layer
  62. * to the near neighbor internal layer */
  63. NOT_DEFINED = 0 /* not yet used */
  64. };
  65. #define UNDEFINED_DRILL_DIAMETER -1 //< Undefined via drill diameter.
  66. // Used for tracks and vias for algorithmic safety, not to enforce constraints
  67. #define GEOMETRY_MIN_SIZE ( int )( 0.001 * IU_PER_MM )
  68. class TRACK : public BOARD_CONNECTED_ITEM
  69. {
  70. public:
  71. static inline bool ClassOf( const EDA_ITEM* aItem )
  72. {
  73. return aItem && PCB_TRACE_T == aItem->Type();
  74. }
  75. TRACK( BOARD_ITEM* aParent, KICAD_T idtype = PCB_TRACE_T );
  76. // Do not create a copy constructor. The one generated by the compiler is adequate.
  77. void Move( const wxPoint& aMoveVector ) override
  78. {
  79. m_Start += aMoveVector;
  80. m_End += aMoveVector;
  81. }
  82. void Rotate( const wxPoint& aRotCentre, double aAngle ) override;
  83. void Flip( const wxPoint& aCentre, bool aFlipLeftRight ) override;
  84. void SetPosition( const wxPoint& aPos ) override { m_Start = aPos; }
  85. wxPoint GetPosition() const override { return m_Start; }
  86. const wxPoint GetFocusPosition() const override { return ( m_Start + m_End ) / 2; }
  87. void SetWidth( int aWidth ) { m_Width = aWidth; }
  88. int GetWidth() const { return m_Width; }
  89. void SetEnd( const wxPoint& aEnd ) { m_End = aEnd; }
  90. const wxPoint& GetEnd() const { return m_End; }
  91. void SetStart( const wxPoint& aStart ) { m_Start = aStart; }
  92. const wxPoint& GetStart() const { return m_Start; }
  93. void SetEndX( int aX ) { m_End.x = aX; }
  94. void SetEndY( int aY ) { m_End.y = aY; }
  95. int GetEndX() const { return m_End.x; }
  96. int GetEndY() const { return m_End.x; }
  97. /// Return the selected endpoint (start or end)
  98. const wxPoint& GetEndPoint( ENDPOINT_T aEndPoint ) const
  99. {
  100. if( aEndPoint == ENDPOINT_START )
  101. return m_Start;
  102. else
  103. return m_End;
  104. }
  105. // Virtual function
  106. const EDA_RECT GetBoundingBox() const override;
  107. bool IsLocked() const override
  108. {
  109. return GetState( TRACK_LOCKED );
  110. }
  111. void SetLocked( bool aLocked ) override
  112. {
  113. return SetState( TRACK_LOCKED, aLocked );
  114. }
  115. /**
  116. * Function GetLength
  117. * returns the length of the track using the hypotenuse calculation.
  118. * @return double - the length of the track
  119. */
  120. virtual double GetLength() const
  121. {
  122. return GetLineLength( m_Start, m_End );
  123. }
  124. /**
  125. * Function TransformShapeWithClearanceToPolygon
  126. * Convert the track shape to a closed polygon
  127. * Used in filling zones calculations
  128. * Circles (vias) and arcs (ends of tracks) are approximated by segments
  129. * @param aCornerBuffer = a buffer to store the polygon
  130. * @param aClearanceValue = the clearance around the pad
  131. * @param aError = the maximum deviation from true circle
  132. * @param ignoreLineWidth = used for edge cut items where the line width is only
  133. * for visualization
  134. */
  135. void TransformShapeWithClearanceToPolygon( SHAPE_POLY_SET& aCornerBuffer,
  136. PCB_LAYER_ID aLayer, int aClearanceValue,
  137. int aError, ERROR_LOC aErrorLoc,
  138. bool ignoreLineWidth = false ) const override;
  139. // @copydoc BOARD_ITEM::GetEffectiveShape
  140. virtual std::shared_ptr<SHAPE> GetEffectiveShape( PCB_LAYER_ID aLayer = UNDEFINED_LAYER ) const override;
  141. /**
  142. * Function IsPointOnEnds
  143. * returns STARTPOINT if point if near (dist = min_dist) start point, ENDPOINT if
  144. * point if near (dist = min_dist) end point,STARTPOINT|ENDPOINT if point if near
  145. * (dist = min_dist) both ends, or 0 if none of the above.
  146. * if min_dist < 0: min_dist = track_width/2
  147. */
  148. STATUS_FLAGS IsPointOnEnds( const wxPoint& point, int min_dist = 0 ) const;
  149. /**
  150. * Function IsNull
  151. * returns true if segment length is zero.
  152. */
  153. bool IsNull() const
  154. {
  155. return ( Type() == PCB_VIA_T ) || ( m_Start == m_End );
  156. }
  157. void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList ) override;
  158. SEARCH_RESULT Visit( INSPECTOR inspector, void* testData, const KICAD_T scanTypes[] ) override;
  159. bool HitTest( const wxPoint& aPosition, int aAccuracy = 0 ) const override;
  160. bool HitTest( const EDA_RECT& aRect, bool aContained, int aAccuracy = 0 ) const override;
  161. bool ApproxCollinear( const TRACK& aTrack )
  162. {
  163. SEG a( m_Start, m_End );
  164. SEG b( aTrack.GetStart(), aTrack.GetEnd() );
  165. return a.ApproxCollinear( b );
  166. }
  167. wxString GetClass() const override
  168. {
  169. return wxT( "TRACK" );
  170. }
  171. /**
  172. * Function GetLocalClearance
  173. * returns any local clearance overrides set in the "classic" (ie: pre-rule) system.
  174. * @param aSource [out] optionally reports the source as a user-readable string
  175. * @return int - the clearance in internal units.
  176. */
  177. int GetLocalClearance( wxString* aSource ) const override;
  178. void GetWidthConstraints( int* aMin, int* aMax, wxString* aSource ) const;
  179. wxString GetSelectMenuText( EDA_UNITS aUnits ) const override;
  180. BITMAP_DEF GetMenuImage() const override;
  181. virtual EDA_ITEM* Clone() const override;
  182. virtual void ViewGetLayers( int aLayers[], int& aCount ) const override;
  183. double ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const override;
  184. const BOX2I ViewBBox() const override;
  185. virtual void SwapData( BOARD_ITEM* aImage ) override;
  186. /**
  187. * @return true because a track or a via is always on a copper layer.
  188. */
  189. bool IsOnCopperLayer() const override
  190. {
  191. return true;
  192. }
  193. struct cmp_tracks
  194. {
  195. bool operator()( const TRACK* aFirst, const TRACK* aSecond ) const;
  196. };
  197. #if defined (DEBUG)
  198. virtual void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
  199. /**
  200. * Function ShowState
  201. * converts a set of state bits to a wxString
  202. * @param stateBits Is an OR-ed together set of bits like IN_EDIT, etc.
  203. */
  204. static wxString ShowState( int stateBits );
  205. #endif
  206. protected:
  207. void GetMsgPanelInfoBase_Common( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList ) const;
  208. int m_Width; ///< Thickness of track, or via diameter
  209. wxPoint m_Start; ///< Line start point
  210. wxPoint m_End; ///< Line end point
  211. };
  212. class ARC : public TRACK
  213. {
  214. public:
  215. ARC( BOARD_ITEM* aParent ) : TRACK( aParent, PCB_ARC_T ){};
  216. ARC( BOARD_ITEM* aParent, const SHAPE_ARC* aArc ) :
  217. TRACK( aParent, PCB_ARC_T )
  218. {
  219. m_Start = wxPoint( aArc->GetP0() );
  220. m_End = wxPoint( aArc->GetP1() );
  221. m_Mid = wxPoint( aArc->GetArcMid() );
  222. }
  223. static inline bool ClassOf( const EDA_ITEM *aItem )
  224. {
  225. return aItem && PCB_ARC_T == aItem->Type();
  226. }
  227. virtual void Move( const wxPoint& aMoveVector ) override
  228. {
  229. m_Start += aMoveVector;
  230. m_Mid += aMoveVector;
  231. m_End += aMoveVector;
  232. }
  233. virtual void Rotate( const wxPoint& aRotCentre, double aAngle ) override;
  234. virtual void Flip( const wxPoint& aCentre, bool aFlipLeftRight ) override;
  235. void SetMid( const wxPoint& aMid ) { m_Mid = aMid; }
  236. const wxPoint& GetMid() const { return m_Mid; }
  237. void SetPosition( const wxPoint& aPos ) override
  238. {
  239. printf("Setting the arc position\n");
  240. m_Start = aPos;
  241. }
  242. virtual wxPoint GetPosition() const override;
  243. virtual wxPoint GetCenter() const override { return GetPosition(); }
  244. double GetRadius() const;
  245. double GetAngle() const;
  246. double GetArcAngleStart() const;
  247. double GetArcAngleEnd() const;
  248. virtual bool HitTest( const wxPoint& aPosition, int aAccuracy = 0 ) const override;
  249. virtual bool HitTest( const EDA_RECT& aRect, bool aContained = true, int aAccuracy = 0 ) const override;
  250. wxString GetClass() const override
  251. {
  252. return wxT( "ARC" );
  253. }
  254. // @copydoc BOARD_ITEM::GetEffectiveShape
  255. virtual std::shared_ptr<SHAPE> GetEffectiveShape( PCB_LAYER_ID aLayer = UNDEFINED_LAYER ) const override;
  256. //TODO(snh): Add GetSelectMenuText() and GetMsgPanelInfoBase()
  257. /**
  258. * Function GetLength
  259. * returns the length of the arc track
  260. * @return double - the length of the track
  261. */
  262. virtual double GetLength() const override
  263. {
  264. double radius = GetRadius();
  265. double includedAngle = std::abs( GetAngle() );
  266. return radius * M_PI * includedAngle / 180.0;
  267. }
  268. EDA_ITEM* Clone() const override;
  269. virtual void SwapData( BOARD_ITEM* aImage ) override;
  270. private:
  271. wxPoint m_Mid; ///< Arc mid point, halfway between start and end
  272. };
  273. class VIA : public TRACK
  274. {
  275. public:
  276. VIA( BOARD_ITEM* aParent );
  277. static inline bool ClassOf( const EDA_ITEM *aItem )
  278. {
  279. return aItem && PCB_VIA_T == aItem->Type();
  280. }
  281. // Do not create a copy constructor. The one generated by the compiler is adequate.
  282. bool IsType( const KICAD_T aScanTypes[] ) const override
  283. {
  284. if( BOARD_CONNECTED_ITEM::IsType( aScanTypes ) )
  285. return true;
  286. for( const KICAD_T* p = aScanTypes; *p != EOT; ++p )
  287. {
  288. if( *p == PCB_LOCATE_STDVIA_T && m_viaType == VIATYPE::THROUGH )
  289. return true;
  290. else if( *p == PCB_LOCATE_UVIA_T && m_viaType == VIATYPE::MICROVIA )
  291. return true;
  292. else if( *p == PCB_LOCATE_BBVIA_T && m_viaType == VIATYPE::BLIND_BURIED )
  293. return true;
  294. }
  295. return false;
  296. }
  297. VIATYPE GetViaType() const { return m_viaType; }
  298. void SetViaType( VIATYPE aViaType ) { m_viaType = aViaType; }
  299. bool IsOnLayer( PCB_LAYER_ID aLayer ) const override;
  300. virtual LSET GetLayerSet() const override;
  301. virtual void SetLayerSet( LSET aLayers ) override;
  302. /**
  303. * Function SetLayerPair
  304. * For a via m_layer contains the top layer, the other layer is in m_bottomLayer
  305. * @param aTopLayer = first layer connected by the via
  306. * @param aBottomLayer = last layer connected by the via
  307. */
  308. void SetLayerPair( PCB_LAYER_ID aTopLayer, PCB_LAYER_ID aBottomLayer );
  309. void SetBottomLayer( PCB_LAYER_ID aLayer );
  310. void SetTopLayer( PCB_LAYER_ID aLayer );
  311. /**
  312. * Function LayerPair
  313. * Return the 2 layers used by the via (the via actually uses
  314. * all layers between these 2 layers)
  315. * @param top_layer = pointer to the first layer (can be null)
  316. * @param bottom_layer = pointer to the last layer (can be null)
  317. */
  318. void LayerPair( PCB_LAYER_ID* top_layer, PCB_LAYER_ID* bottom_layer ) const;
  319. PCB_LAYER_ID TopLayer() const;
  320. PCB_LAYER_ID BottomLayer() const;
  321. /**
  322. * Function SanitizeLayers
  323. * Check so that the layers are correct dependin on the type of via, and
  324. * so that the top actually is on top.
  325. */
  326. void SanitizeLayers();
  327. wxPoint GetPosition() const override { return m_Start; }
  328. void SetPosition( const wxPoint& aPoint ) override { m_Start = aPoint; m_End = aPoint; }
  329. void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList ) override;
  330. bool HitTest( const wxPoint& aPosition, int aAccuracy = 0 ) const override;
  331. bool HitTest( const EDA_RECT& aRect, bool aContained, int aAccuracy = 0 ) const override;
  332. wxString GetClass() const override
  333. {
  334. return wxT( "VIA" );
  335. }
  336. wxString GetSelectMenuText( EDA_UNITS aUnits ) const override;
  337. BITMAP_DEF GetMenuImage() const override;
  338. EDA_ITEM* Clone() const override;
  339. void ViewGetLayers( int aLayers[], int& aCount ) const override;
  340. double ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const override;
  341. void Flip( const wxPoint& aCentre, bool aFlipLeftRight ) override;
  342. #if defined (DEBUG)
  343. void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
  344. #endif
  345. int GetMinAnnulus( PCB_LAYER_ID aLayer, wxString* aSource ) const;
  346. /**
  347. * Sets the unconnected removal property. If true, the copper is removed on zone fill
  348. * or when specifically requested when the via is not connected on a layer.
  349. */
  350. void SetRemoveUnconnected( bool aSet ) { m_removeUnconnectedLayer = aSet; }
  351. bool GetRemoveUnconnected() const { return m_removeUnconnectedLayer; }
  352. /**
  353. * Sets whether we keep the top and bottom connections even if they are not connected
  354. */
  355. void SetKeepTopBottom( bool aSet ) { m_keepTopBottomLayer = aSet; }
  356. bool GetKeepTopBottom() const { return m_keepTopBottomLayer; }
  357. /**
  358. * Checks to see whether the via should have a pad on the specific layer
  359. * @param aLayer Layer to check for connectivity
  360. * @return true if connected by pad or track
  361. */
  362. bool FlashLayer( int aLayer ) const;
  363. /**
  364. * Checks to see if the via is present on any of the layers in the set
  365. * @param aLayers set of layers to check the via against
  366. * @return true if connected by pad or track on any of the associated layers
  367. */
  368. bool FlashLayer( LSET aLayers ) const;
  369. /**
  370. * Function SetDrill
  371. * sets the drill value for vias.
  372. * @param aDrill is the new drill diameter
  373. */
  374. void SetDrill( int aDrill ) { m_drill = aDrill; }
  375. /**
  376. * Function GetDrill
  377. * returns the local drill setting for this VIA. If you want the calculated value,
  378. * use GetDrillValue() instead.
  379. */
  380. int GetDrill() const { return m_drill; }
  381. /**
  382. * Function GetDrillValue
  383. * "calculates" the drill value for vias (m-Drill if > 0, or default
  384. * drill value for the board.
  385. * @return real drill_value
  386. */
  387. int GetDrillValue() const;
  388. /**
  389. * Function SetDrillDefault
  390. * sets the drill value for vias to the default value #UNDEFINED_DRILL_DIAMETER.
  391. */
  392. void SetDrillDefault() { m_drill = UNDEFINED_DRILL_DIAMETER; }
  393. /**
  394. * Function IsDrillDefault
  395. * @return true if the drill value is default value (-1)
  396. */
  397. bool IsDrillDefault() const { return m_drill <= 0; }
  398. void SwapData( BOARD_ITEM* aImage ) override;
  399. // @copydoc BOARD_ITEM::GetEffectiveShape
  400. std::shared_ptr<SHAPE> GetEffectiveShape( PCB_LAYER_ID aLayer = UNDEFINED_LAYER ) const override;
  401. protected:
  402. wxString layerMaskDescribe() const override;
  403. private:
  404. /// The bottom layer of the via (the top layer is in m_layer)
  405. PCB_LAYER_ID m_bottomLayer;
  406. VIATYPE m_viaType; ///< through, blind/buried or micro
  407. int m_drill; ///< for vias: via drill (- 1 for default value)
  408. bool m_removeUnconnectedLayer; ///< Remove unconnected copper on a via
  409. bool m_keepTopBottomLayer; ///< Keep the top and bottom annular rings
  410. };
  411. #endif // CLASS_TRACK_H