VR-Forces 4.0.4 Class Documentation
examples/unitStatus/DtUnitStatus.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2011 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 
00006 //\file DtUnitStatus.h
00007 //\brief Contains makVrf::makVrfUnitStatusExample::DtUnitStatus class.
00008 
00009 #pragma once
00010 
00011 #include <vrvUtil/signalslib.h>
00012 
00013 #include "statusWidgetUi.hpp"
00014 #include "DtUnitStatusInterface.h"
00015 
00016 #include <vrvCoreQt/DtDockable.h>
00017 #include <vrvCore/DtUserInterfaceAssembler.h>
00018 #include <vrvCoreQt/DtPage.h>
00019 
00020 namespace makVrv
00021 {
00022    class DtDe;
00023 }
00024 
00025 namespace makVrfUnitStatusExample
00026 {
00027    class DtUnitStatusLogic;
00028       
00029    //A widget class for managing different camera views the currently selected observer can be placed in.
00030    class DtUnitStatus
00031       : public makVrv::DtPage
00032       , public DtUnitStatusInterface
00033       , public makVrv::DtDockable
00034    {
00035    public:
00036       //\brief CTOR
00037       DtUnitStatus( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
00038 
00039       //\brief DTOR
00040       virtual ~DtUnitStatus();
00041 
00042       //Get the icon of the page.
00043       virtual QIcon icon();
00044 
00045       //Get the title of the page.
00046       virtual QString title();
00047 
00048       //Get the class name of the page.
00049       virtual const std::string& pageClassName() const;
00050 
00051       //Called when the page is displayed.
00052       virtual void activate();
00053 
00054       //Called when the page is hidden.
00055       virtual void deactivate();
00056 
00057       static std::string thePageClassName();
00058 
00059    protected:
00060       //\brief Sets up the contents of the widget onto the supplied parent
00061       void setupUi(QWidget* p);
00062 
00063       //\brief Clears out widget
00064       virtual void clear();
00065 
00066       virtual void setUnitName(const std::string&);
00067       virtual void setIcon(const QPixmap&);
00068       virtual void setLocation(const std::vector<std::string>& position);
00069 
00070       virtual void setVelocity(const QString&);
00071       virtual void setAcceleration(const QString&);
00072       virtual void setHeading(const QString&);
00073       virtual void setMarkingText(const QString&);
00074 
00075    public:
00076       Ui_DtUnitStatusUi myUi;
00077 
00078    protected:
00079       DtUnitStatusLogic*   myLogic;
00080          
00081    };
00082 
00083    //Create a "creator" helper class using the template.
00084    typedef makVrv::DtPageCreatorTemplate<DtUnitStatus> DtUnitStatusWidgetCreator;
00085 }

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)