Limbo 3.5.4
Loading...
Searching...
No Matches
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_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

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

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

Member Typedef Documentation

◆ base_type

base type

Definition at line 489 of file GdsObjects.h.

Constructor & Destructor Documentation

◆ GdsCellArray()

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

copy constructor

Parameters
rhsan object

Member Function Documentation

◆ angle()

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

Definition at line 531 of file GdsObjects.h.

◆ columns()

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

Definition at line 509 of file GdsObjects.h.

◆ magnification()

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

Definition at line 536 of file GdsObjects.h.

◆ operator=()

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

assignment

Parameters
rhsan object

◆ positions() [1/2]

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

Definition at line 528 of file GdsObjects.h.

◆ positions() [2/2]

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

Definition at line 526 of file GdsObjects.h.

◆ refCell()

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

Definition at line 504 of file GdsObjects.h.

◆ rows()

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

Definition at line 514 of file GdsObjects.h.

◆ setAngle()

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

Definition at line 533 of file GdsObjects.h.

◆ setColumns()

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

Definition at line 511 of file GdsObjects.h.

◆ setMagnification()

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

Definition at line 538 of file GdsObjects.h.

◆ setRefCell()

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

Definition at line 506 of file GdsObjects.h.

◆ setRows()

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

Definition at line 516 of file GdsObjects.h.

◆ setSpacing()

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

Definition at line 523 of file GdsObjects.h.

◆ setStrans()

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

Definition at line 543 of file GdsObjects.h.

◆ spacing()

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

Definition at line 520 of file GdsObjects.h.

◆ strans()

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

Definition at line 541 of file GdsObjects.h.

Member Data Documentation

◆ m_angle

double GdsParser::GdsDB::GdsCellArray::m_angle
protected

angle

Definition at line 550 of file GdsObjects.h.

◆ m_columns

int GdsParser::GdsDB::GdsCellArray::m_columns
protected

number of columns

Definition at line 546 of file GdsObjects.h.

◆ m_magnification

double GdsParser::GdsDB::GdsCellArray::m_magnification
protected

magnification

Definition at line 551 of file GdsObjects.h.

◆ m_refCell

std::string GdsParser::GdsDB::GdsCellArray::m_refCell
protected

reference cell

Definition at line 545 of file GdsObjects.h.

◆ m_rows

int GdsParser::GdsDB::GdsCellArray::m_rows
protected

number of rows

Definition at line 547 of file GdsObjects.h.

◆ m_spacing

coordinate_type GdsParser::GdsDB::GdsCellArray::m_spacing[2]
protected

spacing of x and y

Definition at line 548 of file GdsObjects.h.

◆ m_strans

int GdsParser::GdsDB::GdsCellArray::m_strans
protected

strans

Definition at line 552 of file GdsObjects.h.

◆ m_vPosition

std::vector<point_type> GdsParser::GdsDB::GdsCellArray::m_vPosition
protected

array of positions

Definition at line 549 of file GdsObjects.h.


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