|
KiCad PCB EDA Suite
|
Fields shared by every drawable element. More...
#include <target3001_parser.h>
Public Member Functions | |
| const std::string * | FindProp (const std::string &aKey) const |
| Return the value of the first property named aKey, if any. | |
| bool | FlagProp (const std::string &aKey) const |
| True when property aKey holds one of the format's boolean true words. | |
| std::optional< std::pair< int32_t, int32_t > > | TextRightEnd () const |
| Right end of right-aligned text from its ARXY property, in file coordinates. | |
| std::vector< uint8_t > | Picture () const |
| Encoded image a rectangle shows stretched over its area instead of its fill, empty for none. | |
Public Attributes | |
| uint16_t | component = 0 |
| ID of the owning component (a component stores its own), 0 for none. | |
| uint16_t | signal = 0 |
| ID of the owning signal (a signal stores its own), 0 for none. | |
| int32_t | x = 0 |
| int32_t | y = 0 |
| uint8_t | flags = 0 |
| uint8_t | status = 0 |
| uint8_t | layer = 0 |
| uint8_t | classTag = 0 |
| repeats the element's class tag | |
| std::optional< uint32_t > | extra |
| std::vector< std::pair< std::string, std::string > > | props |
| Free-form key/value properties in file order. | |
Fields shared by every drawable element.
Definition at line 86 of file target3001_parser.h.
| const std::string * TARGET3001::ELEMENT_BASE::FindProp | ( | const std::string & | aKey | ) | const |
Return the value of the first property named aKey, if any.
Definition at line 810 of file target3001_parser.cpp.
References props.
Referenced by TARGET3001_SCH_BUILDER::addGateBodies(), TARGET3001_PCB_BUILDER::addPad(), TARGET3001_PCB_BUILDER::addVia(), FlagProp(), TARGET3001::PadNumber(), Picture(), and TextRightEnd().
| bool TARGET3001::ELEMENT_BASE::FlagProp | ( | const std::string & | aKey | ) | const |
True when property aKey holds one of the format's boolean true words.
Definition at line 838 of file target3001_parser.cpp.
References FindProp(), and TARGET3001::ToWx().
Referenced by TARGET3001::FONTS::applyTrueType().
| std::vector< uint8_t > TARGET3001::ELEMENT_BASE::Picture | ( | ) | const |
Encoded image a rectangle shows stretched over its area instead of its fill, empty for none.
Definition at line 822 of file target3001_parser.cpp.
References base64::decode(), FindProp(), and text.
Referenced by TARGET3001_SCH_BUILDER::makePicture().
| std::optional< std::pair< int32_t, int32_t > > TARGET3001::ELEMENT_BASE::TextRightEnd | ( | ) | const |
Right end of right-aligned text from its ARXY property, in file coordinates.
Definition at line 852 of file target3001_parser.cpp.
References FindProp().
Referenced by TARGET3001_PCB_BUILDER::configureText().
| uint8_t TARGET3001::ELEMENT_BASE::classTag = 0 |
repeats the element's class tag
Definition at line 95 of file target3001_parser.h.
| uint16_t TARGET3001::ELEMENT_BASE::component = 0 |
ID of the owning component (a component stores its own), 0 for none.
Definition at line 88 of file target3001_parser.h.
Referenced by TARGET3001_SCH_BUILDER::addComponent().
| std::optional<uint32_t> TARGET3001::ELEMENT_BASE::extra |
Definition at line 97 of file target3001_parser.h.
| uint8_t TARGET3001::ELEMENT_BASE::flags = 0 |
Definition at line 92 of file target3001_parser.h.
Referenced by TARGET3001_PCB_BUILDER::addItem(), and TARGET3001_PCB_BUILDER::configureText().
| uint8_t TARGET3001::ELEMENT_BASE::layer = 0 |
Definition at line 94 of file target3001_parser.h.
Referenced by TARGET3001_PCB_BUILDER::addFootprint(), TARGET3001_PCB_BUILDER::addItem(), TARGET3001_PCB_BUILDER::addPad(), TARGET3001_PCB_BUILDER::addVia(), and TARGET3001_SCH_BUILDER::sheetOf().
| std::vector<std::pair<std::string, std::string> > TARGET3001::ELEMENT_BASE::props |
Free-form key/value properties in file order.
Definition at line 100 of file target3001_parser.h.
Referenced by FindProp().
| uint16_t TARGET3001::ELEMENT_BASE::signal = 0 |
ID of the owning signal (a signal stores its own), 0 for none.
Definition at line 89 of file target3001_parser.h.
Referenced by TARGET3001_SCH_BUILDER::addComponent(), TARGET3001_SCH_BUILDER::addConnections(), TARGET3001_PCB_BUILDER::addItem(), TARGET3001_PCB_BUILDER::addPad(), TARGET3001_PCB_BUILDER::addShape(), TARGET3001_PCB_BUILDER::addVia(), TARGET3001_PCB_BUILDER::buildNets(), TARGET3001_SCH_BUILDER::joinsGlobally(), and TARGET3001_SCH_BUILDER::labelAnchor().
| uint8_t TARGET3001::ELEMENT_BASE::status = 0 |
Definition at line 93 of file target3001_parser.h.
| int32_t TARGET3001::ELEMENT_BASE::x = 0 |
Definition at line 90 of file target3001_parser.h.
Referenced by TARGET3001_SCH_BUILDER::addComponent(), TARGET3001_SCH_BUILDER::addConnections(), TARGET3001_PCB_BUILDER::addFootprint(), TARGET3001_SCH_BUILDER::addFreeSymbol(), TARGET3001_SCH_BUILDER::addGateBodies(), TARGET3001_PCB_BUILDER::addItem(), TARGET3001_PCB_BUILDER::addPad(), TARGET3001_PCB_BUILDER::addShape(), TARGET3001_PCB_BUILDER::addVia(), TARGET3001_PCB_BUILDER::configureText(), TARGET3001_PCB_BUILDER::elementOutline(), TARGET3001_PCB_BUILDER::fiducialShapes(), TARGET3001_SCH_BUILDER::labelAnchor(), TARGET3001_SCH_BUILDER::makeGraphic(), TARGET3001_SCH_BUILDER::makePicture(), and TARGET3001_PCB_BUILDER::mergeContour().
| int32_t TARGET3001::ELEMENT_BASE::y = 0 |
Definition at line 91 of file target3001_parser.h.
Referenced by TARGET3001_SCH_BUILDER::addComponent(), TARGET3001_SCH_BUILDER::addConnections(), TARGET3001_PCB_BUILDER::addFootprint(), TARGET3001_SCH_BUILDER::addFreeSymbol(), TARGET3001_SCH_BUILDER::addGateBodies(), TARGET3001_PCB_BUILDER::addItem(), TARGET3001_PCB_BUILDER::addPad(), TARGET3001_PCB_BUILDER::addShape(), TARGET3001_PCB_BUILDER::addVia(), TARGET3001_PCB_BUILDER::configureText(), TARGET3001_PCB_BUILDER::elementOutline(), TARGET3001_PCB_BUILDER::fiducialShapes(), TARGET3001_SCH_BUILDER::labelAnchor(), TARGET3001_SCH_BUILDER::makeGraphic(), TARGET3001_SCH_BUILDER::makePicture(), and TARGET3001_PCB_BUILDER::mergeContour().