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
n = getNodes('vtkMRMLGPURayCastVolumeRenderingDisplayNode*').values()[0] | |
highDef = n.GetPerformanceControl() == slicer.vtkMRMLVolumeRenderingDisplayNode.MaximumQuality | |
v = getNode('CTChest') | |
minSpacing = 1.0 | |
if v.GetMinSpacing() > 0: | |
minSpacing = v.GetMinSpacing() | |
sampleDistance = minSpacing / n.GetEstimatedSampleDistance() |
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
kitware@factory-south-ubuntu:~/Dashboards/Nightly/Slicer-0-build/Slicer-build$ ~/Dashboards/Support/cmake-3.1.0-rc3-Linux-x86_64/bin/ctest -R EMSegCL_Task_HumanEye_BRAINS_small -V | |
UpdateCTestConfiguration from :/home/kitware/Dashboards/Nightly/Slicer-0-build/Slicer-build/DartConfiguration.tcl | |
Parse Config file:/home/kitware/Dashboards/Nightly/Slicer-0-build/Slicer-build/DartConfiguration.tcl | |
Add coverage exclude regular expressions. | |
Add coverage exclude: /CMakeFiles/CMakeTmp/ | |
Add coverage exclude: .*/moc_.* | |
Add coverage exclude: .*/ui_.* | |
Add coverage exclude: .*/qrc_.* | |
Add coverage exclude: .*/Testing/.* | |
Add coverage exclude: .*Python.cxx |
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
# Find PythonQt | |
# | |
# Sets PYTHONQT_FOUND, PYTHONQT_INCLUDE_DIR, PYTHONQT_LIBRARY, PYTHONQT_LIBRARIES | |
# | |
# Python is required | |
find_package(PythonLibs) | |
if(NOT PYTHONLIBS_FOUND) | |
message(FATAL_ERROR "error: Python is required to build PythonQt") | |
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 2.8.6) | |
file(WRITE "${CMAKE_SOURCE_DIR}/foo.cpp" | |
" | |
class foo | |
{ | |
public: | |
foo(){} | |
~foo(){} | |
}; |
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
#----------------------------------------------------------------------------- | |
project(TestGitCmd) | |
#----------------------------------------------------------------------------- | |
#----------------------------------------------------------------------------- | |
cmake_minimum_required(VERSION 2.8) | |
#----------------------------------------------------------------------------- | |
find_program(git_EXECUTABLE | |
NAMES git.cmd git eg.cmd eg |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
license_file=~/Projects/Visomics/NOTICE | |
while read i; | |
do | |
echo "Checking $i" | |
if ! grep -q Copyright $i | |
then | |
echo "=> Updating $i" | |
cat $license_file $i >$i.new && mv $i.new $i |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:transform version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" indent="yes" encoding="UTF-8"/> | |
<xsl:template name="newline"><xsl:text> </xsl:text></xsl:template> | |
<!-- Source: http://geekswithblogs.net/Erik/archive/2008/04/01/120915.aspx --> | |
<xsl:template name="string-replace-all"> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:transform version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" indent="yes" encoding="UTF-8"/> | |
<xsl:template match="/executable"> | |
<xsl:value-of select="category" /> | |
</xsl:template> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:transform version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" indent="yes" encoding="UTF-8"/> | |
<xsl:template name="newline"><xsl:text> </xsl:text></xsl:template> | |
<!-- See http://na-mic.org/Mantis/view.php?id=2536 --> | |
<xsl:template match="name"> (<xsl:value-of select="."/>)</xsl:template> |