mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
renderer doc update
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@171 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
7d95dd42b1
commit
91705221c8
15
ChangeLog
15
ChangeLog
@ -1,3 +1,18 @@
|
||||
Version 0.0.8-alpha December 11, 2002
|
||||
*During repaint, the data store is only accessed if map state or extent
|
||||
has changed
|
||||
*Changes to layer properites aren't effective until the Layer Properties
|
||||
dialog is closed
|
||||
*Canceling the Layer Propeties dialog cancels changes
|
||||
|
||||
Version 0.0.7-alpha November 30, 2002
|
||||
*Changes to the build system to allow building with/without PostgeSQL
|
||||
support
|
||||
|
||||
Version 0.0.6a-alpha November 27, 2002
|
||||
*Fix to build problems introduced at 0.0.6. No new features are included
|
||||
in this release.
|
||||
|
||||
Version 0.0.6-alpha November 24, 2002
|
||||
*Improved handling/management of PostGIS connections
|
||||
*Password prompt if the password is not stored with a connection
|
||||
|
@ -19,12 +19,20 @@
|
||||
#include <map>
|
||||
class QString;
|
||||
|
||||
/*! \class QgsRenderer
|
||||
* \brief Base class for all renderers
|
||||
*/
|
||||
class QgsRenderer {
|
||||
//! Type of renderer
|
||||
int type;
|
||||
//! Field name used to render layer
|
||||
QString field;
|
||||
//! map of render items (ie. classes)
|
||||
map<QString, QgsRenderItem>items;
|
||||
public:
|
||||
//! Constructor
|
||||
QgsRenderer(int _type, QString _field);
|
||||
//! Add a render item (class) to the renderer
|
||||
void addItem(QString key, QgsRenderItem ri);
|
||||
|
||||
|
||||
|
@ -19,16 +19,34 @@
|
||||
#include <map>
|
||||
#include "qgssymbol.h"
|
||||
class QString;
|
||||
|
||||
/*! \class QgsRenderItem
|
||||
* \brief A render item (also known as a class) that represents how to
|
||||
* render a feature of type "value".
|
||||
*/
|
||||
class QgsRenderItem {
|
||||
private:
|
||||
//! Symbol to use in rendering the class
|
||||
QgsSymbol sym;
|
||||
//! Value of the field
|
||||
QString value;
|
||||
//! Label to use when rendering (may be same as value of field)
|
||||
QString label;
|
||||
public:
|
||||
//! Default Constructor
|
||||
QgsRenderItem();
|
||||
/*! Constructor
|
||||
* @param symbol Symbol to use for rendering matching features
|
||||
* @param _value Value of the field
|
||||
* @param _label Label to use in the legend
|
||||
*/
|
||||
QgsRenderItem(QgsSymbol symbol, QString _value, QString _label);
|
||||
/*! Gets the symbol associated with this render item
|
||||
* @return QgsSymbol pointer
|
||||
*/
|
||||
QgsSymbol *getSymbol();
|
||||
/*! Sets the symbol associated with this render item
|
||||
* @param s Symbol
|
||||
*/
|
||||
void setSymbol(QgsSymbol s);
|
||||
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user