Notation used in Ruby API documentation
Module: db
Description: An object representing a shape in the layout database
The shape proxy is basically a pointer to a shape of different kinds. No copy of the shape is created: if the shape proxy is copied the copy still points to the original shape. If the original shape is modified or deleted, the shape proxy will also point to a modified or invalid shape. The proxy can be "null" which indicates an invalid reference.
Shape objects are used together with the Shapes container object which stores the actual shape objects and uses Shape references as pointers inside the actual data storage. Shape references are used in various places, i.e. when removing or transforming objects inside a Shapes container.
new Shape ptr | new | Creates a new object of this class |
[const] | bool | != | (const Shape other) | Inequality operator |
[const] | bool | < | (const Shape other) | Less operator |
[const] | bool | == | (const Shape other) | Equality operator |
[const] | Shape ptr | _const_cast | Returns a non-const reference to self. | |
void | _create | Ensures the C++ object is created | ||
void | _destroy | Explicitly destroys the object | ||
[const] | bool | _destroyed? | Returns a value indicating whether the object was already destroyed | |
[const] | bool | _is_const_object? | Returns a value indicating whether the reference is a const reference | |
void | _manage | Marks the object as managed by the script side. | ||
void | _unmanage | Marks the object as no longer owned by the script side. | ||
[const] | long | area | Returns the area of the shape | |
[const] | DTrans | array_dtrans | Gets the array instance member transformation in micrometer units | |
[const] | Trans | array_trans | Gets the array instance member transformation | |
void | assign | (const Shape other) | Assigns another object to self | |
[const] | Box | bbox | Returns the bounding box of the shape | |
[const] | variant | box | Gets the box object | |
void | box= | (const Box box) | Replaces the shape by the given box | |
void | box= | (const DBox box) | Replaces the shape by the given box (in micrometer units) | |
[const] | Point | box_center | Returns the center of the box | |
void | box_center= | (const Point c) | Sets the center of the box | |
void | box_center= | (const DPoint c) | Sets the center of the box with the point being given in micrometer units | |
[const] | DPoint | box_dcenter | Returns the center of the box as a DPoint object in micrometer units | |
void | box_dcenter= | (const DPoint c) | Sets the center of the box with the point being given in micrometer units | |
[const] | double | box_dheight | Returns the height of the box in micrometer units | |
void | box_dheight= | (double h) | Sets the height of the box | |
[const] | DPoint | box_dp1 | Returns the lower left point of the box as a DPoint object in micrometer units | |
void | box_dp1= | (const DPoint p) | Sets the lower left corner of the box with the point being given in micrometer units | |
[const] | DPoint | box_dp2 | Returns the upper right point of the box as a DPoint object in micrometer units | |
void | box_dp2= | (const DPoint p) | Sets the upper right corner of the box with the point being given in micrometer units | |
[const] | double | box_dwidth | Returns the width of the box in micrometer units | |
void | box_dwidth= | (double w) | Sets the width of the box in micrometer units | |
[const] | int | box_height | Returns the height of the box | |
void | box_height= | (int h) | Sets the height of the box | |
[const] | Point | box_p1 | Returns the lower left point of the box | |
void | box_p1= | (const Point p) | Sets the lower left point of the box | |
void | box_p1= | (const DPoint p) | Sets the lower left corner of the box with the point being given in micrometer units | |
[const] | Point | box_p2 | Returns the upper right point of the box | |
void | box_p2= | (const Point p) | Sets the upper right point of the box | |
void | box_p2= | (const DPoint p) | Sets the upper right corner of the box with the point being given in micrometer units | |
[const] | int | box_width | Returns the width of the box | |
void | box_width= | (int w) | Sets the width of the box | |
Cell ptr | cell | Gets a reference to the cell the shape belongs to | ||
void | cell= | (Cell ptr cell) | Moves the shape to a different cell | |
[const] | double | darea | Returns the area of the shape in square micrometer units | |
[const] | DBox | dbbox | Returns the bounding box of the shape in micrometer units | |
[const] | variant | dbox | Gets the box object in micrometer units | |
void | dbox= | (const DBox box) | Replaces the shape by the given box (in micrometer units) | |
[const] | variant | dedge | Returns the edge object as a DEdge object in micrometer units | |
void | dedge= | (const DEdge edge) | Replaces the shape by the given edge (in micrometer units) | |
[const] | variant | dedge_pair | Returns the edge pair object as a DEdgePair object in micrometer units | |
void | dedge_pair= | (const DEdgePair edge_pair) | Replaces the shape by the given edge pair (in micrometer units) | |
void | delete | Deletes the shape | ||
void | delete_property | (variant key) | Deletes the user property with the given key | |
[const] | variant | dpath | Returns the path object as a DPath object in micrometer units | |
void | dpath= | (const DPath path) | Replaces the shape by the given path (in micrometer units) | |
[const] | double | dperimeter | Returns the perimeter of the shape in micrometer units | |
[const] | variant | dpoint | Returns the point object as a DPoint object in micrometer units | |
void | dpoint= | (const DPoint point) | Replaces the shape by the given point (in micrometer units) | |
[const] | variant | dpolygon | Returns the polygon object in micrometer units | |
void | dpolygon= | (const DPolygon polygon) | Replaces the shape by the given polygon (in micrometer units) | |
[const] | variant | drectangle | Gets the rectangle in micron units if the object represents one or nil if not | |
[const] | variant | dsimple_polygon | Returns the simple polygon object in micrometer units | |
void | dsimple_polygon= | (const DSimplePolygon polygon) | Replaces the shape by the given simple polygon (in micrometer units) | |
[const] | variant | dtext | Returns the path object as a DText object in micrometer units | |
void | dtext= | (const DText text) | Replaces the shape by the given text (in micrometer units) | |
[const] | new Shape ptr | dup | Creates a copy of self | |
[const,iter] | DEdge | each_dedge | Iterates over the edges of the object and returns edges in micrometer units | |
[const,iter] | DEdge | each_dedge | (unsigned int contour) | Iterates over the edges of a single contour of the object and returns edges in micrometer units |
[const,iter] | DPoint | each_dpoint | Iterates over all points of the object and returns points in micrometer units | |
[const,iter] | DPoint | each_dpoint_hole | (unsigned int hole_index) | Iterates over a hole contour of the object and returns points in micrometer units |
[const,iter] | DPoint | each_dpoint_hull | Iterates over the hull contour of the object and returns points in micrometer units | |
[const,iter] | Edge | each_edge | Iterates over the edges of the object | |
[const,iter] | Edge | each_edge | (unsigned int contour) | Iterates over the edges of a single contour of the object |
[const,iter] | Point | each_point | Iterates over all points of the object | |
[const,iter] | Point | each_point_hole | (unsigned int hole_index) | Iterates over the points of a hole contour |
[const,iter] | Point | each_point_hull | Iterates over the hull contour of the object | |
[const] | variant | edge | Returns the edge object | |
void | edge= | (const Edge edge) | Replaces the shape by the given edge | |
void | edge= | (const DEdge edge) | Replaces the shape by the given edge (in micrometer units) | |
[const] | variant | edge_pair | Returns the edge pair object | |
void | edge_pair= | (const EdgePair edge_pair) | Replaces the shape by the given edge pair | |
void | edge_pair= | (const DEdgePair edge_pair) | Replaces the shape by the given edge pair (in micrometer units) | |
[const] | bool | has_prop_id? | Returns true, if the shape has properties, i.e. has a properties ID | |
[const] | unsigned long | hash | Hash function | |
[const] | unsigned int | holes | Returns the number of holes | |
[const] | bool | is_array_member? | Returns true, if the shape is a member of a shape array | |
[const] | bool | is_box? | Returns true if the shape is a box | |
[const] | bool | is_edge? | Returns true, if the object is an edge | |
[const] | bool | is_edge_pair? | Returns true, if the object is an edge pair | |
[const] | bool | is_null? | Returns true, if the shape reference is a null reference (not referring to a shape) | |
[const] | bool | is_path? | Returns true, if the shape is a path | |
[const] | bool | is_point? | Returns true, if the object is an point | |
[const] | bool | is_polygon? | Returns true, if the shape is a polygon | |
[const] | bool | is_simple_polygon? | Returns true, if the shape is a simple polygon | |
[const] | bool | is_text? | Returns true, if the object is a text | |
[const] | bool | is_user_object? | Returns true if the shape is a user defined object | |
[const] | bool | is_valid? | Returns true, if the shape is valid | |
[const] | unsigned int | layer | Returns the layer index of the layer the shape is on | |
void | layer= | (unsigned int layer_index) | Moves the shape to a layer given by the layer index object | |
[const] | LayerInfo | layer_info | Returns the LayerInfo object of the layer the shape is on | |
void | layer_info= | (const LayerInfo layer_info) | Moves the shape to a layer given by a LayerInfo object | |
Layout ptr | layout | Gets a reference to the Layout the shape belongs to | ||
[const] | variant | path | Returns the path object | |
void | path= | (const Path box) | Replaces the shape by the given path object | |
void | path= | (const DPath path) | Replaces the shape by the given path (in micrometer units) | |
[const] | int | path_bgnext | Gets the path's starting vertex extension | |
void | path_bgnext= | (int e) | Sets the path's starting vertex extension | |
[const] | double | path_dbgnext | Gets the path's starting vertex extension in micrometer units | |
void | path_dbgnext= | (double e) | Sets the path's starting vertex extension in micrometer units | |
[const] | double | path_dendext | Gets the path's end vertex extension in micrometer units | |
void | path_dendext= | (double e) | Sets the path's end vertex extension in micrometer units | |
[const] | double | path_dlength | Returns the length of the path in micrometer units | |
[const] | double | path_dwidth | Gets the path width in micrometer units | |
void | path_dwidth= | (double w) | Sets the path width in micrometer units | |
[const] | int | path_endext | Obtain the path's end vertex extension | |
void | path_endext= | (int e) | Sets the path's end vertex extension | |
[const] | int | path_length | Returns the length of the path | |
[const] | int | path_width | Gets the path width | |
void | path_width= | (int w) | Sets the path width | |
[const] | unsigned long | perimeter | Returns the perimeter of the shape | |
[const] | variant | point | Returns the point object | |
void | point= | (const Point point) | Replaces the shape by the given point | |
void | point= | (const DPoint point) | Replaces the shape by the given point (in micrometer units) | |
[const] | variant | polygon | Returns the polygon object | |
void | polygon= | (const Polygon box) | Replaces the shape by the given polygon object | |
void | polygon= | (const DPolygon polygon) | Replaces the shape by the given polygon (in micrometer units) | |
[const] | unsigned long | prop_id | Gets the properties ID associated with the shape | |
void | prop_id= | (unsigned long id) | Sets the properties ID of this shape | |
[const] | variant | properties | Gets the user properties | |
[const] | variant | property | (variant key) | Gets the user property with the given key |
[const] | variant | rectangle | Gets the rectangle if the object represents one or nil if not | |
void | round_path= | (bool r) | The path will be a round-ended path if this property is set to true | |
[const] | bool | round_path? | Returns true, if the path has round ends | |
void | set_property | (variant key, variant value) | Sets the user property with the given key to the given value | |
Shapes ptr | shapes | Gets a reference to the Shapes container the shape lives in | ||
[const] | variant | simple_polygon | Returns the simple polygon object | |
void | simple_polygon= | (const SimplePolygon polygon) | Replaces the shape by the given simple polygon object | |
void | simple_polygon= | (const DSimplePolygon polygon) | Replaces the shape by the given simple polygon (in micrometer units) | |
[const] | variant | text | Returns the text object | |
void | text= | (const Text box) | Replaces the shape by the given text object | |
void | text= | (const DText text) | Replaces the shape by the given text (in micrometer units) | |
[const] | DVector | text_dpos | Gets the text's position in micrometer units | |
void | text_dpos= | (const DVector p) | Sets the text's position in micrometer units | |
[const] | double | text_dsize | Gets the text size in micrometer units | |
void | text_dsize= | (double size) | Sets the text size in micrometer units | |
[const] | DTrans | text_dtrans | Gets the text transformation in micrometer units | |
void | text_dtrans= | (const DTrans trans) | Sets the text transformation in micrometer units | |
[const] | int | text_font | Gets the text's font | |
void | text_font= | (int font) | Sets the text's font | |
[const] | int | text_halign | Gets the text's horizontal alignment | |
void | text_halign= | (int a) | Sets the text's horizontal alignment | |
[const] | Vector | text_pos | Gets the text's position | |
void | text_pos= | (const Vector p) | Sets the text's position | |
void | text_pos= | (const DVector p) | Sets the text's position in micrometer units | |
[const] | int | text_rot | Gets the text's orientation code (see Trans) | |
void | text_rot= | (int o) | Sets the text's orientation code (see Trans) | |
[const] | int | text_size | Gets the text size | |
void | text_size= | (int size) | Sets the text size | |
[const] | string | text_string | Obtain the text string | |
void | text_string= | (string string) | Sets the text string | |
[const] | Trans | text_trans | Gets the text transformation | |
void | text_trans= | (const Trans trans) | Sets the text transformation | |
void | text_trans= | (const DTrans trans) | Sets the text transformation in micrometer units | |
[const] | int | text_valign | Gets the text's vertical alignment | |
void | text_valign= | (int a) | Sets the text's vertical alignment | |
[const] | string | to_s | Create a string showing the contents of the reference | |
void | transform | (const Trans trans) | Transforms the shape with the given transformation | |
void | transform | (const DTrans trans) | Transforms the shape with the given transformation, given in micrometer units | |
void | transform | (const ICplxTrans trans) | Transforms the shape with the given complex transformation | |
void | transform | (const DCplxTrans trans) | Transforms the shape with the given complex transformation, given in micrometer units | |
[const] | int | type | Return the type of the shape |
void | create | Use of this method is deprecated. Use _create instead | ||
void | destroy | Use of this method is deprecated. Use _destroy instead | ||
[const] | bool | destroyed? | Use of this method is deprecated. Use _destroyed? instead | |
[const] | bool | is_const_object? | Use of this method is deprecated. Use _is_const_object? instead | |
[static] | int | t_box | Use of this method is deprecated. Use TBox instead | |
[static] | int | t_box_array | Use of this method is deprecated. Use TBoxArray instead | |
[static] | int | t_box_array_member | Use of this method is deprecated. Use TBoxArrayMember instead | |
[static] | int | t_edge | Use of this method is deprecated. Use TEdge instead | |
[static] | int | t_edge_pair | Use of this method is deprecated. Use TEdgePair instead | |
[static] | int | t_null | Use of this method is deprecated. Use TNull instead | |
[static] | int | t_path | Use of this method is deprecated. Use TPath instead | |
[static] | int | t_path_ptr_array | Use of this method is deprecated. Use TPathPtrArray instead | |
[static] | int | t_path_ptr_array_member | Use of this method is deprecated. Use TPathPtrArrayMember instead | |
[static] | int | t_path_ref | Use of this method is deprecated. Use TPathRef instead | |
[static] | int | t_point | Use of this method is deprecated. Use TPoint instead | |
[static] | int | t_polygon | Use of this method is deprecated. Use TPolygon instead | |
[static] | int | t_polygon_ptr_array | Use of this method is deprecated. Use TPolygonPtrArray instead | |
[static] | int | t_polygon_ptr_array_member | Use of this method is deprecated. Use TPolygonPtrArrayMember instead | |
[static] | int | t_polygon_ref | Use of this method is deprecated. Use TPolygonRef instead | |
[static] | int | t_short_box | Use of this method is deprecated. Use TShortBox instead | |
[static] | int | t_short_box_array | Use of this method is deprecated. Use TShortBoxArray instead | |
[static] | int | t_short_box_array_member | Use of this method is deprecated. Use TShortBoxArrayMember instead | |
[static] | int | t_simple_polygon | Use of this method is deprecated. Use TSimplePolygon instead | |
[static] | int | t_simple_polygon_ptr_array | Use of this method is deprecated. Use TSimplePolygonPtrArray instead | |
[static] | int | t_simple_polygon_ptr_array_member | Use of this method is deprecated. Use TSimplePolygonPtrArrayMember instead | |
[static] | int | t_simple_polygon_ref | Use of this method is deprecated. Use TSimplePolygonRef instead | |
[static] | int | t_text | Use of this method is deprecated. Use TText instead | |
[static] | int | t_text_ptr_array | Use of this method is deprecated. Use TTextPtrArray instead | |
[static] | int | t_text_ptr_array_member | Use of this method is deprecated. Use TTextPtrArrayMember instead | |
[static] | int | t_text_ref | Use of this method is deprecated. Use TTextRef instead | |
[static] | int | t_user_object | Use of this method is deprecated. Use TUserObject instead |
!= | Signature: [const] bool != (const Shape other) Description: Inequality operator | ||
< | Signature: [const] bool < (const Shape other) Description: Less operator The less operator implementation is based on pointers and not strictly reproducible.However, it is good enough so Shape objects can serve as keys in hashes (see also hash). This method has been introduced in version 0.29.1. | ||
== | Signature: [const] bool == (const Shape other) Description: Equality operator Equality of shapes is not specified by the identity of the objects but by the identity of the pointers - both shapes must refer to the same object. | ||
TBox | Signature: [static] int TBox Description: Python specific notes: | ||
TBoxArray | Signature: [static] int TBoxArray Description: Python specific notes: | ||
TBoxArrayMember | Signature: [static] int TBoxArrayMember Description: Python specific notes: | ||
TEdge | Signature: [static] int TEdge Description: Python specific notes: | ||
TEdgePair | Signature: [static] int TEdgePair Description: Python specific notes: | ||
TNull | Signature: [static] int TNull Description: Python specific notes: | ||
TPath | Signature: [static] int TPath Description: Python specific notes: | ||
TPathPtrArray | Signature: [static] int TPathPtrArray Description: Python specific notes: | ||
TPathPtrArrayMember | Signature: [static] int TPathPtrArrayMember Description: Python specific notes: | ||
TPathRef | Signature: [static] int TPathRef Description: Python specific notes: | ||
TPoint | Signature: [static] int TPoint Description: Python specific notes: | ||
TPolygon | Signature: [static] int TPolygon Description: Python specific notes: | ||
TPolygonPtrArray | Signature: [static] int TPolygonPtrArray Description: Python specific notes: | ||
TPolygonPtrArrayMember | Signature: [static] int TPolygonPtrArrayMember Description: Python specific notes: | ||
TPolygonRef | Signature: [static] int TPolygonRef Description: Python specific notes: | ||
TShortBox | Signature: [static] int TShortBox Description: Python specific notes: | ||
TShortBoxArray | Signature: [static] int TShortBoxArray Description: Python specific notes: | ||
TShortBoxArrayMember | Signature: [static] int TShortBoxArrayMember Description: Python specific notes: | ||
TSimplePolygon | Signature: [static] int TSimplePolygon Description: Python specific notes: | ||
TSimplePolygonPtrArray | Signature: [static] int TSimplePolygonPtrArray Description: Python specific notes: | ||
TSimplePolygonPtrArrayMember | Signature: [static] int TSimplePolygonPtrArrayMember Description: Python specific notes: | ||
TSimplePolygonRef | Signature: [static] int TSimplePolygonRef Description: Python specific notes: | ||
TText | Signature: [static] int TText Description: Python specific notes: | ||
TTextPtrArray | Signature: [static] int TTextPtrArray Description: Python specific notes: | ||
TTextPtrArrayMember | Signature: [static] int TTextPtrArrayMember Description: Python specific notes: | ||
TTextRef | Signature: [static] int TTextRef Description: Python specific notes: | ||
TUserObject | Signature: [static] int TUserObject Description: Python specific notes: | ||
_const_cast | Signature: [const] Shape ptr _const_cast Description: Returns a non-const reference to self. Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects. This method has been introduced in version 0.29.6. | ||
_create | Signature: void _create Description: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. | ||
_destroy | Signature: void _destroy Description: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. | ||
_destroyed? | Signature: [const] bool _destroyed? Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. | ||
_is_const_object? | Signature: [const] bool _is_const_object? Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. | ||
_manage | Signature: void _manage Description: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. | ||
_unmanage | Signature: void _unmanage Description: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. | ||
area | Signature: [const] long area Description: Returns the area of the shape This method has been added in version 0.22. | ||
array_dtrans | Signature: [const] DTrans array_dtrans Description: Gets the array instance member transformation in micrometer units This attribute is valid only if is_array_member? is true. The transformation returned describes the relative transformation of the array member addressed. The displacement is given in micrometer units. This method has been added in version 0.25. | ||
array_trans | Signature: [const] Trans array_trans Description: Gets the array instance member transformation This attribute is valid only if is_array_member? is true. The transformation returned describes the relative transformation of the array member addressed. | ||
assign | Signature: void assign (const Shape other) Description: Assigns another object to self | ||
bbox | Signature: [const] Box bbox Description: Returns the bounding box of the shape | ||
box | Signature: [const] variant box Description: Gets the box object Starting with version 0.23, this method returns nil, if the shape does not represent a box. Python specific notes: | ||
box= | (1) Signature: void box= (const Box box) Description: Replaces the shape by the given box This method replaces the shape by the given box. This method can only be called for editable layouts. It does not change the user properties of the shape. Calling this method will invalidate any iterators. It should not be called inside a loop iterating over shapes. This method has been introduced in version 0.22. Python specific notes: | ||
(2) Signature: void box= (const DBox box) Description: Replaces the shape by the given box (in micrometer units) This method replaces the shape by the given box, like box= with a Box argument does. This version translates the box from micrometer units to database units internally. This method has been introduced in version 0.25. Python specific notes: | |||
box_center | Signature: [const] Point box_center Description: Returns the center of the box Applies to boxes only. Returns the center of the box and throws an exception if the shape is not a box. This method has been introduced in version 0.23. Python specific notes: | ||
box_center= | (1) Signature: void box_center= (const Point c) Description: Sets the center of the box Applies to boxes only. Changes the center of the box and throws an exception if the shape is not a box. This method has been introduced in version 0.23. Python specific notes: | ||
(2) Signature: void box_center= (const DPoint c) Description: Sets the center of the box with the point being given in micrometer units Applies to boxes only. Changes the center of the box and throws an exception if the shape is not a box. Translation from micrometer units to database units is done internally. This method has been introduced in version 0.25. Python specific notes: | |||
box_dcenter | Signature: [const] DPoint box_dcenter Description: Returns the center of the box as a DPoint object in micrometer units Applies to boxes only. Returns the center of the box and throws an exception if the shape is not a box. Conversion from database units to micrometers is done internally. This method has been introduced in version 0.25. Python specific notes: | ||
box_dcenter= | Signature: void box_dcenter= (const DPoint c) Description: Sets the center of the box with the point being given in micrometer units Applies to boxes only. Changes the center of the box and throws an exception if the shape is not a box. Translation from micrometer units to database units is done internally. This method has been introduced in version 0.25. Python specific notes: | ||
box_dheight | Signature: [const] double box_dheight Description: Returns the height of the box in micrometer units Applies to boxes only. Returns the height of the box in micrometers and throws an exception if the shape is not a box. This method has been introduced in version 0.25. Python specific notes: | ||
box_dheight= | Signature: void box_dheight= (double h) Description: Sets the height of the box Applies to boxes only. Changes the height of the box to the value given in micrometer units and throws an exception if the shape is not a box. Translation to database units happens internally. This method has been introduced in version 0.25. Python specific notes: | ||
box_dp1 | Signature: [const] DPoint box_dp1 Description: Returns the lower left point of the box as a DPoint object in micrometer units Applies to boxes only. Returns the lower left point of the box and throws an exception if the shape is not a box. Conversion from database units to micrometers is done internally. This method has been introduced in version 0.25. Python specific notes: | ||
box_dp1= | Signature: void box_dp1= (const DPoint p) Description: Sets the lower left corner of the box with the point being given in micrometer units Applies to boxes only. Changes the lower left point of the box and throws an exception if the shape is not a box. Translation from micrometer units to database units is done internally. This method has been introduced in version 0.25. Python specific notes: | ||
box_dp2 | Signature: [const] DPoint box_dp2 Description: Returns the upper right point of the box as a DPoint object in micrometer units Applies to boxes only. Returns the upper right point of the box and throws an exception if the shape is not a box. Conversion from database units to micrometers is done internally. This method has been introduced in version 0.25. Python specific notes: | ||
box_dp2= | Signature: void box_dp2= (const DPoint p) Description: Sets the upper right corner of the box with the point being given in micrometer units Applies to boxes only. Changes the upper right point of the box and throws an exception if the shape is not a box. Translation from micrometer units to database units is done internally. This method has been introduced in version 0.25. Python specific notes: | ||
box_dwidth | Signature: [const] double box_dwidth Description: Returns the width of the box in micrometer units Applies to boxes only. Returns the width of the box in micrometers and throws an exception if the shape is not a box. This method has been introduced in version 0.25. Python specific notes: | ||
box_dwidth= | Signature: void box_dwidth= (double w) Description: Sets the width of the box in micrometer units Applies to boxes only. Changes the width of the box to the value given in micrometer units and throws an exception if the shape is not a box. Translation to database units happens internally. This method has been introduced in version 0.25. Python specific notes: | ||
box_height | Signature: [const] int box_height Description: Returns the height of the box Applies to boxes only. Returns the height of the box and throws an exception if the shape is not a box. This method has been introduced in version 0.23. Python specific notes: | ||
box_height= | Signature: void box_height= (int h) Description: Sets the height of the box Applies to boxes only. Changes the height of the box and throws an exception if the shape is not a box. This method has been introduced in version 0.23. Python specific notes: | ||
box_p1 | Signature: [const] Point box_p1 Description: Returns the lower left point of the box Applies to boxes only. Returns the lower left point of the box and throws an exception if the shape is not a box. This method has been introduced in version 0.23. Python specific notes: | ||
box_p1= | (1) Signature: void box_p1= (const Point p) Description: Sets the lower left point of the box Applies to boxes only. Changes the lower left point of the box and throws an exception if the shape is not a box. This method has been introduced in version 0.23. Python specific notes: | ||
(2) Signature: void box_p1= (const DPoint p) Description: Sets the lower left corner of the box with the point being given in micrometer units Applies to boxes only. Changes the lower left point of the box and throws an exception if the shape is not a box. Translation from micrometer units to database units is done internally. This method has been introduced in version 0.25. Python specific notes: | |||
box_p2 | Signature: [const] Point box_p2 Description: Returns the upper right point of the box Applies to boxes only. Returns the upper right point of the box and throws an exception if the shape is not a box. This method has been introduced in version 0.23. Python specific notes: | ||
box_p2= | (1) Signature: void box_p2= (const Point p) Description: Sets the upper right point of the box Applies to boxes only. Changes the upper right point of the box and throws an exception if the shape is not a box. This method has been introduced in version 0.23. Python specific notes: | ||
(2) Signature: void box_p2= (const DPoint p) Description: Sets the upper right corner of the box with the point being given in micrometer units Applies to boxes only. Changes the upper right point of the box and throws an exception if the shape is not a box. Translation from micrometer units to database units is done internally. This method has been introduced in version 0.25. Python specific notes: | |||
box_width | Signature: [const] int box_width Description: Returns the width of the box Applies to boxes only. Returns the width of the box and throws an exception if the shape is not a box. This method has been introduced in version 0.23. Python specific notes: | ||
box_width= | Signature: void box_width= (int w) Description: Sets the width of the box Applies to boxes only. Changes the width of the box and throws an exception if the shape is not a box. This method has been introduced in version 0.23. Python specific notes: | ||
cell | Signature: Cell ptr cell Description: Gets a reference to the cell the shape belongs to This reference can be nil, if the Shape object is not living inside a cell This method has been introduced in version 0.22. Python specific notes: | ||
cell= | Signature: void cell= (Cell ptr cell) Description: Moves the shape to a different cell Both the current and the target cell must reside in the same layout. This method has been introduced in version 0.23. Python specific notes: | ||
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. | ||
darea | Signature: [const] double darea Description: Returns the area of the shape in square micrometer units This method has been added in version 0.25. | ||
dbbox | Signature: [const] DBox dbbox Description: Returns the bounding box of the shape in micrometer units This method has been added in version 0.25. | ||
dbox | Signature: [const] variant dbox Description: Gets the box object in micrometer units See box for a description of this method. This method returns the box after translation to micrometer units. This method has been added in version 0.25. Python specific notes: | ||
dbox= | Signature: void dbox= (const DBox box) Description: Replaces the shape by the given box (in micrometer units) This method replaces the shape by the given box, like box= with a Box argument does. This version translates the box from micrometer units to database units internally. This method has been introduced in version 0.25. Python specific notes: | ||
dedge | Signature: [const] variant dedge Description: Returns the edge object as a DEdge object in micrometer units See edge for a description of this method. This method returns the edge after translation to micrometer units. This method has been added in version 0.25. Python specific notes: | ||
dedge= | Signature: void dedge= (const DEdge edge) Description: Replaces the shape by the given edge (in micrometer units) This method replaces the shape by the given edge, like edge= with a Edge argument does. This version translates the edge from micrometer units to database units internally. This method has been introduced in version 0.25. Python specific notes: | ||
dedge_pair | Signature: [const] variant dedge_pair Description: Returns the edge pair object as a DEdgePair object in micrometer units See edge_pair for a description of this method. This method returns the edge pair after translation to micrometer units. This method has been added in version 0.26. Python specific notes: | ||
dedge_pair= | Signature: void dedge_pair= (const DEdgePair edge_pair) Description: Replaces the shape by the given edge pair (in micrometer units) This method replaces the shape by the given edge pair, like edge_pair= with a EdgePair argument does. This version translates the edge pair from micrometer units to database units internally. This method has been introduced in version 0.26. Python specific notes: | ||
delete | Signature: void delete Description: Deletes the shape After the shape is deleted, the shape object is emptied and points to nothing. This method has been introduced in version 0.23. | ||
delete_property | Signature: void delete_property (variant key) Description: Deletes the user property with the given key This method is a convenience method that deletes the property with the given key. It does nothing if no property with that key exists. Using that method is more convenient than creating a new property set with a new ID and assigning that properties ID. This method may change the properties ID. Calling this method will invalidate any iterators. It should not be called inside a loop iterating over shapes. This method has been introduced in version 0.22. | ||
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. | ||
destroyed? | Signature: [const] bool destroyed? Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. | ||
dpath | Signature: [const] variant dpath Description: Returns the path object as a DPath object in micrometer units See path for a description of this method. This method returns the path after translation to micrometer units. This method has been added in version 0.25. Python specific notes: | ||
dpath= | Signature: void dpath= (const DPath path) Description: Replaces the shape by the given path (in micrometer units) This method replaces the shape by the given path, like path= with a Path argument does. This version translates the path from micrometer units to database units internally. This method has been introduced in version 0.25. Python specific notes: | ||
dperimeter | Signature: [const] double dperimeter Description: Returns the perimeter of the shape in micrometer units This method will return an approximation of the perimeter for paths. This method has been added in version 0.25. | ||
dpoint | Signature: [const] variant dpoint Description: Returns the point object as a DPoint object in micrometer units See point for a description of this method. This method returns the point after translation to micrometer units. This method has been introduced in version 0.28. Python specific notes: | ||
dpoint= | Signature: void dpoint= (const DPoint point) Description: Replaces the shape by the given point (in micrometer units) This method replaces the shape by the given point, like point= with a Point argument does. This version translates the point from micrometer units to database units internally. This method has been introduced in version 0.28. Python specific notes: | ||
dpolygon | Signature: [const] variant dpolygon Description: Returns the polygon object in micrometer units Returns the polygon object that this shape refers to or converts the object to a polygon. The method returns the same object than polygon, but translates it to micrometer units internally. This method has been introduced in version 0.25. Python specific notes: | ||
dpolygon= | Signature: void dpolygon= (const DPolygon polygon) Description: Replaces the shape by the given polygon (in micrometer units) This method replaces the shape by the given polygon, like polygon= with a Polygon argument does. This version translates the polygon from micrometer units to database units internally. This method has been introduced in version 0.25. Python specific notes: | ||
drectangle | Signature: [const] variant drectangle Description: Gets the rectangle in micron units if the object represents one or nil if not If the shape represents a rectangle - i.e. a box or box polygon, a path with two points and no round ends - this method returns the box. If not, nil is returned. This method has been introduced in version 0.29. | ||
dsimple_polygon | Signature: [const] variant dsimple_polygon Description: Returns the simple polygon object in micrometer units Returns the simple polygon object that this shape refers to or converts the object to a simple polygon. The method returns the same object than simple_polygon, but translates it to micrometer units internally. This method has been introduced in version 0.25. Python specific notes: | ||
dsimple_polygon= | Signature: void dsimple_polygon= (const DSimplePolygon polygon) Description: Replaces the shape by the given simple polygon (in micrometer units) This method replaces the shape by the given text, like simple_polygon= with a SimplePolygon argument does. This version translates the polygon from micrometer units to database units internally. This method has been introduced in version 0.25. Python specific notes: | ||
dtext | Signature: [const] variant dtext Description: Returns the path object as a DText object in micrometer units See text for a description of this method. This method returns the text after translation to micrometer units. This method has been added in version 0.25. Python specific notes: | ||
dtext= | Signature: void dtext= (const DText text) Description: Replaces the shape by the given text (in micrometer units) This method replaces the shape by the given text, like text= with a Text argument does. This version translates the text from micrometer units to database units internally. This method has been introduced in version 0.25. Python specific notes: | ||
dup | Signature: [const] new Shape ptr dup Description: Creates a copy of self Python specific notes: | ||
each_dedge | (1) Signature: [const,iter] DEdge each_dedge Description: Iterates over the edges of the object and returns edges in micrometer units This method iterates over all edges of polygons and simple polygons like each_edge, but will deliver edges in micrometer units. Multiplication by the database unit is done internally. This method has been introduced in version 0.25. | ||
(2) Signature: [const,iter] DEdge each_dedge (unsigned int contour) Description: Iterates over the edges of a single contour of the object and returns edges in micrometer units This method iterates over all edges of polygons and simple polygons like each_edge, but will deliver edges in micrometer units. Multiplication by the database unit is done internally. This method has been introduced in version 0.25. | |||
each_dpoint | Signature: [const,iter] DPoint each_dpoint Description: Iterates over all points of the object and returns points in micrometer units This method iterates over all points of the object like each_point, but it returns DPoint objects that are given in micrometer units already. Multiplication with the database unit happens internally. This method has been introduced in version 0.25. | ||
each_dpoint_hole | Signature: [const,iter] DPoint each_dpoint_hole (unsigned int hole_index) Description: Iterates over a hole contour of the object and returns points in micrometer units This method iterates over all points of the object's contour' like each_point_hole, but it returns DPoint objects that are given in micrometer units already. Multiplication with the database unit happens internally. This method has been introduced in version 0.25. | ||
each_dpoint_hull | Signature: [const,iter] DPoint each_dpoint_hull Description: Iterates over the hull contour of the object and returns points in micrometer units This method iterates over all points of the object's contour' like each_point_hull, but it returns DPoint objects that are given in micrometer units already. Multiplication with the database unit happens internally. This method has been introduced in version 0.25. | ||
each_edge | (1) Signature: [const,iter] Edge each_edge Description: Iterates over the edges of the object This method applies to polygons and simple polygons and delivers all edges that form the polygon's contours. Hole edges are oriented counterclockwise while hull edges are oriented clockwise. It will throw an exception if the object is not a polygon. | ||
(2) Signature: [const,iter] Edge each_edge (unsigned int contour) Description: Iterates over the edges of a single contour of the object
This method applies to polygons and simple polygons and delivers all edges that form the given contour of the polygon. The hull has contour number 0, the first hole has contour 1 etc. Hole edges are oriented counterclockwise while hull edges are oriented clockwise. It will throw an exception if the object is not a polygon. This method was introduced in version 0.24. | |||
each_point | Signature: [const,iter] Point each_point Description: Iterates over all points of the object This method applies to paths and delivers all points of the path's center line. It will throw an exception for other objects. | ||
each_point_hole | Signature: [const,iter] Point each_point_hole (unsigned int hole_index) Description: Iterates over the points of a hole contour
This method applies to polygons and delivers all points of the respective hole contour. It will throw an exception for other objects. Simple polygons deliver an empty sequence. | ||
each_point_hull | Signature: [const,iter] Point each_point_hull Description: Iterates over the hull contour of the object This method applies to polygons and delivers all points of the polygon hull contour. It will throw an exception for other objects. | ||
edge | Signature: [const] variant edge Description: Returns the edge object Starting with version 0.23, this method returns nil, if the shape does not represent an edge. Python specific notes: | ||
edge= | (1) Signature: void edge= (const Edge edge) Description: Replaces the shape by the given edge This method replaces the shape by the given edge. This method can only be called for editable layouts. It does not change the user properties of the shape. Calling this method will invalidate any iterators. It should not be called inside a loop iterating over shapes. This method has been introduced in version 0.22. Python specific notes: | ||
(2) Signature: void edge= (const DEdge edge) Description: Replaces the shape by the given edge (in micrometer units) This method replaces the shape by the given edge, like edge= with a Edge argument does. This version translates the edge from micrometer units to database units internally. This method has been introduced in version 0.25. Python specific notes: | |||
edge_pair | Signature: [const] variant edge_pair Description: Returns the edge pair object This method has been introduced in version 0.26. Python specific notes: | ||
edge_pair= | (1) Signature: void edge_pair= (const EdgePair edge_pair) Description: Replaces the shape by the given edge pair This method replaces the shape by the given edge pair. This method can only be called for editable layouts. It does not change the user properties of the shape. Calling this method will invalidate any iterators. It should not be called inside a loop iterating over shapes. This method has been introduced in version 0.26. Python specific notes: | ||
(2) Signature: void edge_pair= (const DEdgePair edge_pair) Description: Replaces the shape by the given edge pair (in micrometer units) This method replaces the shape by the given edge pair, like edge_pair= with a EdgePair argument does. This version translates the edge pair from micrometer units to database units internally. This method has been introduced in version 0.26. Python specific notes: | |||
has_prop_id? | Signature: [const] bool has_prop_id? Description: Returns true, if the shape has properties, i.e. has a properties ID | ||
hash | Signature: [const] unsigned long hash Description: Hash function The hash function enables Shape objects as keys in hashes. This method has been introduced in version 0.29.1. Python specific notes: | ||
holes | Signature: [const] unsigned int holes Description: Returns the number of holes This method applies to polygons and will throw an exception for other objects.. Simple polygons deliver a value of zero. | ||
is_array_member? | Signature: [const] bool is_array_member? Description: Returns true, if the shape is a member of a shape array | ||
is_box? | Signature: [const] bool is_box? Description: Returns true if the shape is a box | ||
is_const_object? | Signature: [const] bool is_const_object? Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead This method returns true, if self is a const reference. In that case, only const methods may be called on self. | ||
is_edge? | Signature: [const] bool is_edge? Description: Returns true, if the object is an edge | ||
is_edge_pair? | Signature: [const] bool is_edge_pair? Description: Returns true, if the object is an edge pair This method has been introduced in version 0.26. | ||
is_null? | Signature: [const] bool is_null? Description: Returns true, if the shape reference is a null reference (not referring to a shape) | ||
is_path? | Signature: [const] bool is_path? Description: Returns true, if the shape is a path | ||
is_point? | Signature: [const] bool is_point? Description: Returns true, if the object is an point This method has been introduced in version 0.28. | ||
is_polygon? | Signature: [const] bool is_polygon? Description: Returns true, if the shape is a polygon This method returns true only if the object is a polygon or a simple polygon. Other objects can convert to polygons, for example paths, so it may be possible to use the polygon method also if is_polygon? does not return true. | ||
is_simple_polygon? | Signature: [const] bool is_simple_polygon? Description: Returns true, if the shape is a simple polygon This method returns true only if the object is a simple polygon. The simple polygon identity is contained in the polygon identity, so usually it is sufficient to use is_polygon? and polygon instead of specifically handle simply polygons. This method is provided only for specific optimisation purposes. | ||
is_text? | Signature: [const] bool is_text? Description: Returns true, if the object is a text | ||
is_user_object? | Signature: [const] bool is_user_object? Description: Returns true if the shape is a user defined object | ||
is_valid? | Signature: [const] bool is_valid? Description: Returns true, if the shape is valid After the shape is deleted, the shape object is no longer valid and this method returns false. This method has been introduced in version 0.23. | ||
layer | Signature: [const] unsigned int layer Description: Returns the layer index of the layer the shape is on Throws an exception if the shape does not reside inside a cell. This method has been added in version 0.23. Python specific notes: | ||
layer= | Signature: void layer= (unsigned int layer_index) Description: Moves the shape to a layer given by the layer index object This method has been added in version 0.23. Python specific notes: | ||
layer_info | Signature: [const] LayerInfo layer_info Description: Returns the LayerInfo object of the layer the shape is on If the shape does not reside inside a cell, an empty layer is returned. This method has been added in version 0.23. Python specific notes: | ||
layer_info= | Signature: void layer_info= (const LayerInfo layer_info) Description: Moves the shape to a layer given by a LayerInfo object If no layer with the given properties exists, an exception is thrown. This method has been added in version 0.23. Python specific notes: | ||
layout | Signature: Layout ptr layout Description: Gets a reference to the Layout the shape belongs to This reference can be nil, if the Shape object is not living inside a layout. This method has been introduced in version 0.22. | ||
new | Signature: [static] new Shape ptr new Description: Creates a new object of this class Python specific notes: | ||
path | Signature: [const] variant path Description: Returns the path object Starting with version 0.23, this method returns nil, if the shape does not represent a path. Python specific notes: | ||
path= | (1) Signature: void path= (const Path box) Description: Replaces the shape by the given path object This method replaces the shape by the given path object. This method can only be called for editable layouts. It does not change the user properties of the shape. Calling this method will invalidate any iterators. It should not be called inside a loop iterating over shapes. This method has been introduced in version 0.22. Python specific notes: | ||
(2) Signature: void path= (const DPath path) Description: Replaces the shape by the given path (in micrometer units) This method replaces the shape by the given path, like path= with a Path argument does. This version translates the path from micrometer units to database units internally. This method has been introduced in version 0.25. Python specific notes: | |||
path_bgnext | Signature: [const] int path_bgnext Description: Gets the path's starting vertex extension Applies to paths only. Will throw an exception if the object is not a path. Python specific notes: | ||
path_bgnext= | Signature: void path_bgnext= (int e) Description: Sets the path's starting vertex extension Applies to paths only. Will throw an exception if the object is not a path. This method has been introduced in version 0.23. Python specific notes: | ||
path_dbgnext | Signature: [const] double path_dbgnext Description: Gets the path's starting vertex extension in micrometer units Applies to paths only. Will throw an exception if the object is not a path. This method has been introduced in version 0.25. Python specific notes: | ||
path_dbgnext= | Signature: void path_dbgnext= (double e) Description: Sets the path's starting vertex extension in micrometer units Applies to paths only. Will throw an exception if the object is not a path. This method has been introduced in version 0.25. Python specific notes: | ||
path_dendext | Signature: [const] double path_dendext Description: Gets the path's end vertex extension in micrometer units Applies to paths only. Will throw an exception if the object is not a path. This method has been introduced in version 0.25. Python specific notes: | ||
path_dendext= | Signature: void path_dendext= (double e) Description: Sets the path's end vertex extension in micrometer units Applies to paths only. Will throw an exception if the object is not a path. This method has been introduced in version 0.25. Python specific notes: | ||
path_dlength | Signature: [const] double path_dlength Description: Returns the length of the path in micrometer units Applies to paths only. Will throw an exception if the object is not a path. This method returns the length of the spine plus extensions if present. The value returned is given in micrometer units. This method has been added in version 0.25. | ||
path_dwidth | Signature: [const] double path_dwidth Description: Gets the path width in micrometer units Applies to paths only. Will throw an exception if the object is not a path. This method has been introduced in version 0.25. Python specific notes: | ||
path_dwidth= | Signature: void path_dwidth= (double w) Description: Sets the path width in micrometer units Applies to paths only. Will throw an exception if the object is not a path. Conversion to database units is done internally. This method has been introduced in version 0.25. Python specific notes: | ||
path_endext | Signature: [const] int path_endext Description: Obtain the path's end vertex extension Applies to paths only. Will throw an exception if the object is not a path. Python specific notes: | ||
path_endext= | Signature: void path_endext= (int e) Description: Sets the path's end vertex extension Applies to paths only. Will throw an exception if the object is not a path. This method has been introduced in version 0.23. Python specific notes: | ||
path_length | Signature: [const] int path_length Description: Returns the length of the path Applies to paths only. Will throw an exception if the object is not a path. This method returns the length of the spine plus extensions if present. This method has been added in version 0.23. | ||
path_width | Signature: [const] int path_width Description: Gets the path width Applies to paths only. Will throw an exception if the object is not a path. Python specific notes: | ||
path_width= | Signature: void path_width= (int w) Description: Sets the path width Applies to paths only. Will throw an exception if the object is not a path. This method has been introduced in version 0.23. Python specific notes: | ||
perimeter | Signature: [const] unsigned long perimeter Description: Returns the perimeter of the shape This method will return an approximation of the perimeter for paths. This method has been added in version 0.23. | ||
point | Signature: [const] variant point Description: Returns the point object This method has been introduced in version 0.28. Python specific notes: | ||
point= | (1) Signature: void point= (const Point point) Description: Replaces the shape by the given point This method replaces the shape by the given point. This method can only be called for editable layouts. It does not change the user properties of the shape. Calling this method will invalidate any iterators. It should not be called inside a loop iterating over shapes. This method has been introduced in version 0.28. Python specific notes: | ||
(2) Signature: void point= (const DPoint point) Description: Replaces the shape by the given point (in micrometer units) This method replaces the shape by the given point, like point= with a Point argument does. This version translates the point from micrometer units to database units internally. This method has been introduced in version 0.28. Python specific notes: | |||
polygon | Signature: [const] variant polygon Description: Returns the polygon object Returns the polygon object that this shape refers to or converts the object to a polygon. Paths, boxes and simple polygons are converted to polygons. For paths this operation renders the path's hull contour. Starting with version 0.23, this method returns nil, if the shape does not represent a geometrical primitive that can be converted to a polygon. Python specific notes: | ||
polygon= | (1) Signature: void polygon= (const Polygon box) Description: Replaces the shape by the given polygon object This method replaces the shape by the given polygon object. This method can only be called for editable layouts. It does not change the user properties of the shape. Calling this method will invalidate any iterators. It should not be called inside a loop iterating over shapes. This method has been introduced in version 0.22. Python specific notes: | ||
(2) Signature: void polygon= (const DPolygon polygon) Description: Replaces the shape by the given polygon (in micrometer units) This method replaces the shape by the given polygon, like polygon= with a Polygon argument does. This version translates the polygon from micrometer units to database units internally. This method has been introduced in version 0.25. Python specific notes: | |||
prop_id | Signature: [const] unsigned long prop_id Description: Gets the properties ID associated with the shape The Layout object can be used to retrieve the actual properties associated with the ID. Python specific notes: | ||
prop_id= | Signature: void prop_id= (unsigned long id) Description: Sets the properties ID of this shape The Layout object can be used to retrieve an ID for a given set of properties. Calling this method will invalidate any iterators. It should not be called inside a loop iterating over shapes. This method has been introduced in version 0.22. Python specific notes: | ||
properties | Signature: [const] variant properties Description: Gets the user properties This method is a convenience method that gets the properties of the shape as a single hash. This method has been introduced in version 0.29.5. | ||
property | Signature: [const] variant property (variant key) Description: Gets the user property with the given key This method is a convenience method that gets the property with the given key. If no property with that key does not exist, it will return nil. Using that method is more convenient than using the layout object and the properties ID to retrieve the property value. This method has been introduced in version 0.22. | ||
rectangle | Signature: [const] variant rectangle Description: Gets the rectangle if the object represents one or nil if not If the shape represents a rectangle - i.e. a box or box polygon, a path with two points and no round ends - this method returns the box. If not, nil is returned. This method has been introduced in version 0.29. | ||
round_path= | Signature: void round_path= (bool r) Description: The path will be a round-ended path if this property is set to true Applies to paths only. Will throw an exception if the object is not a path. Please note that the extensions will apply as well. To get a path with circular ends, set the begin and end extensions to half the path's width. This method has been introduced in version 0.23. Python specific notes: | ||
round_path? | Signature: [const] bool round_path? Description: Returns true, if the path has round ends Applies to paths only. Will throw an exception if the object is not a path. Python specific notes: | ||
set_property | Signature: void set_property (variant key, variant value) Description: Sets the user property with the given key to the given value This method is a convenience method that sets the property with the given key to the given value. If no property with that key exists, it will create one. Using that method is more convenient than creating a new property set with a new ID and assigning that properties ID. This method may change the properties ID. Note: GDS only supports integer keys. OASIS supports numeric and string keys. Calling this method will invalidate any iterators. It should not be called inside a loop iterating over shapes. This method has been introduced in version 0.22. | ||
shapes | Signature: Shapes ptr shapes Description: Gets a reference to the Shapes container the shape lives in This reference can be nil, if the Shape object is not referring to an actual shape. This method has been introduced in version 0.22. | ||
simple_polygon | Signature: [const] variant simple_polygon Description: Returns the simple polygon object Returns the simple polygon object that this shape refers to or converts the object to a simple polygon. Paths, boxes and polygons are converted to simple polygons. Polygons with holes will have their holes removed but introducing cut lines that connect the hole contours with the outer contour. Starting with version 0.23, this method returns nil, if the shape does not represent a geometrical primitive that can be converted to a simple polygon. Python specific notes: | ||
simple_polygon= | (1) Signature: void simple_polygon= (const SimplePolygon polygon) Description: Replaces the shape by the given simple polygon object This method replaces the shape by the given simple polygon object. This method can only be called for editable layouts. It does not change the user properties of the shape. Calling this method will invalidate any iterators. It should not be called inside a loop iterating over shapes. This method has been introduced in version 0.22. Python specific notes: | ||
(2) Signature: void simple_polygon= (const DSimplePolygon polygon) Description: Replaces the shape by the given simple polygon (in micrometer units) This method replaces the shape by the given text, like simple_polygon= with a SimplePolygon argument does. This version translates the polygon from micrometer units to database units internally. This method has been introduced in version 0.25. Python specific notes: | |||
t_box | Signature: [static] int t_box Description: Use of this method is deprecated. Use TBox instead Python specific notes: | ||
t_box_array | Signature: [static] int t_box_array Description: Use of this method is deprecated. Use TBoxArray instead Python specific notes: | ||
t_box_array_member | Signature: [static] int t_box_array_member Description: Use of this method is deprecated. Use TBoxArrayMember instead Python specific notes: | ||
t_edge | Signature: [static] int t_edge Description: Use of this method is deprecated. Use TEdge instead Python specific notes: | ||
t_edge_pair | Signature: [static] int t_edge_pair Description: Use of this method is deprecated. Use TEdgePair instead Python specific notes: | ||
t_null | Signature: [static] int t_null Description: Use of this method is deprecated. Use TNull instead Python specific notes: | ||
t_path | Signature: [static] int t_path Description: Use of this method is deprecated. Use TPath instead Python specific notes: | ||
t_path_ptr_array | Signature: [static] int t_path_ptr_array Description: Use of this method is deprecated. Use TPathPtrArray instead Python specific notes: | ||
t_path_ptr_array_member | Signature: [static] int t_path_ptr_array_member Description: Use of this method is deprecated. Use TPathPtrArrayMember instead Python specific notes: | ||
t_path_ref | Signature: [static] int t_path_ref Description: Use of this method is deprecated. Use TPathRef instead Python specific notes: | ||
t_point | Signature: [static] int t_point Description: Use of this method is deprecated. Use TPoint instead Python specific notes: | ||
t_polygon | Signature: [static] int t_polygon Description: Use of this method is deprecated. Use TPolygon instead Python specific notes: | ||
t_polygon_ptr_array | Signature: [static] int t_polygon_ptr_array Description: Use of this method is deprecated. Use TPolygonPtrArray instead Python specific notes: | ||
t_polygon_ptr_array_member | Signature: [static] int t_polygon_ptr_array_member Description: Use of this method is deprecated. Use TPolygonPtrArrayMember instead Python specific notes: | ||
t_polygon_ref | Signature: [static] int t_polygon_ref Description: Use of this method is deprecated. Use TPolygonRef instead Python specific notes: | ||
t_short_box | Signature: [static] int t_short_box Description: Use of this method is deprecated. Use TShortBox instead Python specific notes: | ||
t_short_box_array | Signature: [static] int t_short_box_array Description: Use of this method is deprecated. Use TShortBoxArray instead Python specific notes: | ||
t_short_box_array_member | Signature: [static] int t_short_box_array_member Description: Use of this method is deprecated. Use TShortBoxArrayMember instead Python specific notes: | ||
t_simple_polygon | Signature: [static] int t_simple_polygon Description: Use of this method is deprecated. Use TSimplePolygon instead Python specific notes: | ||
t_simple_polygon_ptr_array | Signature: [static] int t_simple_polygon_ptr_array Description: Use of this method is deprecated. Use TSimplePolygonPtrArray instead Python specific notes: | ||
t_simple_polygon_ptr_array_member | Signature: [static] int t_simple_polygon_ptr_array_member Description: Use of this method is deprecated. Use TSimplePolygonPtrArrayMember instead Python specific notes: | ||
t_simple_polygon_ref | Signature: [static] int t_simple_polygon_ref Description: Use of this method is deprecated. Use TSimplePolygonRef instead Python specific notes: | ||
t_text | Signature: [static] int t_text Description: Use of this method is deprecated. Use TText instead Python specific notes: | ||
t_text_ptr_array | Signature: [static] int t_text_ptr_array Description: Use of this method is deprecated. Use TTextPtrArray instead Python specific notes: | ||
t_text_ptr_array_member | Signature: [static] int t_text_ptr_array_member Description: Use of this method is deprecated. Use TTextPtrArrayMember instead Python specific notes: | ||
t_text_ref | Signature: [static] int t_text_ref Description: Use of this method is deprecated. Use TTextRef instead Python specific notes: | ||
t_user_object | Signature: [static] int t_user_object Description: Use of this method is deprecated. Use TUserObject instead Python specific notes: | ||
text | Signature: [const] variant text Description: Returns the text object Starting with version 0.23, this method returns nil, if the shape does not represent a text. Python specific notes: | ||
text= | (1) Signature: void text= (const Text box) Description: Replaces the shape by the given text object This method replaces the shape by the given text object. This method can only be called for editable layouts. It does not change the user properties of the shape. Calling this method will invalidate any iterators. It should not be called inside a loop iterating over shapes. This method has been introduced in version 0.22. Python specific notes: | ||
(2) Signature: void text= (const DText text) Description: Replaces the shape by the given text (in micrometer units) This method replaces the shape by the given text, like text= with a Text argument does. This version translates the text from micrometer units to database units internally. This method has been introduced in version 0.25. Python specific notes: | |||
text_dpos | Signature: [const] DVector text_dpos Description: Gets the text's position in micrometer units Applies to texts only. Will throw an exception if the object is not a text. This method has been added in version 0.25. Python specific notes: | ||
text_dpos= | Signature: void text_dpos= (const DVector p) Description: Sets the text's position in micrometer units Applies to texts only. Will throw an exception if the object is not a text. This method has been added in version 0.25. Python specific notes: | ||
text_dsize | Signature: [const] double text_dsize Description: Gets the text size in micrometer units Applies to texts only. Will throw an exception if the object is not a text. This method has been introduced in version 0.25. Python specific notes: | ||
text_dsize= | Signature: void text_dsize= (double size) Description: Sets the text size in micrometer units Applies to texts only. Will throw an exception if the object is not a text. This method has been introduced in version 0.25. Python specific notes: | ||
text_dtrans | Signature: [const] DTrans text_dtrans Description: Gets the text transformation in micrometer units Applies to texts only. Will throw an exception if the object is not a text. This method has been added in version 0.25. Python specific notes: | ||
text_dtrans= | Signature: void text_dtrans= (const DTrans trans) Description: Sets the text transformation in micrometer units Applies to texts only. Will throw an exception if the object is not a text. This method has been introduced in version 0.25. Python specific notes: | ||
text_font | Signature: [const] int text_font Description: Gets the text's font Applies to texts only. Will throw an exception if the object is not a text. Python specific notes: | ||
text_font= | Signature: void text_font= (int font) Description: Sets the text's font Applies to texts only. Will throw an exception if the object is not a text. This method has been introduced in version 0.23. Python specific notes: | ||
text_halign | Signature: [const] int text_halign Description: Gets the text's horizontal alignment Applies to texts only. Will throw an exception if the object is not a text. The return value is 0 for left alignment, 1 for center alignment and 2 to right alignment. This method has been introduced in version 0.22. Python specific notes: | ||
text_halign= | Signature: void text_halign= (int a) Description: Sets the text's horizontal alignment Applies to texts only. Will throw an exception if the object is not a text. See text_halign for a description of that property. This method has been introduced in version 0.23. Python specific notes: | ||
text_pos | Signature: [const] Vector text_pos Description: Gets the text's position Applies to texts only. Will throw an exception if the object is not a text. Python specific notes: | ||
text_pos= | (1) Signature: void text_pos= (const Vector p) Description: Sets the text's position Applies to texts only. Will throw an exception if the object is not a text. Python specific notes: | ||
(2) Signature: void text_pos= (const DVector p) Description: Sets the text's position in micrometer units Applies to texts only. Will throw an exception if the object is not a text. This method has been added in version 0.25. Python specific notes: | |||
text_rot | Signature: [const] int text_rot Description: Gets the text's orientation code (see Trans) Applies to texts only. Will throw an exception if the object is not a text. Python specific notes: | ||
text_rot= | Signature: void text_rot= (int o) Description: Sets the text's orientation code (see Trans) Applies to texts only. Will throw an exception if the object is not a text. Python specific notes: | ||
text_size | Signature: [const] int text_size Description: Gets the text size Applies to texts only. Will throw an exception if the object is not a text. Python specific notes: | ||
text_size= | Signature: void text_size= (int size) Description: Sets the text size Applies to texts only. Will throw an exception if the object is not a text. This method has been introduced in version 0.23. Python specific notes: | ||
text_string | Signature: [const] string text_string Description: Obtain the text string Applies to texts only. Will throw an exception if the object is not a text. Python specific notes: | ||
text_string= | Signature: void text_string= (string string) Description: Sets the text string Applies to texts only. Will throw an exception if the object is not a text. This method has been introduced in version 0.23. Python specific notes: | ||
text_trans | Signature: [const] Trans text_trans Description: Gets the text transformation Applies to texts only. Will throw an exception if the object is not a text. Python specific notes: | ||
text_trans= | (1) Signature: void text_trans= (const Trans trans) Description: Sets the text transformation Applies to texts only. Will throw an exception if the object is not a text. This method has been introduced in version 0.23. Python specific notes: | ||
(2) Signature: void text_trans= (const DTrans trans) Description: Sets the text transformation in micrometer units Applies to texts only. Will throw an exception if the object is not a text. This method has been introduced in version 0.25. Python specific notes: | |||
text_valign | Signature: [const] int text_valign Description: Gets the text's vertical alignment Applies to texts only. Will throw an exception if the object is not a text. The return value is 0 for top alignment, 1 for center alignment and 2 to bottom alignment. This method has been introduced in version 0.22. Python specific notes: | ||
text_valign= | Signature: void text_valign= (int a) Description: Sets the text's vertical alignment Applies to texts only. Will throw an exception if the object is not a text. See text_valign for a description of that property. This method has been introduced in version 0.23. Python specific notes: | ||
to_s | Signature: [const] string to_s Description: Create a string showing the contents of the reference This method has been introduced with version 0.16. Python specific notes: | ||
transform | (1) Signature: void transform (const Trans trans) Description: Transforms the shape with the given transformation This method has been introduced in version 0.23. | ||
(2) Signature: void transform (const DTrans trans) Description: Transforms the shape with the given transformation, given in micrometer units This method has been introduced in version 0.25. | |||
(3) Signature: void transform (const ICplxTrans trans) Description: Transforms the shape with the given complex transformation This method has been introduced in version 0.23. | |||
(4) Signature: void transform (const DCplxTrans trans) Description: Transforms the shape with the given complex transformation, given in micrometer units This method has been introduced in version 0.25. | |||
type | Signature: [const] int type Description: Return the type of the shape The returned values are the t_... constants available through the corresponding class members. |