VR-Forces 4.0.4 Class Documentation
include/symbology/polygonSymbol.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2001 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: polygonSymbol.h,v $ $Revision: 1.20 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DtPolygonSymbol_H_
00013 #define DtPolygonSymbol_H_
00014 
00015 #include "symbology/lineSymbol.h"
00016 
00017 class DtNullDrawer;
00018 class DtPolygonDrawer;
00019 
00020 class QColor;
00021 
00022 #include <QtGui/QBrush>
00023 
00025 #include "symbology/symbologyDefines.h"
00026 class DT_DLL_symbology DtPolygonSymbol : public DtLineSymbol
00027 {
00028 public:
00029 
00030    enum DtPolygonStyle
00031    {
00032         DtStyle_NoPolygon = 0,   
00033         DtStyle_Outline,         
00034         DtStyle_Fill,            
00035         DtStyle_Pattern,         
00036         DtStyle_PolygonStyle_MAX = 100 
00037    };
00038 
00040    DtPolygonSymbol( DtSymbolDrawer & drawer);
00041 
00043    DtPolygonSymbol( DtNullDrawer & drawer);
00044 
00046    DtPolygonSymbol(const DtPolygonSymbol& orig);
00047 
00049    virtual ~DtPolygonSymbol();
00050 
00052    virtual DtSymbol * clone()const;
00053    
00057    virtual const DtDisplayPoint centerPoint() const;
00058 
00060    virtual void shift(QPoint p);
00061 
00065    virtual const QPoint getPoint(int pointNum) const;
00066 
00067    virtual DtPolygonStyle polygonStyle() const;
00068    virtual void setPolygonStyle(DtPolygonStyle style);
00069 
00070    virtual Qt::BrushStyle patternStyle() const;
00071    virtual void setPatternStyle(Qt::BrushStyle style);
00072 
00075    virtual void setAllowInsideSelection(bool b);
00076    bool allowInsideSelection() const;
00077 
00080    virtual bool select(const QPoint& aPoint);
00081 
00082    bool operator==(const DtPolygonSymbol& orig) const;
00083    bool operator!=(const DtPolygonSymbol& orig) const;
00084 
00085    virtual bool transparentCacheChanged() const;
00086 
00087 private:
00089    DtPolygonSymbol();
00090 
00091 protected:
00092    //Center Point is calculated
00093    virtual const  DtDisplayPoint calcCenterPoint() const;
00094 
00095 protected:
00096    DtPolygonStyle myPolygonStyle;   
00097    Qt::BrushStyle myBrushStyle;
00098    bool myAllowInsideSelection;
00099 };
00100 
00101 inline bool DtPolygonSymbol::allowInsideSelection() const
00102 {
00103    return myAllowInsideSelection;
00104 }
00105 
00106 #endif
00107 

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)