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

#include <GdsObjects.h>

Inheritance diagram for GdsParser::GdsDB::GdsPath:
GdsParser::GdsDB::GdsShape GdsParser::GdsDB::GdsObject

Public Types

typedef GdsShape base_type
 base type
 
typedef bg::model::linestring
< GdsShape::point_type > 
base_ext_type
 use a linestring to describe path
 
- Public Types inherited from GdsParser::GdsDB::GdsShape
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

 GdsPath ()
 default constructor
 
 GdsPath (GdsPath const &rhs)
 
GdsPathoperator= (GdsPath const &rhs)
 
 ~GdsPath ()
 destructor
 
int pathtype () const
 
void setPathtype (int p)
 
coordinate_type width () const
 
void setWidth (coordinate_type w)
 
template<typename Iterator >
void set (Iterator first, Iterator last)
 set path More...
 
GdsPolygon toPolygon () const
 convert from path to polygon description More...
 
- Public Member Functions inherited from GdsParser::GdsDB::GdsShape
 GdsShape ()
 default constructor
 
 GdsShape (GdsShape const &rhs)
 
GdsShapeoperator= (GdsShape const &rhs)
 
 ~GdsShape ()
 destructor
 
int layer () const
 
void setLayer (int l)
 
int datatype () const
 
void setDatatype (int d)
 
- 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

int m_pathtype
 path type
 
coordinate_type m_width
 path width
 
- Protected Attributes inherited from GdsParser::GdsDB::GdsShape
int m_layer
 layer
 
int m_datatype
 data type
 

Detailed Description

Series of geometric objects that form a path or a collection of parallel
paths.

Parameters
-------—
width : number
The width of each path.
initial_point : array-like[2]
Starting position of the path.
number_of_paths : positive integer
Number of parallel paths to create simultaneously.
distance : number
Distance between the centers of adjacent paths.

Attributes
-------—
x : number
Current position of the path in the x direction.
y : number
Current position of the path in the y direction.
w : number
Half*-width of each path.
n : integer
Number of parallel paths.
direction : {'+x', '-x', '+y', '-y'} or number
Direction or angle (in radians) the path points to.
distance : number
Distance between the centers of adjacent paths.
length : number
Length of the central path axis. If only one path is created, this
is the real length of the path.

Definition at line 230 of file GdsObjects.h.

Constructor & Destructor Documentation

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

copy constructor

Parameters
rhsan object

Member Function Documentation

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

assignment

Parameters
rhsan object
int GdsParser::GdsDB::GdsPath::pathtype ( ) const
inline
Returns
path type

Definition at line 251 of file GdsObjects.h.

template<typename Iterator >
void GdsParser::GdsDB::GdsPath::set ( Iterator  first,
Iterator  last 
)
inline

set path

Template Parameters
Iteratoriterator to points
Parameters
first,lastbegin and end iterator to points

Definition at line 264 of file GdsObjects.h.

void GdsParser::GdsDB::GdsPath::setPathtype ( int  p)
inline
Parameters
ppath type

Definition at line 253 of file GdsObjects.h.

void GdsParser::GdsDB::GdsPath::setWidth ( coordinate_type  w)
inline
Parameters
wwidth

Definition at line 258 of file GdsObjects.h.

GdsPolygon GdsParser::GdsDB::GdsPath::toPolygon ( ) const

convert from path to polygon description

Returns
a GDSII polygon object
coordinate_type GdsParser::GdsDB::GdsPath::width ( ) const
inline
Returns
width

Definition at line 256 of file GdsObjects.h.


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