mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Code formatting only
git-svn-id: http://svn.osgeo.org/qgis/trunk@7844 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
ae0901d755
commit
9b3cdb2c90
@ -28,10 +28,10 @@ class QDomNode;
|
|||||||
class QDomDocument;
|
class QDomDocument;
|
||||||
|
|
||||||
/**Encapsulates settings for drawing (QPen, QBrush, Point symbol) and classification
|
/**Encapsulates settings for drawing (QPen, QBrush, Point symbol) and classification
|
||||||
(lower value, upper value)*/
|
(lower value, upper value)*/
|
||||||
class CORE_EXPORT QgsSymbol{
|
class CORE_EXPORT QgsSymbol{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**Constructor*/
|
/**Constructor*/
|
||||||
QgsSymbol(QGis::VectorType t, QString lvalue="", QString uvalue="", QString label="");
|
QgsSymbol(QGis::VectorType t, QString lvalue="", QString uvalue="", QString label="");
|
||||||
/**Constructor*/
|
/**Constructor*/
|
||||||
@ -66,10 +66,10 @@ class CORE_EXPORT QgsSymbol{
|
|||||||
/**Set the fill (brush) style*/
|
/**Set the fill (brush) style*/
|
||||||
virtual void setFillStyle(Qt::BrushStyle s);
|
virtual void setFillStyle(Qt::BrushStyle s);
|
||||||
|
|
||||||
/**Gets the path to the customs texture image*/
|
/**Gets the path to the customs texture image*/
|
||||||
virtual QString customTexture() const;
|
virtual QString customTexture() const;
|
||||||
/**Sets the path to the custom texture, and sets the brush to use TexturePattern */
|
/**Sets the path to the custom texture, and sets the brush to use TexturePattern */
|
||||||
virtual void setCustomTexture(QString path);
|
virtual void setCustomTexture(QString path);
|
||||||
|
|
||||||
virtual void setLowerValue(QString value);
|
virtual void setLowerValue(QString value);
|
||||||
virtual QString lowerValue() const;
|
virtual QString lowerValue() const;
|
||||||
@ -94,22 +94,22 @@ class CORE_EXPORT QgsSymbol{
|
|||||||
|
|
||||||
//! Get a little icon for the legend
|
//! Get a little icon for the legend
|
||||||
virtual QImage getPolygonSymbolAsImage();
|
virtual QImage getPolygonSymbolAsImage();
|
||||||
|
|
||||||
/** Get QImage representation of point symbol with current settings
|
/** Get QImage representation of point symbol with current settings
|
||||||
*/
|
*/
|
||||||
virtual QImage getPointSymbolAsImage( double widthScale = 1.,
|
virtual QImage getPointSymbolAsImage( double widthScale = 1.,
|
||||||
bool selected = false, QColor selectionColor = Qt::yellow );
|
bool selected = false, QColor selectionColor = Qt::yellow );
|
||||||
|
|
||||||
/**Writes the contents of the symbol to a configuration file
|
/**Writes the contents of the symbol to a configuration file
|
||||||
@ return true in case of success*/
|
@ return true in case of success*/
|
||||||
virtual bool writeXML( QDomNode & item, QDomDocument & document ) const;
|
virtual bool writeXML( QDomNode & item, QDomDocument & document ) const;
|
||||||
/**Reads the contents of the symbol from a configuration file
|
/**Reads the contents of the symbol from a configuration file
|
||||||
@ return true in case of success*/
|
@ return true in case of success*/
|
||||||
virtual bool readXML( QDomNode & symbol );
|
virtual bool readXML( QDomNode & symbol );
|
||||||
/**Returns if this symbol is point/ line or polygon*/
|
/**Returns if this symbol is point/ line or polygon*/
|
||||||
QGis::VectorType type() const {return mType;}
|
QGis::VectorType type() const {return mType;}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**Lower value for classification*/
|
/**Lower value for classification*/
|
||||||
QString mLowerValue;
|
QString mLowerValue;
|
||||||
/**Upper value for classification*/
|
/**Upper value for classification*/
|
||||||
@ -120,7 +120,7 @@ class CORE_EXPORT QgsSymbol{
|
|||||||
|
|
||||||
QPen mPen;
|
QPen mPen;
|
||||||
QBrush mBrush;
|
QBrush mBrush;
|
||||||
QString mTextureFilePath;
|
QString mTextureFilePath;
|
||||||
/* Point symbol name */
|
/* Point symbol name */
|
||||||
QString mPointSymbolName;
|
QString mPointSymbolName;
|
||||||
/* Point size */
|
/* Point size */
|
||||||
@ -137,7 +137,7 @@ class CORE_EXPORT QgsSymbol{
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
/* Point symbol cache */
|
/* Point symbol cache */
|
||||||
QImage mPointSymbolImage;
|
QImage mPointSymbolImage;
|
||||||
|
|
||||||
@ -146,11 +146,11 @@ class CORE_EXPORT QgsSymbol{
|
|||||||
|
|
||||||
/* Current line width scale used by mPointSymbolVectorImage */
|
/* Current line width scale used by mPointSymbolVectorImage */
|
||||||
double mWidthScale;
|
double mWidthScale;
|
||||||
|
|
||||||
/* Point symbol cache but with line width scale mWidthScale */
|
/* Point symbol cache but with line width scale mWidthScale */
|
||||||
QImage mPointSymbolImage2;
|
QImage mPointSymbolImage2;
|
||||||
QImage mPointSymbolImageSelected2;
|
QImage mPointSymbolImageSelected2;
|
||||||
|
|
||||||
/* Create point symbol mPointSymbolImage/mPointSymbolImage cache */
|
/* Create point symbol mPointSymbolImage/mPointSymbolImage cache */
|
||||||
void cache( QColor selectionColor );
|
void cache( QColor selectionColor );
|
||||||
|
|
||||||
@ -170,52 +170,52 @@ class CORE_EXPORT QgsSymbol{
|
|||||||
|
|
||||||
inline void QgsSymbol::setBrush(QBrush b)
|
inline void QgsSymbol::setBrush(QBrush b)
|
||||||
{
|
{
|
||||||
mBrush=b;
|
mBrush=b;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline const QBrush& QgsSymbol::brush() const
|
inline const QBrush& QgsSymbol::brush() const
|
||||||
{
|
{
|
||||||
return mBrush;
|
return mBrush;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void QgsSymbol::setPen(QPen p)
|
inline void QgsSymbol::setPen(QPen p)
|
||||||
{
|
{
|
||||||
mPen=p;
|
mPen=p;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline const QPen& QgsSymbol::pen() const
|
inline const QPen& QgsSymbol::pen() const
|
||||||
{
|
{
|
||||||
return mPen;
|
return mPen;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void QgsSymbol::setLowerValue(QString value)
|
inline void QgsSymbol::setLowerValue(QString value)
|
||||||
{
|
{
|
||||||
mLowerValue=value;
|
mLowerValue=value;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline QString QgsSymbol::lowerValue() const
|
inline QString QgsSymbol::lowerValue() const
|
||||||
{
|
{
|
||||||
return mLowerValue;
|
return mLowerValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void QgsSymbol::setUpperValue(QString value)
|
inline void QgsSymbol::setUpperValue(QString value)
|
||||||
{
|
{
|
||||||
mUpperValue=value;
|
mUpperValue=value;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline QString QgsSymbol::upperValue() const
|
inline QString QgsSymbol::upperValue() const
|
||||||
{
|
{
|
||||||
return mUpperValue;
|
return mUpperValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void QgsSymbol::setLabel(QString label)
|
inline void QgsSymbol::setLabel(QString label)
|
||||||
{
|
{
|
||||||
mLabel=label;
|
mLabel=label;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline QString QgsSymbol::label() const
|
inline QString QgsSymbol::label() const
|
||||||
{
|
{
|
||||||
return mLabel;
|
return mLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // QGSSYMBOL_H
|
#endif // QGSSYMBOL_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user