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::GdsCellArray Class Reference

#include <GdsObjects.h>

Inheritance diagram for GdsParser::GdsDB::GdsCellArray:
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

 GdsCellArray ()
 default constructor
 
 GdsCellArray (GdsCellArray const &rhs)
 
GdsCellArrayoperator= (GdsCellArray const &rhs)
 
 ~GdsCellArray ()
 destructor
 
std::string const & refCell () const
 
void setRefCell (std::string const &r)
 
int columns () const
 
void setColumns (int c)
 
int rows () const
 
void setRows (int r)
 
coordinate_type spacing (unsigned int idx) const
 
void setSpacing (unsigned int idx, coordinate_type s)
 
std::vector< point_type > const & positions () const
 
std::vector< point_type > & positions ()
 
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::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
 reference cell
 
int m_columns
 number of columns
 
int m_rows
 number of rows
 
coordinate_type m_spacing [2]
 spacing of x and y
 
std::vector< point_type > m_vPosition
 array of positions
 
double m_angle
 angle
 
double m_magnification
 magnification
 
int m_strans
 strans
 

Detailed Description

Multiple references to an existing cell in an array format.

Parameters
-------—
ref_cell : Cell or string
The referenced cell or its name.
columns : positive integer
Number of columns in the array.
rows : positive integer
Number of columns in the array.
spacing : array-like[2]
distances between adjacent columns and adjacent rows.
origin (replaced with position) : array-like[2]
Position where the cell 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 471 of file GdsObjects.h.

Constructor & Destructor Documentation

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

copy constructor

Parameters
rhsan object

Member Function Documentation

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

Definition at line 517 of file GdsObjects.h.

int GdsParser::GdsDB::GdsCellArray::columns ( ) const
inline
Returns
number of columns

Definition at line 495 of file GdsObjects.h.

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

Definition at line 522 of file GdsObjects.h.

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

assignment

Parameters
rhsan object
std::vector<point_type> const& GdsParser::GdsDB::GdsCellArray::positions ( ) const
inline
Returns
array of positions

Definition at line 512 of file GdsObjects.h.

std::vector<point_type>& GdsParser::GdsDB::GdsCellArray::positions ( )
inline
Returns
array of positions

Definition at line 514 of file GdsObjects.h.

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

Definition at line 490 of file GdsObjects.h.

int GdsParser::GdsDB::GdsCellArray::rows ( ) const
inline
Returns
number of rows

Definition at line 500 of file GdsObjects.h.

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

Definition at line 519 of file GdsObjects.h.

void GdsParser::GdsDB::GdsCellArray::setColumns ( int  c)
inline
Parameters
cnumber of columns

Definition at line 497 of file GdsObjects.h.

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

Definition at line 524 of file GdsObjects.h.

void GdsParser::GdsDB::GdsCellArray::setRefCell ( std::string const &  r)
inline
Parameters
rreference cell

Definition at line 492 of file GdsObjects.h.

void GdsParser::GdsDB::GdsCellArray::setRows ( int  r)
inline
Parameters
rnumber of rows

Definition at line 502 of file GdsObjects.h.

void GdsParser::GdsDB::GdsCellArray::setSpacing ( unsigned int  idx,
coordinate_type  s 
)
inline
Parameters
idxx or y
sspacing

Definition at line 509 of file GdsObjects.h.

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

Definition at line 529 of file GdsObjects.h.

coordinate_type GdsParser::GdsDB::GdsCellArray::spacing ( unsigned int  idx) const
inline
Parameters
idxx or y
Returns
spacing

Definition at line 506 of file GdsObjects.h.

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

Definition at line 527 of file GdsObjects.h.


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