View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003178 | Slicer4 | Core: Scripting (Wrapping, Python) | public | 2013-06-19 06:18 | 2013-06-19 21:53 |
Reporter | luis | Assigned To | jcfr | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | Slicer 4.2.0 | ||||
Target Version | Slicer 4.3.0 | Fixed in Version | Slicer 4.3.0 | ||
Summary | 0003178: Useful methods of qMRMLTransformSliders not exposed to Python | ||||
Description | I wanted to use the qMRMLTransformSliders widget to specify local orientation in a scriptable module. However, the two methods I need to do this are not exposed to Python. These methods are: setCoordinateReference() There are many other unexposed methods in the widget that would also be very useful like setTitle() and setRange(). On my fork I simply added the Q_INVOKABLE macro to the declarations of each of these methods and I got the functionality I needed, but I wasn't sure whether there is a better way to handle this. | ||||
Tags | Summer AHM 2013 | ||||
These methods are already made available with the help of Q_PROPERTY and can be set/read using the name of the associated property. For example:
Consider also looking at the associated doxygen page: or the source: https://github.com/Slicer/Slicer/blob/8184c4f882206be42a0e4aa0c931794951cd2bc0/Libs/MRML/Widgets/qMRMLTransformSliders.h#L43-55 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2013-06-19 06:18 | luis | New Issue | |
2013-06-19 06:18 | luis | Status | new => assigned |
2013-06-19 06:18 | luis | Assigned To | => jcfr |
2013-06-19 21:44 | jcfr | Target Version | => Slicer 4.3.0 |
2013-06-19 21:53 | jcfr | Note Added: 0008793 | |
2013-06-19 21:53 | jcfr | Status | assigned => closed |
2013-06-19 21:53 | jcfr | Resolution | open => fixed |
2013-06-19 21:53 | jcfr | Fixed in Version | => Slicer 4.3.0 |
2013-06-19 21:53 | jcfr | Tag Attached: Summer AHM 2013 |