Limbo
|
#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::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 More... | |
GdsObject & | operator= (GdsObject const &rhs) |
assignment More... | |
virtual | ~GdsObject () |
destructor More... | |
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 306 of file GdsObjects.h.
GdsParser::GdsDB::GdsText::GdsText | ( | GdsText const & | rhs | ) |
copy constructor
rhs | an object |
|
inline |
Definition at line 350 of file GdsObjects.h.
|
inline |
Definition at line 355 of file GdsObjects.h.
assignment
rhs | an object |
|
inline |
Definition at line 340 of file GdsObjects.h.
|
inline |
Definition at line 345 of file GdsObjects.h.
|
inline |
a | angle |
Definition at line 352 of file GdsObjects.h.
|
inline |
m | magnification |
Definition at line 357 of file GdsObjects.h.
|
inline |
p | position |
Definition at line 342 of file GdsObjects.h.
|
inline |
p | presentation |
Definition at line 347 of file GdsObjects.h.
|
inline |
s | strans |
Definition at line 362 of file GdsObjects.h.
|
inline |
t | text string |
Definition at line 332 of file GdsObjects.h.
|
inline |
t | text type |
Definition at line 327 of file GdsObjects.h.
|
inline |
w | width |
Definition at line 337 of file GdsObjects.h.
|
inline |
Definition at line 360 of file GdsObjects.h.
|
inline |
Definition at line 330 of file GdsObjects.h.
|
inline |
Definition at line 325 of file GdsObjects.h.
|
inline |
Definition at line 335 of file GdsObjects.h.