|
Limbo 3.5.4
|
#include <GdsObjects.h>
Public Types | |
| typedef GdsShape | base_type |
| base type | |
| Public Types inherited from GdsParser::GdsDB::GdsShape | |
| typedef GdsObject | base_type |
| base type | |
| Public Types inherited from GdsParser::GdsDB::GdsObject | |
| typedef int | coordinate_type |
| coordinate types | |
| typedef gtl::point_data< coordinate_type > | point_type |
| typedef gtl::point_data< double > | float_point_type |
| float point type to avoid numerical issue | |
| typedef gtl::interval_data< coordinate_type > | interval_type |
| interval type | |
| typedef gtl::rectangle_data< coordinate_type > | rectangle_type |
| rectangle type | |
| typedef gtl::polygon_data< coordinate_type > | polygon_type |
| polygon type | |
| typedef gtl::polygon_90_set_data< coordinate_type > | polygon_set_type |
| polygon set type | |
Public Member Functions | |
| GdsText () | |
| default constructor | |
| GdsText (GdsText const &rhs) | |
| GdsText & | operator= (GdsText const &rhs) |
| ~GdsText () | |
| destructor | |
| int | texttype () const |
| void | setTexttype (int t) |
| std::string const & | text () const |
| void | setText (std::string const &t) |
| int | width () const |
| void | setWidth (int w) |
| point_type const & | position () const |
| void | setPosition (point_type const &p) |
| int | presentation () const |
| void | setPresentation (int p) |
| double | angle () const |
| void | setAngle (double a) |
| double | magnification () const |
| void | setMagnification (double m) |
| int | strans () const |
| void | setStrans (int s) |
| Public Member Functions inherited from GdsParser::GdsDB::GdsShape | |
| GdsShape () | |
| default constructor | |
| GdsShape (GdsShape const &rhs) | |
| GdsShape & | operator= (GdsShape const &rhs) |
| ~GdsShape () | |
| destructor | |
| int | layer () const |
| void | setLayer (int l) |
| int | datatype () const |
| void | setDatatype (int d) |
| Public Member Functions inherited from GdsParser::GdsDB::GdsObject | |
| GdsObject () | |
| default constructor | |
| GdsObject (GdsObject const &rhs) | |
| copy constructor | |
| GdsObject & | operator= (GdsObject const &rhs) |
| assignment | |
| virtual | ~GdsObject () |
| destructor | |
Protected Attributes | |
| int | m_texttype |
| text type | |
| std::string | m_text |
| text string | |
| point_type | m_position |
| position | |
| int | m_width |
| width | |
| int | m_presentation |
| presentation | |
| double | m_angle |
| angle | |
| double | m_magnification |
| magnification | |
| int | m_strans |
| strans | |
| Protected Attributes inherited from GdsParser::GdsDB::GdsShape | |
| int | m_layer |
| layer | |
| int | m_datatype |
| data type | |
Polygonal text object.
Each letter is formed by a series of polygons.
Parameters
-------—
text : string
The text to be converted in geometric objects.
position : array-like[2]
Text position (lower left corner).
width : integer
Width of the text ?
presentation : integer
Related to the direction of text
angle : number
The angle of rotation of the text.
size (replaced by magnification) : number
Base size of each character.
x_reflection (replaced by strans) : bool
If True, the reference is reflected parallel to the x direction
before being rotated.
layer : integer
The GDSII layer number for these elements.
datatype : integer
The GDSII datatype for this element (between 0 and 255).
Examples
-----—
text = gdspy.Text('Sample text', 20, (-10, -100))
myCell.add(text)
Definition at line 320 of file GdsObjects.h.
base type
Definition at line 324 of file GdsObjects.h.
| GdsParser::GdsDB::GdsText::GdsText | ( | GdsText const & | rhs | ) |
copy constructor
| rhs | an object |
|
inline |
Definition at line 364 of file GdsObjects.h.
|
inline |
Definition at line 369 of file GdsObjects.h.
assignment
| rhs | an object |
|
inline |
Definition at line 354 of file GdsObjects.h.
|
inline |
Definition at line 359 of file GdsObjects.h.
|
inline |
| a | angle |
Definition at line 366 of file GdsObjects.h.
|
inline |
| m | magnification |
Definition at line 371 of file GdsObjects.h.
|
inline |
| p | position |
Definition at line 356 of file GdsObjects.h.
|
inline |
| p | presentation |
Definition at line 361 of file GdsObjects.h.
|
inline |
| s | strans |
Definition at line 376 of file GdsObjects.h.
|
inline |
| t | text string |
Definition at line 346 of file GdsObjects.h.
|
inline |
| t | text type |
Definition at line 341 of file GdsObjects.h.
|
inline |
| w | width |
Definition at line 351 of file GdsObjects.h.
|
inline |
Definition at line 374 of file GdsObjects.h.
|
inline |
Definition at line 344 of file GdsObjects.h.
|
inline |
Definition at line 339 of file GdsObjects.h.
|
inline |
Definition at line 349 of file GdsObjects.h.
|
protected |
angle
Definition at line 383 of file GdsObjects.h.
|
protected |
magnification
Definition at line 384 of file GdsObjects.h.
|
protected |
position
Definition at line 380 of file GdsObjects.h.
|
protected |
presentation
Definition at line 382 of file GdsObjects.h.
|
protected |
strans
Definition at line 385 of file GdsObjects.h.
|
protected |
text string
Definition at line 379 of file GdsObjects.h.
|
protected |
text type
Definition at line 378 of file GdsObjects.h.
|
protected |
width
Definition at line 381 of file GdsObjects.h.