Limbo
|
#include <GdsObjects.h>
Public Types | |
typedef GdsObject | base_type |
base type | |
typedef std::pair < ::GdsParser::GdsRecords::EnumType, GdsObject * > | object_entry_type |
use pair of GDSII record and GDSII object to describe each object entry | |
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 | |
GdsCell () | |
default constructor | |
GdsCell (GdsCell const &rhs) | |
GdsCell & | operator= (GdsCell const &rhs) |
~GdsCell () | |
destructor | |
void | addPolygon (int layer, int datatype, std::vector< point_type > const &vPoint) |
void | addPath (int layer, int datatype, int pathtype, int width, std::vector< point_type > const &vPoint) |
void | addText (int layer, int datatype, int texttype, std::string const &str, point_type const &position, int width, int presentation, double angle, double magnification, int strans) |
void | addCellReference (std::string const &sname, point_type const &position, double angle, double magnification, int strans) |
void | addCellArray (std::string const &sname, int columns, int rows, int spacing[2], std::vector< point_type > const &vPosition, double angle, double magnification, int strans) |
std::string const & | name () const |
void | setName (std::string const &n) |
std::vector< std::pair < ::GdsParser::GdsRecords::EnumType, GdsObject * > > const & | objects () const |
std::vector< std::pair < ::GdsParser::GdsRecords::EnumType, GdsObject * > > & | objects () |
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 Member Functions | |
void | copy (GdsCell const &rhs) |
void | destroy () |
destroy objects in m_vObject | |
Protected Attributes | |
std::string | m_name |
cell name | |
std::vector< object_entry_type > | m_vObject |
gdsii objects with types | |
Collection of elements, both geometric objects and references to other
cells.
Parameters
-------—
name : string
The name of the cell.
exclude_from_global : bool
If True
, the cell will not be included in the global list of
cells maintained by gdspy
.
Definition at line 553 of file GdsObjects.h.
GdsParser::GdsDB::GdsCell::GdsCell | ( | GdsCell const & | rhs | ) |
copy constructor
rhs | an object |
void GdsParser::GdsDB::GdsCell::addCellArray | ( | std::string const & | sname, |
int | columns, | ||
int | rows, | ||
int | spacing[2], | ||
std::vector< point_type > const & | vPosition, | ||
double | angle, | ||
double | magnification, | ||
int | strans | ||
) |
sname | reference cell name |
columns | number of columns |
rows | number of rows |
spacing | array[2] of spacing |
vPosition | array of positions |
angle | angle |
magnification | magnification |
strans | strans |
void GdsParser::GdsDB::GdsCell::addCellReference | ( | std::string const & | sname, |
point_type const & | position, | ||
double | angle, | ||
double | magnification, | ||
int | strans | ||
) |
sname | reference cell name |
position | offset position |
angle | angle |
magnification | magnification |
strans | strans |
void GdsParser::GdsDB::GdsCell::addPath | ( | int | layer, |
int | datatype, | ||
int | pathtype, | ||
int | width, | ||
std::vector< point_type > const & | vPoint | ||
) |
layer | layer |
datatype | data type |
pathtype | path type |
width | path width |
vPoint | array of points |
void GdsParser::GdsDB::GdsCell::addPolygon | ( | int | layer, |
int | datatype, | ||
std::vector< point_type > const & | vPoint | ||
) |
layer | layer |
datatype | data type |
vPoint | array of points |
void GdsParser::GdsDB::GdsCell::addText | ( | int | layer, |
int | datatype, | ||
int | texttype, | ||
std::string const & | str, | ||
point_type const & | position, | ||
int | width, | ||
int | presentation, | ||
double | angle, | ||
double | magnification, | ||
int | strans | ||
) |
layer | layer |
datatype | data type |
texttype | text type |
str | text string |
position | position |
width | width |
presentation | presentation |
angle | angle |
magnification | magnification |
strans | strans |
|
protected |
copy
rhs | a GdsCell object |
|
inline |
Definition at line 611 of file GdsObjects.h.
|
inline |
Definition at line 616 of file GdsObjects.h.
|
inline |
Definition at line 618 of file GdsObjects.h.
assignment
rhs | an object |
|
inline |
n | name of cell |
Definition at line 613 of file GdsObjects.h.