wxArt2D
Macros | Functions | Variables
canobj.cpp File Reference
#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"
Include dependency graph for canobj.cpp:

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
 

Detailed Description

Author
Robert Roebling and Klaas Holwerda

Copyright: 2000-2004 (c) Robert Roebling

Licence: wxWidgets Licence

RCS-ID:

Id:
canobj.cpp,v 1.435 2009/09/30 18:38:57 titato Exp

Definition in file canobj.cpp.

Function Documentation

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.

canobj.cpp File Reference -- Sun Oct 12 2014 17:04:26 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation