Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
aglv committed Jun 7, 2013
2 parents 18608a9 + f28c86a commit 83a84e6
Show file tree
Hide file tree
Showing 539 changed files with 1,345 additions and 55,153 deletions.
13 changes: 5 additions & 8 deletions 32BitFloatDICOMExport/FloatDICOMExport.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,11 @@ - (long) filterImage:(NSString*) menuName
NSString *f = [xport writeDCMFile: nil];

if( f)
[BrowserController addFiles: [NSArray arrayWithObject: f]
toContext: [[BrowserController currentBrowser] managedObjectContext]
toDatabase: [BrowserController currentBrowser]
onlyDICOM: YES
notifyAddedFiles: YES
parseExistingObject: YES
dbFolder: [[BrowserController currentBrowser] documentsDirectory]
generatedByOsiriX: YES];
[BrowserController.currentBrowser.database addFilesAtPaths: [NSArray arrayWithObject: f]
postNotifications: YES
dicomOnly: YES
rereadExistingItems: YES
generatedByOsiriX: YES];

return 0; // No Errors
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0460"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8D5B49AC048680CD000E48DA"
BuildableName = "BullsEye.osirixplugin"
BlueprintName = "BullsEye"
ReferencedContainer = "container:BullsEye.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Development">
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Development"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Development"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Development">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Development"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>BullsEye.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>8D5B49AC048680CD000E48DA</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
17 changes: 8 additions & 9 deletions BullsEye/BullsEyeController.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#import "OsiriXAPI/ViewerController.h"
#import "OsiriXAPI/DCMView.h"
#import "OsiriXAPI/DCMPix.h"
#import "OsiriXAPI/DicomDatabase.h"

const NSString* FileTypePDF = @"pdf";
const NSString* FileTypeTIFF = @"tiff";
Expand Down Expand Up @@ -240,14 +241,11 @@ -(void)dicomSave:(NSString*)seriesDescription backgroundColor:(NSColor*)backgrou
NSString *f = [dicomExport writeDCMFile: nil];

if( f)
[BrowserController addFiles: [NSArray arrayWithObject: f]
toContext: [[BrowserController currentBrowser] managedObjectContext]
toDatabase: [BrowserController currentBrowser]
onlyDICOM: YES
notifyAddedFiles: YES
parseExistingObject: YES
dbFolder: [[BrowserController currentBrowser] documentsDirectory]
generatedByOsiriX: YES];
[BrowserController.currentBrowser.database addFilesAtPaths: [NSArray arrayWithObject: f]
postNotifications: YES
dicomOnly: YES
rereadExistingItems: YES
generatedByOsiriX: YES];

[dicomExport release];
}
Expand All @@ -258,6 +256,7 @@ -(void)saveAsPanelDidEnd:(NSSavePanel*)panel returnCode:(int)code contextInfo:(v
NSError* error = 0;

if (code == NSOKButton)
{
if (format == FileTypePDF)
{
[[[BullsEyeView view] dataWithPDFInsideRect:[[BullsEyeView view] squareBounds]] writeToFile:[panel filename] options:NSAtomicWrite error:&error];
Expand All @@ -280,7 +279,7 @@ -(void)saveAsPanelDidEnd:(NSSavePanel*)panel returnCode:(int)code contextInfo:(v
{ // dicom
[self dicomSave: [[presetsList selection] valueForKey: @"name"] backgroundColor: [NSColor whiteColor] toFile:[panel filename]];
}

}
if (error)
[[NSAlert alertWithError:error] beginSheetModalForWindow:[self window] modalDelegate:NULL didEndSelector:NULL contextInfo:NULL];
}
Expand Down
34 changes: 0 additions & 34 deletions CMIV_CTA_TOOLS/OsiriX Headers/ColorTransferView.h

This file was deleted.

118 changes: 0 additions & 118 deletions CMIV_CTA_TOOLS/OsiriX Headers/DCMAttribute.h

This file was deleted.

45 changes: 0 additions & 45 deletions CMIV_CTA_TOOLS/OsiriX Headers/DCMCalendarDate.h

This file was deleted.

Loading

0 comments on commit 83a84e6

Please sign in to comment.