Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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_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

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

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

Constructor & Destructor Documentation

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

copy constructor

Parameters
rhsan object

Member Function Documentation

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
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
void GdsParser::GdsDB::GdsCell::addPath ( int  layer,
int  datatype,
int  pathtype,
int  width,
std::vector< point_type > const &  vPoint 
)
Parameters
layerlayer
datatypedata type
pathtypepath type
widthpath width
vPointarray of points
void GdsParser::GdsDB::GdsCell::addPolygon ( int  layer,
int  datatype,
std::vector< point_type > const &  vPoint 
)
Parameters
layerlayer
datatypedata type
vPointarray of points
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
void GdsParser::GdsDB::GdsCell::copy ( GdsCell const &  rhs)
protected

copy

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

Definition at line 611 of file GdsObjects.h.

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

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

Definition at line 618 of file GdsObjects.h.

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

assignment

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

Definition at line 613 of file GdsObjects.h.


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