- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# C:/AngioLocalizeNoAuto/MevisLabNoAutoReg/STUMevisApp/Angiolocalize/Sources/ML/STUAngioTransformEdit/mlAngioTransformEdit.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 __mlAngioTransformEdit_H
    00048 #define __mlAngioTransformEdit_H
    00049
    00050
    00051 // Local includes
    00052 #include "STUAngioTransformEditSystem.h"
    00053
    00054 // ML includes
    00055 #include "mlOperatorIncludes.h"
    00056 #include "mlRotation.h"
    00057
    00058 ML_START_NAMESPACE
    00059
    00060 #define  PI  3.1415926
    00062 class STUANGIOTRANSFORMEDIT_EXPORT AngioTransformEdit : public BaseOp
    00063 {
    00064 public:
    00065
    00067   AngioTransformEdit ();
    00068
    00069   inline Vec3fField  &getTranslationFld()      const { return *_translationFld; }
    00070   inline Vec3fField  &getRotationFld()         const { return *_rotationFld; }
    00071
    00072   inline NotifyField  &getAddxtranslationFld()      const { return *_addxtranslationFld; }
    00073   inline NotifyField  &getAddytranslationFld()      const { return *_addytranslationFld; }
    00074   inline NotifyField  &getAddztranslationFld()      const { return *_addztranslationFld; }
    00075
    00076   inline NotifyField  &getSubxtranslationFld()      const { return *_subxtranslationFld; }
    00077   inline NotifyField  &getSubytranslationFld()      const { return *_subytranslationFld; }
    00078   inline NotifyField  &getSubztranslationFld()      const { return *_subztranslationFld; }
    00079
    00080   inline NotifyField  &getAddxrotationFld()      const { return *_addxrotationFld; }
    00081   inline NotifyField  &getAddyrotationFld()      const { return *_addyrotationFld; }
    00082   inline NotifyField  &getAddzrotationFld()      const { return *_addzrotationFld; }
    00083
    00084   inline NotifyField  &getSubxrotationFld()      const { return *_subxrotationFld; }
    00085   inline NotifyField  &getSubyrotationFld()      const { return *_subyrotationFld; }
    00086   inline NotifyField  &getSubzrotationFld()      const { return *_subzrotationFld; }
    00087
    00088   inline DoubleField  &getRotationxincreFld()  const {return *_rotationxincreFld; }
    00089   inline DoubleField  &getRotationyincreFld()  const {return *_rotationyincreFld; }
    00090   inline DoubleField  &getRotationzincreFld()  const {return *_rotationzincreFld; }
    00091
    00092   inline DoubleField  &getTransxincreFld()  const {return *_transxincreFld; }
    00093   inline DoubleField  &getTransyincreFld()  const {return *_transyincreFld; }
    00094   inline DoubleField  &getTranszinceFld()  const {return *_transzincreFld; }
    00095
    00096
    00097 private:
    00098
    00100   Vec3fField    *_translationFld;
    00101
    00102   Vec3fField    *_rotationFld;
    00103
    00104   NotifyField   *_addxtranslationFld;
    00105   NotifyField   *_addytranslationFld;
    00106   NotifyField   *_addztranslationFld;
    00107
    00108   NotifyField   *_subxtranslationFld;
    00109   NotifyField   *_subytranslationFld;
    00110   NotifyField   *_subztranslationFld;
    00111
    00112
    00113   NotifyField   *_addxrotationFld;
    00114   NotifyField   *_addyrotationFld;
    00115   NotifyField   *_addzrotationFld;
    00116
    00117   NotifyField   *_subxrotationFld;
    00118   NotifyField   *_subyrotationFld;
    00119   NotifyField   *_subzrotationFld;
    00120
    00121   DoubleField   *_rotationxincreFld;
    00122   DoubleField   *_rotationyincreFld;
    00123   DoubleField   *_rotationzincreFld;
    00124
    00125   DoubleField   *_transxincreFld;
    00126   DoubleField   *_transyincreFld;
    00127   DoubleField   *_transzincreFld;
    00128
    00129   MatrixField   *_matrixFld;
    00130   NotifyField   *_resetFld;
    00131
    00133   virtual void  handleNotification (Field *field);
    00135   virtual void  activateAttachments();
    00136   void          updateMatrix();
    00137
    00139   ML_BASEOP_CLASS_HEADER(AngioTransformEdit)
    00140 };
    00141
    00142
    00143 ML_END_NAMESPACE
    00144
    00145 #endif // __mlAngioTransformEdit_H
    00146

All Classes Namespaces Files Functions Variables Enumerator Friends