- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# C:/AngioLocalizeNoAuto/MevisLabNoAutoReg/STUMevisApp/General/Sources/ML/STUCSODCMHdrToRTStructure/mlCSODCMHdrToRTStructure.h

Go to the documentation of this file.

    00001 /*
    00002 * Copyright (c) 2009 Stanford University, School of Medicine All rights reserved.
    00003 *
    00004 * STANFORD ACADEMIC SOFTWARE LICENSE AGREEMENT
    00005 * FOR AngioLocalize SOURCE CODE:
    00006 *
    00007 * 1.  This is a legal agreement between you, RECIPIENT, and STANFORD UNIVERSITY.
    00008 *       By accepting, receiving, and using AngioLocalize.including any accompanying information, materials or
    00009 *       manuals (Program), you are agreeing to be bound by the terms of this Agreement.
    00010 *       If you do not agree to the terms of this Agreement, promptly return the Program to the STANFORD.
    00011
    00012 * 2.  STANFORD grants to RECIPIENT a royalty-free, nonexclusive, and nontransferable license to use the Program
    00013 *       and accompanying source code furnished hereunder, upon the terms and conditions set out below.
    00014 *       documentation and/or other materials provided with the distribution.
    00015 * 3.  RECIPIENT acknowledges that the Program is a research tool still in the development stage and that
    00016 *       it is being supplied as is, without any accompanying services, support or improvements from STANFORD.
    00017 * 4.  RECIPIENT agrees to use the Program solely for internal non-commercial purposes.
    00018 * 5.  RECIPIENT may create derivatives and further transfer the Program under the following terms and conditions:
    00019 *        A) Recipient agrees to not commercially exploit the Program and agrees all uses will be for non-commercial purposes; and,
    00020 *        B) Recipient may not mark any derivatives with the title of Program and may not to use iPad mark for any derivatives; and,
    00021 *        C) Recipient agrees to mark and acknowledge all derivatives as follows: "This is a derivative work based on AngioLocalize:
    00022 *           Frameless AVM localization with 2D Digital Subtraction Angiography (DSA) and 3D Rotational Angiography (DRA) Images developed
    00023 *           by Dimitre Hristov, Lina Liu.
    00024 *        D) Recipient agrees to make all improvements, enhancements and derivatives available under
    00025 *           similar terms and conditions to the research community.
    00026 * 6.   RECIPIENT warrants that RECIPIENT will not remove or export any part of the software or Program from the United
    00027 *       States except in full compliance with all United States and other applicable laws and regulations.
    00028 * 7.  RECIPIENT will use the Program in compliance with all applicable laws, policies and regulations including, but not
    00029 *       limited to, any approvals, informed consent and patient confidentiality principles.
    00030 * 8.   RECIPIENT will indemnify, hold harmless, and defend Stanford against any claim of any kind arising out of or
    00031 *       related to the exercise of any rights granted under this Agreement or the breach of this Agreement by RECIPIENT.
    00032 * 9.  Title and copyright to the Program and any associated documentation shall at all times remain with STANFORD,
    00033 *       and RECIPIENT agrees to preserve same.
    00034 */
    00035 //----------------------------------------------------------------------------------
    00037
    00044 //----------------------------------------------------------------------------------
    00045
    00046
    00047 #ifndef __mlCSODCMHdrToRTStructure_H
    00048 #define __mlCSODCMHdrToRTStructure_H
    00049
    00050
    00051 // Local includes
    00052 #include <DCMTree_UIDGenerator.h>
    00053 #include "STUCSODCMHdrToRTStructureSystem.h"
    00054 #include <CSOBase/CSOList.h>
    00055
    00056 // ML includes
    00057 #include "mlOperatorIncludes.h"
    00058 #include "mlRTStructure.h"
    00059 #include <iostream>
    00060 #include <fstream>
    00061
    00062 #include <DCMTree_Lib.h>
    00063 #include "DCMTree_IOParameter.h"
    00064 #include "DCMTree_Reader.h"
    00065 #include "DCMTree_Dict.h"
    00066 #include "DCMTree_Tag.h"
    00067 #include "DCMTree_Value.h"
    00068 #include "DCMTree_Unicode.h"
    00069 #include "DCMTree_Writer.h"
    00070 #include <dcmtree_dicomtags.h>
    00071 #include <dcmtree_exception.h>
    00072 #include <dcmtree_message.h>
    00073 #include <CSOBase/CSOList.h>
    00074 #include "mlBase.h"
    00075
    00076 ML_START_NAMESPACE
    00077
    00078
    00080 class STUCSODCMHDRTORTSTRUCTURE_EXPORT CSODCMHdrToRTStructure : public BaseOp
    00081 {
    00082 public:
    00083
    00085   CSODCMHdrToRTStructure ();
    00086
    00087         ~CSODCMHdrToRTStructure (){}
    00089   inline StringField        &getExportDestinationFld () const { return *_exportDestinationFld;}
    00090
    00092   inline NotifyField        &getExportFld () const { return *_exportFld;}
    00093
    00095   virtual void handleNotification (Field *field);
    00096
    00098   virtual INPUT_HANDLE handleInput(int inIndex, INPUT_STATE state) const;
    00099
    00100 private:
    00101
    00102   BaseField  *_inListFld;
    00103
    00104   CSOList        *_inputList;
    00105
    00106   NotifyField *_exportFld;
    00107
    00108   StringField *_exportDestinationFld;
    00109
    00110   BaseField   *_dcmObjFld;
    00111
    00112   CSOList            *_inputCSOs;
    00113   //RTStructure  *_inputRTStructure;
    00114   DCMTree::TreePtr  _inputTree;
    00115
    00116   DCMTree::TreePtr  outputTree;
    00117   DCMTree::TagPtr   tagPtr;
    00118   std::string       _sopInstanceUID;
    00119
    00120   void copyCSOGroups(DCMTree::TagPtr groupTagPtr, unsigned int num);
    00121   void combineCSOs();
    00122   bool writeToDCMFile(DCMTree::TreePtr tree, std::string dest);
    00123   void insertCSOList();
    00124   void insertCSOGroup();
    00125   void insertObservation();
    00126   bool checkCSOList();
    00128   ML_BASEOP_CLASS_HEADER(CSODCMHdrToRTStructure)
    00129 };
    00130
    00131
    00132 ML_END_NAMESPACE
    00133
    00134 #endif // __mlCSODCMHdrToRTStructure_H
    00135

All Classes Namespaces Files Functions Variables Enumerator Friends