- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# C:/AngioLocalizeNoAuto/MevisLabNoAutoReg/STUMevisApp/Angiolocalize/Sources/ML/STUXMarkerTransform/mlXMarkerTransform.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 __mlXMarkerTransform_H
    00048 #define __mlXMarkerTransform_H
    00049
    00050
    00051 // Local includes
    00052 #include "STUXMarkerTransformSystem.h"
    00053
    00054 // ML includes
    00055 #include "mlOperatorIncludes.h"
    00056 #include "mlXMarkerList.h"
    00057
    00058 ML_START_NAMESPACE
    00059
    00060
    00062 class STUXMARKERTRANSFORM_EXPORT XMarkerTransform : public BaseOp
    00063 {
    00064 public:
    00065
    00067   XMarkerTransform ();
    00068
    00070   inline MatrixField        &getMatrix1Fld () const { return *_matrix1Fld;}
    00071   inline MatrixField        &getMatrix2Fld () const { return *_matrix2Fld;}
    00072   inline MatrixField        &getMatrix3Fld () const { return *_matrix3Fld;}
    00073
    00074   inline BoolField          &getApply1Fld () const { return *_apply1Fld;}
    00075   inline BoolField          &getApply2Fld () const { return *_apply2Fld;}
    00076   inline BoolField          &getApply3Fld () const { return *_apply3Fld;}
    00077
    00078   inline NotifyField        &getApplyFld ()     const { return *_applyFld;}
    00079   inline BoolField          &getAutoApplyFld () const { return *_autoApplyFld;}
    00081   virtual void handleNotification (Field *field);
    00082
    00084   virtual void activateAttachments ();
    00085
    00086 private:
    00087
    00088   BaseField  *_inMarkerListFld;
    00089   BaseField  *_outMarkerListFld;
    00090
    00091   XMarkerList *_inMarkerList;
    00092   XMarkerList *_outMarkerList;
    00093
    00094   MatrixField *_matrix1Fld;
    00095   MatrixField *_matrix2Fld;
    00096   MatrixField *_matrix3Fld;
    00097
    00098   BoolField   *_apply1Fld;
    00099   BoolField   *_apply2Fld;
    00100   BoolField   *_apply3Fld;
    00101
    00103   NotifyField *_applyFld;
    00104   BoolField   *_autoApplyFld;
    00105
    00106
    00107   virtual void              AffineTransform (const mat4& matrix, const int step);
    00108   virtual void              PerspectiveTransform (const mat4& matrix);
    00110   ML_BASEOP_CLASS_HEADER(XMarkerTransform)
    00111 };
    00112
    00113
    00114 ML_END_NAMESPACE
    00115
    00116 #endif // __mlXMarkerTransform_H
    00117

All Classes Namespaces Files Functions Variables Enumerator Friends