VR-Forces 4.0.4 Class Documentation
include/symbolMapper/mmmSymbolDesc.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2003 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: mmmSymbolDesc.h,v $ $Revision: 1.9 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef MMMSYMBOLDESC_H
00013 #define MMMSYMBOLDESC_H
00014 
00015 #include "symbolMapper/ttfSymbolDesc.h"
00016 
00019 #include "symbolMapper/symbolMapperDefines.h"
00020 class DT_DLL_symbolMapper DtMMMSymbolDescriptor : public DtTtfSymbolDescriptor
00021 {
00022 public:
00023 
00025    DtMMMSymbolDescriptor();
00026 
00028    virtual ~DtMMMSymbolDescriptor();
00029 
00031    DtMMMSymbolDescriptor(const DtMMMSymbolDescriptor& orig);
00032 
00034    virtual DtSymbolDescriptor& operator=(const DtSymbolDescriptor& rhs);
00035    virtual bool operator==(const DtSymbolDescriptor&) const;
00036 
00037    virtual QString type() const;
00038 
00039    virtual DtSymbol* createSymbol(DtSymbolDrawer& drawer, const DtEntityMapperKey& key) const;
00040 
00041    void setBackgroundCharacter(const QString&);
00042    bool backgroundCharacterSet() const;
00043    const QString& backgroundCharacter() const;
00044    void clearBackgroundCharacter();
00045 
00046    virtual void setupOptionSymbolInformation(DtSymbol* mainSymbol) const;
00047 
00048    virtual DtSymbolDescriptor* clone();
00049 
00050    virtual QString descriptorInformation() const;
00051 
00052 protected:
00053    virtual QString descriptorType() const;
00054 
00055 protected:
00056    QString  myBackgroundCharacter;
00057    bool     myBackgroundCharacterSet;
00058 };
00059 
00060 inline void DtMMMSymbolDescriptor::setBackgroundCharacter(const QString& s)
00061 {
00062    myBackgroundCharacter = s;
00063    myBackgroundCharacterSet = true;
00064 }
00065 
00066 inline bool DtMMMSymbolDescriptor::backgroundCharacterSet() const
00067 {
00068    return myBackgroundCharacterSet;
00069 }
00070 
00071 inline const QString& DtMMMSymbolDescriptor::backgroundCharacter() const
00072 {
00073    return myBackgroundCharacter;
00074 }
00075 
00076 inline void DtMMMSymbolDescriptor::clearBackgroundCharacter()
00077 {
00078    myBackgroundCharacter = "";
00079    myBackgroundCharacterSet = false;
00080 }
00081 
00082 #endif

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)