Class JDialogAnonymizeDirectory
- All Implemented Interfaces:
DialogDefaultsInterface,ActionListener,FocusListener,ItemListener,WindowListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,RootPaneContainer,WindowConstants
When one directory is chosen as the source, all anonymized Dicom files in source are placed directly in the destination. Any images in any subdirectories (when chkChildren is selected) are sent into the children of the sub-directories.
More than one submitted source directory will be placed into discrete child directories of the submitted destination directory. As as example, /images/a, /images/b are selected, and /dest is the selected destination directory. They would get put into /dest/a, and /dest/b.
Naming can change the way the destination is made. Selecting a top-level randomisation, will randomate the output directory ofthe selected image directory. This isalong the lines in the above example as /images/a becoming /dest/abcde; and /images/b becoming /dest/12345. Selecting only one input directory will notmakea difference for top-level randomising. Child-directory randomising will give a random name when processing child direcories. this amounts to selecting /images (and recursive processing) and the destination directory /dest,and getting /images/a becoming /dest/abcde, and /images/b becoming /dest/12345.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThis thread anonymization processes all the Dicom files in the submitted source directories and places them into the submitted destination directory.Nested classes/interfaces inherited from class gov.nih.mipav.view.dialogs.JDialogBase
JDialogBase.CancelAction, JDialogBase.HelpAction, JDialogBase.OKActionNested classes/interfaces inherited from class javax.swing.JDialog
JDialog.AccessibleJDialogNested classes/interfaces inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityTypeNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TreePath[]for the files selected ...private static final intDOCUMENT ME!private ThreadAccess to the running thread which is anonymising directories.private static final intDOCUMENT ME!private JCheckBoxDOCUMENT ME!private JPanelAnonymizeImageDOCUMENT ME!private static final intDOCUMENT ME!private JTreeActual things we can see...private JTabbedPaneOnscreen objects.private JPanelLogical construct to reuild a source tree...private StringUsed as part of the image name; used in all processed image-sets.private ButtonGroupDOCUMENT ME!private JButtonDOCUMENT ME!private Fileprivate File srcDirectory; // Defined by the.private JTextFieldDOCUMENT ME!private JTextFieldDOCUMENT ME!private StringTranslation key, stored in "patient.key.doc".private static final intDOCUMENT ME!private JTextAreaholds output log; updated as processed.static final intDOCUMENT ME!private booleanNoisy means notifying the user of stupid errors.private JRadioButtonDOCUMENT ME!private StringString to hold all file checks, changes and ignores.private static final intDOCUMENT ME!private static final intprivate JPanelAnonymizePrivateTagsprivate static final intprivate JPanelAnonymizePublicTagsprivate RandomTo generate wierd, unrecoverable names for anon images.private JRadioButtonDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!private JRadioButtonDOCUMENT ME!private JCheckBoxprivate JButton srcBrowse;.private JCheckBoxprivate JTextAreaAll directory-tree selected directories are listed for user-consumption in this whitespace.private intUsed as part of the image name; represents beginning of sequence for all processed image sets.private JTextFieldDOCUMENT ME!private static final longUse serialVersionUID for interoperability.private JPanelDOCUMENT ME!private JButtonstops the thread from continuing its processing. on same panel as OK and Cancel.private intDOCUMENT ME!private static final intDOCUMENT ME!private JButtonDOCUMENT ME!private FileDOCUMENT ME!private JTextFieldDOCUMENT ME!private intDefines options for WRITE, OVERWRITE, APPEND for the xlat file.Fields inherited from class gov.nih.mipav.view.dialogs.JDialogBase
applyButton, bar, cancelButton, cancelFlag, closeButton, HELP, helpButton, mainDialogPanel, NEW, OKButton, parentFrame, progressBar, REPLACE, runInSeparateThread, runningScriptFlag, runQuiet, serif12, serif12B, voiManagerFields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPEFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Constructor Summary
ConstructorsConstructorDescriptionbuilds and packs the frame. does not set it visible. -
Method Summary
Modifier and TypeMethodDescriptionvoidwhen a button is clicked.voidA psuedo-event-handler.private voidconverts the name and sequence JTextFields into native types.private JPanelbuildFilePanel(String dir) creates the source panel which consists of the directory line, the browse button, and a check box approving the anonymize in sub-directories.private JPanelcreates the destination panel which consists of the directory textline, the browse button, and a sub-panel to provide the name of the randomized image.private JPanelcreates a panel for the output log.private JMenuBarCreates the menu bar for the dialog.private JPanelcreates a name-suggestion panel.private JTreebuildNewSourceTree(String directory) Creates a new directory tree starting withdirectoryas the root.private JPanelCreates the panel which consists of the OKAY button and the Cancel button.private JPanelcreates the random-button panel,which are two radio-buttons determining the naming actions for the output directories.private JPanelcreates the random-button panel,which are two radio-buttons determining the naming actions for the output directories.private JPanelputs together the panel of recursive box and directory-randomization level radio button.private JPanelcreates the visual display in which to list all selected directories in the directory tree.private JPanelbuildSourcePanel(String dir) creates the source panel which consists of the directory line, the browse button, and a check box approving the anonymize in sub-directories.private JPanelbuildSourceTreeListing(String directory) Creates the panel holding the directory tree.private voidBuilds the Stop button.private JPanelcreates the destination panel which consists of the directory textline, the browse button for the translation key file.private Stringgenerates a random, up to-5 character, hexadecimal string.Searches for all profiles in the MIPAV preferences that start with profileAnonymizeDICOM.private booleanMakes the image destination directory.private booleanchecks to see if the JPanelAnonymizeImage has had any selections made to it.private booleanRecords all paths chosen in the source tree.private booleanLocates the translation/key-file destination directory.private voidloadProfile(String name) Parses through the profile in the MIPAV preferences to determine which Supplement 55 tags are selected, which public tags exists (and were selected), and which private tags exist (and were selected).private FilemakeDirectory(File selDir, JTextField txtField) makes the submitted directory as given by the inputted File, or the text as given in the given given textField.private Stringcreates a new keylog, writing which tags are to be removed from the image information; the table header for the image read/write logging is added. the string created here is not automatically turned into the keylog string.privateKeySearch(String dir) private voidsaveProfile(String name) Saves off a profile into the preferences.private voidcreates a keyFile named "patient.key.doc" in the destination directory as specified by the user. the keyFile contains a tab-delimited table of original filenames and the anonymous filename which replaced it; it flushes the keyLog into the keyFile.Methods inherited from class gov.nih.mipav.view.dialogs.JDialogBase
buildApplyButton, buildButtons, buildCancelButton, buildCancelButton, buildCloseButton, buildHelpButton, buildImageComboBox, buildOKButton, buildOKButton, buildOKCancelButtons, buildTitledBorder, buildTitledBorder, createLabel, createProgressBar, createProgressBar, createTextField, focusGained, focusLost, getDialogName, isCancelled, isQuietRunning, isRunInSeparateThread, isScriptRunning, itemStateChanged, loadDefaults, loadDefaults, makeImageName, makeString, openNewFrame, saveDefaults, saveDefaults, setLeftHandSystem, setQuietRunning, setScriptRunning, setSeparateThread, setVisible, setVisible, setVisibleMenuBar, setVisibleStandard, setVOIManager, setWCSystem, testParameter, testParameterMin, updateFFTFileInfo, updateFileInfo, updateFileInfoOtherModality, updateFileInfoStatic, updateFileInfoStatic, updateFileTypeInfo, updateFileTypeInfo, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpenedMethods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBackMethods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
DIR_TAB
private static final int DIR_TABDOCUMENT ME!- See Also:
-
ANON_TAB
private static final int ANON_TABDOCUMENT ME!- See Also:
-
PUBLIC_TAB
private static final int PUBLIC_TAB- See Also:
-
PRIVATE_TAB
private static final int PRIVATE_TAB- See Also:
-
LOG_TAB
private static final int LOG_TABDOCUMENT ME!- See Also:
-
WRITE
private static final int WRITEDOCUMENT ME!- See Also:
-
APPEND
private static final int APPENDDOCUMENT ME!- See Also:
-
OVERWRITE
private static final int OVERWRITEDOCUMENT ME!- See Also:
-
NO_RANDOM_NAMES
public static final int NO_RANDOM_NAMESDOCUMENT ME!- See Also:
-
RANDOM_DIRECTORY_NAME
public static final int RANDOM_DIRECTORY_NAMEDOCUMENT ME!- See Also:
-
RANDOM_SUBDIRECTORY_NAME
public static final int RANDOM_SUBDIRECTORY_NAMEDOCUMENT ME!- See Also:
-
actOnPath
for the files selected ... -
anonymizer
Access to the running thread which is anonymising directories. -
changeFilenameBox
DOCUMENT ME! -
checkBoxPanel
DOCUMENT ME! -
directoryTree
Actual things we can see... -
everything
Onscreen objects. -
filePanel
Logical construct to reuild a source tree... -
genericImageName
Used as part of the image name; used in all processed image-sets. -
grouping
DOCUMENT ME! -
imageDestBrowse
DOCUMENT ME! -
imageDestDirectory
private File srcDirectory; // Defined by the. -
imageDestDirText
DOCUMENT ME! -
imageNameText
DOCUMENT ME! -
keyLog
Translation key, stored in "patient.key.doc". -
logPane
holds output log; updated as processed. -
noisyProcess
private boolean noisyProcessNoisy means notifying the user of stupid errors. -
noRandButton
DOCUMENT ME! -
outputLog
String to hold all file checks, changes and ignores. -
rand
To generate wierd, unrecoverable names for anon images. -
randChildButton
DOCUMENT ME! -
randTopButton
DOCUMENT ME! -
recursiveCheckBox
private JButton srcBrowse;. -
selectedList
All directory-tree selected directories are listed for user-consumption in this whitespace. -
sequenceStart
private int sequenceStartUsed as part of the image name; represents beginning of sequence for all processed image sets. -
sequenceText
DOCUMENT ME! -
sourcePanel
DOCUMENT ME! -
stopButton
stops the thread from continuing its processing. on same panel as OK and Cancel. -
toplevelOnly
private int toplevelOnlyDOCUMENT ME! -
xlatDestBrowse
DOCUMENT ME! -
xlatDestDirectory
DOCUMENT ME! -
xlatDestDirText
DOCUMENT ME! -
xlatDestinationUsage
private int xlatDestinationUsageDefines options for WRITE, OVERWRITE, APPEND for the xlat file. -
privateTagsPanel
-
publicTagsPanel
-
removeBox
-
-
Constructor Details
-
JDialogAnonymizeDirectory
builds and packs the frame. does not set it visible.install the panels of source directory, destination directory, the checkbox for approving the translation-table file and the panel containing the ok and cancel buttons. Installs the checkbox panel.
- Parameters:
dir- DOCUMENT ME!
-
-
Method Details
-
privateKeySearch
-
actionPerformed
when a button is clicked.- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classJDialogBase- Parameters:
ae- DOCUMENT ME!
-
anonymizationComplete
A psuedo-event-handler. Takes the event (An instance of AnonymizeDicomDirectories) resets the enabled status of the OK and Cancel buttons, appends the key-log text to the key-log and calls writeKeyFile().- Parameters:
event- the event
-
applyGenericName
private void applyGenericName()converts the name and sequence JTextFields into native types. Ensures that if the textFields are empty, the empty values don't cause problems. That means the generic name is the original generated random string and sequence is 0. -
buildFilePanel
creates the source panel which consists of the directory line, the browse button, and a check box approving the anonymize in sub-directories.- Parameters:
dir- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
buildImageDestPanel
creates the destination panel which consists of the directory textline, the browse button, and a sub-panel to provide the name of the randomized image.- Returns:
- DOCUMENT ME!
-
buildLogPanel
creates a panel for the output log.- Returns:
- DOCUMENT ME!
-
buildMenuEntries
Creates the menu bar for the dialog. Builds a small menu with "New directory" and "Refresh directory" options.- Returns:
- DOCUMENT ME!
-
buildNameSuggestionPanel
creates a name-suggestion panel.- Returns:
- DOCUMENT ME!
-
buildNewSourceTree
Creates a new directory tree starting withdirectoryas the root. Each leaf of the tree is populated byViewFileTreeNodes, representing directories.It is selectable with TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION. Each item that is selected will be placed into a JTextArea displaying all the selected items. And as the tree is expanded, the leaves will be explored, but as yet, there is no utility to un-explore them, or refresh their view once explored.
- Parameters:
directory- a string signifying the root of the tree- Returns:
- a directory-tree, with the input argumenbt as the root.
- See Also:
-
buildOKCancelPanel
Creates the panel which consists of the OKAY button and the Cancel button. The OKAY button is set to read "Run", and the Cancel button is set to read "Close".a STOP button to stop the seperate thread is on the panel after the cancel button. The stop button reads "Stop".
Places a "Help" button to the right of the "Stop" button.
- Returns:
- DOCUMENT ME!
-
buildOptionPanel
creates the random-button panel,which are two radio-buttons determining the naming actions for the output directories.- Returns:
- DOCUMENT ME!
-
buildRandButtonPanel
creates the random-button panel,which are two radio-buttons determining the naming actions for the output directories.- Returns:
- DOCUMENT ME!
-
buildRandSelectionPanel
puts together the panel of recursive box and directory-randomization level radio button.- Returns:
- the loaded panel
- See Also:
-
buildSelectedListing
creates the visual display in which to list all selected directories in the directory tree. The panel is 240 pixels wide though that is supposed to be the minimum size- Returns:
- the panel which is to hold the list of selected items
-
buildSourcePanel
creates the source panel which consists of the directory line, the browse button, and a check box approving the anonymize in sub-directories.- Parameters:
dir- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
buildSourceTreeListing
Creates the panel holding the directory tree.- Parameters:
directory- DOCUMENT ME!- Returns:
- Panel.
-
buildStopButton
private void buildStopButton()Builds the Stop button. -
buildXLATdestPanel
creates the destination panel which consists of the directory textline, the browse button for the translation key file.- Returns:
- DOCUMENT ME!
-
generateRandString
generates a random, up to-5 character, hexadecimal string.- Returns:
- a hexadeciaml string of up to 5-characters.
-
isImageDestinationOkay
private boolean isImageDestinationOkay()Makes the image destination directory. If there is a problem in creating the destination directory, the "Directory" tab is brought to the front; the warning message describing the error is displayed; then the text field with the destination directory is given focus, and all available text is displayed.- Returns:
- boolean if the selected destination has been made, returns
true. Otherwise, returnsfalse.
-
isRemovalSelectionOkay
private boolean isRemovalSelectionOkay()checks to see if the JPanelAnonymizeImage has had any selections made to it. If it hasn't, then the "Tag Options" tab is brought to the front (it contains the JPanelAnonymizeImage), and the warning message "No fields to anonymize were selected! Select a field." is displayed.- Returns:
- boolean if a selection in the JPanelAnonymizeImage has been made, returns
true. Otherwise, returnsfalse. - See Also:
-
isSelectedPathsOkay
private boolean isSelectedPathsOkay()Records all paths chosen in the source tree. If no selections have been made, the "Directory" tab is brought to the front, and the warning message "Select at least one directory to work on." is displayed.- Returns:
- boolean if a selection in the source tree has been made, returns
true. Otherwise, returnsfalse.
-
isXLATdestinationOkay
private boolean isXLATdestinationOkay()Locates the translation/key-file destination directory. If the directory is not there already, the directory is made. If there is a problem in creating the destination directory, the "Directory" tab is brought to the front; the warning message describing the error is displayed; then the text field with the destination directory is given focus, and all available text is displayed. If the translation/key-file is already present in the chosen directory, there will be an options dialog allowing the user to Overwrite the old translation/key-file, to append the the new translation/key to the end of the current file, or to cancel the entire operation (to look for a new location).- Returns:
- boolean if the selected destination has been made, returns
true. Otherwise, returnsfalse.
-
makeDirectory
makes the submitted directory as given by the inputted File, or the text as given in the given given textField. Priority is given to the text in the textfield, so if the File's path does not agree with the path in the text field, the directory will be made with the path in the text field. Should the text field not have any path, an IOException will be thrown indicating this problem. If the directory does not exist, it will be created; if there are errors in creating the directory, an IOException will be thrown, with error message describing the problem, with a possible remedy as a suggestion.- Parameters:
selDir- DOCUMENT ME!txtField- DOCUMENT ME!- Returns:
- File a directory
- Throws:
IOException- -- failure to create the directory
-
newKeyLog
creates a new keylog, writing which tags are to be removed from the image information; the table header for the image read/write logging is added. the string created here is not automatically turned into the keylog string. that must be done by the caller.- Returns:
- the new KeyLog String.
-
writeKeyFile
private void writeKeyFile()creates a keyFile named "patient.key.doc" in the destination directory as specified by the user. the keyFile contains a tab-delimited table of original filenames and the anonymous filename which replaced it; it flushes the keyLog into the keyFile. Any further writes to the keyLog will be writing into a new keyLog. Writing to the keyFile later will overwrite the keyFile already there. -
getProfiles
Searches for all profiles in the MIPAV preferences that start with profileAnonymizeDICOM. Works for both the anonymize image dialog and the anonymize directory dialog. -
loadProfile
Parses through the profile in the MIPAV preferences to determine which Supplement 55 tags are selected, which public tags exists (and were selected), and which private tags exist (and were selected). Since for this dialog we do not go into an image to determine which tags are present, whatever was in the profile is displayed.- Parameters:
name-
-
saveProfile
Saves off a profile into the preferences. This is basically the exact same as what is seen in the anonymize image version.- Parameters:
name-
-