Limbo
|
#include <GdsObjects.h>
Public Types | |
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 | |
GdsCellReference () | |
default constructor | |
GdsCellReference (GdsCellReference const &rhs) | |
GdsCellReference & | operator= (GdsCellReference const &rhs) |
~GdsCellReference () | |
destructor | |
std::string const & | refCell () const |
void | setRefCell (std::string const &r) |
point_type const & | position () const |
void | setPosition (point_type const &p) |
double | angle () const |
void | setAngle (double a) |
double | magnification () const |
void | setMagnification (double m) |
int | strans () const |
void | setStrans (int s) |
GdsCell | extractCellRef (GdsDB const &gdsDB, GdsCell const &srcCell) const |
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 | |
std::string | m_refCell |
string to reference cell | |
point_type | m_position |
position | |
double | m_angle |
angle | |
double | m_magnification |
magnification | |
int | m_strans |
strans | |
Simple reference to an existing cell.
Parameters
-------—
ref_cell : Cell
or string
The referenced cell or its name.
origin (replaced with position) : array-like[2]
Position where the reference is inserted.
angle : number
Angle of rotation of the reference (in degrees).
magnification : number
Magnification factor for the reference.
x_reflection (replaced by strans) : bool
If True
, the reference is reflected parallel to the x direction
before being rotated.
Definition at line 391 of file GdsObjects.h.
GdsParser::GdsDB::GdsCellReference::GdsCellReference | ( | GdsCellReference const & | rhs | ) |
copy constructor
rhs | an object |
|
inline |
Definition at line 420 of file GdsObjects.h.
GdsCell GdsParser::GdsDB::GdsCellReference::extractCellRef | ( | GdsDB const & | gdsDB, |
GdsCell const & | srcCell | ||
) | const |
extract cell objects from reference cell
consider rotation and position offset
gdsDB | database |
srcCell | source cell |
|
inline |
Definition at line 425 of file GdsObjects.h.
GdsCellReference& GdsParser::GdsDB::GdsCellReference::operator= | ( | GdsCellReference const & | rhs | ) |
assignment
rhs | an object |
|
inline |
Definition at line 415 of file GdsObjects.h.
|
inline |
Definition at line 410 of file GdsObjects.h.
|
inline |
a | angle |
Definition at line 422 of file GdsObjects.h.
|
inline |
m | magnification |
Definition at line 427 of file GdsObjects.h.
|
inline |
p | position |
Definition at line 417 of file GdsObjects.h.
|
inline |
r | set reference cell |
Definition at line 412 of file GdsObjects.h.
|
inline |
s | strans |
Definition at line 432 of file GdsObjects.h.
|
inline |
Definition at line 430 of file GdsObjects.h.