Limbo 3.5.4
Loading...
Searching...
No Matches
GdsParser::GdsDB::GdsText Class Reference

#include <GdsObjects.h>

Inheritance diagram for GdsParser::GdsDB::GdsText:
GdsParser::GdsDB::GdsShape GdsParser::GdsDB::GdsObject

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_typepoint_type
typedef gtl::point_data< double > float_point_type
 float point type to avoid numerical issue
typedef gtl::interval_data< coordinate_typeinterval_type
 interval type
typedef gtl::rectangle_data< coordinate_typerectangle_type
 rectangle type
typedef gtl::polygon_data< coordinate_typepolygon_type
 polygon type
typedef gtl::polygon_90_set_data< coordinate_typepolygon_set_type
 polygon set type

Public Member Functions

 GdsText ()
 default constructor
 GdsText (GdsText const &rhs)
GdsTextoperator= (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)
GdsShapeoperator= (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
GdsObjectoperator= (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

Detailed Description

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.

Member Typedef Documentation

◆ base_type

base type

Definition at line 324 of file GdsObjects.h.

Constructor & Destructor Documentation

◆ GdsText()

GdsParser::GdsDB::GdsText::GdsText ( GdsText const & rhs)

copy constructor

Parameters
rhsan object

Member Function Documentation

◆ angle()

double GdsParser::GdsDB::GdsText::angle ( ) const
inline
Returns
angle

Definition at line 364 of file GdsObjects.h.

◆ magnification()

double GdsParser::GdsDB::GdsText::magnification ( ) const
inline
Returns
magnification

Definition at line 369 of file GdsObjects.h.

◆ operator=()

GdsText & GdsParser::GdsDB::GdsText::operator= ( GdsText const & rhs)

assignment

Parameters
rhsan object

◆ position()

point_type const & GdsParser::GdsDB::GdsText::position ( ) const
inline
Returns
position

Definition at line 354 of file GdsObjects.h.

◆ presentation()

int GdsParser::GdsDB::GdsText::presentation ( ) const
inline
Returns
presentation

Definition at line 359 of file GdsObjects.h.

◆ setAngle()

void GdsParser::GdsDB::GdsText::setAngle ( double a)
inline
Parameters
aangle

Definition at line 366 of file GdsObjects.h.

◆ setMagnification()

void GdsParser::GdsDB::GdsText::setMagnification ( double m)
inline
Parameters
mmagnification

Definition at line 371 of file GdsObjects.h.

◆ setPosition()

void GdsParser::GdsDB::GdsText::setPosition ( point_type const & p)
inline
Parameters
pposition

Definition at line 356 of file GdsObjects.h.

◆ setPresentation()

void GdsParser::GdsDB::GdsText::setPresentation ( int p)
inline
Parameters
ppresentation

Definition at line 361 of file GdsObjects.h.

◆ setStrans()

void GdsParser::GdsDB::GdsText::setStrans ( int s)
inline
Parameters
sstrans

Definition at line 376 of file GdsObjects.h.

◆ setText()

void GdsParser::GdsDB::GdsText::setText ( std::string const & t)
inline
Parameters
ttext string

Definition at line 346 of file GdsObjects.h.

◆ setTexttype()

void GdsParser::GdsDB::GdsText::setTexttype ( int t)
inline
Parameters
ttext type

Definition at line 341 of file GdsObjects.h.

◆ setWidth()

void GdsParser::GdsDB::GdsText::setWidth ( int w)
inline
Parameters
wwidth

Definition at line 351 of file GdsObjects.h.

◆ strans()

int GdsParser::GdsDB::GdsText::strans ( ) const
inline
Returns
strans

Definition at line 374 of file GdsObjects.h.

◆ text()

std::string const & GdsParser::GdsDB::GdsText::text ( ) const
inline
Returns
text string

Definition at line 344 of file GdsObjects.h.

◆ texttype()

int GdsParser::GdsDB::GdsText::texttype ( ) const
inline
Returns
text type

Definition at line 339 of file GdsObjects.h.

◆ width()

int GdsParser::GdsDB::GdsText::width ( ) const
inline
Returns
width

Definition at line 349 of file GdsObjects.h.

Member Data Documentation

◆ m_angle

double GdsParser::GdsDB::GdsText::m_angle
protected

angle

Definition at line 383 of file GdsObjects.h.

◆ m_magnification

double GdsParser::GdsDB::GdsText::m_magnification
protected

magnification

Definition at line 384 of file GdsObjects.h.

◆ m_position

point_type GdsParser::GdsDB::GdsText::m_position
protected

position

Definition at line 380 of file GdsObjects.h.

◆ m_presentation

int GdsParser::GdsDB::GdsText::m_presentation
protected

presentation

Definition at line 382 of file GdsObjects.h.

◆ m_strans

int GdsParser::GdsDB::GdsText::m_strans
protected

strans

Definition at line 385 of file GdsObjects.h.

◆ m_text

std::string GdsParser::GdsDB::GdsText::m_text
protected

text string

Definition at line 379 of file GdsObjects.h.

◆ m_texttype

int GdsParser::GdsDB::GdsText::m_texttype
protected

text type

Definition at line 378 of file GdsObjects.h.

◆ m_width

int GdsParser::GdsDB::GdsText::m_width
protected

width

Definition at line 381 of file GdsObjects.h.


The documentation for this class was generated from the following file: