wxArt2D
|
#include "a2dprec.h"
#include "wx/wx.h"
#include "wx/module.h"
#include <wx/wfstream.h>
#include <wx/tokenzr.h>
#include <algorithm>
#include <math.h>
#include "wx/canvas/canobj.h"
#include "wx/canvas/drawer.h"
#include "wx/canvas/drawing.h"
#include "wx/canvas/canvas.h"
#include "wx/canvas/tools.h"
#include "wx/canvas/wire.h"
#include "wx/canvas/canglob.h"
#include "wx/canvas/algos.h"
#include "wx/general/smrtptr.inl"
Go to the source code of this file.
Macros | |
#define | CIRCLE_STEPS 128 |
Functions | |
bool | operator< (const a2dSmrtPtr< a2dCanvasObject > &a, const a2dSmrtPtr< a2dCanvasObject > &b) |
bool | SetPointIfCloser (const a2dPoint2D &pointToSnapTo, const a2dPoint2D &pointToSnap, a2dPoint2D &bestPointSofar, double thresHoldWorld) |
void | AddFlag (wxString &flags, const wxString &name, bool value, bool defval) |
bool | ParseFlag (wxString &str, wxString &flagname, bool &flagvalue, wxString &error) |
Variables | |
a2dCanvasObjectSorter | s_a2dCanvasObjectSorter = NULL |
Copyright: 2000-2004 (c) Robert Roebling
Licence: wxWidgets Licence
RCS-ID:
Definition in file canobj.cpp.
bool SetPointIfCloser | ( | const a2dPoint2D & | pointToSnapTo, |
const a2dPoint2D & | pointToSnap, | ||
a2dPoint2D & | bestPointSofar, | ||
double | thresHoldWorld | ||
) |
if pointToSnap is closer to pointToSnapTo than bestPointSofar, make bestPointSofar that point. But only if it is within thresHoldWorld distance.
Definition at line 4189 of file canobj.cpp.