![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /***************************************************************************** 00002 * Copyright (c) 2012 MAK Technologies, Inc. 00003 * All rights reserved. 00004 *****************************************************************************/ 00005 00009 00010 #pragma once 00011 00012 #include <vrvOsg/vrvOsg.h> 00013 #include <vrvOsg/DtAttribute.h> 00014 #include <vrvOsg/DtBaseQuadAttribute.h> 00015 #include <vrvOsg/DtBaseOutlineAttribute.h> 00016 #include <vrvCore/DtWidget.h> 00017 00018 namespace makVrv 00019 { 00020 00021 class DtDe; 00022 00025 class DT_DLL_VRVOSG DtValueBarAttribute : public DtAttribute 00026 { 00027 public: 00028 00030 DtValueBarAttribute( DtDe& de ); 00031 00033 virtual ~DtValueBarAttribute(); 00034 00036 virtual void setOffset( double x, double y ); 00037 00040 virtual void setPosition( float x, float y, float z, float w ); 00041 00043 virtual void getMinSize( double& xOut, double& yOut ); 00044 00046 virtual void setSize( double x, double y ); 00047 00049 virtual void setValue( float val ); 00050 00052 virtual void setColor( float r, float g, float b, float a ); 00053 00055 virtual void setVisible( bool visible ); 00056 00058 virtual bool visible() const; 00059 00062 virtual void setOverlay( unsigned int overlayId ); 00063 00066 virtual void setGroup( unsigned int group ); 00067 00068 protected: 00069 00070 DtBaseQuadAttribute myQuadAttribute; 00071 DtBaseOutlineAttribute myOutlineAttribute; 00072 00073 DtDe& myDe; 00074 00075 double mySizeX; 00076 double mySizeY; 00077 00078 double myValue; 00079 00080 }; 00081 00082 }