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

#include <GdsObjects.h>

Inheritance diagram for GdsParser::GdsDB::GdsCellReference:
GdsParser::GdsDB::GdsObject

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_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

 GdsCellReference ()
 default constructor
 GdsCellReference (GdsCellReference const &rhs)
GdsCellReferenceoperator= (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
GdsObjectoperator= (GdsObject const &rhs)
 assignment
virtual ~GdsObject ()
 destructor

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

Detailed Description

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

Member Typedef Documentation

◆ base_type

base type

Definition at line 409 of file GdsObjects.h.

Constructor & Destructor Documentation

◆ GdsCellReference()

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

copy constructor

Parameters
rhsan object

Member Function Documentation

◆ angle()

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

Definition at line 434 of file GdsObjects.h.

◆ extractCellRef()

GdsCell GdsParser::GdsDB::GdsCellReference::extractCellRef ( GdsDB const & gdsDB,
GdsCell const & srcCell ) const

extract cell objects from reference cell
consider rotation and position offset

Parameters
gdsDBdatabase
srcCellsource cell
Returns
a GDSII cell with absolute position

◆ magnification()

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

Definition at line 439 of file GdsObjects.h.

◆ operator=()

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

assignment

Parameters
rhsan object

◆ position()

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

Definition at line 429 of file GdsObjects.h.

◆ refCell()

std::string const & GdsParser::GdsDB::GdsCellReference::refCell ( ) const
inline
Returns
reference cell

Definition at line 424 of file GdsObjects.h.

◆ setAngle()

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

Definition at line 436 of file GdsObjects.h.

◆ setMagnification()

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

Definition at line 441 of file GdsObjects.h.

◆ setPosition()

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

Definition at line 431 of file GdsObjects.h.

◆ setRefCell()

void GdsParser::GdsDB::GdsCellReference::setRefCell ( std::string const & r)
inline
Parameters
rset reference cell

Definition at line 426 of file GdsObjects.h.

◆ setStrans()

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

Definition at line 446 of file GdsObjects.h.

◆ strans()

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

Definition at line 444 of file GdsObjects.h.

Member Data Documentation

◆ m_angle

double GdsParser::GdsDB::GdsCellReference::m_angle
protected

angle

Definition at line 457 of file GdsObjects.h.

◆ m_magnification

double GdsParser::GdsDB::GdsCellReference::m_magnification
protected

magnification

Definition at line 458 of file GdsObjects.h.

◆ m_position

point_type GdsParser::GdsDB::GdsCellReference::m_position
protected

position

Definition at line 456 of file GdsObjects.h.

◆ m_refCell

std::string GdsParser::GdsDB::GdsCellReference::m_refCell
protected

string to reference cell

Definition at line 455 of file GdsObjects.h.

◆ m_strans

int GdsParser::GdsDB::GdsCellReference::m_strans
protected

strans

Definition at line 459 of file GdsObjects.h.


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