Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ include(${Slicer_USE_FILE})
add_subdirectory(Decimation)
add_subdirectory(SurfaceToolbox)
add_subdirectory(DynamicModeler)
add_subdirectory(SurfaceFeatureExtractor)

## NEXT_MODULE

Expand Down
31 changes: 31 additions & 0 deletions SurfaceFeatureExtractor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#-----------------------------------------------------------------------------
set(MODULE_NAME SurfaceFeatureExtractor)

#-----------------------------------------------------------------------------
set(MODULE_PYTHON_SCRIPTS
${MODULE_NAME}.py
)

set(MODULE_PYTHON_RESOURCES
Resources/Icons/${MODULE_NAME}.png
Resources/UI/${MODULE_NAME}.ui
)

#-----------------------------------------------------------------------------
slicerMacroBuildScriptedModule(
NAME ${MODULE_NAME}
SCRIPTS ${MODULE_PYTHON_SCRIPTS}
RESOURCES ${MODULE_PYTHON_RESOURCES}
WITH_GENERIC_TESTS
)

#-----------------------------------------------------------------------------
if(BUILD_TESTING)

# Register the unittest subclass in the main script as a ctest.
# Note that the test will also be available at runtime.
slicer_add_python_unittest(SCRIPT ${MODULE_NAME}.py)

# Additional build-time testing
add_subdirectory(Testing)
endif()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
228 changes: 228 additions & 0 deletions SurfaceFeatureExtractor/Resources/UI/SurfaceFeatureExtractor.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SurfaceFeatureExtractor</class>
<widget class="qMRMLWidget" name="SurfaceFeatureExtractor">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>269</width>
<height>703</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Input models:</string>
</property>
</widget>
</item>
<item>
<widget class="qMRMLCheckableNodeComboBox" name="CheckableNodeComboBox_inputNodes">
<property name="nodeTypes">
<stringlist>
<string>vtkMRMLModelNode</string>
</stringlist>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Vertex Properties</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="checkBox_position">
<property name="text">
<string>Position</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_normal">
<property name="text">
<string>Normal</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_gaussianCurvature">
<property name="text">
<string>Gaussian Curvature</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_meanCurvature">
<property name="text">
<string>Mean Curvature</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_minimumCurvature">
<property name="text">
<string>Minumum Curvature</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_maximumCurvature">
<property name="text">
<string>Maximum Curvature</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_shapeIndex">
<property name="text">
<string>Shape Index</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_curvedness">
<property name="text">
<string>Curvedness</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Model Properties</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QCheckBox" name="checkBox_surfaceArea">
<property name="text">
<string>Surface Area</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QTableWidget" name="tableWidget_modelProperties">
<property name="minimumSize">
<size>
<width>0</width>
<height>150</height>
</size>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="checkBox_volume">
<property name="text">
<string>Volume</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_compute">
<property name="toolTip">
<string>Perform selected processing steps.</string>
</property>
<property name="text">
<string>Compute</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Data Selection</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_dataSelection"/>
</item>
</layout>
</item>
<item>
<widget class="ctkPathLineEdit" name="PathLineEdit_exportCSV">
<property name="filters">
<set>ctkPathLineEdit::AllEntries|ctkPathLineEdit::Dirs|ctkPathLineEdit::Drives|ctkPathLineEdit::Executable|ctkPathLineEdit::Files|ctkPathLineEdit::NoDot|ctkPathLineEdit::NoDotDot|ctkPathLineEdit::PermissionMask|ctkPathLineEdit::Readable|ctkPathLineEdit::Writable</set>
</property>
<property name="nameFilters">
<stringlist>
<string>*.csv</string>
</stringlist>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_export">
<property name="text">
<string>Export Data Selection to CSV File</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>qMRMLCheckableNodeComboBox</class>
<extends>qMRMLNodeComboBox</extends>
<header>qMRMLCheckableNodeComboBox.h</header>
</customwidget>
<customwidget>
<class>qMRMLNodeComboBox</class>
<extends>QWidget</extends>
<header>qMRMLNodeComboBox.h</header>
</customwidget>
<customwidget>
<class>qMRMLWidget</class>
<extends>QWidget</extends>
<header>qMRMLWidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>ctkPathLineEdit</class>
<extends>QWidget</extends>
<header>ctkPathLineEdit.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>SurfaceFeatureExtractor</sender>
<signal>mrmlSceneChanged(vtkMRMLScene*)</signal>
<receiver>CheckableNodeComboBox_inputNodes</receiver>
<slot>setMRMLScene(vtkMRMLScene*)</slot>
<hints>
<hint type="sourcelabel">
<x>122</x>
<y>132</y>
</hint>
<hint type="destinationlabel">
<x>248</x>
<y>61</y>
</hint>
</hints>
</connection>
</connections>
</ui>
Loading