VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtBaseQuadAttribute.h
Go to the documentation of this file.
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 <vrvCore/DtWidget.h>
00015 
00016 namespace makVrv
00017 {
00018 
00019    class DtDe;
00020    class DtQuad;
00021 
00025    class DT_DLL_VRVOSG DtBaseQuadAttribute : public DtAttribute
00026    {
00027    public:
00028 
00030       DtBaseQuadAttribute( DtDe& de );
00031 
00033       virtual ~DtBaseQuadAttribute();
00034 
00036       virtual void setOffset( double x, double y );
00037 
00039       virtual void setPosition( float x, float y, float z, float w );
00040 
00042       virtual void getMinSize( double& xOut, double& yOut );
00043 
00046       virtual void setSize( double x, double y );
00047 
00049       virtual void setColor( float r, float g, float b, float a );
00050 
00052       virtual void setVisible( bool visible );
00053 
00055       virtual bool visible() const;
00056 
00058       virtual DtQuad* quad();
00059 
00062       virtual void setOverlay( unsigned int overlayId );
00063 
00066       virtual void setGroup( unsigned int group );
00067 
00068    protected:
00069 
00071       virtual void updateQuad();
00072 
00073    protected:
00074 
00075       DtQuad* myQuad;
00076       DtDe& myDe;
00077 
00078       float myX;
00079       float myY;
00080       float myZ;
00081       float myW;
00082 
00083       double myOffsetX;
00084       double myOffsetY;
00085 
00086       float myR;
00087       float myG;
00088       float myB;
00089       float myA;
00090 
00091       double mySizeX;
00092       double mySizeY;
00093 
00094       bool myVisible;
00095 
00096       unsigned int myOverlay;
00097 
00098    };
00099 
00100 }

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)