![]() |
VR-Forces 4.1.1 Class Documentation
|
Descriptors provide a layer of abstraction which the programmer can use to specify the type of symbol to be used for a given key. More...

Public Member Functions | |
| DtSymbolDescriptor () | |
| default constructor | |
| virtual | ~DtSymbolDescriptor () |
| destructor | |
| DtSymbolDescriptor (const DtSymbolDescriptor &orig) | |
| copy constructor | |
| virtual DtSymbolDescriptor & | operator= (const DtSymbolDescriptor &rhs) |
| assignment operator | |
| virtual bool | operator== (const DtSymbolDescriptor &rhs) const |
| equality operators | |
| virtual bool | operator!= (const DtSymbolDescriptor &rhs) const |
| virtual QString | secondaryInfo () const |
| Used for drawer keys that need a second key, such as fontname for text items. | |
| virtual DtSymbol * | createSymbol (DtSymbolDrawer &drawer, const DtEntityMapperKey &key) const =0 |
| void | setColor (const QColor &color) |
| const QColor & | color () const |
| void | setTransparencyLevel (int) |
| int | transparencyLevel () const |
| void | setOptionalColorParameter (int) |
| int | optionalColorParameter () const |
| void | setWriteOut (bool) |
| bool | writeOut () const |
| virtual DtSymbolDescriptor * | clone ()=0 |
| virtual QString | descriptorInformation () const |
| Called from toFileString(). Fills in specific information for descriptor. | |
Public Member Functions inherited from DtDescriptor | |
| DtDescriptor () | |
| default constructor | |
| virtual | ~DtDescriptor () |
| destructor | |
| DtDescriptor (const DtDescriptor &orig) | |
| copy constructor | |
| virtual DtDescriptor & | operator= (const DtDescriptor &rhs) |
| assignment operator | |
| virtual bool | operator== (const DtDescriptor &) const |
| equality operators | |
| virtual bool | operator!= (const DtDescriptor &) const |
| virtual const QString & | key () const |
| virtual void | setKey (const QString &s) |
| virtual const QString & | keyword () const |
| virtual void | setKeyword (const QString &s) |
| virtual QString | type () const =0 |
| virtual QString | info () const =0 |
| virtual QString | descriptorString () const |
| Returns a string that can be written to file. Returns an mtl representation. | |
Protected Member Functions | |
| virtual void | setupOptionSymbolInformation (DtSymbol *mainSymbol) const |
Protected Member Functions inherited from DtDescriptor | |
| virtual QString | descriptorType () const |
| Returns type(), however, can return a different value. | |
Protected Attributes | |
| QColor | myColor |
| int | myTransparencyLevel |
| int | myOptionalColorParameter |
| bool | myOptionalData |
| bool | myWriteOut |
Protected Attributes inherited from DtDescriptor | |
| QString | myKey |
| QString | myKeyword |
Descriptors provide a layer of abstraction which the programmer can use to specify the type of symbol to be used for a given key.
Unlike symbols, descriptors are for generic objects, not specific instances to be drawn on the screen.
For example key "something meaningful" might always be mapped to true type string "S", while "another key" maps to bitmap "B". So, to display 3 "something meaningful" objects on the screen, one would create 3 symbols of subtype true type string and set the additional instance data such as position.
Descriptors are typically used to hold data read from configuration files.
|
inline |
default constructor
|
inlinevirtual |
destructor
|
inline |
copy constructor
|
inlinevirtual |
assignment operator
Reimplemented in DtUnicodeTTFSymbolDescriptor, DtBmpSymbolDescriptor, DtTtfSymbolDescriptor, DtMMMSymbolDescriptor, DtCircleSymbolDescriptor, DtOverlaySymbolDescriptor, DtBoxSymbolDescriptor, DtMlsSymbolDescriptor, and DtPolygonSymbolDescriptor.
References myColor, myOptionalColorParameter, myOptionalData, myTransparencyLevel, myWriteOut, and DtDescriptor::operator=().
|
inlinevirtual |
equality operators
Reimplemented in DtUnicodeTTFSymbolDescriptor, DtBmpSymbolDescriptor, DtTtfSymbolDescriptor, DtMMMSymbolDescriptor, DtCircleSymbolDescriptor, DtOverlaySymbolDescriptor, DtBoxSymbolDescriptor, DtMlsSymbolDescriptor, and DtPolygonSymbolDescriptor.
References myColor, myOptionalColorParameter, myOptionalData, myTransparencyLevel, and myWriteOut.
|
inlinevirtual |
|
inlinevirtual |
Used for drawer keys that need a second key, such as fontname for text items.
Reimplemented in DtTtfSymbolDescriptor, and DtOverlaySymbolDescriptor.
|
pure virtual |
|
inline |
References color(), myColor, and myOptionalData.
|
inline |
References myColor.
Referenced by setColor().
|
inline |
References myOptionalData, and myTransparencyLevel.
|
inline |
References myTransparencyLevel.
|
inline |
References myOptionalColorParameter, and myOptionalData.
|
inline |
References myOptionalColorParameter.
|
inline |
References myWriteOut.
|
inline |
References myWriteOut.
|
pure virtual |
|
inlinevirtual |
Called from toFileString(). Fills in specific information for descriptor.
Implements DtDescriptor.
Reimplemented in DtUnicodeTTFSymbolDescriptor, DtOverlaySymbolDescriptor, DtTtfSymbolDescriptor, DtCircleSymbolDescriptor, DtBmpSymbolDescriptor, DtMlsSymbolDescriptor, DtMMMSymbolDescriptor, and DtPolygonSymbolDescriptor.
|
inlineprotectedvirtual |
Reimplemented in DtMMMSymbolDescriptor.
References myColor, myTransparencyLevel, DtSymbol::setColor(), and DtSymbol::setTransparencyLevel().
|
protected |
Referenced by color(), operator=(), operator==(), setColor(), and setupOptionSymbolInformation().
|
protected |
Referenced by operator=(), operator==(), setTransparencyLevel(), setupOptionSymbolInformation(), and transparencyLevel().
|
protected |
Referenced by operator=(), operator==(), optionalColorParameter(), and setOptionalColorParameter().
|
protected |
Referenced by operator=(), operator==(), setColor(), setOptionalColorParameter(), and setTransparencyLevel().
|
protected |
Referenced by operator=(), operator==(), setWriteOut(), and writeOut().