|
KiCad PCB EDA Suite
|
An entry in the NOTE section of an IDF file. More...
#include <idf_common.h>
Public Member Functions | |
| IDF_NOTE () | |
| void | SetText (const std::string &aText) |
| Set the text to be stored as a NOTE entry. | |
| void | SetPosition (double aXpos, double aYpos) |
| Set the position (mm) of the NOTE entry. | |
| void | SetSize (double aHeight, double aLength) |
| Set the height and length (mm) of the NOTE entry. | |
| const std::string & | GetText () |
| void | GetPosition (double &aXpos, double &aYpos) |
| void | GetSize (double &aHeight, double &aLength) |
Private Member Functions | |
| bool | readNote (std::istream &aBoardFile, IDF3::FILE_STATE &aBoardState, IDF3::IDF_UNIT aBoardUnit) |
| Read a note entry from an IDFv3 file. | |
| bool | writeNote (std::ostream &aBoardFile, IDF3::IDF_UNIT aBoardUnit) |
| Write a note entry to an IDFv3 file. | |
Private Attributes | |
| std::string | text |
| double | xpos |
| double | ypos |
| double | height |
| double | length |
Friends | |
| class | IDF3_BOARD |
An entry in the NOTE section of an IDF file.
Definition at line 237 of file idf_common.h.
| IDF_NOTE::IDF_NOTE | ( | ) |
| void IDF_NOTE::GetPosition | ( | double & | aXpos, |
| double & | aYpos ) |
Definition at line 306 of file idf_common.cpp.
| void IDF_NOTE::GetSize | ( | double & | aHeight, |
| double & | aLength ) |
Definition at line 313 of file idf_common.cpp.
| const std::string & IDF_NOTE::GetText | ( | ) |
Definition at line 300 of file idf_common.cpp.
References text.
|
private |
Read a note entry from an IDFv3 file.
| aBoardFile | is an open BOARD file; the file position must be set to the start of a NOTE entry. |
| aBoardState | is the parser's current state value. |
| aBoardUnit | is the BOARD file's native units (MM or THOU). |
| In | case of unrecoverable errors. |
Definition at line 85 of file idf_common.cpp.
References IDF3::CompareToken(), IDF3::FetchIDFLine(), IDF3::FILE_INVALID, IDF3::GetIDFString(), height, IDF_THOU_TO_MM, length, text, IDF3::UNIT_THOU, xpos, and ypos.
Referenced by IDF3_BOARD, and IDF3_BOARD::readBrdNotes().
| void IDF_NOTE::SetPosition | ( | double | aXpos, |
| double | aYpos ) |
Set the position (mm) of the NOTE entry.
Definition at line 286 of file idf_common.cpp.
| void IDF_NOTE::SetSize | ( | double | aHeight, |
| double | aLength ) |
Set the height and length (mm) of the NOTE entry.
Definition at line 293 of file idf_common.cpp.
| void IDF_NOTE::SetText | ( | const std::string & | aText | ) |
Set the text to be stored as a NOTE entry.
Definition at line 280 of file idf_common.cpp.
References text.
|
private |
Write a note entry to an IDFv3 file.
| aBoardFile | is an open BOARD file; the file position must be within a NOTE section. |
| aBoardUnit | is the BOARD file's native units (MM or THOU). |
| In | case of unrecoverable error. |
Definition at line 260 of file idf_common.cpp.
References height, IDF_THOU_TO_MM, length, text, IDF3::UNIT_THOU, xpos, and ypos.
Referenced by IDF3_BOARD.
|
friend |
Definition at line 273 of file idf_common.h.
References IDF3_BOARD, readNote(), and writeNote().
Referenced by IDF3_BOARD.
|
private |
Definition at line 301 of file idf_common.h.
Referenced by GetSize(), IDF_NOTE(), readNote(), SetSize(), and writeNote().
|
private |
Definition at line 302 of file idf_common.h.
Referenced by GetSize(), IDF_NOTE(), readNote(), SetSize(), and writeNote().
|
private |
Definition at line 298 of file idf_common.h.
Referenced by GetText(), readNote(), SetText(), and writeNote().
|
private |
Definition at line 299 of file idf_common.h.
Referenced by GetPosition(), IDF_NOTE(), readNote(), SetPosition(), and writeNote().
|
private |
Definition at line 300 of file idf_common.h.
Referenced by GetPosition(), IDF_NOTE(), readNote(), SetPosition(), and writeNote().