KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
load_select_footprint.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2018 Jean-Pierre Charras, jean-pierre.charras@ujf-grenoble.fr
5 * Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
6 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, you may find one here:
20 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21 * or you may search the http://www.gnu.org website for the version 2 license,
22 * or you may write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 */
25
26#include <functional>
27using namespace std::placeholders;
28
29#include <board.h>
30#include <footprint.h>
31#include <confirm.h>
33#include <eda_list_dialog.h>
37#include <fp_lib_table.h>
38#include <pcb_io/pcb_io_mgr.h>
39#include <string_utils.h>
40#include <kiway.h>
41#include <lib_id.h>
42#include <macros.h>
43#include <pcb_edit_frame.h>
44#include <pcbnew_settings.h>
46#include <drc/drc_item.h>
47#include <view/view_controls.h>
48#include <widgets/lib_tree.h>
51#include <project_pcb.h>
52
53
54static wxArrayString s_FootprintHistoryList;
55static unsigned s_FootprintHistoryMaxCount = 8;
56
57static void AddFootprintToHistory( const wxString& aName )
58{
59 // Remove duplicates
60 for( int ii = s_FootprintHistoryList.GetCount() - 1; ii >= 0; --ii )
61 {
62 if( s_FootprintHistoryList[ ii ] == aName )
63 s_FootprintHistoryList.RemoveAt((size_t) ii );
64 }
65
66 // Add the new name at the beginning of the history list
67 s_FootprintHistoryList.Insert( aName, 0 );
68
69 // Remove extra names
71 s_FootprintHistoryList.RemoveAt( s_FootprintHistoryList.GetCount() - 1 );
72}
73
74
75#include <bitmaps.h>
77{
78 bool is_last_fp_from_brd = IsCurrentFPFromBoard();
79
80 FOOTPRINT* newFootprint = nullptr;
82
83 if( frame == nullptr ) // happens if no board editor opened
84 return false;
85
86 if( aFootprint == nullptr )
87 {
88 if( !frame->GetBoard() || !frame->GetBoard()->GetFirstFootprint() )
89 return false;
90
91 aFootprint = SelectFootprintFromBoard( frame->GetBoard() );
92 }
93
94 if( aFootprint == nullptr )
95 return false;
96
97 // Ensure we do not have the pad editor open (that is apseudo modal dlg).
98 // LoadFootprintFromBoard() can be called from the board editor, and we must ensure
99 // no footprint item is currently in edit
100 if( wxWindow::FindWindowByName( PAD_PROPERTIES_DLG_NAME ) )
101 wxWindow::FindWindowByName( PAD_PROPERTIES_DLG_NAME )->Close();
102
103 if( !Clear_Pcb( true ) )
104 return false;
105
106 std::map<int, SEVERITY>& severities = GetBoard()->GetDesignSettings().m_DRCSeverities;
108
109 m_boardFootprintUuids.clear();
110
111 auto recordAndUpdateUuid =
112 [&]( BOARD_ITEM* aItem )
113 {
114 KIID newId;
115 m_boardFootprintUuids[ newId ] = aItem->m_Uuid;
116 const_cast<KIID&>( aItem->m_Uuid ) = newId;
117 };
118
119 newFootprint = (FOOTPRINT*) aFootprint->Clone(); // Keep existing uuids
120 newFootprint->SetParent( GetBoard() );
121 newFootprint->SetParentGroup( nullptr );
122 newFootprint->SetLink( aFootprint->m_Uuid );
123
124 newFootprint->ClearFlags();
125 recordAndUpdateUuid( newFootprint );
126 newFootprint->RunOnChildren(
127 [&]( BOARD_ITEM* aItem )
128 {
129 if( aItem->Type() == PCB_PAD_T )
130 aItem->SetLocked( false );
131
132 aItem->ClearFlags();
133 recordAndUpdateUuid( aItem );
134 },
135 RECURSE_MODE::RECURSE );
136
137 AddFootprintToBoard( newFootprint );
138
139 // Clear references to any net info, because the footprint editor does know any thing about
140 // nets handled by the current edited board.
141 // Moreover we do not want to save any reference to an unknown net when saving the footprint
142 // in lib cache so we force the ORPHANED dummy net info for all pads.
143 newFootprint->ClearAllNets();
144
146 PlaceFootprint( newFootprint );
147 newFootprint->SetPosition( VECTOR2I( 0, 0 ) ); // cursor in GAL may not yet be initialized
148
149 // Put it on FRONT layer,
150 // because this is the default in Footprint Editor, and in libs
151 if( newFootprint->GetLayer() != F_Cu )
152 {
153 newFootprint->Flip( newFootprint->GetPosition(),
155 }
156
157 // Put it in orientation 0,
158 // because this is the default orientation in Footprint Editor, and in libs
159 newFootprint->SetOrientation( ANGLE_0 );
160
161 Zoom_Automatique( false );
162
163 m_adapter->SetPreselectNode( newFootprint->GetFPID(), 0 );
164
166 GetScreen()->SetContentModified( false );
167
168 // Update the save items if needed.
169 if( !is_last_fp_from_brd )
170 {
173
174 if( IsLibraryTreeShown() )
176 }
177
178 Update3DView( true, true );
179 UpdateView();
180 GetCanvas()->Refresh();
181 m_treePane->GetLibTree()->RefreshLibTree(); // update any previously-highlighted items
182
183 return true;
184}
185
186
188{
189 wxString footprintName = aPreselect.Format().wx_str();
190 LIB_ID fpid;
191 FOOTPRINT* footprint = nullptr;
192
193 static wxString lastComponentName;
194
195 if( KIWAY_PLAYER* frame = Kiway().Player( FRAME_FOOTPRINT_CHOOSER, true, this ) )
196 {
197 if( frame->ShowModal( &footprintName, this ) )
198 fpid.Parse( UTF8( footprintName ) );
199
200 frame->Destroy();
201 }
202
203 if( !fpid.IsValid() )
204 return nullptr;
205
206 try
207 {
208 footprint = loadFootprint( fpid );
209 }
210 catch( const IO_ERROR& )
211 {
212 }
213
214 if( footprint )
215 {
216 lastComponentName = footprintName;
217 AddFootprintToHistory( footprintName );
218 }
219
220 return footprint;
221}
222
223
225{
226 FOOTPRINT* footprint = nullptr;
227
228 try
229 {
230 footprint = loadFootprint( aFootprintId );
231 }
232 catch( const IO_ERROR& )
233 {
234 }
235
236 return footprint;
237}
238
239
241{
243
244 wxCHECK_MSG( fptbl, nullptr, wxT( "Cannot look up LIB_ID in NULL FP_LIB_TABLE." ) );
245
246 FOOTPRINT *footprint = nullptr;
247
248 // When loading a footprint from a library in the footprint editor
249 // the items UUIDs must be keep and not reinitialized
250 bool keepUUID = IsType( FRAME_FOOTPRINT_EDITOR );
251
252 try
253 {
254 footprint = fptbl->FootprintLoadWithOptionalNickname( aFootprintId, keepUUID );
255 }
256 catch( const IO_ERROR& )
257 {
258 }
259
260 if( footprint )
261 {
262 // If the footprint is found, clear all net info to be sure there are no broken links to
263 // any netinfo list (should be not needed, but it can be edited from the footprint editor )
264 footprint->ClearAllNets();
265
266 if( m_pcb && !m_pcb->IsFootprintHolder() )
267 {
269
271 bds.m_StyleFPShapes );
272 }
273 }
274
275 return footprint;
276}
277
278
280{
281 static wxString oldName; // Save name of last footprint selected.
282
283 wxString fpname;
284 wxString msg;
285 wxArrayString listnames;
286
287 for( FOOTPRINT* footprint : aPcb->Footprints() )
288 listnames.Add( footprint->GetReference() );
289
290 msg.Printf( _( "Footprints [%u items]" ), (unsigned) listnames.GetCount() );
291
292 wxArrayString headers;
293
294 headers.Add( _( "Footprint" ) );
295
296 std::vector<wxArrayString> itemsToDisplay;
297
298 // Conversion from wxArrayString to vector of ArrayString
299 for( unsigned i = 0; i < listnames.GetCount(); i++ )
300 {
301 wxArrayString item;
302
303 item.Add( listnames[i] );
304 itemsToDisplay.push_back( item );
305 }
306
307 EDA_LIST_DIALOG dlg( this, msg, headers, itemsToDisplay, wxEmptyString );
308
309 if( dlg.ShowModal() == wxID_OK )
310 fpname = dlg.GetTextSelection();
311 else
312 return nullptr;
313
314 oldName = fpname;
315
316 for( FOOTPRINT* fp : aPcb->Footprints() )
317 {
318 if( fpname == fp->GetReference() )
319 return fp;
320 }
321
322 return nullptr;
323}
324
325
326bool FOOTPRINT_EDIT_FRAME::SaveLibraryAs( const wxString& aLibraryPath )
327{
328 const wxString& curLibPath = aLibraryPath;
329 wxString dstLibPath = CreateNewLibrary( wxEmptyString, aLibraryPath );
330
331 if( !dstLibPath )
332 return false; // user aborted in CreateNewLibrary()
333
334 wxBusyCursor dummy;
335 wxString msg;
336
339
340 if( dstType == PCB_IO_MGR::FILE_TYPE_NONE )
341 dstType = PCB_IO_MGR::KICAD_SEXP;
342
343 try
344 {
347
348 if( !cur )
349 {
350 msg = wxString::Format( _( "Unable to find a reader for '%s'." ), curLibPath );
351 DisplayError( this, msg );
352 return false;
353 }
354
355 if( !dst )
356 {
357 msg = wxString::Format( _( "Unable to find a writer for '%s'." ), dstLibPath );
358 DisplayError( this, msg );
359 return false;
360 }
361
362 wxArrayString footprints;
363
364 cur->FootprintEnumerate( footprints, curLibPath, false );
365
366 for( unsigned i = 0; i < footprints.size(); ++i )
367 {
368 const FOOTPRINT* footprint = cur->GetEnumeratedFootprint( curLibPath, footprints[i] );
369 dst->FootprintSave( dstLibPath, footprint );
370
371 msg = wxString::Format( _( "Footprint '%s' saved." ), footprints[i] );
372 SetStatusText( msg );
373 }
374 }
375 catch( const IO_ERROR& ioe )
376 {
377 DisplayErrorMessage( this, _( "Error saving footprint library" ), ioe.What() );
378 return false;
379 }
380
381 msg = wxString::Format( _( "Footprint library '%s' saved as '%s'." ),
382 curLibPath,
383 dstLibPath );
384
385 DisplayInfoMessage( this, msg );
386
387 SetStatusText( wxEmptyString );
388 return true;
389}
390
391
392static FOOTPRINT* s_FootprintInitialCopy = nullptr; // Copy of footprint for abort/undo command
393
394static PICKED_ITEMS_LIST s_PickedList; // A pick-list to save initial footprint
395 // and dragged tracks
396
397void PCB_BASE_FRAME::PlaceFootprint( FOOTPRINT* aFootprint, bool aRecreateRatsnest )
398{
399 if( aFootprint == nullptr )
400 return;
401
402 OnModify();
403
404 if( aFootprint->IsNew() )
405 {
406 SaveCopyInUndoList( aFootprint, UNDO_REDO::NEWITEM );
407 }
408 else if( aFootprint->IsMoving() )
409 {
410 ITEM_PICKER picker( nullptr, aFootprint, UNDO_REDO::CHANGED );
412 s_PickedList.PushItem( picker );
413 s_FootprintInitialCopy = nullptr; // the picker is now owner of s_ModuleInitialCopy.
414 }
415
416 if( s_PickedList.GetCount() )
417 {
418 SaveCopyInUndoList( s_PickedList, UNDO_REDO::UNSPECIFIED );
419
420 // Clear list, but DO NOT delete items, because they are owned by the saved undo
421 // list and they therefore in use
423 }
424
425 aFootprint->SetPosition( GetCanvas()->GetViewControls()->GetCursorPosition() );
426 aFootprint->ClearFlags();
427
429 s_FootprintInitialCopy = nullptr;
430
431 if( aRecreateRatsnest )
432 m_pcb->GetConnectivity()->Update( aFootprint );
433
434 if( aRecreateRatsnest )
435 Compile_Ratsnest( true );
436
437 SetMsgPanel( aFootprint );
438}
439
440
void SetContentModified(bool aModified=true)
Definition: base_screen.h:59
Container for design settings for a BOARD object.
std::map< int, SEVERITY > m_DRCSeverities
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition: board_item.h:78
void SetParentGroup(PCB_GROUP *aGroup)
Definition: board_item.h:93
virtual void SetLocked(bool aLocked)
Definition: board_item.h:326
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:297
bool IsFootprintHolder() const
Find out if the board is being used to hold a single footprint for editing/viewing.
Definition: board.h:327
FOOTPRINT * GetFirstFootprint() const
Get the first footprint on the board or nullptr.
Definition: board.h:463
const FOOTPRINTS & Footprints() const
Definition: board.h:338
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Definition: board.cpp:946
std::shared_ptr< CONNECTIVITY_DATA > GetConnectivity() const
Return a list of missing connections between components/tracks.
Definition: board.h:495
int ShowModal() override
virtual void ClearUndoRedoList()
Clear the undo and redo list using ClearUndoORRedoList()
bool IsType(FRAME_T aType) const
void ReCreateMenuBar()
Recreate the menu bar.
void SetMsgPanel(const std::vector< MSG_PANEL_ITEM > &aList)
Clear the message panel and populates it with the contents of aList.
virtual void ReCreateHToolbar()
virtual void Zoom_Automatique(bool aWarpPointer)
Redraw the screen with best zoom level and the best centering that shows all the page or the board.
KIGFX::VIEW_CONTROLS * GetViewControls() const
Return a pointer to the #VIEW_CONTROLS instance used in the panel.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
const KIID m_Uuid
Definition: eda_item.h:494
KICAD_T Type() const
Returns the type of object.
Definition: eda_item.h:107
void ClearFlags(EDA_ITEM_FLAGS aMask=EDA_ITEM_ALL_FLAGS)
Definition: eda_item.h:133
virtual void SetParent(EDA_ITEM *aParent)
Definition: eda_item.h:110
bool IsMoving() const
Definition: eda_item.h:114
bool IsNew() const
Definition: eda_item.h:113
A dialog which shows:
wxString GetTextSelection(int aColumn=0)
Return the selected text from aColumn in the wxListCtrl in the dialog.
bool SaveLibraryAs(const wxString &aLibraryPath)
Save a library to a new name and/or library type.
void ToggleLibraryTree() override
std::map< KIID, KIID > m_boardFootprintUuids
FOOTPRINT * SelectFootprintFromBoard(BOARD *aPcb)
Display the list of footprints currently existing on the BOARD.
wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > m_adapter
bool IsLibraryTreeShown() const override
bool Clear_Pcb(bool doAskAboutUnsavedChanges)
Delete all and reinitialize the current board.
Definition: initpcb.cpp:108
void AddFootprintToBoard(FOOTPRINT *aFootprint) override
Override from PCB_BASE_EDIT_FRAME which adds a footprint to the editor's dummy board,...
FOOTPRINT_TREE_PANE * m_treePane
bool LoadFootprintFromBoard(FOOTPRINT *aFootprint)
Load a footprint from the main board into the Footprint Editor.
LIB_TREE * GetLibTree() const
void SetPosition(const VECTOR2I &aPos) override
Definition: footprint.cpp:2456
void SetLink(const KIID &aLink)
Definition: footprint.h:845
void SetOrientation(const EDA_ANGLE &aNewAngle)
Definition: footprint.cpp:2538
void RunOnChildren(const std::function< void(BOARD_ITEM *)> &aFunction, RECURSE_MODE aMode) const override
Invoke a function on all children.
Definition: footprint.cpp:2184
EDA_ITEM * Clone() const override
Invoke a function on all children.
Definition: footprint.cpp:2178
void ApplyDefaultSettings(const BOARD &board, bool aStyleFields, bool aStyleText, bool aStyleShapes)
Apply default board settings to the footprint field text properties.
Definition: footprint.cpp:661
PCB_LAYER_ID GetLayer() const override
Return the primary layer this item is on.
Definition: footprint.h:241
const LIB_ID & GetFPID() const
Definition: footprint.h:253
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override
Removes an item from the container.
Definition: footprint.cpp:1069
void ClearAllNets()
Clear (i.e.
Definition: footprint.cpp:1060
void Flip(const VECTOR2I &aCentre, FLIP_DIRECTION aFlipDirection) override
Flip this object, i.e.
Definition: footprint.cpp:2397
VECTOR2I GetPosition() const override
Definition: footprint.h:229
FOOTPRINT * FootprintLoadWithOptionalNickname(const LIB_ID &aFootprintId, bool aKeepUUID=false)
Load a footprint having aFootprintId with possibly an empty nickname.
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
Definition: ki_exception.h:77
virtual const wxString What() const
A composite of Problem() and Where()
Definition: exceptions.cpp:30
void SetLink(EDA_ITEM *aItem)
virtual void SetCrossHairCursorPosition(const VECTOR2D &aPosition, bool aWarpView=true)=0
Move the graphic crosshair cursor to the requested position expressed in world coordinates.
Definition: kiid.h:49
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
Definition: kiway_player.h:65
virtual KIWAY_PLAYER * Player(FRAME_T aFrameType, bool doCreate=true, wxTopLevelWindow *aParent=nullptr)
Return the KIWAY_PLAYER* given a FRAME_T.
Definition: kiway.cpp:406
A logical library item identifier and consists of various portions much like a URI.
Definition: lib_id.h:49
int Parse(const UTF8 &aId, bool aFix=false)
Parse LIB_ID with the information from aId.
Definition: lib_id.cpp:52
bool IsValid() const
Check if this LID_ID is valid.
Definition: lib_id.h:172
UTF8 Format() const
Definition: lib_id.cpp:119
void RefreshLibTree()
Refresh the tree (mainly to update highlighting and asterisking)
Definition: lib_tree.cpp:459
FLIP_DIRECTION m_FlipDirection
wxString CreateNewLibrary(const wxString &aLibName=wxEmptyString, const wxString &aProposedName=wxEmptyString)
If a library name is given, creates a new footprint library in the project folder with the given name...
PCBNEW_SETTINGS * GetPcbNewSettings() const
void OnModify() override
Must be called after a change in order to set the "modify" flag and update other data structures and ...
virtual void SaveCopyInUndoList(EDA_ITEM *aItemToCopy, UNDO_REDO aTypeCommand)
Create a new entry in undo list of commands.
FOOTPRINT * loadFootprint(const LIB_ID &aFootprintId)
Attempt to load aFootprintId from the footprint library table.
FOOTPRINT * SelectFootprintFromLibrary(LIB_ID aPreselect=LIB_ID())
Open a dialog to select a footprint.
FOOTPRINT * LoadFootprint(const LIB_ID &aFootprintId)
Attempt to load aFootprintId from the footprint library table.
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
PCB_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
BOARD * GetBoard() const
void PlaceFootprint(FOOTPRINT *aFootprint, bool aRecreateRatsnest=true)
Place aFootprint at the current cursor position and updates footprint coordinates with the new positi...
void Compile_Ratsnest(bool aDisplayStatus)
Create the entire board ratsnest.
Definition: ratsnest.cpp:35
virtual void Update3DView(bool aMarkDirty, bool aRefresh, const wxString *aTitle=nullptr)
Update the 3D view, if the viewer is opened by this frame.
The main frame for Pcbnew.
static PCB_IO * PluginFind(PCB_FILE_T aFileType)
Return a #PLUGIN which the caller can use to import, export, save, or load design documents.
Definition: pcb_io_mgr.cpp:69
PCB_FILE_T
The set of file types that the PCB_IO_MGR knows about, and for which there has been a plugin written,...
Definition: pcb_io_mgr.h:56
@ FILE_TYPE_NONE
Definition: pcb_io_mgr.h:77
@ KICAD_SEXP
S-expression Pcbnew file format.
Definition: pcb_io_mgr.h:58
static PCB_FILE_T GuessPluginTypeFromLibPath(const wxString &aLibPath, int aCtl=0)
Return a plugin type given a footprint library's libPath.
Definition: pcb_io_mgr.cpp:136
A holder to handle information on schematic or board items.
void PushItem(const ITEM_PICKER &aItem)
Push aItem to the top of the list.
unsigned GetCount() const
void ClearItemsList()
Delete only the list of pickers NOT the picked data itself.
static FP_LIB_TABLE * PcbFootprintLibs(PROJECT *aProject)
Return the table of footprint libraries without Kiway.
Definition: project_pcb.cpp:37
An 8 bit string that is assuredly encoded in UTF8, and supplies special conversion support to and fro...
Definition: utf8.h:72
wxString wx_str() const
Definition: utf8.cpp:45
void DisplayInfoMessage(wxWindow *aParent, const wxString &aMessage, const wxString &aExtraInfo)
Display an informational message box with aMessage.
Definition: confirm.cpp:221
void DisplayErrorMessage(wxWindow *aParent, const wxString &aText, const wxString &aExtraInfo)
Display an error message with aMessage.
Definition: confirm.cpp:194
void DisplayError(wxWindow *aParent, const wxString &aText)
Display an error or warning message box with aMessage.
Definition: confirm.cpp:170
This file is part of the common library.
#define PAD_PROPERTIES_DLG_NAME
DIALOG_PAD_PROPERTIES, derived from DIALOG_PAD_PROPERTIES_BASE, created by wxFormBuilder.
@ DRCE_MISSING_COURTYARD
Definition: drc_item.h:66
#define _(s)
static constexpr EDA_ANGLE ANGLE_0
Definition: eda_angle.h:401
static void AddFootprintToHistory(const wxString &aName)
@ FRAME_PCB_EDITOR
Definition: frame_type.h:42
@ FRAME_FOOTPRINT_CHOOSER
Definition: frame_type.h:44
@ FRAME_FOOTPRINT_EDITOR
Definition: frame_type.h:43
std::unique_ptr< T > IO_RELEASER
Helper to hold and release an IO_BASE object when exceptions are thrown.
Definition: io_mgr.h:33
@ F_Cu
Definition: layer_ids.h:64
static wxArrayString s_FootprintHistoryList
static unsigned s_FootprintHistoryMaxCount
static PICKED_ITEMS_LIST s_PickedList
static FOOTPRINT * s_FootprintInitialCopy
static void AddFootprintToHistory(const wxString &aName)
This file contains miscellaneous commonly used macros and functions.
@ RPT_SEVERITY_WARNING
KIWAY Kiway(KFCTL_STANDALONE)
std::vector< FAB_LAYER_COLOR > dummy
@ PCB_PAD_T
class PAD, a pad in a footprint
Definition: typeinfo.h:87
VECTOR2< int32_t > VECTOR2I
Definition: vector2d.h:695
VECTOR2< double > VECTOR2D
Definition: vector2d.h:694