VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtPrecipitationCommand.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2010 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile:  $ $Revision: 95512 $ $State: $
00007 *******************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvCore/DtVrvCommand.h>
00016 
00017 #include <vrvCore/DtEnvironment.h>
00018 
00019 namespace makVrv
00020 {
00023    class DT_DLL_VRVCORE DtPrecipitationCommand : public DtVrvCommand
00024    {
00025    public: 
00026       DtPrecipitationCommand();
00027       virtual ~DtPrecipitationCommand();
00028 
00029       virtual bool isEnabled() const;
00030       virtual void setEnabled(bool state);
00031 
00032       virtual DtEnvironment::PrecipitationType precipitationType() const;
00033       virtual void setPrecipitationType(DtEnvironment::PrecipitationType newType);
00034 
00035       virtual float intensity() const;
00036       virtual void setIntensity(const float& newIntensity);
00037 
00038       virtual void execute(DtDe& de);
00039 
00040    protected:
00041       bool myState;
00042       DtEnvironment::PrecipitationType myPrecipitationType;
00043       float myIntenstiy;
00044    };
00045 
00048    class DT_DLL_VRVCORE DtPrecipitationCommandCreator : public DtVrvCommandCreator
00049    {
00050    public:
00051       DtPrecipitationCommandCreator(GlobalIdConvertFunc func): DtVrvCommandCreator(func) {}
00052       virtual ~DtPrecipitationCommandCreator() {}
00053 
00054       virtual DtVrvCommand* create(vrvControlToolkit::DtVrvControl_v1* control);
00055    };
00056 
00057 } //makVrv::

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)