Name | Icon |
---|---|
SuperLoadableModuleTemplate.png | |
CLIExtensionTemplate.png | |
ScriptedLoadableModuleTemplate.png | |
ScriptedLoadableExtensionTemplate.png | |
ScriptedSegmentEditorEffectExtensionTemplate.png | |
Segm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/env bash | |
# This script allows to patch the Boost libraries changing the occurences of `@rpath` | |
# back to a full path specific to this dashboard. | |
# | |
# This is currently required by Slicer macOS packaging infrastructure. | |
set -euo pipefail | |
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To try this example, save this to a file slicer_plot_data.py, then execute Slicer from the command line | |
# with the arguments `--python-script slicer_plot_data.py`. | |
import qt | |
import vtk | |
import slicer | |
class SlicerPlotData: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This executable allows to find all Qt modules referenced by a set of C++ source files. | |
A Qt module (e.g QtNetwork) aggregates together a collection of Qt classes and is | |
associated with a set of public and private headers. | |
For example, to select multiple files and identify associated Qt modules: | |
QT_INCLUDE_DIR=/path/to/Qt5.15.2/5.15.2/gcc_64/include | |
python FindQtModules.py $QT_INCLUDE_DIR $(find /path/to/Awesome/Lib/ -type f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@staticmethod | |
def convertHtmlToPdf(htmlFilePath, pdfFilePath): | |
""" | |
Convert HTML file to PDF. | |
It returns the tuple ``(success, errorString)``. | |
.. note:: | |
Conversion from HTML to PDF is performed using :func:`slicer.qSlicerWebWidget.printToPdf()` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8.10.2) | |
# | |
# This project allows to configure, build, archive and upload an OpenSSL install tree. | |
# | |
if(DEFINED UPLOAD_PACKAGE_SCRIPT) | |
set(MIDAS_URL "http://packages.kitware.com") | |
set(FOLDER_ID 203) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
REPO=git@github.com:jcfr/pytest-plugins.git | |
#UPSTREAM_REPO=git://github.com/manahl/pytest-plugins.git | |
UPSTREAM_REPO=$REPO | |
UPSTREAM_BRANCH=fix-virtualenv-installed-package-on-windows | |
PACKAGES="pytest-virtualenv" | |
# Since the project `pytest-plugins` contains multiple independent | |
# python projects, it is not directly pip-installable. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
base_dir=$(pwd) && | |
rm -rf zlib* && | |
echo "Cloning zlib" && | |
git clone git://github.com/commontk/zlib.git && | |
echo "Cloning zlib - done" && | |
mkdir zlib-build && | |
mkdir zlib-install && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# To run the script: | |
# | |
# cmake -DDEST=/home/jcfr -P 2015-08-25_test_cmake_download_from_dropbox.cmake | |
# | |
if(NOT EXISTS "${DEST}") | |
set(DEST ".") | |
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.12) | |
set(CMAKE_CXX_STANDARD 11) | |
project(Test) | |
option(${PROJECT_NAME}_SUPERBUILD "Build ${PROJECT_NAME} and the projects it depends on." ON) | |
if(${PROJECT_NAME}_SUPERBUILD) | |
include("${CMAKE_CURRENT_SOURCE_DIR}/SuperBuild.cmake") |