MCPcopy Create free account
hub / github.com/KiCad/kicad-source-mirror / OpenFile

Method OpenFile

common/plotters/plotter.cpp:77–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76
77bool PLOTTER::OpenFile( const wxString& aFullFilename )
78{
79 m_filename = aFullFilename;
80
81 wxASSERT( !m_outputFile );
82
83 // Open the file in text mode (not suitable for all plotters but only for most of them.
84 m_outputFile = wxFopen( m_filename, wxT( "wt" ) );
85
86 if( m_outputFile == nullptr )
87 return false ;
88
89 return true;
90}
91
92
93VECTOR2D PLOTTER::userToDeviceCoordinates( const VECTOR2I& aCoordinate )

Callers 15

BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
PlotToSvgStringMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
ArchiveMethod · 0.45
doSymExportSvgMethod · 0.45
createPDFFileMethod · 0.45
plotOneSheetPSMethod · 0.45
plotOneSheetSVGMethod · 0.45

Calls

no outgoing calls

Tested by 7

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
PlotToSvgStringMethod · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36