VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/DtSimulationTimeScaleWidgetLogic.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2008 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 /****************************************************************************** 
00006 ** $RCSfile: DtSimulationTimeScaleWidgetLogic.h,v $ $Revision: 1.1 $ $State: Exp $ 
00007 ******************************************************************************/ 
00008  
00011 
00013  
00014 #pragma once
00015 
00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00017 
00018 namespace makVrv
00019 {
00020    class DtDe;
00021 }
00022 
00023 namespace makVrf
00024 {
00025    class DtVrfBackendState;
00026    class DtSimulationTimeScaleWidgetInterface;
00027    
00028    class DT_DLL_VRFGUICOREQT DtSimulationTimeScaleWidgetLogic
00029    {
00030 
00031    public: 
00032 
00034       DtSimulationTimeScaleWidgetLogic(makVrv::DtDe& de, DtSimulationTimeScaleWidgetInterface* iFace );
00035       
00037       virtual ~DtSimulationTimeScaleWidgetLogic();
00038 
00039       virtual void setupGui();
00040 
00042       virtual void setTimeMultiplier(double);
00043       virtual double timeMultiplier() const;
00044 
00046       virtual void setTimeMultiplier(int);
00047 
00048    protected:
00049       virtual void slot_selectedBackendChanged();
00050       virtual void slot_allBackendsAboutToBeRemoved();
00051       virtual void slot_backendUpdated(const DtVrfBackendState&, int);
00052 
00053       virtual int convertToTick(double) const;
00054       virtual int convertToSliderTick(double d) const;
00055       virtual double convertToMultiplier(int) const;
00056 
00057       virtual void setRange(double low, double high);
00058 
00059    protected:
00060       makVrv::DtDe& myDe;
00061       DtSimulationTimeScaleWidgetInterface* myInterface;
00062       DtVrfBackendState* myBackend;
00063       double myLowRange;
00064       double myHighRange;
00065       double myTimeMultiplier;
00066    };
00067 }

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)