|
|
KLayout Documentation (Qt 4): Main Index » Class Index » API reference - Class NetTracer API reference - Class NetTracerNotation used in Ruby API documentation Description: The net tracer feature The net tracer class provides an interface to the net tracer feature. It is accompanied by the NetElement and NetTracerTechnology classes. The latter will provide the technology definition for the net tracer while the NetElement objects represent a piece of the net after it has been extracted. The technology definition is optional. The net tracer can be used with a predefined technology as well. The basic scheme of using the net tracer is to instantiate a net tracer object and run the extraction through the NetTracer#trace method. After this method was executed successfully, the resulting net can be obtained from the net tracer object by iterating over the NetElement objects of the net tracer. Here is some sample code:
ly = RBA::CellView::active.layout
tracer = RBA::NetTracer::new
tech = RBA::NetTracerTechnology::new
tech.connection("1/0", "2/0", "3/0")
tracer.trace(tech, ly, ly.top_cell, RBA::Point::new(7000, 1500), ly.find_layer(1, 0))
tracer.each_element do |e|
puts e.shape.polygon.transformed(e.trans)
end
This class has been introduced in version 0.25. Public constructors| new NetTracer ptr | new | | Creates a new object of this class |
Public methods | 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. | | void | assign | (const NetTracer other) | Assigns another object to self | | void | clear | | Clears the data from the last extraction | | [const] | new NetTracer ptr | dup | | Creates a copy of self | | [const,iter] | NetElement | each_element | | Iterates over the elements found during extraction | | [const] | bool | incomplete? | | Returns a value indicating whether the net is incomplete | | [const] | string | name | | Returns the name of the net found during extraction | | [const] | unsigned long | num_elements | | Returns the number of elements found during extraction | | void | trace | (const NetTracerTechnology tech, const Layout layout, const Cell cell, const Point start_point, unsigned int start_layer) | Runs a net extraction | | void | trace | (const NetTracerTechnology tech, const Layout layout, const Cell cell, const Point start_point, unsigned int start_layer, const Point stop_point, unsigned int stop_layer) | Runs a path extraction | | void | trace | (string tech, const Layout layout, const Cell cell, const Point start_point, unsigned int start_layer) | Runs a net extraction taking a predefined technology | | void | trace | (string tech, const Layout layout, const Cell cell, const Point start_point, unsigned int start_layer, const Point stop_point, unsigned int stop_layer) | Runs a path extraction taking a predefined technology | | void | trace | (const CellView cellview, const Point start_point, unsigned int start_layer) | Runs a net extraction from a cell view | | void | trace | (const CellView cellview, const Point start_point, unsigned int start_layer, const Point stop_point, unsigned int stop_layer) | Runs a path extraction from a cell view |
Deprecated methods (protected, public, static, non-static and constructors) | 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 |
Detailed description_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. | assign | Signature: void assign (const NetTracer other) Description: Assigns another object to self | clear | Signature: void clear Description: Clears the data from the last extraction | create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead | destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead | 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 | dup | Signature: [const] new NetTracer ptr dup Description: Creates a copy of self | each_element | Signature: [const,iter] NetElement each_element Description: Iterates over the elements found during extraction
The elements are available only after the extraction has been performed. | incomplete? | Signature: [const] bool incomplete? Description: Returns a value indicating whether the net is incomplete
A net may be incomplete if the extraction has been stopped by the user for example. This attribute is useful only after the extraction has been performed. | 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 | name | Signature: [const] string name Description: Returns the name of the net found during extraction
The net name is extracted from labels found during the extraction. This attribute is useful only after the extraction has been performed. | new | Signature: [static] new NetTracer ptr new Description: Creates a new object of this class Python specific notes: This method is the default initializer of the object
| num_elements | Signature: [const] unsigned long num_elements Description: Returns the number of elements found during extraction
This attribute is useful only after the extraction has been performed. | trace | Signature: void trace (const NetTracerTechnology tech,const Layout layout,const Cell cell,const Point start_point,unsigned int start_layer) Description: Runs a net extraction | tech: | The technology definition | | layout: | The layout on which to run the extraction | | cell: | The cell on which to run the extraction (child cells will be included) | | start_point: | The start point from which to start extraction of the net | | start_layer: | The layer from which to start extraction |
This method runs an extraction with the given parameters.
To make the extraction successful, a shape must be present at the given start point on the start layer. The start layer must be a valid layer mentioned within the technology specification. This version runs a single extraction - i.e. it will extract all elements connected to the given seed point. A path extraction version is provided as well which will extract one (the presumably shortest) path between two points. | Signature: void trace (const NetTracerTechnology tech,const Layout layout,const Cell cell,const Point start_point,unsigned int start_layer,const Point stop_point,unsigned int stop_layer) Description: Runs a path extraction | tech: | The technology definition | | layout: | The layout on which to run the extraction | | cell: | The cell on which to run the extraction (child cells will be included) | | start_point: | The start point from which to start extraction of the net | | start_layer: | The layer from which to start extraction | | stop_point: | The stop point at which to stop extraction of the net | | stop_layer: | The layer at which to stop extraction |
This method runs an path extraction with the given parameters.
To make the extraction successful, a shape must be present at the given start point on the start layer and at the given stop point at the given stop layer. The start and stop layers must be a valid layers mentioned within the technology specification. This version runs a path extraction and will deliver elements forming one path leading from the start to the end point. | Signature: void trace (string tech,const Layout layout,const Cell cell,const Point start_point,unsigned int start_layer) Description: Runs a net extraction taking a predefined technology
This method behaves identical as the version with a technology object, except that it will look for a technology with the given name to obtain the extraction setup. | Signature: void trace (string tech,const Layout layout,const Cell cell,const Point start_point,unsigned int start_layer,const Point stop_point,unsigned int stop_layer) Description: Runs a path extraction taking a predefined technology
This method behaves identical as the version with a technology object, except that it will look for a technology with the given name to obtain the extraction setup. | Signature: void trace (const CellView cellview,const Point start_point,unsigned int start_layer) Description: Runs a net extraction from a cell view
This method behaves identical as the version with a technology, layout and cell object, except that it will take these from the cellview specified. | Signature: void trace (const CellView cellview,const Point start_point,unsigned int start_layer,const Point stop_point,unsigned int stop_layer) Description: Runs a path extraction from a cell view
This method behaves identical as the version with a technology, layout and cell object, except that it will take these from the cellview specified. |
|