VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtObjectContextItems.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2011 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 
00009 
00010 #pragma once
00011 
00012 #include <vrvCoreQt/vrvCoreQt.h>
00013 #include <vrvCoreQt/DtMenuItem.h>
00014 
00015 #include <vrvCore/DtObserverObject.h>
00016 
00017 namespace makVrv
00018 {
00019 
00023    class DT_DLL_VRVCOREQT DtTransparencyToggleItem : public DtMenuItem
00024    {  Q_OBJECT;
00025    public:
00026 
00028       DtTransparencyToggleItem(DtDe&);
00029 
00031       virtual ~DtTransparencyToggleItem();
00032 
00034       virtual QAction* createAction(DtDe&, QWidget* parent);
00035 
00036    protected:
00037 
00038       virtual void on_triggered();
00039 
00040       virtual void on_aboutToShow();
00041 
00042    protected:
00043 
00044       DtDe& myDe;
00045       QAction* myQAction;
00046 
00047    };
00048 
00053    class DT_DLL_VRVCOREQT DtAttachItem : public DtMenuItem
00054    {  Q_OBJECT;
00055    public:
00056 
00058       DtAttachItem( const std::string& menuItemIdName, DtDe& de );
00059 
00061       virtual ~DtAttachItem();
00062 
00064       virtual QAction* createAction(DtDe&, QWidget* parent) = 0;
00065 
00066    protected:
00067 
00068       virtual void setAttachMode( DtObserverObject::AttachType attachType );
00069 
00070       virtual void attachSelected();
00071 
00072    protected:
00073 
00074       DtDe& myDe;
00075       QAction* myQAction;
00076 
00077    };
00078 
00082    class DT_DLL_VRVCOREQT DtAttachFollowItem : public DtAttachItem
00083    {  Q_OBJECT;
00084    public:
00085 
00087       DtAttachFollowItem( DtDe& );
00088 
00090       virtual ~DtAttachFollowItem();
00091 
00093       virtual QAction* createAction( DtDe&, QWidget* parent );
00094 
00095    protected:
00096 
00097       virtual void on_triggered();
00098 
00099       virtual void on_aboutToShow();
00100 
00101    };
00102 
00106    class DT_DLL_VRVCOREQT DtAttachSpaceFollowItem : public DtAttachItem
00107    {  Q_OBJECT;
00108    public:
00109 
00111       DtAttachSpaceFollowItem( DtDe& );
00112 
00114       virtual ~DtAttachSpaceFollowItem();
00115 
00117       virtual QAction* createAction( DtDe&, QWidget* parent );
00118 
00119    protected:
00120 
00121       virtual void on_triggered();
00122 
00123       virtual void on_aboutToShow();
00124 
00125    };
00126 
00130    class DT_DLL_VRVCOREQT DtAttachMimicItem : public DtAttachItem
00131    {
00132       Q_OBJECT;
00133    public:
00135       DtAttachMimicItem(DtDe&);
00136 
00138       virtual ~DtAttachMimicItem();
00139 
00141       virtual QAction* createAction(DtDe&, QWidget* parent);
00142 
00143    protected:
00144       virtual void on_triggered();
00145       
00146       virtual void on_aboutToShow();
00147    };
00148 
00149       
00153    class DT_DLL_VRVCOREQT DtAttachTetherItem : public DtAttachItem
00154    {
00155       Q_OBJECT;
00156    public:
00158       DtAttachTetherItem(DtDe&);
00159 
00161       virtual ~DtAttachTetherItem();
00162 
00164       virtual QAction* createAction(DtDe&, QWidget* parent);
00165 
00166    protected:
00167       virtual void on_triggered();
00168       
00169       virtual void on_aboutToShow();
00170    };
00171  
00175    class DT_DLL_VRVCOREQT DtAttachTrackItem : public DtAttachItem
00176    {
00177       Q_OBJECT;
00178    public:
00180       DtAttachTrackItem(DtDe&);
00181 
00183       virtual ~DtAttachTrackItem();
00184 
00186       virtual QAction* createAction(DtDe&, QWidget* parent);
00187 
00188    protected:
00189       virtual void on_triggered();
00190       
00191       virtual void on_aboutToShow();
00192    };
00193  
00197    class DT_DLL_VRVCOREQT DtAttachTetherTrackItem : public DtAttachItem
00198    {
00199       Q_OBJECT;
00200    public:
00202       DtAttachTetherTrackItem(DtDe&);
00203 
00205       virtual ~DtAttachTetherTrackItem();
00206 
00208       virtual QAction* createAction(DtDe&, QWidget* parent);
00209 
00210    protected:
00211       virtual void on_triggered();
00212       
00213       virtual void on_aboutToShow();
00214    };
00215  
00219    class DT_DLL_VRVCOREQT DtAttachMimicTrackItem : public DtAttachItem
00220    {
00221       Q_OBJECT;
00222    public:
00224       DtAttachMimicTrackItem(DtDe&);
00225 
00227       virtual ~DtAttachMimicTrackItem();
00228 
00230       virtual QAction* createAction(DtDe&, QWidget* parent);
00231 
00232    protected:
00233       virtual void on_triggered();
00234       
00235       virtual void on_aboutToShow();
00236    };
00237   
00241    class DT_DLL_VRVCOREQT DtCreateInsetViewItem : public DtMenuItem
00242    {
00243       Q_OBJECT;
00244    public:
00246       DtCreateInsetViewItem(DtDe&);
00247 
00249       virtual ~DtCreateInsetViewItem();
00250 
00252       virtual QAction* createAction(DtDe&, QWidget* parent);
00253 
00254    protected:
00255       virtual void on_triggered();
00256       
00257       virtual void on_aboutToShow();
00258       
00259    protected:
00260       DtDe& myDe;
00261       QAction* myQAction;     
00262    };
00263 
00267    class DT_DLL_VRVCOREQT DtShowHideItem : public DtMenuItem
00268    {
00269       Q_OBJECT;
00270    public:
00272       DtShowHideItem(DtDe&);
00273 
00275       virtual ~DtShowHideItem();
00276 
00278       virtual QAction* createAction(DtDe&, QWidget* parent);
00279 
00280    protected:
00281       virtual void on_triggered();
00282 
00283       virtual void on_aboutToShow();
00284 
00285    protected:
00286       DtDe& myDe;
00287       QAction* myQAction;
00288    };
00289 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)