VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtWidget.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtWidget.h,v $ $Revision: 1.10 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #ifndef DtWidget_H_
00014 #define DtWidget_H_
00015 
00016 #include <vrvCore/vrvCore.h>
00017 #include <vrvCore/DtUniqueID.h>
00018 #include <string>
00019 
00020 namespace makVrv
00021 {
00022 
00023    class DtDe;
00024 
00027    class DT_DLL_VRVCORE DtWidget
00028    {
00029    public:
00030       DtWidget(DtDe& de, DtUniqueID id);
00031 
00032       virtual ~DtWidget();
00033 
00035       virtual void setOverlay(unsigned int overlay) = 0;
00036 
00038       virtual unsigned int overlay() const = 0;
00039 
00041       virtual void setOrderGroup(unsigned int group) = 0;
00042 
00044       virtual unsigned int orderGroup() const = 0;
00045 
00047       virtual void setParentId( DtUniqueID id);
00048 
00050       virtual void setPosition(float x,float y,float z,float w = 0) = 0;
00051 
00053       virtual void setBackgroundImage(const std::string& filename) = 0;
00054 
00056       virtual void setColor(float r,float g,float b, float a) = 0;
00057 
00060       virtual void setOrigin(float originX, float originY) = 0;
00061 
00063       virtual void setSize(float w, float h) = 0;
00064 
00066       virtual void setPadding(float paddingX, float paddingY) = 0;
00067 
00070       virtual void setModelDefinition(const std::string& str) = 0;
00071 
00073       virtual void setEventsEnabled(bool enabled) = 0;
00074 
00076       virtual void setVisible(bool visible) = 0;
00077 
00078    protected:
00079       DtDe& myDe;
00080       DtUniqueID myId;
00081       DtUniqueID myParentId;
00082          
00083    };
00084 }
00085 
00086 #endif
00087 

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)