Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
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_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)
 
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 More...
 
GdsObjectoperator= (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
 

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 306 of file GdsObjects.h.

Constructor & Destructor Documentation

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

copy constructor

Parameters
rhsan object

Member Function Documentation

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

Definition at line 350 of file GdsObjects.h.

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

Definition at line 355 of file GdsObjects.h.

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

assignment

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

Definition at line 340 of file GdsObjects.h.

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

Definition at line 345 of file GdsObjects.h.

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

Definition at line 352 of file GdsObjects.h.

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

Definition at line 357 of file GdsObjects.h.

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

Definition at line 342 of file GdsObjects.h.

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

Definition at line 347 of file GdsObjects.h.

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

Definition at line 362 of file GdsObjects.h.

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

Definition at line 332 of file GdsObjects.h.

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

Definition at line 327 of file GdsObjects.h.

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

Definition at line 337 of file GdsObjects.h.

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

Definition at line 360 of file GdsObjects.h.

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

Definition at line 330 of file GdsObjects.h.

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

Definition at line 325 of file GdsObjects.h.

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

Definition at line 335 of file GdsObjects.h.


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