Remove some uses of using namespace std.
This commit is contained in:
parent
5c28285cdf
commit
7f12513c7e
|
@ -93,7 +93,7 @@ macro(perform_feature_checks)
|
|||
|
||||
# CMakes check_cxx_symbol_exists() doesn't work for templates so we must create a
|
||||
# small program to verify isinf() exists in cmath.
|
||||
check_cxx_source_compiles( "#include <cmath>\nusing namespace std;\nint main(int argc, char** argv)\n{\n (void)argv;\n isinf(1.0); (void)argc;\n return 0;\n}\n" HAVE_CMATH_ISINF )
|
||||
check_cxx_source_compiles( "#include <cmath>\nint main(int argc, char** argv)\n{\n (void)argv;\n std::isinf(1.0); (void)argc;\n return 0;\n}\n" HAVE_CMATH_ISINF )
|
||||
|
||||
#check_symbol_exists(clock_gettime "time.h" HAVE_CLOCK_GETTIME) non-standard library, does not work
|
||||
check_library_exists(rt clock_gettime "" HAVE_CLOCK_GETTIME)
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#include <geometry/shape_line_chain.h>
|
||||
#include <geometry/shape_circle.h>
|
||||
|
||||
using namespace std;
|
||||
using boost::optional;
|
||||
|
||||
bool SHAPE_LINE_CHAIN::Collide( const VECTOR2I& aP, int aClearance ) const
|
||||
|
@ -137,7 +136,7 @@ int SHAPE_LINE_CHAIN::Distance( const VECTOR2I& aP ) const
|
|||
int d = INT_MAX;
|
||||
|
||||
for( int s = 0; s < SegmentCount(); s++ )
|
||||
d = min( d, CSegment( s ).Distance( aP ) );
|
||||
d = std::min( d, CSegment( s ).Distance( aP ) );
|
||||
|
||||
return d;
|
||||
}
|
||||
|
@ -437,7 +436,7 @@ const optional<SHAPE_LINE_CHAIN::INTERSECTION> SHAPE_LINE_CHAIN::SelfIntersectin
|
|||
|
||||
SHAPE_LINE_CHAIN& SHAPE_LINE_CHAIN::Simplify()
|
||||
{
|
||||
vector<VECTOR2I> pts_unique;
|
||||
std::vector<VECTOR2I> pts_unique;
|
||||
|
||||
if( PointCount() < 2 )
|
||||
{
|
||||
|
@ -524,9 +523,9 @@ const VECTOR2I SHAPE_LINE_CHAIN::NearestPoint( const VECTOR2I& aP ) const
|
|||
}
|
||||
|
||||
|
||||
const string SHAPE_LINE_CHAIN::Format() const
|
||||
const std::string SHAPE_LINE_CHAIN::Format() const
|
||||
{
|
||||
stringstream ss;
|
||||
std::stringstream ss;
|
||||
|
||||
ss << m_points.size() << " " << ( m_closed ? 1 : 0 ) << " ";
|
||||
|
||||
|
|
|
@ -1358,8 +1358,8 @@ void ClipAndDrawPoly( EDA_RECT* aClipBox, wxDC* aDC, wxPoint aPoints[], int n )
|
|||
}
|
||||
|
||||
// A clip box exists: clip and draw the polygon.
|
||||
static vector<wxPoint> clippedPolygon;
|
||||
static pointVector inputPolygon, outputPolygon;
|
||||
static std::vector<wxPoint> clippedPolygon;
|
||||
static pointVector inputPolygon, outputPolygon;
|
||||
|
||||
inputPolygon.clear();
|
||||
outputPolygon.clear();
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
using namespace std;
|
||||
|
||||
struct FlagString
|
||||
{
|
||||
int flag;
|
||||
|
@ -153,7 +151,7 @@ const std::string TOOL_EVENT::Format() const
|
|||
|
||||
const std::string TOOL_EVENT_LIST::Format() const
|
||||
{
|
||||
string s;
|
||||
std::string s;
|
||||
|
||||
BOOST_FOREACH( TOOL_EVENT e, m_events )
|
||||
s += e.Format() + " ";
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
#include <class_drawpanel_gal.h>
|
||||
|
||||
using boost::optional;
|
||||
using namespace std;
|
||||
|
||||
/// Struct describing the current execution state of a TOOL
|
||||
struct TOOL_MANAGER::TOOL_STATE
|
||||
|
|
|
@ -26,8 +26,7 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <algorithm> // to use sort vector
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
||||
#include <fctsys.h>
|
||||
#include <class_drawpanel.h>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
|
||||
#include <wx/regex.h>
|
||||
#include <algorithm> // to use sort vector
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
||||
#include <fctsys.h>
|
||||
|
|
|
@ -169,7 +169,7 @@ HIERARCHY_NAVIG_DLG::HIERARCHY_NAVIG_DLG( SCH_EDIT_FRAME* parent, wxDC* DC, cons
|
|||
|
||||
// Set dialog window size to be large enough
|
||||
m_TreeSize.x = itemrect.GetWidth() + 20;
|
||||
m_TreeSize.x = max( m_TreeSize.x, 250 );
|
||||
m_TreeSize.x = std::max( m_TreeSize.x, 250 );
|
||||
|
||||
// Readjust the size of the frame to an optimal value.
|
||||
m_TreeSize.y = m_nbsheets * itemrect.GetHeight();
|
||||
|
|
|
@ -246,7 +246,7 @@ bool SCH_BUS_ENTRY_BASE::IsSelectStateChanged( const wxRect& aRect )
|
|||
}
|
||||
|
||||
|
||||
void SCH_BUS_ENTRY_BASE::GetConnectionPoints( vector< wxPoint >& aPoints ) const
|
||||
void SCH_BUS_ENTRY_BASE::GetConnectionPoints( std::vector< wxPoint >& aPoints ) const
|
||||
{
|
||||
aPoints.push_back( m_pos );
|
||||
aPoints.push_back( m_End() );
|
||||
|
|
|
@ -96,7 +96,7 @@ public:
|
|||
|
||||
bool IsConnectable() const { return true; }
|
||||
|
||||
void GetConnectionPoints( vector< wxPoint >& aPoints ) const;
|
||||
void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const;
|
||||
|
||||
BITMAP_DEF GetMenuImage() const { return add_entry_xpm; }
|
||||
|
||||
|
|
|
@ -1605,7 +1605,7 @@ bool SCH_COMPONENT::IsSelectStateChanged( const wxRect& aRect )
|
|||
}
|
||||
|
||||
|
||||
void SCH_COMPONENT::GetConnectionPoints( vector< wxPoint >& aPoints ) const
|
||||
void SCH_COMPONENT::GetConnectionPoints( std::vector< wxPoint >& aPoints ) const
|
||||
{
|
||||
LIB_PIN* pin;
|
||||
LIB_COMPONENT* component = CMP_LIBRARY::FindLibraryComponent( m_ChipName );
|
||||
|
@ -1876,7 +1876,7 @@ bool SCH_COMPONENT::HitTest( const EDA_RECT& aRect, bool aContained, int aAccura
|
|||
|
||||
bool SCH_COMPONENT::doIsConnected( const wxPoint& aPosition ) const
|
||||
{
|
||||
vector< wxPoint > pts;
|
||||
std::vector< wxPoint > pts;
|
||||
|
||||
GetConnectionPoints( pts );
|
||||
|
||||
|
|
|
@ -357,7 +357,7 @@ public:
|
|||
|
||||
bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation );
|
||||
|
||||
void GetEndPoints( std::vector <DANGLING_END_ITEM>& aItemList );
|
||||
void GetEndPoints( std::vector<DANGLING_END_ITEM>& aItemList );
|
||||
|
||||
wxPoint GetPinPhysicalPosition( LIB_PIN* Pin );
|
||||
|
||||
|
@ -372,7 +372,7 @@ public:
|
|||
*/
|
||||
bool IsInNetlist() const;
|
||||
|
||||
void GetConnectionPoints( vector< wxPoint >& aPoints ) const;
|
||||
void GetConnectionPoints( std::vector<wxPoint>& aPoints ) const;
|
||||
|
||||
SEARCH_RESULT Visit( INSPECTOR* inspector, const void* testData,
|
||||
const KICAD_T scanTypes[] );
|
||||
|
|
|
@ -168,7 +168,7 @@ bool SCH_JUNCTION::IsSelectStateChanged( const wxRect& aRect )
|
|||
}
|
||||
|
||||
|
||||
void SCH_JUNCTION::GetConnectionPoints( vector< wxPoint >& aPoints ) const
|
||||
void SCH_JUNCTION::GetConnectionPoints( std::vector< wxPoint >& aPoints ) const
|
||||
{
|
||||
aPoints.push_back( m_pos );
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ public:
|
|||
|
||||
bool IsConnectable() const { return true; }
|
||||
|
||||
void GetConnectionPoints( vector< wxPoint >& aPoints ) const;
|
||||
void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const;
|
||||
|
||||
wxString GetSelectMenuText() const { return wxString( _( "Junction" ) ); }
|
||||
|
||||
|
|
|
@ -461,7 +461,7 @@ bool SCH_LINE::IsConnectable() const
|
|||
}
|
||||
|
||||
|
||||
void SCH_LINE::GetConnectionPoints( vector< wxPoint >& aPoints ) const
|
||||
void SCH_LINE::GetConnectionPoints( std::vector< wxPoint >& aPoints ) const
|
||||
{
|
||||
aPoints.push_back( m_start );
|
||||
aPoints.push_back( m_end );
|
||||
|
|
|
@ -113,9 +113,9 @@ public:
|
|||
*/
|
||||
bool MergeOverlap( SCH_LINE* aLine );
|
||||
|
||||
void GetEndPoints( vector <DANGLING_END_ITEM>& aItemList );
|
||||
void GetEndPoints( std::vector<DANGLING_END_ITEM>& aItemList );
|
||||
|
||||
bool IsDanglingStateChanged( vector< DANGLING_END_ITEM >& aItemList );
|
||||
bool IsDanglingStateChanged( std::vector< DANGLING_END_ITEM >& aItemList );
|
||||
|
||||
bool IsDangling() const { return m_startIsDangling || m_endIsDangling; }
|
||||
|
||||
|
@ -123,7 +123,7 @@ public:
|
|||
|
||||
bool IsConnectable() const;
|
||||
|
||||
void GetConnectionPoints( vector< wxPoint >& aPoints ) const;
|
||||
void GetConnectionPoints(std::vector< wxPoint >& aPoints ) const;
|
||||
|
||||
wxString GetSelectMenuText() const;
|
||||
|
||||
|
|
|
@ -182,7 +182,7 @@ bool SCH_NO_CONNECT::IsSelectStateChanged( const wxRect& aRect )
|
|||
}
|
||||
|
||||
|
||||
void SCH_NO_CONNECT::GetConnectionPoints( vector< wxPoint >& aPoints ) const
|
||||
void SCH_NO_CONNECT::GetConnectionPoints( std::vector< wxPoint >& aPoints ) const
|
||||
{
|
||||
aPoints.push_back( m_pos );
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ public:
|
|||
|
||||
bool IsConnectable() const { return true; }
|
||||
|
||||
void GetConnectionPoints( vector< wxPoint >& aPoints ) const;
|
||||
void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const;
|
||||
|
||||
wxString GetSelectMenuText() const { return wxString( _( "No Connect" ) ); }
|
||||
|
||||
|
|
|
@ -1000,7 +1000,7 @@ bool SCH_SHEET::IsSelectStateChanged( const wxRect& aRect )
|
|||
}
|
||||
|
||||
|
||||
void SCH_SHEET::GetConnectionPoints( vector< wxPoint >& aPoints ) const
|
||||
void SCH_SHEET::GetConnectionPoints( std::vector< wxPoint >& aPoints ) const
|
||||
{
|
||||
for( size_t i = 0; i < GetPins().size(); i++ )
|
||||
aPoints.push_back( GetPins()[i].GetPosition() );
|
||||
|
|
|
@ -533,7 +533,7 @@ public:
|
|||
|
||||
bool IsConnectable() const { return true; }
|
||||
|
||||
void GetConnectionPoints( vector< wxPoint >& aPoints ) const;
|
||||
void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const;
|
||||
|
||||
SEARCH_RESULT Visit( INSPECTOR* inspector, const void* testData,
|
||||
const KICAD_T scanTypes[] );
|
||||
|
|
|
@ -564,7 +564,7 @@ bool SCH_TEXT::IsSelectStateChanged( const wxRect& aRect )
|
|||
}
|
||||
|
||||
|
||||
void SCH_TEXT::GetConnectionPoints( vector< wxPoint >& aPoints ) const
|
||||
void SCH_TEXT::GetConnectionPoints( std::vector< wxPoint >& aPoints ) const
|
||||
{
|
||||
// Normal text labels do not have connection points. All others do.
|
||||
if( Type() == SCH_TEXT_T )
|
||||
|
|
|
@ -189,7 +189,7 @@ public:
|
|||
|
||||
virtual bool IsSelectStateChanged( const wxRect& aRect );
|
||||
|
||||
virtual void GetConnectionPoints( vector< wxPoint >& aPoints ) const;
|
||||
virtual void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const;
|
||||
|
||||
virtual bool CanIncrementLabel() const { return true; }
|
||||
|
||||
|
|
|
@ -34,9 +34,6 @@
|
|||
#include <class_base_screen.h>
|
||||
#include <general.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
class SCH_ITEM;
|
||||
class SCH_SHEET_PATH;
|
||||
class LINE_READER;
|
||||
|
@ -49,7 +46,7 @@ class NETLIST_OBJECT_LIST;
|
|||
|
||||
typedef boost::ptr_vector< SCH_ITEM > SCH_ITEMS;
|
||||
typedef SCH_ITEMS::iterator SCH_ITEMS_ITR;
|
||||
typedef vector< SCH_ITEMS_ITR > SCH_ITEMS_ITRS;
|
||||
typedef std::vector< SCH_ITEMS_ITR > SCH_ITEMS_ITRS;
|
||||
|
||||
|
||||
#define FMT_IU SCH_ITEM::FormatInternalUnits
|
||||
|
@ -228,7 +225,7 @@ public:
|
|||
*
|
||||
* @param aItemList - List of DANGLING_END_ITEMS to add to.
|
||||
*/
|
||||
virtual void GetEndPoints( vector< DANGLING_END_ITEM >& aItemList ) {}
|
||||
virtual void GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList ) {}
|
||||
|
||||
/**
|
||||
* Function IsDanglingStateChanged
|
||||
|
@ -243,7 +240,7 @@ public:
|
|||
* @param aItemList - List of items to test item against.
|
||||
* @return True if the dangling state has changed from it's current setting.
|
||||
*/
|
||||
virtual bool IsDanglingStateChanged( vector< DANGLING_END_ITEM >& aItemList ) { return false; }
|
||||
virtual bool IsDanglingStateChanged( std::vector< DANGLING_END_ITEM >& aItemList ) { return false; }
|
||||
|
||||
virtual bool IsDangling() const { return false; }
|
||||
|
||||
|
@ -273,7 +270,7 @@ public:
|
|||
*
|
||||
* @param aPoints List of connection points to add to.
|
||||
*/
|
||||
virtual void GetConnectionPoints( vector< wxPoint >& aPoints ) const { }
|
||||
virtual void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const { }
|
||||
|
||||
/**
|
||||
* Function ClearConnections
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
#include <tool/coroutine.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
typedef COROUTINE<int, int> MyCoroutine;
|
||||
|
||||
class MyClass
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
#include <tool/delegate.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class MyClass
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -79,7 +79,7 @@ public:
|
|||
class DIALOG_TEMPLATE_SELECTOR : public DIALOG_TEMPLATE_SELECTOR_BASE
|
||||
{
|
||||
protected:
|
||||
vector<TEMPLATE_SELECTION_PANEL*> m_panels;
|
||||
std::vector<TEMPLATE_SELECTION_PANEL*> m_panels;
|
||||
void AddTemplate( int aPage, PROJECT_TEMPLATE* aTemplate );
|
||||
TEMPLATE_WIDGET* m_selectedWidget;
|
||||
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
#include <wx/txtstrm.h>
|
||||
#include <wx/wfstream.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
#define SEP() wxFileName::GetPathSeparator()
|
||||
|
||||
|
||||
|
@ -71,9 +69,9 @@ PROJECT_TEMPLATE::PROJECT_TEMPLATE( const wxString& aPath )
|
|||
metaIcon = new wxBitmap( templateMetaIconFile.GetFullPath(), wxBITMAP_TYPE_PNG );
|
||||
}
|
||||
|
||||
vector<wxFileName> PROJECT_TEMPLATE::GetFileList()
|
||||
std::vector<wxFileName> PROJECT_TEMPLATE::GetFileList()
|
||||
{
|
||||
vector<wxFileName> files;
|
||||
std::vector<wxFileName> files;
|
||||
wxString f = templateBasePath.GetPath();
|
||||
wxArrayString allfiles;
|
||||
wxFileName p;
|
||||
|
@ -122,8 +120,8 @@ bool PROJECT_TEMPLATE::CreateProject( wxFileName& aNewProjectPath )
|
|||
{
|
||||
bool result = true;
|
||||
|
||||
vector<wxFileName> srcFiles = GetFileList();
|
||||
vector<wxFileName> dstFiles;
|
||||
std::vector<wxFileName> srcFiles = GetFileList();
|
||||
std::vector<wxFileName> dstFiles;
|
||||
|
||||
for( size_t i=0; i < srcFiles.size(); i++ )
|
||||
{
|
||||
|
|
|
@ -110,9 +110,6 @@
|
|||
#include <wx/image.h>
|
||||
#include <wx/filename.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
/**
|
||||
* @brief A directory which contains information about the project template and does not get
|
||||
* copied. This define is the default filename for this directory
|
||||
|
@ -200,7 +197,7 @@ public:
|
|||
* @brief Get a vector list of filenames for the template. The files are the source files,
|
||||
* and have not yet been through any renaming
|
||||
*/
|
||||
vector<wxFileName> GetFileList();
|
||||
std::vector<wxFileName> GetFileList();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -52,9 +52,6 @@
|
|||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <vector>
|
||||
using namespace std;
|
||||
|
||||
#include <sch_dir_lib_source.h>
|
||||
using namespace SCH;
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#include <sch_dir_lib_source.h>
|
||||
|
||||
|
||||
//using namespace std; // screws up Doxygen
|
||||
using namespace SCH;
|
||||
using namespace LT; // tokens, enum T for LIB_TABLE
|
||||
|
||||
|
|
|
@ -63,15 +63,12 @@
|
|||
#include <macros.h>
|
||||
#include <fp_lib_table.h> // ExpandSubstitutions()
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
static const char* PRETTY_DIR = "allow_pretty_writing_to_this_dir";
|
||||
|
||||
|
||||
typedef boost::ptr_map<string, wxZipEntry> MODULE_MAP;
|
||||
typedef MODULE_MAP::iterator MODULE_ITER;
|
||||
typedef MODULE_MAP::const_iterator MODULE_CITER;
|
||||
typedef boost::ptr_map<std::string, wxZipEntry> MODULE_MAP;
|
||||
typedef MODULE_MAP::iterator MODULE_ITER;
|
||||
typedef MODULE_MAP::const_iterator MODULE_CITER;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -166,7 +163,7 @@ MODULE* GITHUB_PLUGIN::FootprintLoad( const wxString& aLibraryPath,
|
|||
}
|
||||
}
|
||||
|
||||
string fp_name = TO_UTF8( aFootprintName );
|
||||
std::string fp_name = TO_UTF8( aFootprintName );
|
||||
|
||||
MODULE_CITER it = m_gh_cache->find( fp_name );
|
||||
|
||||
|
@ -233,7 +230,7 @@ void GITHUB_PLUGIN::FootprintSave( const wxString& aLibraryPath,
|
|||
// IsFootprintLibWritable() to determine if calling FootprintSave() is
|
||||
// even legal, so I spend no time on internationalization here:
|
||||
|
||||
string msg = StrPrintf( "Github library\n'%s'\nis only writable if you set option '%s' in Library Tables dialog.",
|
||||
std::string msg = StrPrintf( "Github library\n'%s'\nis only writable if you set option '%s' in Library Tables dialog.",
|
||||
(const char*) TO_UTF8( aLibraryPath ), PRETTY_DIR );
|
||||
|
||||
THROW_IO_ERROR( msg );
|
||||
|
@ -275,7 +272,7 @@ void GITHUB_PLUGIN::FootprintDelete( const wxString& aLibraryPath, const wxStrin
|
|||
// IsFootprintLibWritable() to determine if calling FootprintSave() is
|
||||
// even legal, so I spend no time on internationalization here:
|
||||
|
||||
string msg = StrPrintf( "Github library\n'%s'\nis only writable if you set option '%s' in Library Tables dialog.",
|
||||
std::string msg = StrPrintf( "Github library\n'%s'\nis only writable if you set option '%s' in Library Tables dialog.",
|
||||
(const char*) TO_UTF8( aLibraryPath ), PRETTY_DIR );
|
||||
|
||||
THROW_IO_ERROR( msg );
|
||||
|
@ -356,7 +353,7 @@ void GITHUB_PLUGIN::cacheLib( const wxString& aLibraryPath, const PROPERTIES* aP
|
|||
|
||||
if( aProperties )
|
||||
{
|
||||
string pretty_dir;
|
||||
std::string pretty_dir;
|
||||
|
||||
if( aProperties->Value( PRETTY_DIR, &pretty_dir ) )
|
||||
{
|
||||
|
@ -409,7 +406,7 @@ void GITHUB_PLUGIN::cacheLib( const wxString& aLibraryPath, const PROPERTIES* aP
|
|||
|
||||
if( fn.GetExt() == kicad_mod )
|
||||
{
|
||||
string fp_name = TO_UTF8( fn.GetName() ); // omit extension & path
|
||||
std::string fp_name = TO_UTF8( fn.GetName() ); // omit extension & path
|
||||
|
||||
m_gh_cache->insert( fp_name, entry );
|
||||
}
|
||||
|
@ -420,7 +417,7 @@ void GITHUB_PLUGIN::cacheLib( const wxString& aLibraryPath, const PROPERTIES* aP
|
|||
}
|
||||
|
||||
|
||||
bool GITHUB_PLUGIN::repoURL_zipURL( const wxString& aRepoURL, string* aZipURL )
|
||||
bool GITHUB_PLUGIN::repoURL_zipURL( const wxString& aRepoURL, std::string* aZipURL )
|
||||
{
|
||||
// e.g. "https://github.com/liftoff-sr/pretty_footprints"
|
||||
//D(printf("aRepoURL:%s\n", TO_UTF8( aRepoURL ) );)
|
||||
|
@ -460,7 +457,7 @@ bool GITHUB_PLUGIN::repoURL_zipURL( const wxString& aRepoURL, string* aZipURL )
|
|||
|
||||
void GITHUB_PLUGIN::remote_get_zip( const wxString& aRepoURL ) throw( IO_ERROR )
|
||||
{
|
||||
string zip_url;
|
||||
std::string zip_url;
|
||||
|
||||
if( !repoURL_zipURL( aRepoURL, &zip_url ) )
|
||||
{
|
||||
|
@ -478,7 +475,7 @@ void GITHUB_PLUGIN::remote_get_zip( const wxString& aRepoURL ) throw( IO_ERROR )
|
|||
|
||||
try
|
||||
{
|
||||
ostringstream os;
|
||||
std::ostringstream os;
|
||||
|
||||
h.open( zip_url ); // only one file, therefore do it synchronously.
|
||||
os << &h;
|
||||
|
@ -495,10 +492,8 @@ void GITHUB_PLUGIN::remote_get_zip( const wxString& aRepoURL ) throw( IO_ERROR )
|
|||
// https "GET" has faild, report this to API caller.
|
||||
wxString fmt( _( "Cannot GET zip: '%s'\nfor lib-path: '%s'.\nWhat: '%s'" ) );
|
||||
|
||||
string msg = StrPrintf( TO_UTF8( fmt ),
|
||||
zip_url.c_str(),
|
||||
TO_UTF8( aRepoURL ),
|
||||
e.what() );
|
||||
std::string msg = StrPrintf( TO_UTF8( fmt ), zip_url.c_str(),
|
||||
TO_UTF8( aRepoURL ), e.what() );
|
||||
|
||||
THROW_IO_ERROR( msg );
|
||||
}
|
||||
|
|
|
@ -48,9 +48,6 @@
|
|||
#include <boost/ptr_container/ptr_map.hpp>
|
||||
#include <memory.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
/**
|
||||
* Definition for enabling and disabling footprint library trace output. See the
|
||||
* wxWidgets documentation on using the WXTRACE environment variable.
|
||||
|
@ -118,7 +115,7 @@ class GPCB_FPL_CACHE_ITEM
|
|||
wxFileName m_file_name; ///< The the full file name and path of the footprint to cache.
|
||||
bool m_writable; ///< Writability status of the footprint file.
|
||||
wxDateTime m_mod_time; ///< The last file modified time stamp.
|
||||
auto_ptr< MODULE > m_module;
|
||||
std::auto_ptr<MODULE> m_module;
|
||||
|
||||
public:
|
||||
GPCB_FPL_CACHE_ITEM( MODULE* aModule, const wxFileName& aFileName );
|
||||
|
@ -385,13 +382,13 @@ MODULE* GPCB_FPL_CACHE::parseMODULE( LINE_READER* aLineReader ) throw( IO_ERROR,
|
|||
// Old version unit = 1 mil, so conv_unit is 10 or 0.1
|
||||
#define NEW_GPCB_UNIT_CONV ( 0.01*IU_PER_MILS )
|
||||
|
||||
int paramCnt;
|
||||
double conv_unit = NEW_GPCB_UNIT_CONV; // GPCB unit = 0.01 mils and Pcbnew 0.1
|
||||
wxPoint refPos( 0, 0 );
|
||||
wxPoint textPos;
|
||||
wxString msg;
|
||||
wxArrayString parameters;
|
||||
auto_ptr< MODULE > module( new MODULE( NULL ) );
|
||||
int paramCnt;
|
||||
double conv_unit = NEW_GPCB_UNIT_CONV; // GPCB unit = 0.01 mils and Pcbnew 0.1
|
||||
wxPoint refPos( 0, 0 );
|
||||
wxPoint textPos;
|
||||
wxString msg;
|
||||
wxArrayString parameters;
|
||||
std::auto_ptr<MODULE> module( new MODULE( NULL ) );
|
||||
|
||||
|
||||
if( aLineReader->ReadLine() == NULL )
|
||||
|
|
|
@ -52,9 +52,6 @@
|
|||
#include <boost/ptr_container/ptr_map.hpp>
|
||||
#include <memory.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
#define FMTIU BOARD_ITEM::FormatInternalUnits
|
||||
|
||||
/**
|
||||
|
@ -78,7 +75,7 @@ class FP_CACHE_ITEM
|
|||
wxFileName m_file_name; ///< The the full file name and path of the footprint to cache.
|
||||
bool m_writable; ///< Writability status of the footprint file.
|
||||
wxDateTime m_mod_time; ///< The last file modified time stamp.
|
||||
auto_ptr< MODULE > m_module;
|
||||
std::auto_ptr<MODULE> m_module;
|
||||
|
||||
public:
|
||||
FP_CACHE_ITEM( MODULE* aModule, const wxFileName& aFileName );
|
||||
|
|
|
@ -51,9 +51,6 @@
|
|||
#include <pcb_parser.h>
|
||||
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
void PCB_PARSER::init()
|
||||
{
|
||||
m_layerIndices.clear();
|
||||
|
@ -263,7 +260,7 @@ S3D_MASTER* PCB_PARSER::parse3DModel() throw( PARSE_ERROR )
|
|||
|
||||
T token;
|
||||
|
||||
auto_ptr< S3D_MASTER > n3D( new S3D_MASTER( NULL ) );
|
||||
std::auto_ptr< S3D_MASTER > n3D( new S3D_MASTER( NULL ) );
|
||||
|
||||
NeedSYMBOLorNUMBER();
|
||||
n3D->m_Shape3DName = FromUTF8();
|
||||
|
@ -1084,7 +1081,7 @@ void PCB_PARSER::parseNETCLASS() throw( IO_ERROR, PARSE_ERROR )
|
|||
|
||||
T token;
|
||||
|
||||
auto_ptr<NETCLASS> nc( new NETCLASS( m_board, wxEmptyString ) );
|
||||
std::auto_ptr<NETCLASS> nc( new NETCLASS( m_board, wxEmptyString ) );
|
||||
|
||||
// Read netclass name (can be a name or just a number like track width)
|
||||
NeedSYMBOLorNUMBER();
|
||||
|
@ -1164,7 +1161,7 @@ DRAWSEGMENT* PCB_PARSER::parseDRAWSEGMENT() throw( IO_ERROR, PARSE_ERROR )
|
|||
|
||||
T token;
|
||||
wxPoint pt;
|
||||
auto_ptr< DRAWSEGMENT > segment( new DRAWSEGMENT( NULL ) );
|
||||
std::auto_ptr< DRAWSEGMENT > segment( new DRAWSEGMENT( NULL ) );
|
||||
|
||||
switch( CurTok() )
|
||||
{
|
||||
|
@ -1325,7 +1322,7 @@ TEXTE_PCB* PCB_PARSER::parseTEXTE_PCB() throw( IO_ERROR, PARSE_ERROR )
|
|||
|
||||
T token;
|
||||
|
||||
auto_ptr< TEXTE_PCB > text( new TEXTE_PCB( m_board ) );
|
||||
std::auto_ptr<TEXTE_PCB> text( new TEXTE_PCB( m_board ) );
|
||||
NeedSYMBOLorNUMBER();
|
||||
|
||||
text->SetText( FromUTF8() );
|
||||
|
@ -1393,7 +1390,7 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
|
|||
|
||||
T token;
|
||||
|
||||
auto_ptr< DIMENSION > dimension( new DIMENSION( NULL ) );
|
||||
std::auto_ptr<DIMENSION> dimension( new DIMENSION( NULL ) );
|
||||
|
||||
dimension->SetValue( parseBoardUnits( "dimension value" ) );
|
||||
NeedLEFT();
|
||||
|
@ -1545,7 +1542,7 @@ MODULE* PCB_PARSER::parseMODULE( wxArrayString* aInitialComments ) throw( IO_ERR
|
|||
T token;
|
||||
FPID fpid;
|
||||
|
||||
auto_ptr< MODULE > module( new MODULE( m_board ) );
|
||||
std::auto_ptr<MODULE> module( new MODULE( m_board ) );
|
||||
|
||||
module->SetInitialComments( aInitialComments );
|
||||
|
||||
|
@ -1773,7 +1770,7 @@ TEXTE_MODULE* PCB_PARSER::parseTEXTE_MODULE() throw( IO_ERROR, PARSE_ERROR )
|
|||
|
||||
T token = NextTok();
|
||||
|
||||
auto_ptr< TEXTE_MODULE > text( new TEXTE_MODULE( NULL ) );
|
||||
std::auto_ptr<TEXTE_MODULE> text( new TEXTE_MODULE( NULL ) );
|
||||
|
||||
switch( token )
|
||||
{
|
||||
|
@ -1858,7 +1855,7 @@ EDGE_MODULE* PCB_PARSER::parseEDGE_MODULE() throw( IO_ERROR, PARSE_ERROR )
|
|||
wxPoint pt;
|
||||
T token;
|
||||
|
||||
auto_ptr< EDGE_MODULE > segment( new EDGE_MODULE( NULL ) );
|
||||
std::auto_ptr< EDGE_MODULE > segment( new EDGE_MODULE( NULL ) );
|
||||
|
||||
switch( CurTok() )
|
||||
{
|
||||
|
@ -2023,7 +2020,7 @@ D_PAD* PCB_PARSER::parseD_PAD() throw( IO_ERROR, PARSE_ERROR )
|
|||
|
||||
wxSize sz;
|
||||
wxPoint pt;
|
||||
auto_ptr< D_PAD > pad( new D_PAD( NULL ) );
|
||||
std::auto_ptr< D_PAD > pad( new D_PAD( NULL ) );
|
||||
|
||||
NeedSYMBOLorNUMBER();
|
||||
pad->SetPadName( FromUTF8() );
|
||||
|
@ -2260,7 +2257,7 @@ TRACK* PCB_PARSER::parseTRACK() throw( IO_ERROR, PARSE_ERROR )
|
|||
wxPoint pt;
|
||||
T token;
|
||||
|
||||
auto_ptr< TRACK > track( new TRACK( m_board ) );
|
||||
std::auto_ptr< TRACK > track( new TRACK( m_board ) );
|
||||
|
||||
for( token = NextTok(); token != T_RIGHT; token = NextTok() )
|
||||
{
|
||||
|
@ -2322,7 +2319,7 @@ SEGVIA* PCB_PARSER::parseSEGVIA() throw( IO_ERROR, PARSE_ERROR )
|
|||
wxPoint pt;
|
||||
T token;
|
||||
|
||||
auto_ptr< SEGVIA > via( new SEGVIA( m_board ) );
|
||||
std::auto_ptr< SEGVIA > via( new SEGVIA( m_board ) );
|
||||
|
||||
for( token = NextTok(); token != T_RIGHT; token = NextTok() )
|
||||
{
|
||||
|
@ -2407,7 +2404,7 @@ ZONE_CONTAINER* PCB_PARSER::parseZONE_CONTAINER() throw( IO_ERROR, PARSE_ERROR )
|
|||
// bigger scope since each filled_polygon is concatenated in here
|
||||
CPOLYGONS_LIST pts;
|
||||
|
||||
auto_ptr< ZONE_CONTAINER > zone( new ZONE_CONTAINER( m_board ) );
|
||||
std::auto_ptr< ZONE_CONTAINER > zone( new ZONE_CONTAINER( m_board ) );
|
||||
|
||||
zone->SetPriority( 0 );
|
||||
|
||||
|
@ -2721,8 +2718,7 @@ PCB_TARGET* PCB_PARSER::parsePCB_TARGET() throw( IO_ERROR, PARSE_ERROR )
|
|||
wxPoint pt;
|
||||
T token;
|
||||
|
||||
auto_ptr< PCB_TARGET > target( new PCB_TARGET( NULL ) );
|
||||
|
||||
std::auto_ptr< PCB_TARGET > target( new PCB_TARGET( NULL ) );
|
||||
|
||||
for( token = NextTok(); token != T_RIGHT; token = NextTok() )
|
||||
{
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include "pns_utils.h"
|
||||
#include "pns_router.h"
|
||||
|
||||
using namespace std;
|
||||
using boost::optional;
|
||||
|
||||
PNS_LINE* PNS_LINE::Clone() const
|
||||
|
@ -321,10 +320,10 @@ void PNS_LINE::NewWalkaround( const SHAPE_LINE_CHAIN& aObstacle,
|
|||
|
||||
SHAPE_LINE_CHAIN l_orig( m_line );
|
||||
SHAPE_LINE_CHAIN l_hull;
|
||||
vector<bool> outside, on_edge, inside;
|
||||
std::vector<bool> outside, on_edge, inside;
|
||||
SHAPE_LINE_CHAIN path;
|
||||
|
||||
vector<INTERSECTION> isects;
|
||||
std::vector<INTERSECTION> isects;
|
||||
|
||||
// don't calculate walkaround for empty lines
|
||||
if( m_line.PointCount() < 2 )
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
* with this program. If not, see <http://www.gnu.or/licenses/>.
|
||||
*/
|
||||
|
||||
#include <vector>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
|
@ -30,7 +29,6 @@
|
|||
#include "pns_shove.h"
|
||||
#include "pns_utils.h"
|
||||
|
||||
using namespace std;
|
||||
using boost::optional;
|
||||
|
||||
PNS_LINE_PLACER::PNS_LINE_PLACER( PNS_NODE* aWorld )
|
||||
|
@ -528,7 +526,7 @@ bool PNS_LINE_PLACER::optimizeTailHeadTransition()
|
|||
|
||||
const int TailLookbackSegments = 5;
|
||||
|
||||
int threshold = min( tail.PointCount(), TailLookbackSegments + 1 );
|
||||
int threshold = std::min( tail.PointCount(), TailLookbackSegments + 1 );
|
||||
|
||||
if( tail.SegmentCount() < 3 )
|
||||
return false;
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include "pns_joint.h"
|
||||
#include "pns_index.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
using boost::unordered_set;
|
||||
using boost::unordered_map;
|
||||
|
||||
|
@ -138,7 +136,7 @@ void PNS_NODE::unlinkParent()
|
|||
if( isRoot() )
|
||||
return;
|
||||
|
||||
for( vector<PNS_NODE*>::iterator i = m_parent->m_children.begin();
|
||||
for( std::vector<PNS_NODE*>::iterator i = m_parent->m_children.begin();
|
||||
i != m_parent->m_children.end(); ++i )
|
||||
{
|
||||
if( *i == this )
|
||||
|
@ -284,7 +282,7 @@ PNS_NODE::OptObstacle PNS_NODE::NearestObstacle( const PNS_LINE* aItem, int aKin
|
|||
VECTOR2I ip_first, ip_last;
|
||||
int dist_max = INT_MIN;
|
||||
|
||||
vector<SHAPE_LINE_CHAIN::INTERSECTION> isect_list;
|
||||
std::vector<SHAPE_LINE_CHAIN::INTERSECTION> isect_list;
|
||||
|
||||
int clearance = GetClearance( obs.item, &aLine );
|
||||
|
||||
|
@ -564,7 +562,7 @@ void PNS_NODE::removeSegment( PNS_SEGMENT* aSeg )
|
|||
|
||||
void PNS_NODE::removeLine( PNS_LINE* aLine )
|
||||
{
|
||||
vector<PNS_SEGMENT*>* segRefs = aLine->GetLinkedSegments();
|
||||
std::vector<PNS_SEGMENT*>* segRefs = aLine->GetLinkedSegments();
|
||||
|
||||
if( !segRefs )
|
||||
return;
|
||||
|
@ -700,7 +698,7 @@ void PNS_NODE::FindLineEnds( PNS_LINE* aLine, PNS_JOINT& a, PNS_JOINT& b )
|
|||
}
|
||||
|
||||
|
||||
int PNS_NODE::FindLinesBetweenJoints( PNS_JOINT& a, PNS_JOINT& b, vector<PNS_LINE*>& aLines )
|
||||
int PNS_NODE::FindLinesBetweenJoints( PNS_JOINT& a, PNS_JOINT& b, std::vector<PNS_LINE*>& aLines )
|
||||
{
|
||||
BOOST_FOREACH( PNS_ITEM* item, a.GetLinkList() )
|
||||
{
|
||||
|
@ -763,7 +761,7 @@ PNS_JOINT& PNS_NODE::touchJoint( const VECTOR2I& aPos, const PNS_LAYERSET& aLaye
|
|||
// try to find the joint in this node.
|
||||
JointMap::iterator f = m_joints.find( tag );
|
||||
|
||||
pair<JointMap::iterator, JointMap::iterator> range;
|
||||
std::pair<JointMap::iterator, JointMap::iterator> range;
|
||||
|
||||
// not found and we are not root? find in the root and copy results here.
|
||||
if( f == m_joints.end() && !isRoot() )
|
||||
|
@ -895,7 +893,7 @@ void PNS_NODE::Dump( bool aLong )
|
|||
printf( "Line: %s, net %d ", l->GetLine().Format().c_str(), l->GetNet() );
|
||||
|
||||
|
||||
for( vector<PNS_SEGMENT*>::iterator j = seg_refs->begin(); j != seg_refs->end(); ++j )
|
||||
for( std::vector<PNS_SEGMENT*>::iterator j = seg_refs->begin(); j != seg_refs->end(); ++j )
|
||||
{
|
||||
printf( "%s ", (*j)->GetSeg().A.Format().c_str() );
|
||||
|
||||
|
@ -932,7 +930,7 @@ void PNS_NODE::GetUpdatedItems( ItemVector& aRemoved, ItemVector& aAdded )
|
|||
void PNS_NODE::releaseChildren()
|
||||
{
|
||||
// copy the kids as the PNS_NODE destructor erases the item from the parent node.
|
||||
vector<PNS_NODE*> kids = m_children;
|
||||
std::vector<PNS_NODE*> kids = m_children;
|
||||
|
||||
BOOST_FOREACH( PNS_NODE * node, kids ) {
|
||||
node->releaseChildren();
|
||||
|
|
|
@ -28,8 +28,6 @@
|
|||
#include "pns_optimizer.h"
|
||||
#include "pns_utils.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
/**
|
||||
*
|
||||
* Cost Estimator Methods
|
||||
|
@ -620,8 +618,8 @@ int PNS_OPTIMIZER::smartPadsSingle( PNS_LINE* aLine, PNS_ITEM* aPad, bool aEnd,
|
|||
const int ForbiddenAngles = DIRECTION_45::ANG_ACUTE | DIRECTION_45::ANG_RIGHT |
|
||||
DIRECTION_45::ANG_HALF_FULL | DIRECTION_45::ANG_UNDEFINED;
|
||||
|
||||
typedef pair<int, SHAPE_LINE_CHAIN> RtVariant;
|
||||
vector<RtVariant> variants;
|
||||
typedef std::pair<int, SHAPE_LINE_CHAIN> RtVariant;
|
||||
std::vector<RtVariant> variants;
|
||||
|
||||
BreakoutList breakouts = computeBreakouts( aLine->GetWidth(), aPad, true );
|
||||
|
||||
|
@ -629,7 +627,7 @@ int PNS_OPTIMIZER::smartPadsSingle( PNS_LINE* aLine, PNS_ITEM* aPad, bool aEnd,
|
|||
|
||||
// bool startDiagonal = DIRECTION_45( line.CSegment(0) ).IsDiagonal();
|
||||
|
||||
int p_end = min( aEndVertex, min( 3, line.PointCount() - 1 ) );
|
||||
int p_end = std::min( aEndVertex, std::min( 3, line.PointCount() - 1 ) );
|
||||
|
||||
for( int p = 1; p <= p_end; p++ )
|
||||
{
|
||||
|
|
|
@ -51,8 +51,6 @@
|
|||
#include <class_track.h>
|
||||
#include <layers_id_colors_and_visibility.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
// an ugly singleton for drawing debug items within the router context.
|
||||
// To be fixed sometime in the future.
|
||||
static PNS_ROUTER* theRouter;
|
||||
|
@ -89,7 +87,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
vector<int> m_clearanceCache;
|
||||
std::vector<int> m_clearanceCache;
|
||||
int m_defaultClearance;
|
||||
};
|
||||
|
||||
|
@ -232,7 +230,7 @@ int PNS_ROUTER::NextCopperLayer( bool aUp )
|
|||
|
||||
void PNS_ROUTER::SyncWorld()
|
||||
{
|
||||
vector<D_PAD*> pads;
|
||||
std::vector<D_PAD*> pads;
|
||||
|
||||
if( !m_board )
|
||||
{
|
||||
|
@ -662,7 +660,7 @@ PNS_NODE* PNS_ROUTER::removeLoops( PNS_NODE* aNode, PNS_SEGMENT* aLatestSeg )
|
|||
PNS_NODE* cleaned = aNode->Branch();
|
||||
PNS_JOINT a, b;
|
||||
|
||||
vector<PNS_LINE*> lines;
|
||||
std::vector<PNS_LINE*> lines;
|
||||
|
||||
cleaned->FindLineEnds( ourLine, a, b );
|
||||
cleaned->FindLinesBetweenJoints( a, b, lines );
|
||||
|
@ -699,7 +697,7 @@ bool PNS_ROUTER::FixRoute( const VECTOR2I& aP, PNS_ITEM* aEndItem )
|
|||
if( aEndItem && m_currentNet >= 0 && m_currentNet == aEndItem->GetNet() )
|
||||
real_end = true;
|
||||
|
||||
int last = ( real_end || m_placingVia ) ? l.SegmentCount() : max( 1, l.SegmentCount() - 1 );
|
||||
int last = ( real_end || m_placingVia ) ? l.SegmentCount() : std::max( 1, l.SegmentCount() - 1 );
|
||||
|
||||
PNS_NODE* latest = m_placer->GetCurrentNode();
|
||||
|
||||
|
|
|
@ -35,8 +35,6 @@
|
|||
|
||||
#include <profile.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
PNS_SHOVE::PNS_SHOVE( PNS_NODE* aWorld )
|
||||
{
|
||||
m_root = aWorld;
|
||||
|
@ -280,9 +278,9 @@ const PNS_COST_ESTIMATOR PNS_SHOVE::TotalCost() const
|
|||
|
||||
PNS_SHOVE::ShoveStatus PNS_SHOVE::ShoveLines( PNS_LINE* aCurrentHead )
|
||||
{
|
||||
stack <PNS_LINE*> lineStack;
|
||||
std::stack<PNS_LINE*> lineStack;
|
||||
PNS_NODE* node, * parent;
|
||||
PNS_VIA* headVia = NULL;
|
||||
PNS_VIA* headVia = NULL;
|
||||
bool fail = false;
|
||||
int iter = 0;
|
||||
|
||||
|
|
|
@ -18,8 +18,6 @@
|
|||
* with this program. If not, see <http://www.gnu.or/licenses/>.
|
||||
*/
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
|
@ -29,8 +27,6 @@
|
|||
#include "pns_optimizer.h"
|
||||
#include "pns_utils.h"
|
||||
#include "pns_router.h"
|
||||
|
||||
using namespace std;
|
||||
using boost::optional;
|
||||
|
||||
void PNS_WALKAROUND::start( const PNS_LINE& aInitialPath )
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
#include "trace.h"
|
||||
|
||||
using namespace KIGFX;
|
||||
using namespace std;
|
||||
using boost::optional;
|
||||
|
||||
static TOOL_ACTION ACT_AutoEndRoute( "AutoEndRoute", AS_CONTEXT, 'F' );
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#include <vector>
|
||||
#include <functional>
|
||||
|
||||
using namespace std;
|
||||
#ifndef _GDIPLUS_H
|
||||
|
||||
// I designed this with GDI+ in mind. However, this particular code doesn't
|
||||
|
@ -80,9 +79,9 @@ public:
|
|||
|
||||
#endif // _GDIPLUS_H
|
||||
|
||||
typedef vector<PointF> pointVector;
|
||||
typedef vector<PointF>::iterator pointIterator;
|
||||
typedef vector<PointF>::const_iterator cpointIterator;
|
||||
typedef std::vector<PointF> pointVector;
|
||||
typedef std::vector<PointF>::iterator pointIterator;
|
||||
typedef std::vector<PointF>::const_iterator cpointIterator;
|
||||
|
||||
class SutherlandHodgman
|
||||
{
|
||||
|
@ -249,10 +248,10 @@ private:
|
|||
// rectangles, we include the left and top boundaries, but not the right and bottom boundaries.
|
||||
// In other words: a vertex on the left boundary is considered to be inside, but a vertex
|
||||
// on the right boundary is considered to be outside.
|
||||
typedef BoundaryVert < less<REAL> > BoundaryRight;
|
||||
typedef BoundaryHor < greater_equal<REAL> > BoundaryTop;
|
||||
typedef BoundaryVert < greater_equal<REAL> > BoundaryLeft;
|
||||
typedef BoundaryHor < less<REAL> > BoundaryBottom;
|
||||
typedef BoundaryVert<std::less<REAL> > BoundaryRight;
|
||||
typedef BoundaryHor<std::greater_equal<REAL> > BoundaryTop;
|
||||
typedef BoundaryVert<std::greater_equal<REAL> > BoundaryLeft;
|
||||
typedef BoundaryHor<std::less<REAL> > BoundaryBottom;
|
||||
|
||||
// Next typedefs define the four stages. First template parameter is the boundary,
|
||||
// second template parameter is the next stage.
|
||||
|
|
|
@ -357,10 +357,9 @@ Triangle& Triangle::NeighborAcross(Point& opoint)
|
|||
|
||||
void Triangle::DebugPrint()
|
||||
{
|
||||
using namespace std;
|
||||
cout << points_[0]->x << "," << points_[0]->y << " ";
|
||||
cout << points_[1]->x << "," << points_[1]->y << " ";
|
||||
cout << points_[2]->x << "," << points_[2]->y << endl;
|
||||
std::cout << points_[0]->x << "," << points_[0]->y << " ";
|
||||
std::cout << points_[1]->x << "," << points_[1]->y << " ";
|
||||
std::cout << points_[2]->x << "," << points_[2]->y << "\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -63,8 +63,6 @@
|
|||
#include <cstddef>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
#include <class_title_block.h>
|
||||
#include <class_colors_design_settings.h>
|
||||
#include <class_marker_base.h>
|
||||
|
|
Loading…
Reference in New Issue