4. The Raith_structure class
Class overview: Raith_structure
Properties (public) |
|
|---|---|
Character array specifying name of structure |
|
Array of |
|
Properties (private set access) |
|
|---|---|
Cell array of referenced structure names |
|
Methods |
|
|---|---|
Plot structure as filled polygons |
|
Plot structure as unfilled polygons |
|
- class Raith_structure
Raith_structure objects define named structures composed of low-level elements (Raith_element objects). Structures are packaged together in a GDSII hierarchy (library), and are the objects referred to in positionlist entries.
4.1. Properties
4.1.1. Public properties
- Raith_structure.name
Character array specifying name of structure. Maximum length is 127 characters. Allowed characters are A–Z, a–z, 0–9, underscore (_), period (.), dollar sign ($), question mark (?), and hyphen (-).[1]
- Raith_structure.elements
Array of
Raith_elementobjects in structure.Raith_elementarrays are created using standard MATLAB notation.
4.1.2. Private set-access properties
4.2. Constructor
- Constructor:
S=Raith_structure(name,elements)- Arguments:
name – Character array specifying name of structure. Maximum length is 127 characters. Allowed characters are A–Z, a–z, 0–9, underscore (_), period (.), dollar sign ($), question mark (?), and hyphen (-). Illegal characters are replaced with underscores (with a warning issued).
elements – Array of
Raith_elementobjects in structure.Raith_elementarrays are created using standard MATLAB notation (see following Example).
Example
% Optical racetrack resonator
E(1)=Raith_element('arc',0,[2 0],3,[-90 90],0,0.3,200,1.3);
E(2)=Raith_element('arc',0,[-2 0],3,[90 270],0,0.3,200,1.3);
E(3)=Raith_element('path',0,[-2 2;3 3],0.3,1.3);
E(4)=Raith_element('path',0,[-2 2;-3 -3],0.3,1.3);
S=Raith_structure('racetrack',E);
4.3. Methods
- Raith_structure.plot([M[, scDF]])
Plot
Raith_structureobject with default Raith dose factor colouring. Elements are displayed as filled polygons, where applicable ('polygon';'path'with non-zerodata.w;'arc','circle', and'ellipse'with emptydata.w;'text'). All elements in the structure are plotted, regardless ofdata.layervalue.- Arguments:
M – Augmented transformation matrix to be applied to structure [optional]; see
Raith_library.trans(),Raith_library.rot(),Raith_library.refl(), andRaith_library.scale().scDF – Overall multiplicative scaling factor applied to dose factors of all elements in structure [optional]
- Returns:
None
Calling
Raith_structure.plot()does not change the current axis scaling; issue anaxis equalcommand to ensure that the structure is displayed in the figure correctly.Note
Normally,
Raith_structure.plot()is called without arguments, to display theRaith_structureobject as it would appear in the Raith NanoSuite software. The optional arguments M and scDF are used internally, whenRaith_structure.plot()is called byRaith_library.plot()orRaith_positionlist.plot().Example
Given the
Raith_structureobjectSdefined in the above Constructor section:S.plot; axis equal;
Fig. 4.1 Racetrack resonator structure plotted using the
Raith_structure.plot()method
- Raith_structure.plotedges([M[, scDF]])
Plot
Raith_structureobject outlines with default Raith dose factor colouring. Elements are displayed as unfilled polygons, where applicable ('polygon';'path'with non-zerodata.w;'arc','circle', and'ellipse'with emptydata.w;'text'). All elements in the structure are plotted, regardless ofdata.layervalue.- Arguments:
M – Augmented transformation matrix to be applied to structure [optional]; see
Raith_library.trans(),Raith_library.rot(),Raith_library.refl(), andRaith_library.scale().scDF – Overall multiplicative scaling factor applied to dose factors of all elements in structure [optional]
- Returns:
None
Calling
Raith_structure.plotedges()does not change the current axis scaling; issue anaxis equalcommand to ensure that the structure is displayed in the figure correctly.Note
Normally,
Raith_structure.plotedges()is called without arguments, to display theRaith_structureobject as it would appear in the Raith NanoSuite software. The optional arguments M and scDF are used internally, whenRaith_structure.plotedges()is called byRaith_library.plotedges()orRaith_positionlist.plotedges().Example
Given the
Raith_structureobjectSdefined in the above Constructor section:S.plotedges; axis equal;
Fig. 4.2 Racetrack resonator structure plotted using the
Raith_structure.plotedges()method