![]() |
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/DtBaseQuadAttribute.h> 00014 #include <vrvOsg/DtBaseOutlineAttribute.h> 00015 #include <vrvCore/DtWidget.h> 00016 00017 #include <osg/ref_ptr> 00018 #include <osg/Texture> 00019 00020 namespace makVrv 00021 { 00022 00023 class DtDe; 00024 class DtQuad; 00025 00028 class DT_DLL_VRVOSG DtImageAttribute : public DtAttribute 00029 { 00030 public: 00031 00033 DtImageAttribute( DtDe& de ); 00034 00036 virtual ~DtImageAttribute(); 00037 00039 virtual void setImageFilePath( const std::string& imageFilePath ); 00040 00043 virtual void setPosition( float x, float y, float z, float w ); 00044 00046 virtual void setOffset( double x, double y ); 00047 00049 virtual void getMinSize( double& xOut, double& yOut ); 00050 00052 virtual void setColor( float r, float g, float b, float a ); 00053 00055 virtual void setSize( double x, double y ); 00056 00058 virtual void setVisible( bool visible ); 00059 00061 virtual bool visible() const; 00062 00065 virtual void setOverlay( unsigned int overlayId ); 00066 00069 virtual void setGroup( unsigned int group ); 00070 00071 protected: 00072 00074 virtual void updateImageBox(); 00075 00076 protected: 00077 00078 DtBaseQuadAttribute myQuadAttribute; 00079 DtBaseOutlineAttribute myOutlineAttribute; 00080 DtDe& myDe; 00081 std::string myImageFilePath; 00082 osg::ref_ptr<osg::Texture> myQuadTexture; 00083 00084 }; 00085 00086 }