# Development

**URL:** https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&page=126

[Latest](https://discourse.slicer.org/latest.md) · [Categories](https://discourse.slicer.org/categories.md) · [Tags](https://discourse.slicer.org/tags.md)

**Page:** 127

---

## [Qt5 branch - MacOS transparency issue](https://discourse.slicer.org/t/qt5-branch-macos-transparency-issue/961)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 6\
**Last updated:** [August 31, 2017, 9:17pm UTC](https://discourse.slicer.org/t/qt5-branch-macos-transparency-issue/961 "2017-08-31T21:17:00Z")

</div>

Built MacOS 10.12.6 off fresh support-qt5-2017-08-11-r26241 branch. Built fine, runs fine (overall). Graphics card is AMD Radeon R9 M370 on MacBook Pro Retina 15" on external thunderbolt display. When displaying 3D mod…

---

## [Get Slice Thickness from vtkMRMLScalarVolumeNode](https://discourse.slicer.org/t/get-slice-thickness-from-vtkmrmlscalarvolumenode/980)

<div class="topic-metadata">

**Author:** [@moselhy](https://discourse.slicer.org/u/moselhy)\
**Replies:** 1\
**Last updated:** [August 31, 2017, 4:48pm UTC](https://discourse.slicer.org/t/get-slice-thickness-from-vtkmrmlscalarvolumenode/980 "2017-08-31T16:48:23Z")

</div>

How do I get Slice Thickness from a vtkMRMLScalarVolumeNode in Python? Thanks

---

## [Qt5 build missing signature in DICOM settings](https://discourse.slicer.org/t/qt5-build-missing-signature-in-dicom-settings/978)

<div class="topic-metadata">

**Author:** [@pieper](https://discourse.slicer.org/u/pieper)\
**Replies:** 2\
**Last updated:** [August 31, 2017, 4:02pm UTC](https://discourse.slicer.org/t/qt5-build-missing-signature-in-dicom-settings/978 "2017-08-31T16:02:33Z")

</div>

@cpinter, @jcfr looks like a compatibility issue with the property wrapping after this commit. It works for me on gcc5.4 build but not with gcc6.3. https://github.com/Slicer/Slicer/commit/ee5c8703642cf8f42e9594bc780cb0…

---

## [DCMQI extension: New linking error](https://discourse.slicer.org/t/dcmqi-extension-new-linking-error/966)

<div class="topic-metadata">

**Author:** [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Replies:** 9\
**Last updated:** [August 30, 2017, 11:18pm UTC](https://discourse.slicer.org/t/dcmqi-extension-new-linking-error/966 "2017-08-30T23:18:25Z")

</div>

It looks like some of the commits done yesterday introduced a new linking error for one of our extensions: /usr/bin/ld: cannot find -lITKFactoryRegistration http://slicer.cdash.org/viewBuildError.php?buildid=1087743 @…

---

## [Exporting Dicom programatically](https://discourse.slicer.org/t/exporting-dicom-programatically/972)

<div class="topic-metadata">

**Author:** [@mmtg](https://discourse.slicer.org/u/mmtg)\
**Replies:** 1\
**Last updated:** [August 30, 2017, 10:06pm UTC](https://discourse.slicer.org/t/exporting-dicom-programatically/972 "2017-08-30T22:06:30Z")

</div>

Hello everyone, This is a question I asked a while ago and it was resolved. However, that was with a much older version and my script no longer works with the newer versions of slicer that have a different subjecthierar…

---

## [Update of server hosting slicer SVN repository](https://discourse.slicer.org/t/update-of-server-hosting-slicer-svn-repository/939)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 6\
**Last updated:** [August 29, 2017, 9:07pm UTC](https://discourse.slicer.org/t/update-of-server-hosting-slicer-svn-repository/939 "2017-08-29T21:07:48Z")

</div>

Hi Slicers, svn.slicer.org is running Debian 6, which has gone end of life which means it has no access to security updates. Kitware Sysadmin team will migrate the server on Tuesday August 29th at 3pm, it should take a…

---

## [Creating a toolbar in Python](https://discourse.slicer.org/t/creating-a-toolbar-in-python/965)

<div class="topic-metadata">

**Author:** [@moselhy](https://discourse.slicer.org/u/moselhy)\
**Replies:** 1\
**Last updated:** [August 29, 2017, 3:18pm UTC](https://discourse.slicer.org/t/creating-a-toolbar-in-python/965 "2017-08-29T15:18:21Z")

</div>

Hello, I was wondering whether it would be possible to create a toolbar widget using Python, without the need of C++. Similar to this layout: Thanks

---

## [Observing a change in SliceOffset within a SegmentEditorEffect class](https://discourse.slicer.org/t/observing-a-change-in-sliceoffset-within-a-segmenteditoreffect-class/950)

<div class="topic-metadata">

**Author:** [@moselhy](https://discourse.slicer.org/u/moselhy)\
**Replies:** 5\
**Last updated:** [August 29, 2017, 2:01pm UTC](https://discourse.slicer.org/t/observing-a-change-in-sliceoffset-within-a-segmenteditoreffect-class/950 "2017-08-29T14:01:20Z")

</div>

Hello, I am trying to detect changes in slice offsets e.g. slicer.app.layoutManager().sliceWidget('Red').sliceLogic().GetSliceOffset() and call a method within a SegmentEditorEffect class. I want to use the AddObserver …

---

## [Extension build failure on Mac due to error copying files](https://discourse.slicer.org/t/extension-build-failure-on-mac-due-to-error-copying-files/935)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 5\
**Last updated:** [August 25, 2017, 5:57pm UTC](https://discourse.slicer.org/t/extension-build-failure-on-mac-due-to-error-copying-files/935 "2017-08-25T17:57:03Z")

</div>

There is a strange error for some of the extensions on Mac stating that files could not be copied, such as Error copying file "@rpath/libMRMLCore.dylib" to "/.../SlicerRT-build/inner-build/\_CPack\_Packages/Darwin/TGZ/262…

---

## [Interpreting CDash reporting: extension is packaged despite build errors?](https://discourse.slicer.org/t/interpreting-cdash-reporting-extension-is-packaged-despite-build-errors/856)

<div class="topic-metadata">

**Author:** [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Replies:** 8\
**Last updated:** [August 25, 2017, 5:56pm UTC](https://discourse.slicer.org/t/interpreting-cdash-reporting-extension-is-packaged-despite-build-errors/856 "2017-08-25T17:56:46Z")

</div>

I checked the dashboard today, and I found that one of our extension had a (new) build error: Error copying file "@rpath/libITKFactoryRegistration.dylib" to "/.../DCMQI-build/dcmqi-build/\_CPack\_Packages/Darwin/TGZ/26…

---

## [GPU-based Projective Texture Mapping in a Loadable Module](https://discourse.slicer.org/t/gpu-based-projective-texture-mapping-in-a-loadable-module/941)

<div class="topic-metadata">

**Author:** [@thaenel](https://discourse.slicer.org/u/thaenel)\
**Replies:** 3\
**Last updated:** [August 25, 2017, 1:20pm UTC](https://discourse.slicer.org/t/gpu-based-projective-texture-mapping-in-a-loadable-module/941 "2017-08-25T13:20:08Z")

</div>

Hello everyone, I want to create my first Slicer extension. At the moment I am doing research on the design of the extension (mostly reading Slicer API documentation), after this is done I’ll inform you about my plan. T…

---

## [qMRMLSubjectHierarchyComboBox usage](https://discourse.slicer.org/t/qmrmlsubjecthierarchycombobox-usage/763)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 37\
**Last updated:** [August 23, 2017, 1:05pm UTC](https://discourse.slicer.org/t/qmrmlsubjecthierarchycombobox-usage/763 "2017-08-23T13:05:50Z")

</div>

How to get notified in Python when currentItemChanged fires? I tried this: # myCB1 is qMRMLNodeComboBox # myCB2 is qMRMLSubjectHierarchyComboBox myCB1.connect('currentNodeChanged(vtkMRMLNode\*)', self.updateMRMLFromGUI) …

---

## [Rotating Slice around Axis of Model](https://discourse.slicer.org/t/rotating-slice-around-axis-of-model/916)

<div class="topic-metadata">

**Author:** [@danielbr](https://discourse.slicer.org/u/danielbr)\
**Replies:** 2\
**Last updated:** [August 22, 2017, 1:43pm UTC](https://discourse.slicer.org/t/rotating-slice-around-axis-of-model/916 "2017-08-22T13:43:52Z")

</div>

Hi all, Having a slight problem and can’t for the life of me figure it out. Was hoping that one of you could help me out. Let me explain the problem. I have a 3d model loaded into the scene. That model has two trans…

---

## [Using SimpleItk in loadable modules](https://discourse.slicer.org/t/using-simpleitk-in-loadable-modules/908)

<div class="topic-metadata">

**Author:** [@sandra](https://discourse.slicer.org/u/sandra)\
**Replies:** 13\
**Last updated:** [August 22, 2017, 1:20pm UTC](https://discourse.slicer.org/t/using-simpleitk-in-loadable-modules/908 "2017-08-22T13:20:42Z")

</div>

Hi everyone, I would like to use SimpleItk while writting a loadable module. My problem is about including the necessary files: #include \<sitkCenteredTransformInitializerFilter.h\> for example doesn’t work, I get the e…

---

## [Copying a volume's scalar type](https://discourse.slicer.org/t/copying-a-volumes-scalar-type/886)

<div class="topic-metadata">

**Author:** [@moselhy](https://discourse.slicer.org/u/moselhy)\
**Replies:** 8\
**Last updated:** [August 21, 2017, 3:17pm UTC](https://discourse.slicer.org/t/copying-a-volumes-scalar-type/886 "2017-08-21T15:17:21Z")

</div>

How do I copy just the image information from a Scalar Volume Node “originalNode” to a new node initialized by newnode = slicer.mrmlScene.AddNewNodeByClass('vtkMRMLScalarVolumeNode')? The problem with newnode.Copy(origi…

---

## [Access image pixel values in LOADABLE](https://discourse.slicer.org/t/access-image-pixel-values-in-loadable/904)

<div class="topic-metadata">

**Author:** [@Alexandre\_Freitas\_Du](https://discourse.slicer.org/u/Alexandre_Freitas_Du)\
**Replies:** 3\
**Last updated:** [August 20, 2017, 4:04pm UTC](https://discourse.slicer.org/t/access-image-pixel-values-in-loadable/904 "2017-08-20T16:04:00Z")

</div>

Hello everyone, everything good? Could someone help me with a question. In the CLI I was able to get the pixels of the image using the GetBufferPointer () method. Here’s the example: typedef itk::Image\<float, 3\> Imag…

---

## [Add a colormap table to Slicer](https://discourse.slicer.org/t/add-a-colormap-table-to-slicer/877)

<div class="topic-metadata">

**Author:** [@jonieva](https://discourse.slicer.org/u/jonieva)\
**Replies:** 4\
**Last updated:** [August 16, 2017, 4:04am UTC](https://discourse.slicer.org/t/add-a-colormap-table-to-slicer/877 "2017-08-16T04:04:56Z")

</div>

Hi! We would need to use a colormap node that would be used in many of our Slicer scripted modules and also CLIs. Is it ok if I just add the file to the https://github.com/Slicer/Slicer/tree/master/Base/Logic/Resources…

---

## [Error in install extensions](https://discourse.slicer.org/t/error-in-install-extensions/866)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 1\
**Last updated:** [August 14, 2017, 12:12pm UTC](https://discourse.slicer.org/t/error-in-install-extensions/866 "2017-08-14T12:12:35Z")

</div>

Hi i’m Tae Young Park I had a struggle time about slicer extensions section there are some error like that “No extensions found for macosx:64-bit, revision: ‘672e2c0’. Please try a different combination” what is t…

---

## [Error handling, how to do?](https://discourse.slicer.org/t/error-handling-how-to-do/862)

<div class="topic-metadata">

**Author:** [@Alexandre\_Freitas\_Du](https://discourse.slicer.org/u/Alexandre_Freitas_Du)\
**Replies:** 1\
**Last updated:** [August 14, 2017, 1:09am UTC](https://discourse.slicer.org/t/error-handling-how-to-do/862 "2017-08-14T01:09:01Z")

</div>

Hello everyone, is there any way to handle Exceptions in Loadable? Using “try catch” does not work, always generating the same log, and closing Slicer 3D. " … exit abnormally - Report the problem. "

---

## [TubeTK build with Slicer](https://discourse.slicer.org/t/tubetk-build-with-slicer/858)

<div class="topic-metadata">

**Author:** [@leochan2009](https://discourse.slicer.org/u/leochan2009)\
**Replies:** 4\
**Last updated:** [August 11, 2017, 9:15pm UTC](https://discourse.slicer.org/t/tubetk-build-with-slicer/858 "2017-08-11T21:15:06Z")

</div>

Hi, Does anyone build TubeTk successfully with the latest slicer? i receive this kind of error message Make Error at /usr/local/Cellar/cmake/3.9.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message): …

---

## [How to move name and measure in vtkMRMLAnnotationRulerNode](https://discourse.slicer.org/t/how-to-move-name-and-measure-in-vtkmrmlannotationrulernode/850)

<div class="topic-metadata">

**Author:** [@PNardelli](https://discourse.slicer.org/u/PNardelli)\
**Replies:** 7\
**Last updated:** [August 10, 2017, 8:48pm UTC](https://discourse.slicer.org/t/how-to-move-name-and-measure-in-vtkmrmlannotationrulernode/850 "2017-08-10T20:48:02Z")

</div>

Hi guys, I have created a new scripted module that uses two rulers to do measure airways and veins on a CT image. I know the rulers’ name and measure are automatically placed next to the Ruler. However, many times thes…

---

## [Override automatic display of newly-loaded volume?](https://discourse.slicer.org/t/override-automatic-display-of-newly-loaded-volume/846)

<div class="topic-metadata">

**Author:** [@mschumaker](https://discourse.slicer.org/u/mschumaker)\
**Replies:** 2\
**Last updated:** [August 9, 2017, 8:52pm UTC](https://discourse.slicer.org/t/override-automatic-display-of-newly-loaded-volume/846 "2017-08-09T20:52:11Z")

</div>

Writing my first module. When I use the DICOM widget to load an image set, and use a qMRMLNodeComboBox, the newly-loaded node is automatically displayed in the Red, Yellow, and Green MRML slice views. I’m hoping to over…

---

## [ExtensionWizard not uploading my extension](https://discourse.slicer.org/t/extensionwizard-not-uploading-my-extension/829)

<div class="topic-metadata">

**Author:** [@moselhy](https://discourse.slicer.org/u/moselhy)\
**Replies:** 15\
**Last updated:** [August 9, 2017, 3:11pm UTC](https://discourse.slicer.org/t/extensionwizard-not-uploading-my-extension/829 "2017-08-09T15:11:08Z")

</div>

Hello, I am trying to upload this extension, but for some reason I am getting this error about a documentation url… I followed all the instructions here and the --describe option works fine.

---

## [Adding VTK method?](https://discourse.slicer.org/t/adding-vtk-method/832)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 2\
**Last updated:** [August 5, 2017, 11:05pm UTC](https://discourse.slicer.org/t/adding-vtk-method/832 "2017-08-05T23:05:01Z")

</div>

VTK provides a method for determining the center of mass of a dataset. See: https://itk.org/Wiki/VTK/Examples/Cxx/PolyData/CenterOfMass I’m interested in adding this capability to an extension in Slicer, the goal being…

---

## [Capturing Mouse Input](https://discourse.slicer.org/t/capturing-mouse-input/789)

<div class="topic-metadata">

**Author:** [@moselhy](https://discourse.slicer.org/u/moselhy)\
**Replies:** 9\
**Last updated:** [August 5, 2017, 2:39am UTC](https://discourse.slicer.org/t/capturing-mouse-input/789 "2017-08-05T02:39:18Z")

</div>

Hello, I would like to ask the user to input coordinates by clicking on a point in the volume. How do I achieve this? I guess I would prompt them using a QMessageBox, but I would also like to change the pointer to some…

---

## [Minimum required version of CMake updated to 3.5.0](https://discourse.slicer.org/t/minimum-required-version-of-cmake-updated-to-3-5-0/828)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 0\
**Last updated:** [August 4, 2017, 6:44pm UTC](https://discourse.slicer.org/t/minimum-required-version-of-cmake-updated-to-3-5-0/828 "2017-08-04T18:44:29Z")

</div>

As discussed in PR Slicer/Slicer#765, the minimum version of CMake required to build Slicer is now CMake 3.5.0 Associated changes integrated in r26201, r26202 and r26203 This will ensure the CMake version has: suppor…

---

## [Dashboards: CMake updated on Linux, macOS and Windows build machines](https://discourse.slicer.org/t/dashboards-cmake-updated-on-linux-macos-and-windows-build-machines/823)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 0\
**Last updated:** [August 4, 2017, 3:49pm UTC](https://discourse.slicer.org/t/dashboards-cmake-updated-on-linux-macos-and-windows-build-machines/823 "2017-08-04T15:49:08Z")

</div>

Hi Slicers, Just to let you know that the version of CMake used for build, tests and packaging of both Slicer and extensions on the following machines has been updated to CMake 3.9.0: factory-south-ubuntu-64bits.kitwa…

---

## [Specifying coordinate system in surface mesh file](https://discourse.slicer.org/t/specifying-coordinate-system-in-surface-mesh-file/724)

<div class="topic-metadata">

**Author:** [@chribaue](https://discourse.slicer.org/u/chribaue)\
**Replies:** 7\
**Last updated:** [August 4, 2017, 1:19pm UTC](https://discourse.slicer.org/t/specifying-coordinate-system-in-surface-mesh-file/724 "2017-08-04T13:19:17Z")

</div>

---

## [Improving performance to manage thousands of models](https://discourse.slicer.org/t/improving-performance-to-manage-thousands-of-models/813)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 2\
**Last updated:** [August 3, 2017, 4:32pm UTC](https://discourse.slicer.org/t/improving-performance-to-manage-thousands-of-models/813 "2017-08-03T16:32:07Z")

</div>

This topic was created to capture discussion from https://github.com/Slicer/Slicer/pull/490#issuecomment-223869817 As suggested by @lassoan, if someone was time to invest, here are suggestions to address two specific bo…

---

## [Still learning: how to access behaviour of another module in my module](https://discourse.slicer.org/t/still-learning-how-to-access-behaviour-of-another-module-in-my-module/809)

<div class="topic-metadata">

**Author:** [@mschumaker](https://discourse.slicer.org/u/mschumaker)\
**Replies:** 2\
**Last updated:** [August 2, 2017, 6:57pm UTC](https://discourse.slicer.org/t/still-learning-how-to-access-behaviour-of-another-module-in-my-module/809 "2017-08-02T18:57:37Z")

</div>

Hello, I’m still learning how to write my own modules. I would like to replicate the behaviour of the “Show DICOM Browser” button from the DICOM module in a button placed in my own module. I tried using the “Record Macro…

[Previous page](https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&page=125)

[Next page](https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&page=127)
