VR-Forces 4.0.4 Class Documentation
include/symbolDrawer/ttfUnitSymbolDrawer.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2001 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: ttfUnitSymbolDrawer.h,v $ $Revision: 1.12 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtTTFUnitSymbolDrawer_H_
00013 #define DtTTFUnitSymbolDrawer_H_
00014 
00016 #include "symbolDrawer/mmmDrawer.h"
00017 
00018 class DtTTFUnitSymbol;
00019 class QString;
00020 
00023 #include "symbolDrawer/symbolDrawerDefines.h"
00024 
00025 class DT_DLL_symbolDrawer DtTTFUnitSymbolDrawer : public DtMMMDrawer
00026 {
00027 
00028 public:
00029    
00030    
00031    DtTTFUnitSymbolDrawer();
00032 
00034    DtTTFUnitSymbolDrawer(const QString& family, int pointSize = 24,
00035                const QColor& fillColor = QColor(128, 224, 225) );
00036 
00037    virtual ~DtTTFUnitSymbolDrawer();
00038 
00041    virtual QSize calcBBox( const DtSymbol* const symbol ) const;
00042    virtual QRect calcBRect( const DtSymbol * const symbol) const;
00043 
00044    virtual unsigned int pixelSize(const DtMMMSymbol&) const ;
00045 
00046    virtual void setPixelSize( unsigned int size );
00047 
00048 
00049    virtual unsigned int pointSize() const ;
00050 
00051    virtual void setPointSize( unsigned int size );
00052 
00053    static DtSymbolDrawer* create();
00054 
00055 protected:  
00058    virtual void paintFont(QPainter& painter, 
00059       int left, int base, 
00060       const DtTTSSymbol & symbol ) const;
00061 
00062    virtual void paintFontOnPix( QPixmap * pix, const DtMMMSymbol *pSymbol ) const;
00063    virtual void paintFontOnPix( QImage * pix, const DtMMMSymbol *pSymbol ) const;
00064    virtual void drawHighlightForPattern( QPainter& paint,const DtMMMSymbol *pSymbol ) const;
00065 
00066    virtual QSize fontSize(const DtMMMSymbol*) const;
00067    virtual QPoint calcOrigin(const DtTTSSymbol* pSymbol, bool calcBitmapOrigin = false) const;
00068 
00069 private:
00071    DtTTFUnitSymbolDrawer( const DtTTFUnitSymbolDrawer& orig );
00072    DtTTFUnitSymbolDrawer& operator=( const DtTTFUnitSymbolDrawer& orig );
00074 
00075 protected:
00076 };
00077 
00078 #endif
00079 

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)