Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenWalnut Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
95e0b58d
Commit
95e0b58d
authored
Dec 09, 2010
by
ledig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Merge conflicts Win compile and Style
parent
61641d85
Changes
364
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
364 changed files
with
46255 additions
and
45894 deletions
+46255
-45894
src/common/WAssert.cpp
src/common/WAssert.cpp
+49
-49
src/common/WBoundingBox.cpp
src/common/WBoundingBox.cpp
+27
-27
src/common/WColor.cpp
src/common/WColor.cpp
+244
-244
src/common/WCondition.cpp
src/common/WCondition.cpp
+52
-52
src/common/WConditionOneShot.cpp
src/common/WConditionOneShot.cpp
+71
-71
src/common/WConditionSet.cpp
src/common/WConditionSet.cpp
+107
-107
src/common/WException.cpp
src/common/WException.cpp
+199
-199
src/common/WFlag.cpp
src/common/WFlag.cpp
+25
-25
src/common/WFlagForwarder.cpp
src/common/WFlagForwarder.cpp
+26
-26
src/common/WHierarchicalTree.cpp
src/common/WHierarchicalTree.cpp
+59
-59
src/common/WHierarchicalTree.h
src/common/WHierarchicalTree.h
+1
-1
src/common/WHierarchicalTreeFibers.cpp
src/common/WHierarchicalTreeFibers.cpp
+346
-346
src/common/WHistogram.cpp
src/common/WHistogram.cpp
+67
-67
src/common/WHistogramBasic.cpp
src/common/WHistogramBasic.cpp
+102
-102
src/common/WIOTools.cpp
src/common/WIOTools.cpp
+25
-25
src/common/WItemSelection.cpp
src/common/WItemSelection.cpp
+95
-95
src/common/WItemSelectionItem.cpp
src/common/WItemSelectionItem.cpp
+60
-60
src/common/WItemSelector.cpp
src/common/WItemSelector.cpp
+200
-200
src/common/WLimits.cpp
src/common/WLimits.cpp
+25
-25
src/common/WLogEntry.cpp
src/common/WLogEntry.cpp
+111
-111
src/common/WLogStream.cpp
src/common/WLogStream.cpp
+79
-79
src/common/WLogger.cpp
src/common/WLogger.cpp
+119
-119
src/common/WMixinVector.cpp
src/common/WMixinVector.cpp
+27
-26
src/common/WPathHelper.cpp
src/common/WPathHelper.cpp
+154
-153
src/common/WPredicateHelper.cpp
src/common/WPredicateHelper.cpp
+27
-26
src/common/WPreferences.cpp
src/common/WPreferences.cpp
+29
-28
src/common/WProgress.cpp
src/common/WProgress.cpp
+97
-96
src/common/WProgressCombiner.cpp
src/common/WProgressCombiner.cpp
+131
-130
src/common/WProjectFileIO.cpp
src/common/WProjectFileIO.cpp
+42
-41
src/common/WProperties.cpp
src/common/WProperties.cpp
+556
-555
src/common/WPropertyBase.cpp
src/common/WPropertyBase.cpp
+169
-168
src/common/WPropertyHelper.cpp
src/common/WPropertyHelper.cpp
+93
-92
src/common/WPropertyObserver.cpp
src/common/WPropertyObserver.cpp
+144
-143
src/common/WPropertyTypes.cpp
src/common/WPropertyTypes.cpp
+62
-61
src/common/WPropertyVariable.cpp
src/common/WPropertyVariable.cpp
+34
-33
src/common/WPrototyped.cpp
src/common/WPrototyped.cpp
+39
-38
src/common/WRequirement.cpp
src/common/WRequirement.cpp
+37
-36
src/common/WSegmentationFault.cpp
src/common/WSegmentationFault.cpp
+57
-56
src/common/WSharedAssociativeContainer.cpp
src/common/WSharedAssociativeContainer.cpp
+27
-26
src/common/WSharedLib.cpp
src/common/WSharedLib.cpp
+300
-299
src/common/WSharedObject.cpp
src/common/WSharedObject.cpp
+27
-26
src/common/WSharedObjectTicket.cpp
src/common/WSharedObjectTicket.cpp
+29
-28
src/common/WSharedObjectTicketRead.cpp
src/common/WSharedObjectTicketRead.cpp
+29
-28
src/common/WSharedObjectTicketWrite.cpp
src/common/WSharedObjectTicketWrite.cpp
+29
-28
src/common/WSharedSequenceContainer.cpp
src/common/WSharedSequenceContainer.cpp
+27
-26
src/common/WStringUtils.cpp
src/common/WStringUtils.cpp
+93
-92
src/common/WTerminalColor.cpp
src/common/WTerminalColor.cpp
+129
-128
src/common/WThreadedFunction.cpp
src/common/WThreadedFunction.cpp
+26
-25
src/common/WThreadedJobs.cpp
src/common/WThreadedJobs.cpp
+26
-25
src/common/WThreadedRunner.cpp
src/common/WThreadedRunner.cpp
+103
-102
src/common/WTransferable.cpp
src/common/WTransferable.cpp
+40
-39
src/common/WWorkerThread.cpp
src/common/WWorkerThread.cpp
+26
-25
src/common/datastructures/WColoredVertices.cpp
src/common/datastructures/WColoredVertices.cpp
+54
-54
src/common/datastructures/WDendrogram.cpp
src/common/datastructures/WDendrogram.cpp
+45
-45
src/common/datastructures/WFiber.cpp
src/common/datastructures/WFiber.cpp
+108
-108
src/common/datastructures/WUnionFind.cpp
src/common/datastructures/WUnionFind.cpp
+99
-98
src/common/exceptions/WEquationHasNoRoots.cpp
src/common/exceptions/WEquationHasNoRoots.cpp
+38
-38
src/common/exceptions/WFileNotFound.cpp
src/common/exceptions/WFileNotFound.cpp
+38
-38
src/common/exceptions/WFileOpenFailed.cpp
src/common/exceptions/WFileOpenFailed.cpp
+38
-38
src/common/exceptions/WInvalidBoundingBox.cpp
src/common/exceptions/WInvalidBoundingBox.cpp
+38
-38
src/common/exceptions/WLibraryFetchFailed.cpp
src/common/exceptions/WLibraryFetchFailed.cpp
+38
-38
src/common/exceptions/WLibraryLoadFailed.cpp
src/common/exceptions/WLibraryLoadFailed.cpp
+38
-38
src/common/exceptions/WNameNotUnique.cpp
src/common/exceptions/WNameNotUnique.cpp
+39
-38
src/common/exceptions/WNotImplemented.cpp
src/common/exceptions/WNotImplemented.cpp
+39
-38
src/common/exceptions/WOutOfBounds.cpp
src/common/exceptions/WOutOfBounds.cpp
+39
-38
src/common/exceptions/WPreconditionNotMet.cpp
src/common/exceptions/WPreconditionNotMet.cpp
+37
-36
src/common/exceptions/WPropertyNameMalformed.cpp
src/common/exceptions/WPropertyNameMalformed.cpp
+39
-38
src/common/exceptions/WPropertyNotUnique.cpp
src/common/exceptions/WPropertyNotUnique.cpp
+39
-38
src/common/exceptions/WPropertyUnknown.cpp
src/common/exceptions/WPropertyUnknown.cpp
+39
-38
src/common/exceptions/WSignalSubscriptionInvalid.cpp
src/common/exceptions/WSignalSubscriptionInvalid.cpp
+39
-38
src/common/math/WCompileTimeFunctions.cpp
src/common/math/WCompileTimeFunctions.cpp
+26
-26
src/common/math/WGeometryFunctions.cpp
src/common/math/WGeometryFunctions.cpp
+147
-147
src/common/math/WLine.cpp
src/common/math/WLine.cpp
+259
-259
src/common/math/WLinearAlgebraFunctions.cpp
src/common/math/WLinearAlgebraFunctions.cpp
+329
-329
src/common/math/WMath.cpp
src/common/math/WMath.cpp
+108
-108
src/common/math/WMatrix.cpp
src/common/math/WMatrix.cpp
+26
-25
src/common/math/WMatrixSym.cpp
src/common/math/WMatrixSym.cpp
+26
-25
src/common/math/WMatrixSym.h
src/common/math/WMatrixSym.h
+1
-1
src/common/math/WOSSIMHelper.cpp
src/common/math/WOSSIMHelper.cpp
+127
-126
src/common/math/WPlane.cpp
src/common/math/WPlane.cpp
+166
-165
src/common/math/WPolynomialEquationSolvers.cpp
src/common/math/WPolynomialEquationSolvers.cpp
+26
-25
src/common/math/WPosition.cpp
src/common/math/WPosition.cpp
+27
-26
src/common/math/WSymmetricSphericalHarmonic.cpp
src/common/math/WSymmetricSphericalHarmonic.cpp
+369
-368
src/common/math/WTensor.cpp
src/common/math/WTensor.cpp
+26
-25
src/common/math/WTensorBase.cpp
src/common/math/WTensorBase.cpp
+27
-26
src/common/math/WTensorFunctions.cpp
src/common/math/WTensorFunctions.cpp
+66
-65
src/common/math/WTensorSym.cpp
src/common/math/WTensorSym.cpp
+41
-40
src/common/math/WUnitSphereCoordinates.cpp
src/common/math/WUnitSphereCoordinates.cpp
+79
-78
src/common/math/WValue.cpp
src/common/math/WValue.cpp
+26
-25
src/common/math/WVector3D.cpp
src/common/math/WVector3D.cpp
+26
-25
src/dataHandler/WCreateColorArraysThread.cpp
src/dataHandler/WCreateColorArraysThread.cpp
+148
-147
src/dataHandler/WDataHandler.cpp
src/dataHandler/WDataHandler.cpp
+158
-157
src/dataHandler/WDataHandlerEnums.cpp
src/dataHandler/WDataHandlerEnums.cpp
+26
-25
src/dataHandler/WDataSet.cpp
src/dataHandler/WDataSet.cpp
+122
-121
src/dataHandler/WDataSetDTI.cpp
src/dataHandler/WDataSetDTI.cpp
+52
-51
src/dataHandler/WDataSetFiberVector.cpp
src/dataHandler/WDataSetFiberVector.cpp
+172
-171
src/dataHandler/WDataSetFibers.cpp
src/dataHandler/WDataSetFibers.cpp
+510
-492
src/dataHandler/WDataSetRawHARDI.cpp
src/dataHandler/WDataSetRawHARDI.cpp
+101
-100
src/dataHandler/WDataSetScalar.cpp
src/dataHandler/WDataSetScalar.cpp
+155
-154
src/dataHandler/WDataSetSingle.cpp
src/dataHandler/WDataSetSingle.cpp
+158
-157
src/dataHandler/WDataSetSphericalHarmonics.cpp
src/dataHandler/WDataSetSphericalHarmonics.cpp
+140
-139
src/dataHandler/WDataSetTimeSeries.cpp
src/dataHandler/WDataSetTimeSeries.cpp
+243
-242
src/dataHandler/WDataSetVector.cpp
src/dataHandler/WDataSetVector.cpp
+154
-153
src/dataHandler/WDataTexture3D.cpp
src/dataHandler/WDataTexture3D.cpp
+538
-537
src/dataHandler/WDataTexture3D_2.cpp
src/dataHandler/WDataTexture3D_2.cpp
+116
-115
src/dataHandler/WEEG.cpp
src/dataHandler/WEEG.cpp
+98
-97
src/dataHandler/WEEG2.cpp
src/dataHandler/WEEG2.cpp
+152
-151
src/dataHandler/WEEG2Segment.cpp
src/dataHandler/WEEG2Segment.cpp
+74
-73
src/dataHandler/WEEGChannelInfo.cpp
src/dataHandler/WEEGChannelInfo.cpp
+96
-95
src/dataHandler/WEEGPositionsLibrary.cpp
src/dataHandler/WEEGPositionsLibrary.cpp
+54
-53
src/dataHandler/WFiberAccumulator.cpp
src/dataHandler/WFiberAccumulator.cpp
+88
-87
src/dataHandler/WGrid.cpp
src/dataHandler/WGrid.cpp
+46
-45
src/dataHandler/WGridRegular3D.cpp
src/dataHandler/WGridRegular3D.cpp
+1114
-1114
src/dataHandler/WITKImageConversion.cpp
src/dataHandler/WITKImageConversion.cpp
+26
-25
src/dataHandler/WPersonalInformation.cpp
src/dataHandler/WPersonalInformation.cpp
+127
-126
src/dataHandler/WRecording.cpp
src/dataHandler/WRecording.cpp
+59
-58
src/dataHandler/WSubject.cpp
src/dataHandler/WSubject.cpp
+167
-166
src/dataHandler/WThreadedPerVoxelOperation.cpp
src/dataHandler/WThreadedPerVoxelOperation.cpp
+26
-25
src/dataHandler/WThreadedTrackingFunction.cpp
src/dataHandler/WThreadedTrackingFunction.cpp
+362
-361
src/dataHandler/WValueSet.cpp
src/dataHandler/WValueSet.cpp
+26
-25
src/dataHandler/WValueSet.h
src/dataHandler/WValueSet.h
+1
-1
src/dataHandler/WValueSetBase.cpp
src/dataHandler/WValueSetBase.cpp
+44
-43
src/dataHandler/datastructures/WFiberCluster.cpp
src/dataHandler/datastructures/WFiberCluster.cpp
+378
-377
src/dataHandler/datastructures/WJoinContourTree.cpp
src/dataHandler/datastructures/WJoinContourTree.cpp
+152
-151
src/dataHandler/datastructures/WValueSetHistogram.cpp
src/dataHandler/datastructures/WValueSetHistogram.cpp
+265
-264
src/dataHandler/datastructures/test/WJoinContourTree_test.h
src/dataHandler/datastructures/test/WJoinContourTree_test.h
+3
-1
src/dataHandler/datastructures/test/WValueSetHistogram_test.h
...dataHandler/datastructures/test/WValueSetHistogram_test.h
+18
-9
src/dataHandler/exceptions/WDHException.cpp
src/dataHandler/exceptions/WDHException.cpp
+39
-38
src/dataHandler/exceptions/WDHIOFailure.cpp
src/dataHandler/exceptions/WDHIOFailure.cpp
+41
-40
src/dataHandler/exceptions/WDHNoSuchDataSet.cpp
src/dataHandler/exceptions/WDHNoSuchDataSet.cpp
+39
-38
src/dataHandler/exceptions/WDHNoSuchFile.cpp
src/dataHandler/exceptions/WDHNoSuchFile.cpp
+39
-38
src/dataHandler/exceptions/WDHNoSuchSubject.cpp
src/dataHandler/exceptions/WDHNoSuchSubject.cpp
+39
-38
src/dataHandler/exceptions/WDHParseError.cpp
src/dataHandler/exceptions/WDHParseError.cpp
+41
-40
src/dataHandler/io/WPagerEEG.cpp
src/dataHandler/io/WPagerEEG.cpp
+49
-48
src/dataHandler/io/WPagerEEGLibeep.cpp
src/dataHandler/io/WPagerEEGLibeep.cpp
+188
-187
src/dataHandler/io/WReader.cpp
src/dataHandler/io/WReader.cpp
+44
-43
src/dataHandler/io/WReaderBiosig.cpp
src/dataHandler/io/WReaderBiosig.cpp
+165
-164
src/dataHandler/io/WReaderEEG.cpp
src/dataHandler/io/WReaderEEG.cpp
+111
-110
src/dataHandler/io/WReaderEEGASCII.cpp
src/dataHandler/io/WReaderEEGASCII.cpp
+91
-90
src/dataHandler/io/WReaderELC.cpp
src/dataHandler/io/WReaderELC.cpp
+152
-151
src/dataHandler/io/WReaderFiberVTK.cpp
src/dataHandler/io/WReaderFiberVTK.cpp
+208
-207
src/dataHandler/io/WReaderLibeep.cpp
src/dataHandler/io/WReaderLibeep.cpp
+120
-119
src/dataHandler/io/WReaderMatrixSymVTK.cpp
src/dataHandler/io/WReaderMatrixSymVTK.cpp
+135
-134
src/dataHandler/io/WReaderNIfTI.cpp
src/dataHandler/io/WReaderNIfTI.cpp
+393
-392
src/dataHandler/io/WWriter.cpp
src/dataHandler/io/WWriter.cpp
+45
-44
src/dataHandler/io/WWriterFiberVTK.cpp
src/dataHandler/io/WWriterFiberVTK.cpp
+98
-97
src/dataHandler/io/WWriterMatrixSymVTK.cpp
src/dataHandler/io/WWriterMatrixSymVTK.cpp
+68
-67
src/dataHandler/io/biosigWin/biosig.cpp
src/dataHandler/io/biosigWin/biosig.cpp
+13
-13
src/dataHandler/io/biosigWin/codes.h
src/dataHandler/io/biosigWin/codes.h
+17
-17
src/dataHandler/io/biosigWin/sopen_alpha_read.cpp
src/dataHandler/io/biosigWin/sopen_alpha_read.cpp
+1
-1
src/dataHandler/io/biosigWin/sopen_famos_read.cpp
src/dataHandler/io/biosigWin/sopen_famos_read.cpp
+2
-2
src/dataHandler/io/biosigWin/sopen_hl7aecg.cpp
src/dataHandler/io/biosigWin/sopen_hl7aecg.cpp
+4
-4
src/dataHandler/io/biosigWin/sopen_scp_read.cpp
src/dataHandler/io/biosigWin/sopen_scp_read.cpp
+2
-2
src/dataHandler/io/biosigWin/sopen_scp_write.cpp
src/dataHandler/io/biosigWin/sopen_scp_write.cpp
+3
-3
src/dataHandler/io/biosigWin/structures.h
src/dataHandler/io/biosigWin/structures.h
+4
-4
src/dataHandler/test/WDataSetDTI_test.h
src/dataHandler/test/WDataSetDTI_test.h
+5
-2
src/dataHandler/test/WDataSetScalar_test.h
src/dataHandler/test/WDataSetScalar_test.h
+3
-1
src/dataHandler/test/WDataSetSingle_test.h
src/dataHandler/test/WDataSetSingle_test.h
+6
-2
src/dataHandler/test/WDataSetTimeSeries_test.h
src/dataHandler/test/WDataSetTimeSeries_test.h
+15
-5
src/dataHandler/test/WDataSetVector_test.h
src/dataHandler/test/WDataSetVector_test.h
+6
-2
src/dataHandler/test/WThreadedPerVoxelOperation_test.h
src/dataHandler/test/WThreadedPerVoxelOperation_test.h
+3
-1
src/dataHandler/test/WThreadedTrackingFunction_test.h
src/dataHandler/test/WThreadedTrackingFunction_test.h
+6
-2
src/dataHandler/test/WValueSet_test.h
src/dataHandler/test/WValueSet_test.h
+24
-12
src/graphicsEngine/WFiberDrawable.cpp
src/graphicsEngine/WFiberDrawable.cpp
+141
-140
src/graphicsEngine/WGE2DManipulator.cpp
src/graphicsEngine/WGE2DManipulator.cpp
+206
-205
src/graphicsEngine/WGEBorderLayout.cpp
src/graphicsEngine/WGEBorderLayout.cpp
+151
-150
src/graphicsEngine/WGECamera.cpp
src/graphicsEngine/WGECamera.cpp
+82
-82
src/graphicsEngine/WGEColormapping.cpp
src/graphicsEngine/WGEColormapping.cpp
+121
-120
src/graphicsEngine/WGEGeodeUtils.cpp
src/graphicsEngine/WGEGeodeUtils.cpp
+438
-437
src/graphicsEngine/WGEGeometryUtils.cpp
src/graphicsEngine/WGEGeometryUtils.cpp
+158
-157
src/graphicsEngine/WGEGraphicsWindow.cpp
src/graphicsEngine/WGEGraphicsWindow.cpp
+26
-25
src/graphicsEngine/WGEGroupNode.cpp
src/graphicsEngine/WGEGroupNode.cpp
+154
-154
src/graphicsEngine/WGELabel.cpp
src/graphicsEngine/WGELabel.cpp
+58
-57
src/graphicsEngine/WGELayoutableItem.cpp
src/graphicsEngine/WGELayoutableItem.cpp
+37
-36
src/graphicsEngine/WGEManagedGroupNode.cpp
src/graphicsEngine/WGEManagedGroupNode.cpp
+45
-44
src/graphicsEngine/WGEOffscreenFinalPass.cpp
src/graphicsEngine/WGEOffscreenFinalPass.cpp
+79
-78
src/graphicsEngine/WGEOffscreenRenderNode.cpp
src/graphicsEngine/WGEOffscreenRenderNode.cpp
+103
-102
src/graphicsEngine/WGEOffscreenRenderPass.cpp
src/graphicsEngine/WGEOffscreenRenderPass.cpp
+203
-202
src/graphicsEngine/WGEOffscreenTexturePass.cpp
src/graphicsEngine/WGEOffscreenTexturePass.cpp
+98
-98
src/graphicsEngine/WGEProjectFileIO.cpp
src/graphicsEngine/WGEProjectFileIO.cpp
+278
-278
src/graphicsEngine/WGEPropertyUniform.cpp
src/graphicsEngine/WGEPropertyUniform.cpp
+27
-26
src/graphicsEngine/WGERequirement.cpp
src/graphicsEngine/WGERequirement.cpp
+52
-51
src/graphicsEngine/WGEScene.cpp
src/graphicsEngine/WGEScene.cpp
+52
-51
src/graphicsEngine/WGESignals.cpp
src/graphicsEngine/WGESignals.cpp
+27
-26
src/graphicsEngine/WGESubdividedPlane.cpp
src/graphicsEngine/WGESubdividedPlane.cpp
+26
-26
src/graphicsEngine/WGETexture.cpp
src/graphicsEngine/WGETexture.cpp
+26
-26
src/graphicsEngine/WGETextureHud.cpp
src/graphicsEngine/WGETextureHud.cpp
+318
-318
src/graphicsEngine/WGETypeTraits.cpp
src/graphicsEngine/WGETypeTraits.cpp
+27
-26
src/graphicsEngine/WGEUniformTypeTraits.cpp
src/graphicsEngine/WGEUniformTypeTraits.cpp
+27
-26
src/graphicsEngine/WGEUtils.cpp
src/graphicsEngine/WGEUtils.cpp
+165
-165
src/graphicsEngine/WGEViewer.cpp
src/graphicsEngine/WGEViewer.cpp
+25
-25
src/graphicsEngine/WGEViewer.h
src/graphicsEngine/WGEViewer.h
+1
-1
src/graphicsEngine/WGEZoomTrackballManipulator.cpp
src/graphicsEngine/WGEZoomTrackballManipulator.cpp
+164
-163
src/graphicsEngine/WGraphicsEngine.cpp
src/graphicsEngine/WGraphicsEngine.cpp
+26
-25
src/graphicsEngine/WPickHandler.cpp
src/graphicsEngine/WPickHandler.cpp
+313
-312
src/graphicsEngine/WPickInfo.cpp
src/graphicsEngine/WPickInfo.cpp
+26
-26
src/graphicsEngine/WROI.cpp
src/graphicsEngine/WROI.cpp
+135
-134
src/graphicsEngine/WROIArbitrary.cpp
src/graphicsEngine/WROIArbitrary.cpp
+206
-206
src/graphicsEngine/WROIBox.cpp
src/graphicsEngine/WROIBox.cpp
+347
-346
src/graphicsEngine/WROISphere.cpp
src/graphicsEngine/WROISphere.cpp
+281
-280
src/graphicsEngine/WShader.cpp
src/graphicsEngine/WShader.cpp
+355
-355
src/graphicsEngine/WTriangleMesh.cpp
src/graphicsEngine/WTriangleMesh.cpp
+748
-747
src/graphicsEngine/algorithms/WMarchingCubesAlgorithm.cpp
src/graphicsEngine/algorithms/WMarchingCubesAlgorithm.cpp
+88
-87
src/graphicsEngine/algorithms/WMarchingLegoAlgorithm.cpp
src/graphicsEngine/algorithms/WMarchingLegoAlgorithm.cpp
+287
-286
src/graphicsEngine/algorithms/marchingCubesCaseTables.cpp
src/graphicsEngine/algorithms/marchingCubesCaseTables.cpp
+26
-25
src/graphicsEngine/callbacks/WGEFunctorCallback.cpp
src/graphicsEngine/callbacks/WGEFunctorCallback.cpp
+27
-26
src/graphicsEngine/callbacks/WGELinearTranslationCallback.cpp
...graphicsEngine/callbacks/WGELinearTranslationCallback.cpp
+27
-26
src/graphicsEngine/callbacks/WGENodeMaskCallback.cpp
src/graphicsEngine/callbacks/WGENodeMaskCallback.cpp
+66
-65
src/graphicsEngine/callbacks/WGEPropertyUniformCallback.cpp
src/graphicsEngine/callbacks/WGEPropertyUniformCallback.cpp
+27
-26
src/graphicsEngine/callbacks/WGEShaderAnimationCallback.cpp
src/graphicsEngine/callbacks/WGEShaderAnimationCallback.cpp
+46
-45
src/graphicsEngine/callbacks/WGEViewportCallback.cpp
src/graphicsEngine/callbacks/WGEViewportCallback.cpp
+27
-26
src/graphicsEngine/exceptions/WGEException.cpp
src/graphicsEngine/exceptions/WGEException.cpp
+40
-39
src/graphicsEngine/exceptions/WGEInitFailed.cpp
src/graphicsEngine/exceptions/WGEInitFailed.cpp
+39
-38
src/graphicsEngine/exceptions/WGESignalSubscriptionFailed.cpp
...graphicsEngine/exceptions/WGESignalSubscriptionFailed.cpp
+39
-38
src/graphicsEngine/platformDependent/WGEGraphicsWindowAll.cpp
...graphicsEngine/platformDependent/WGEGraphicsWindowAll.cpp
+168
-167
src/graphicsEngine/platformDependent/WGEViewerAll.cpp
src/graphicsEngine/platformDependent/WGEViewerAll.cpp
+178
-177
src/graphicsEngine/platformDependent/WGraphicsEngineAll.cpp
src/graphicsEngine/platformDependent/WGraphicsEngineAll.cpp
+213
-212
src/gui/WCustomWidget.cpp
src/gui/WCustomWidget.cpp
+30
-29
src/gui/WGUI.cpp
src/gui/WGUI.cpp
+46
-45
src/gui/qt4/WCfgOperations.cpp
src/gui/qt4/WCfgOperations.cpp
+410
-409
src/gui/qt4/WIconManager.cpp
src/gui/qt4/WIconManager.cpp
+58
-57
src/gui/qt4/WMainWindow.cpp
src/gui/qt4/WMainWindow.cpp
+992
-991
src/gui/qt4/WQt4Gui.cpp
src/gui/qt4/WQt4Gui.cpp
+345
-344
src/gui/qt4/WQtCombinerActionList.cpp
src/gui/qt4/WQtCombinerActionList.cpp
+121
-120
src/gui/qt4/WQtCombinerToolbar.cpp
src/gui/qt4/WQtCombinerToolbar.cpp
+83
-82
src/gui/qt4/WQtConfigWidget.cpp
src/gui/qt4/WQtConfigWidget.cpp
+1250
-1249
src/gui/qt4/WQtCustomDockWidget.cpp
src/gui/qt4/WQtCustomDockWidget.cpp
+74
-73
src/gui/qt4/WQtGLWidget.cpp
src/gui/qt4/WQtGLWidget.cpp
+26
-25
src/gui/qt4/WQtNavGLWidget.cpp
src/gui/qt4/WQtNavGLWidget.cpp
+97
-96
src/gui/qt4/WQtToolBar.cpp
src/gui/qt4/WQtToolBar.cpp
+86
-85
src/gui/qt4/controlPanel/WPropertyBoolWidget.cpp
src/gui/qt4/controlPanel/WPropertyBoolWidget.cpp
+70
-69
src/gui/qt4/controlPanel/WPropertyColorWidget.cpp
src/gui/qt4/controlPanel/WPropertyColorWidget.cpp
+115
-114
src/gui/qt4/controlPanel/WPropertyDoubleWidget.cpp
src/gui/qt4/controlPanel/WPropertyDoubleWidget.cpp
+162
-161
src/gui/qt4/controlPanel/WPropertyFilenameWidget.cpp
src/gui/qt4/controlPanel/WPropertyFilenameWidget.cpp
+110
-109
src/gui/qt4/controlPanel/WPropertyIntWidget.cpp
src/gui/qt4/controlPanel/WPropertyIntWidget.cpp
+155
-154
src/gui/qt4/controlPanel/WPropertyPositionWidget.cpp
src/gui/qt4/controlPanel/WPropertyPositionWidget.cpp
+156
-155
src/gui/qt4/controlPanel/WPropertySelectionWidget.cpp
src/gui/qt4/controlPanel/WPropertySelectionWidget.cpp
+281
-280
src/gui/qt4/controlPanel/WPropertyStringWidget.cpp
src/gui/qt4/controlPanel/WPropertyStringWidget.cpp
+93
-92
src/gui/qt4/controlPanel/WPropertyTriggerWidget.cpp
src/gui/qt4/controlPanel/WPropertyTriggerWidget.cpp
+81
-80
src/gui/qt4/controlPanel/WPropertyWidget.cpp
src/gui/qt4/controlPanel/WPropertyWidget.cpp
+130
-129
src/gui/qt4/controlPanel/WQtBranchTreeItem.cpp
src/gui/qt4/controlPanel/WQtBranchTreeItem.cpp
+54
-53
src/gui/qt4/controlPanel/WQtControlPanel.cpp
src/gui/qt4/controlPanel/WQtControlPanel.cpp
+1036
-1035
src/gui/qt4/controlPanel/WQtDatasetTreeItem.cpp
src/gui/qt4/controlPanel/WQtDatasetTreeItem.cpp
+40
-39
src/gui/qt4/controlPanel/WQtModuleHeaderTreeItem.cpp
src/gui/qt4/controlPanel/WQtModuleHeaderTreeItem.cpp
+47
-46
src/gui/qt4/controlPanel/WQtModuleTreeItem.cpp
src/gui/qt4/controlPanel/WQtModuleTreeItem.cpp
+38
-37
src/gui/qt4/controlPanel/WQtPropertyGroupWidget.cpp
src/gui/qt4/controlPanel/WQtPropertyGroupWidget.cpp
+195
-194
src/gui/qt4/controlPanel/WQtRoiHeaderTreeItem.cpp
src/gui/qt4/controlPanel/WQtRoiHeaderTreeItem.cpp
+48
-47
src/gui/qt4/controlPanel/WQtRoiTreeItem.cpp
src/gui/qt4/controlPanel/WQtRoiTreeItem.cpp
+54
-53
src/gui/qt4/controlPanel/WQtSubjectTreeItem.cpp
src/gui/qt4/controlPanel/WQtSubjectTreeItem.cpp
+48
-47
src/gui/qt4/controlPanel/WQtTextureSorter.cpp
src/gui/qt4/controlPanel/WQtTextureSorter.cpp
+277
-276
src/gui/qt4/controlPanel/WQtTreeItem.cpp
src/gui/qt4/controlPanel/WQtTreeItem.cpp
+257
-256
src/gui/qt4/controlPanel/WQtTreeWidget.cpp
src/gui/qt4/controlPanel/WQtTreeWidget.cpp
+51
-50
src/gui/qt4/events/WModuleAssocEvent.cpp
src/gui/qt4/events/WModuleAssocEvent.cpp
+46
-45
src/gui/qt4/events/WModuleConnectEvent.cpp
src/gui/qt4/events/WModuleConnectEvent.cpp
+52
-51
src/gui/qt4/events/WModuleCrashEvent.cpp
src/gui/qt4/events/WModuleCrashEvent.cpp
+54
-53
src/gui/qt4/events/WModuleDeleteEvent.cpp
src/gui/qt4/events/WModuleDeleteEvent.cpp
+46
-45
src/gui/qt4/events/WModuleDisconnectEvent.cpp
src/gui/qt4/events/WModuleDisconnectEvent.cpp
+52
-51
src/gui/qt4/events/WModuleReadyEvent.cpp
src/gui/qt4/events/WModuleReadyEvent.cpp
+46
-45
src/gui/qt4/events/WModuleRemovedEvent.cpp
src/gui/qt4/events/WModuleRemovedEvent.cpp
+46
-45
src/gui/qt4/events/WOpenCustomDockWidgetEvent.cpp
src/gui/qt4/events/WOpenCustomDockWidgetEvent.cpp
+52
-51
src/gui/qt4/events/WPropertyChangedEvent.cpp
src/gui/qt4/events/WPropertyChangedEvent.cpp
+40
-39
src/gui/qt4/events/WRoiAssocEvent.cpp
src/gui/qt4/events/WRoiAssocEvent.cpp
+45
-44
src/gui/qt4/events/WRoiRemoveEvent.cpp
src/gui/qt4/events/WRoiRemoveEvent.cpp
+45
-44
src/gui/qt4/events/WUpdateTextureSorterEvent.cpp
src/gui/qt4/events/WUpdateTextureSorterEvent.cpp
+40
-39
src/gui/qt4/guiElements/WQtModuleOneToOneCombinerAction.cpp
src/gui/qt4/guiElements/WQtModuleOneToOneCombinerAction.cpp
+87
-86
src/gui/qt4/guiElements/WQtPropertyBoolAction.cpp
src/gui/qt4/guiElements/WQtPropertyBoolAction.cpp
+83
-82
src/gui/qt4/guiElements/WQtPushButton.cpp
src/gui/qt4/guiElements/WQtPushButton.cpp
+61
-60
src/gui/qt4/platformDependent/WQtGLWidgetAll.cpp
src/gui/qt4/platformDependent/WQtGLWidgetAll.cpp
+282
-281
src/gui/qt4/ribbonMenu/WQtMenuPage.cpp
src/gui/qt4/ribbonMenu/WQtMenuPage.cpp
+71
-70
src/gui/qt4/ribbonMenu/WQtRibbonMenu.cpp
src/gui/qt4/ribbonMenu/WQtRibbonMenu.cpp
+106
-105
src/kernel/WBatchLoader.cpp
src/kernel/WBatchLoader.cpp
+79
-78
src/kernel/WCrosshair.cpp
src/kernel/WCrosshair.cpp
+37
-36
src/kernel/WFiberSelector.cpp
src/kernel/WFiberSelector.cpp
+170
-169
src/kernel/WKdTree.cpp
src/kernel/WKdTree.cpp
+120
-119
src/kernel/WKernel.cpp
src/kernel/WKernel.cpp
+212
-211
src/kernel/WModule.cpp
src/kernel/WModule.cpp
+596
-595
src/kernel/WModuleCombiner.cpp
src/kernel/WModuleCombiner.cpp
+74
-74
src/kernel/WModuleCombinerTypes.cpp
src/kernel/WModuleCombinerTypes.cpp
+35
-34
src/kernel/WModuleConnector.cpp
src/kernel/WModuleConnector.cpp
+395
-394
src/kernel/WModuleConnectorSignals.cpp
src/kernel/WModuleConnectorSignals.cpp
+27
-26
src/kernel/WModuleContainer.cpp
src/kernel/WModuleContainer.cpp
+527
-527
src/kernel/WModuleFactory.cpp
src/kernel/WModuleFactory.cpp
+244
-243
src/kernel/WModuleInputConnector.cpp
src/kernel/WModuleInputConnector.cpp
+153
-152
src/kernel/WModuleInputData.cpp
src/kernel/WModuleInputData.cpp
+27
-26
src/kernel/WModuleInputForwardData.cpp
src/kernel/WModuleInputForwardData.cpp
+28
-27
src/kernel/WModuleLoader.cpp
src/kernel/WModuleLoader.cpp
+155
-154
src/kernel/WModuleLoader.h
src/kernel/WModuleLoader.h
+1
-1
src/kernel/WModuleOutputConnector.cpp
src/kernel/WModuleOutputConnector.cpp
+87
-86
src/kernel/WModuleOutputData.cpp
src/kernel/WModuleOutputData.cpp
+27
-26
src/kernel/WModuleOutputForwardData.cpp
src/kernel/WModuleOutputForwardData.cpp
+27
-27
src/kernel/WModuleSignals.cpp
src/kernel/WModuleSignals.cpp
+27
-26
src/kernel/WModuleTypes.cpp
src/kernel/WModuleTypes.cpp
+26
-28
src/kernel/WProjectFile.cpp
src/kernel/WProjectFile.cpp
+190
-189
src/kernel/WPrototypeRequirement.cpp
src/kernel/WPrototypeRequirement.cpp
+53
-52
src/kernel/WRMBranch.cpp
src/kernel/WRMBranch.cpp
+147
-146
src/kernel/WROIManager.cpp
src/kernel/WROIManager.cpp
+195
-194
src/kernel/WRoiProjectFileIO.cpp
src/kernel/WRoiProjectFileIO.cpp
+65
-64
src/kernel/WSelectionManager.cpp
src/kernel/WSelectionManager.cpp
+214
-213
src/kernel/WSelectorBranch.cpp
src/kernel/WSelectorBranch.cpp
+154
-153
src/kernel/WSelectorRoi.cpp
src/kernel/WSelectorRoi.cpp
+149
-148
src/kernel/combiner/WApplyCombiner.cpp
src/kernel/combiner/WApplyCombiner.cpp
+112
-111
src/kernel/combiner/WDisconnectCombiner.cpp
src/kernel/combiner/WDisconnectCombiner.cpp
+70
-69
src/kernel/combiner/WModuleOneToOneCombiner.cpp
src/kernel/combiner/WModuleOneToOneCombiner.cpp
+76
-75
src/kernel/combiner/WModuleProjectFileCombiner.cpp
src/kernel/combiner/WModuleProjectFileCombiner.cpp
+411
-410
src/kernel/exceptions/WKernelException.cpp
src/kernel/exceptions/WKernelException.cpp
+41
-40
src/kernel/exceptions/WModuleAlreadyAssociated.cpp
src/kernel/exceptions/WModuleAlreadyAssociated.cpp
+41
-40
src/kernel/exceptions/WModuleConnectionFailed.cpp
src/kernel/exceptions/WModuleConnectionFailed.cpp
+41
-40
src/kernel/exceptions/WModuleConnectionInvalid.cpp
src/kernel/exceptions/WModuleConnectionInvalid.cpp
+41
-40
src/kernel/exceptions/WModuleConnectorInitFailed.cpp
src/kernel/exceptions/WModuleConnectorInitFailed.cpp
+41
-40
src/kernel/exceptions/WModuleConnectorNotFound.cpp
src/kernel/exceptions/WModuleConnectorNotFound.cpp
+41
-40
src/kernel/exceptions/WModuleConnectorUnconnected.cpp
src/kernel/exceptions/WModuleConnectorUnconnected.cpp
+41
-40
src/kernel/exceptions/WModuleConnectorsIncompatible.cpp
src/kernel/exceptions/WModuleConnectorsIncompatible.cpp
+41
-40
src/kernel/exceptions/WModuleDisconnectFailed.cpp
src/kernel/exceptions/WModuleDisconnectFailed.cpp
+41
-40
src/kernel/exceptions/WModuleException.cpp
src/kernel/exceptions/WModuleException.cpp
+41
-40
src/kernel/exceptions/WModuleRequirementNotMet.cpp
src/kernel/exceptions/WModuleRequirementNotMet.cpp
+43
-42
src/kernel/exceptions/WModuleSignalSubscriptionFailed.cpp
src/kernel/exceptions/WModuleSignalSubscriptionFailed.cpp
+41
-40
src/kernel/exceptions/WModuleSignalUnknown.cpp
src/kernel/exceptions/WModuleSignalUnknown.cpp
+41
-40
src/kernel/exceptions/WModuleUninitialized.cpp
src/kernel/exceptions/WModuleUninitialized.cpp
+40
-39
src/kernel/exceptions/WPrototypeNotUnique.cpp
src/kernel/exceptions/WPrototypeNotUnique.cpp
+39
-38
src/kernel/exceptions/WPrototypeUnknown.cpp
src/kernel/exceptions/WPrototypeUnknown.cpp
+39
-38
src/kernel/modules/data/WMData.cpp
src/kernel/modules/data/WMData.cpp
+451
-450
src/kernel/modules/navSlices/WMNavSlices.cpp
src/kernel/modules/navSlices/WMNavSlices.cpp
+1346
-1346
src/modules/arbitraryRois/WMArbitraryRois.h
src/modules/arbitraryRois/WMArbitraryRois.h
+2
-1
src/modules/atlasCreator/WMAtlasCreator.cpp
src/modules/atlasCreator/WMAtlasCreator.cpp
+1
-1
src/modules/atlasSurfaces/WCreateSurfaceJob.h
src/modules/atlasSurfaces/WCreateSurfaceJob.h
+4
-2
src/modules/clusterDisplay/WDendrogramGeode.cpp
src/modules/clusterDisplay/WDendrogramGeode.cpp
+221
-220
src/modules/clusterDisplay/WMClusterDisplay.cpp
src/modules/clusterDisplay/WMClusterDisplay.cpp
+1011
-1010
src/modules/clusterDisplay/WOSGButton.cpp
src/modules/clusterDisplay/WOSGButton.cpp
+60
-59
src/modules/clusterDisplay/WOSGButtonLabel.cpp
src/modules/clusterDisplay/WOSGButtonLabel.cpp
+63
-62
src/modules/coordinateSystem/WCoordConverter.cpp
src/modules/coordinateSystem/WCoordConverter.cpp
+174
-172
src/modules/coordinateSystem/WMCoordinateSystem.cpp
src/modules/coordinateSystem/WMCoordinateSystem.cpp
+803
-801
src/modules/coordinateSystem/WRuler.cpp
src/modules/coordinateSystem/WRuler.cpp
+36
-35
src/modules/coordinateSystem/WRulerOrtho.cpp
src/modules/coordinateSystem/WRulerOrtho.cpp
+598
-597
src/modules/coordinateSystem/WTalairachConverter.cpp
src/modules/coordinateSystem/WTalairachConverter.cpp
+351
-350
src/modules/datasetManipulator/WMDatasetManipulator.cpp
src/modules/datasetManipulator/WMDatasetManipulator.cpp
+10
-7
src/modules/detTractClustering/WCheckCudaError.cpp
src/modules/detTractClustering/WCheckCudaError.cpp
+45
-44
src/modules/detTractClustering/WMDetTractClustering.cpp
src/modules/detTractClustering/WMDetTractClustering.cpp
+492
-491
src/modules/detTractClustering/WMDetTractClusteringCudaInterface.cpp
.../detTractClustering/WMDetTractClusteringCudaInterface.cpp
+100
-99
src/modules/detTractClustering/WProgressWrapper.cpp
src/modules/detTractClustering/WProgressWrapper.cpp
+58
-57
src/modules/distanceMap/WMDistanceMap.cpp
src/modules/distanceMap/WMDistanceMap.cpp
+1
-1
src/modules/histogramEqualization/WMHistogramEqualization.cpp
...modules/histogramEqualization/WMHistogramEqualization.cpp
+8
-5
src/modules/lic/WMLIC.cpp
src/modules/lic/WMLIC.cpp
+265
-265
src/modules/scalarOperator/WMScalarOperator.cpp
src/modules/scalarOperator/WMScalarOperator.cpp
+4
-1
src/modules/scalarSegmentation/WMScalarSegmentation.cpp
src/modules/scalarSegmentation/WMScalarSegmentation.cpp
+190
-189
src/modules/scalarSegmentation/WSegmentationAlgo.cpp
src/modules/scalarSegmentation/WSegmentationAlgo.cpp
+68
-67
src/modules/scalarSegmentation/WSegmentationAlgoLevelSetCanny.cpp
...les/scalarSegmentation/WSegmentationAlgoLevelSetCanny.cpp
+71
-70
src/modules/scalarSegmentation/WSegmentationAlgoOtsu.cpp
src/modules/scalarSegmentation/WSegmentationAlgoOtsu.cpp
+65
-64
src/modules/scalarSegmentation/WSegmentationAlgoRegionGrowingConfidenceConnected.cpp
...ion/WSegmentationAlgoRegionGrowingConfidenceConnected.cpp
+76
-75
src/modules/scalarSegmentation/WSegmentationAlgoThreshold.cpp
...modules/scalarSegmentation/WSegmentationAlgoThreshold.cpp
+62
-61
src/modules/scalarSegmentation/WSegmentationAlgoWatershed.cpp
...modules/scalarSegmentation/WSegmentationAlgoWatershed.cpp
+70
-69
src/modules/spatialDerivation/WMSpatialDerivation.cpp
src/modules/spatialDerivation/WMSpatialDerivation.cpp
+3
-1
src/modules/splineSurface/WBSpline.cpp
src/modules/splineSurface/WBSpline.cpp
+175
-174
src/modules/splineSurface/WBSplineSurface.cpp
src/modules/splineSurface/WBSplineSurface.cpp
+239
-238
src/modules/splineSurface/WMSplineSurface.cpp
src/modules/splineSurface/WMSplineSurface.cpp
+522
-521
src/modules/splineSurface/WSurface.cpp
src/modules/splineSurface/WSurface.cpp
+305
-304
src/modules/vectorOperator/WMVectorOperator.cpp
src/modules/vectorOperator/WMVectorOperator.cpp
+3
-1
src/modules/voxelizer/WBresenham.cpp
src/modules/voxelizer/WBresenham.cpp
+292
-291
src/modules/voxelizer/WBresenhamDBL.cpp
src/modules/voxelizer/WBresenhamDBL.cpp
+134
-133
src/modules/voxelizer/WCenterlineParameterization.cpp
src/modules/voxelizer/WCenterlineParameterization.cpp
+218
-217
src/modules/voxelizer/WIntegrationParameterization.cpp
src/modules/voxelizer/WIntegrationParameterization.cpp
+116
-115
src/modules/voxelizer/WMVoxelizer.cpp
src/modules/voxelizer/WMVoxelizer.cpp
+540
-539
src/modules/voxelizer/WRasterAlgorithm.cpp
src/modules/voxelizer/WRasterAlgorithm.cpp
+105
-104
src/modules/voxelizer/WRasterParameterization.cpp
src/modules/voxelizer/WRasterParameterization.cpp
+56
-55
src/modules/writeTracts/WMWriteTracts.h
src/modules/writeTracts/WMWriteTracts.h
+0
-1
No files found.
src/common/WAssert.cpp
View file @
95e0b58d
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#include <string>
#include <boost/lexical_cast.hpp>
#include "WAssert.h"
void
wAssertFailed
(
std
::
string
const
&
expression
,
std
::
string
const
&
file
,
std
::
size_t
line
,
std
::
string
const
&
msg
)
{
#ifdef WASSERT_AS_CASSERT
std
::
cerr
<<
"Assertion failed: "
<<
expression
<<
" (in file "
<<
file
<<
" at line "
<<
line
<<
")"
;
if
(
!
msg
.
empty
()
)
{
std
::
cerr
<<
", Message: "
<<
msg
;
}
std
::
cerr
<<
std
::
endl
;
abort
();
#else
std
::
string
s
=
"Assertion failed: "
+
expression
+
" (in file "
+
file
+
" at line "
+
boost
::
lexical_cast
<
std
::
string
>
(
line
)
+
")"
;
if
(
!
msg
.
empty
()
)
{
s
+=
", Message: "
+
msg
;
}
throw
WException
(
s
);
#endif
}
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#include <string>
#include <boost/lexical_cast.hpp>
#include "WAssert.h"
void
wAssertFailed
(
std
::
string
const
&
expression
,
std
::
string
const
&
file
,
std
::
size_t
line
,
std
::
string
const
&
msg
)
{
#ifdef WASSERT_AS_CASSERT
std
::
cerr
<<
"Assertion failed: "
<<
expression
<<
" (in file "
<<
file
<<
" at line "
<<
line
<<
")"
;
if
(
!
msg
.
empty
()
)
{
std
::
cerr
<<
", Message: "
<<
msg
;
}
std
::
cerr
<<
std
::
endl
;
abort
();
#else
std
::
string
s
=
"Assertion failed: "
+
expression
+
" (in file "
+
file
+
" at line "
+
boost
::
lexical_cast
<
std
::
string
>
(
line
)
+
")"
;
if
(
!
msg
.
empty
()
)
{
s
+=
", Message: "
+
msg
;
}
throw
WException
(
s
);
#endif
}
src/common/WBoundingBox.cpp
View file @
95e0b58d
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#include "WBoundingBox.h"
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#include "WBoundingBox.h"
src/common/WColor.cpp
View file @
95e0b58d
This diff is collapsed.
Click to expand it.
src/common/WCondition.cpp
View file @
95e0b58d
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#include "WCondition.h"
WCondition
::
WCondition
()
{
// initialize members
}
WCondition
::~
WCondition
()
{
// cleanup
}
void
WCondition
::
wait
()
const
{
m_condition
.
wait
(
m_mutex
);
}
void
WCondition
::
notify
()
{
signal_ConditionFired
();
m_condition
.
notify_all
();
}
boost
::
signals2
::
connection
WCondition
::
subscribeSignal
(
t_ConditionNotifierType
notifier
)
{
return
signal_ConditionFired
.
connect
(
notifier
);
}
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#include "WCondition.h"
WCondition
::
WCondition
()
{
// initialize members
}
WCondition
::~
WCondition
()
{
// cleanup
}
void
WCondition
::
wait
()
const
{
m_condition
.
wait
(
m_mutex
);
}
void
WCondition
::
notify
()
{
signal_ConditionFired
();
m_condition
.
notify_all
();
}
boost
::
signals2
::
connection
WCondition
::
subscribeSignal
(
t_ConditionNotifierType
notifier
)
{
return
signal_ConditionFired
.
connect
(
notifier
);
}
src/common/WConditionOneShot.cpp
View file @
95e0b58d
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#include "WConditionOneShot.h"
WConditionOneShot
::
WConditionOneShot
()
:
WCondition
()
{
// initialize members
m_lock
=
boost
::
unique_lock
<
boost
::
shared_mutex
>
(
m_mutex
);
}
WConditionOneShot
::~
WConditionOneShot
()
{
// win crashes here sometimes
#ifndef _MSC_VER
// cleanup
try
{
m_lock
.
unlock
();
}
catch
(
const
boost
::
lock_error
&
e
)
{
// ignore this particular error since it is thrown when the lock is not locked anymore
}
#endif
}
void
WConditionOneShot
::
wait
()
const
{
// now we wait until the write lock is released and we can get a read lock
boost
::
shared_lock
<
boost
::
shared_mutex
>
slock
=
boost
::
shared_lock
<
boost
::
shared_mutex
>
(
m_mutex
);
slock
.
unlock
();
}
void
WConditionOneShot
::
notify
()
{
try
{
m_lock
.
unlock
();
}
catch
(
const
boost
::
lock_error
&
e
)
{
// ignore this particular error since it is thrown when the lock is not locked anymore
// because the notify was called multiple times
}
WCondition
::
notify
();
}
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#include "WConditionOneShot.h"
WConditionOneShot
::
WConditionOneShot
()
:
WCondition
()
{
// initialize members
m_lock
=
boost
::
unique_lock
<
boost
::
shared_mutex
>
(
m_mutex
);
}
WConditionOneShot
::~
WConditionOneShot
()
{
// win crashes here sometimes
#ifndef _MSC_VER
// cleanup
try
{
m_lock
.
unlock
();
}
catch
(
const
boost
::
lock_error
&
e
)
{
// ignore this particular error since it is thrown when the lock is not locked anymore
}
#endif
}
void
WConditionOneShot
::
wait
()
const
{
// now we wait until the write lock is released and we can get a read lock
boost
::
shared_lock
<
boost
::
shared_mutex
>
slock
=
boost
::
shared_lock
<
boost
::
shared_mutex
>
(
m_mutex
);
slock
.
unlock
();
}
void
WConditionOneShot
::
notify
()
{
try
{
m_lock
.
unlock
();
}
catch
(
const
boost
::
lock_error
&
e
)
{
// ignore this particular error since it is thrown when the lock is not locked anymore
// because the notify was called multiple times
}
WCondition
::
notify
();
}
src/common/WConditionSet.cpp
View file @
95e0b58d
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#include "WConditionSet.h"
WConditionSet
::
WConditionSet
()
:
WCondition
(),
m_resetable
(
false
),
m_autoReset
(
false
),
m_fired
(
false
),
m_notifier
(
boost
::
bind
(
&
WConditionSet
::
conditionFired
,
this
)
)
{
}
WConditionSet
::~
WConditionSet
()
{
// clean conditions list
m_conditionSet
.
clear
();
}
void
WConditionSet
::
add
(
boost
::
shared_ptr
<
WCondition
>
condition
)
{
// get write lock
boost
::
unique_lock
<
boost
::
shared_mutex
>
lock
=
boost
::
unique_lock
<
boost
::
shared_mutex
>
(
m_conditionSetLock
);
if
(
!
m_conditionSet
.
count
(
condition
)
)
{
// create a new pair, the condition and its connection object.
// this is needed since remove needs the connection to disconnect the notifier again
m_conditionSet
.
insert
(
ConditionConnectionPair
(
condition
,
condition
->
subscribeSignal
(
m_notifier
)
)
);
}
lock
.
unlock
();
}
void
WConditionSet
::
remove
(
boost
::
shared_ptr
<
WCondition
>
condition
)
{
// get write lock
boost
::
unique_lock
<
boost
::
shared_mutex
>
lock
=
boost
::
unique_lock
<
boost
::
shared_mutex
>
(
m_conditionSetLock
);
// get the element
ConditionConnectionMap
::
iterator
it
=
m_conditionSet
.
find
(
condition
);
if
(
it
!=
m_conditionSet
.
end
()
)
{
(
*
it
).
second
.
disconnect
();
m_conditionSet
.
erase
(
it
);
}
lock
.
unlock
();
}
void
WConditionSet
::
conditionFired
()
{
m_fired
=
true
;
notify
();
}
void
WConditionSet
::
wait
()
const
{
if
(
!
m_resetable
||
!
m_fired
)
{
WCondition
::
wait
();
}
if
(
m_autoReset
)
{