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::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_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)
 
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 More...
 
GdsObjectoperator= (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
 

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

Constructor & Destructor Documentation

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

copy constructor

Parameters
rhsan object

Member Function Documentation

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

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

Parameters
gdsDBdatabase
srcCellsource cell
Returns
a GDSII cell with absolute position
double GdsParser::GdsDB::GdsCellReference::magnification ( ) const
inline
Returns
magnification

Definition at line 425 of file GdsObjects.h.

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

assignment

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

Definition at line 415 of file GdsObjects.h.

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

Definition at line 410 of file GdsObjects.h.

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

Definition at line 422 of file GdsObjects.h.

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

Definition at line 427 of file GdsObjects.h.

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

Definition at line 417 of file GdsObjects.h.

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

Definition at line 412 of file GdsObjects.h.

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

Definition at line 432 of file GdsObjects.h.

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

Definition at line 430 of file GdsObjects.h.


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