VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtBaseOutlineAttribute.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 <vrvOsg/DtBaseQuadAttribute.h>
00015 #include <vrvCore/DtWidget.h>
00016 
00017 namespace makVrv
00018 {
00019 
00020    class DtDe;
00021    class DtQuad;
00022    class DtLineSegment;
00023 
00026    class DT_DLL_VRVOSG DtBaseOutlineAttribute : public DtAttribute
00027    {
00028    public:
00029 
00031       DtBaseOutlineAttribute( DtDe& de );
00032 
00034       virtual ~DtBaseOutlineAttribute();
00035 
00037       virtual void setOffset( double x, double y );
00038 
00041       virtual void setPosition( float x, float y, float z, float w );
00042 
00044       virtual void getMinSize( double& xOut, double& yOut );
00045 
00047       virtual void setSize( double x, double y );
00048 
00050       virtual void setColor( float r, float g, float b, float a );
00051 
00053       virtual void setLineWidth( float width );
00054 
00056       virtual void setVisible( bool visible );
00057 
00059       virtual bool visible() const;
00060 
00063       virtual void setOverlay( unsigned int overlayId );
00064 
00067       virtual void setGroup( unsigned int group );
00068 
00069    protected:
00070 
00072       virtual void updateOutline();
00073 
00074    protected:
00075 
00076       DtLineSegment* myOutline[4];
00077       DtDe& myDe;
00078 
00079       float myX;
00080       float myY;
00081       float myZ;
00082       float myW;
00083 
00084       double myOffsetX;
00085       double myOffsetY;
00086 
00087       double mySizeX;
00088       double mySizeY;
00089 
00090       float myLineWidth;
00091 
00092       float myR;
00093       float myG;
00094       float myB;
00095       float myA;
00096 
00097       bool myVisible;
00098 
00099       unsigned int myOverlay;
00100       unsigned int myOverlayGroup;
00101 
00102    };
00103 
00104 }

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)