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

#include <GdsObjects.h>

Inheritance diagram for GdsParser::GdsDB::GdsCell:
GdsParser::GdsDB::GdsObject

Public Types

typedef GdsObject base_type
 base type
typedef std::pair< ::GdsParser::GdsRecords::EnumType, GdsObject * > object_entry_type
 use pair of GDSII record and GDSII object to describe each object entry
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

 GdsCell ()
 default constructor
 GdsCell (GdsCell const &rhs)
GdsCelloperator= (GdsCell const &rhs)
 ~GdsCell ()
 destructor
void addPolygon (int layer, int datatype, std::vector< point_type > const &vPoint)
void addPath (int layer, int datatype, int pathtype, int width, int bgnextn, int endextn, std::vector< point_type > const &vPoint)
void addText (int layer, int datatype, int texttype, std::string const &str, point_type const &position, int width, int presentation, double angle, double magnification, int strans)
void addCellReference (std::string const &sname, point_type const &position, double angle, double magnification, int strans)
void addCellArray (std::string const &sname, int columns, int rows, int spacing[2], std::vector< point_type > const &vPosition, double angle, double magnification, int strans)
std::string const & name () const
void setName (std::string const &n)
std::vector< std::pair< ::GdsParser::GdsRecords::EnumType, GdsObject * > > const & objects () const
std::vector< std::pair< ::GdsParser::GdsRecords::EnumType, GdsObject * > > & objects ()
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 Member Functions

void copy (GdsCell const &rhs)
void destroy ()
 destroy objects in m_vObject

Protected Attributes

std::string m_name
 cell name
std::vector< object_entry_typem_vObject
 gdsii objects with types

Detailed Description

Collection of elements, both geometric objects and references to other
cells.

Parameters
-------—
name : string
The name of the cell.
exclude_from_global : bool
If True, the cell will not be included in the global list of
cells maintained by gdspy.

Definition at line 567 of file GdsObjects.h.

Member Typedef Documentation

◆ base_type

base type

Definition at line 571 of file GdsObjects.h.

◆ object_entry_type

use pair of GDSII record and GDSII object to describe each object entry

Definition at line 573 of file GdsObjects.h.

Constructor & Destructor Documentation

◆ GdsCell()

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

copy constructor

Parameters
rhsan object

Member Function Documentation

◆ addCellArray()

void GdsParser::GdsDB::GdsCell::addCellArray ( std::string const & sname,
int columns,
int rows,
int spacing[2],
std::vector< point_type > const & vPosition,
double angle,
double magnification,
int strans )
Parameters
snamereference cell name
columnsnumber of columns
rowsnumber of rows
spacingarray[2] of spacing
vPositionarray of positions
angleangle
magnificationmagnification
stransstrans

◆ addCellReference()

void GdsParser::GdsDB::GdsCell::addCellReference ( std::string const & sname,
point_type const & position,
double angle,
double magnification,
int strans )
Parameters
snamereference cell name
positionoffset position
angleangle
magnificationmagnification
stransstrans

◆ addPath()

void GdsParser::GdsDB::GdsCell::addPath ( int layer,
int datatype,
int pathtype,
int width,
int bgnextn,
int endextn,
std::vector< point_type > const & vPoint )
Parameters
layerlayer
datatypedata type
pathtypepath type
widthpath width
bgnextnbegin point extension
endextnend point extension
vPointarray of points

◆ addPolygon()

void GdsParser::GdsDB::GdsCell::addPolygon ( int layer,
int datatype,
std::vector< point_type > const & vPoint )
Parameters
layerlayer
datatypedata type
vPointarray of points

◆ addText()

void GdsParser::GdsDB::GdsCell::addText ( int layer,
int datatype,
int texttype,
std::string const & str,
point_type const & position,
int width,
int presentation,
double angle,
double magnification,
int strans )
Parameters
layerlayer
datatypedata type
texttypetext type
strtext string
positionposition
widthwidth
presentationpresentation
angleangle
magnificationmagnification
stransstrans

◆ copy()

void GdsParser::GdsDB::GdsCell::copy ( GdsCell const & rhs)
protected

copy

Parameters
rhsa GdsCell object

◆ name()

std::string const & GdsParser::GdsDB::GdsCell::name ( ) const
inline
Returns
name of cell

Definition at line 627 of file GdsObjects.h.

◆ objects() [1/2]

std::vector< std::pair< ::GdsParser::GdsRecords::EnumType, GdsObject * > > & GdsParser::GdsDB::GdsCell::objects ( )
inline
Returns
reference to array of GDSII object entries

Definition at line 634 of file GdsObjects.h.

◆ objects() [2/2]

std::vector< std::pair< ::GdsParser::GdsRecords::EnumType, GdsObject * > > const & GdsParser::GdsDB::GdsCell::objects ( ) const
inline
Returns
reference to array of GDSII object entries

Definition at line 632 of file GdsObjects.h.

◆ operator=()

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

assignment

Parameters
rhsan object

◆ setName()

void GdsParser::GdsDB::GdsCell::setName ( std::string const & n)
inline
Parameters
nname of cell

Definition at line 629 of file GdsObjects.h.

Member Data Documentation

◆ m_name

std::string GdsParser::GdsDB::GdsCell::m_name
protected

cell name

Definition at line 642 of file GdsObjects.h.

◆ m_vObject

std::vector<object_entry_type> GdsParser::GdsDB::GdsCell::m_vObject
protected

gdsii objects with types

Definition at line 643 of file GdsObjects.h.


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