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

 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)
coordinate_type bgnExtn () const
void setBgnExtn (coordinate_type e)
coordinate_type endExtn () const
void setEndExtn (coordinate_type e)
template<typename Iterator>
void set (Iterator first, Iterator last)
 set path
GdsPolygon toPolygon () const
 convert from path to polygon description
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
GdsObjectoperator= (GdsObject const &rhs)
 assignment
virtual ~GdsObject ()
 destructor

Protected Attributes

int m_pathtype
 path type
coordinate_type m_width
 path width
coordinate_type m_bgnextn
 begin point extension
coordinate_type m_endextn
 end point extension
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 232 of file GdsObjects.h.

Member Typedef Documentation

◆ base_ext_type

use a linestring to describe path

Definition at line 238 of file GdsObjects.h.

◆ base_type

base type

Definition at line 236 of file GdsObjects.h.

Constructor & Destructor Documentation

◆ GdsPath()

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

copy constructor

Parameters
rhsan object

Member Function Documentation

◆ bgnExtn()

coordinate_type GdsParser::GdsDB::GdsPath::bgnExtn ( ) const
inline
Returns
begin point extension

Definition at line 263 of file GdsObjects.h.

◆ endExtn()

coordinate_type GdsParser::GdsDB::GdsPath::endExtn ( ) const
inline
Returns
end point extension

Definition at line 268 of file GdsObjects.h.

◆ operator=()

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

assignment

Parameters
rhsan object

◆ pathtype()

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

Definition at line 253 of file GdsObjects.h.

◆ set()

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

◆ setBgnExtn()

void GdsParser::GdsDB::GdsPath::setBgnExtn ( coordinate_type e)
inline
Parameters
eextension

Definition at line 265 of file GdsObjects.h.

◆ setEndExtn()

void GdsParser::GdsDB::GdsPath::setEndExtn ( coordinate_type e)
inline
Parameters
eextension

Definition at line 270 of file GdsObjects.h.

◆ setPathtype()

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

Definition at line 255 of file GdsObjects.h.

◆ setWidth()

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

Definition at line 260 of file GdsObjects.h.

◆ toPolygon()

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

convert from path to polygon description

Returns
a GDSII polygon object

◆ width()

coordinate_type GdsParser::GdsDB::GdsPath::width ( ) const
inline
Returns
width

Definition at line 258 of file GdsObjects.h.

Member Data Documentation

◆ m_bgnextn

coordinate_type GdsParser::GdsDB::GdsPath::m_bgnextn
protected

begin point extension

Definition at line 284 of file GdsObjects.h.

◆ m_endextn

coordinate_type GdsParser::GdsDB::GdsPath::m_endextn
protected

end point extension

Definition at line 285 of file GdsObjects.h.

◆ m_pathtype

int GdsParser::GdsDB::GdsPath::m_pathtype
protected

path type

Definition at line 282 of file GdsObjects.h.

◆ m_width

coordinate_type GdsParser::GdsDB::GdsPath::m_width
protected

path width

Definition at line 283 of file GdsObjects.h.


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