Skip to content

Commit 4146d58

Browse files
author
timlinux
committedAug 20, 2008

16 files changed

+70
-67
lines changed
 

‎src/core/qgsdistancearea.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222

2323
class QgsGeometry;
2424

25-
/**
26-
General purpose distance and area calculator
27-
- calculations are done on ellipsoid
28-
- it's possible to pass points/features in any SRS, coordinates are transformed
29-
- two options how to use it
30-
+ use measure() takes QgsGeometry as a parameter and calculates distance or area
31-
+ use directly measureLine(), measurePolygon() which take list of QgsPoints
32-
(both cases transform the coordinates from source SRS to the ellipse coords)
33-
- returned values are in meters resp. square meters
25+
/** \ingroup core
26+
* General purpose distance and area calculator.
27+
* calculations are done on ellipsoid
28+
* it's possible to pass points/features in any CRS, coordinates are transformed
29+
* There are two options to use it
30+
* + use measure() takes QgsGeometry as a parameter and calculates distance or area
31+
* + use directly measureLine(), measurePolygon() which take list of QgsPoints
32+
* (both cases transform the coordinates from source SRS to the ellipse coords)
33+
* Returned values are in meters resp. square meters
3434
*/
3535
class CORE_EXPORT QgsDistanceArea
3636
{

‎src/core/qgsexception.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
#include <QDomNode>
2626

27-
/**
28-
Defines a qgis exception class
27+
/** \ingroup core
28+
* Defines a qgis exception class.
2929
*/
3030
class CORE_EXPORT QgsException : public std::exception
3131
{

‎src/core/qgsfeature.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ typedef QMap<int, QString> QgsFieldNameMap;
4040

4141
typedef QList<QgsFeature> QgsFeatureList;
4242

43-
/**
44-
* @class QgsFeature - Feature attribute class.
45-
* Encapsulates a single feature including id and field/value.
43+
/** \ingroup core
44+
* The feature class encapsulates a single feature including its id,
45+
* geometry and a list of field/values attributes.
4646
*
4747
* @author Gary E.Sherman
4848
*/

‎src/core/qgsfield.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@
2020
#include <QString>
2121
#include <QVariant>
2222

23-
/**
24-
\class QgsField
25-
\brief Class to encapsulate a field in an attribute table or data source.
26-
27-
QgsField stores metadata about an attribute field, including name, type
28-
length, and if applicable, precision.
23+
/** \ingroup core
24+
* Encapsulate a field in an attribute table or data source.
25+
* QgsField stores metadata about an attribute field, including name, type
26+
* length, and if applicable, precision.
2927
*/
3028

3129
class CORE_EXPORT QgsField

‎src/core/qgsgeometry.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ typedef QVector<QgsPolygon> QgsMultiPolygon;
4848

4949
class QgsRect;
5050

51-
/**
51+
/** \ingroup core
52+
* A geometry is the spatial representation of a feature.
5253
* Represents a geometry with input and output in formats specified by
5354
* (at least) the Open Geospatial Consortium (WKB / WKT), and containing
5455
* various functions for geoprocessing of the geometry.

‎src/core/qgshttptransaction.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,10 @@
2727

2828
class QTimer;
2929

30-
/**
31-
32-
\brief HTTP request/response manager that is redirect-aware.
33-
34-
This class extends the Qt QHttp concept by being able to recognise
35-
and respond to redirection responses (e.g. HTTP code 302)
36-
37-
38-
TODO: Make it work
39-
30+
/** \ingroup core
31+
* HTTP request/response manager that is redirect-aware.
32+
* This class extends the Qt QHttp concept by being able to recognise
33+
* and respond to redirection responses (e.g. HTTP code 302)
4034
*/
4135

4236
class CORE_EXPORT QgsHttpTransaction : public QObject

‎src/core/qgslabel.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ typedef QList<int> QgsAttributeList;
4242

4343
typedef QMap<int, QgsField> QgsFieldMap;
4444

45-
/** Render class to display labels */
45+
/** \ingroup core
46+
* A class to render labels.
47+
* Label rendering properties can be either specified directly or
48+
* in most cases determined dynamically based on the value of an attribute.
49+
**/
4650
class CORE_EXPORT QgsLabel
4751
{
4852
public:

‎src/core/qgslabelattributes.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
class QString;
2525
class QColor;
2626

27-
/** This class can be used to store attributes needed for label rendering.
27+
/** \ingroup core
28+
* A class to store attributes needed for label rendering.
2829
*
2930
* Label attributes:
3031
* border (color, width, style)
@@ -70,7 +71,7 @@ class QColor;
7071
* - border color
7172
* - border style
7273
*
73-
* Each attribute is either se or unset.
74+
* Each attribute is either set or unset.
7475
*/
7576

7677
class CORE_EXPORT QgsLabelAttributes

‎src/core/qgsline.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
#include <iostream>
2424

2525
#include "qgspoint.h"
26-
27-
/*! \class QgsLine
28-
* \brief A simple line object composed of a begin and end point.
26+
/** \ingroup core
27+
* A simple line object composed of a begin and end point.
2928
*
3029
* Comparisons (==, !=) honor the direction of the line. This means that
3130
* flipped lines with the same coordinates are not considered to be equal.

‎src/core/qgslogger.h

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,17 @@ __FILE__, __FUNCTION__, __LINE__);
3131
#define QgsDebugMsgLevel(str, level)
3232
#endif
3333

34-
/**QgsLogger is a class to print debug/warning/error messages to the console. The advantage of this class over std::cout, std::cerr & co. is that the output can be controlled with environment variables:
35-
36-
QGIS_DEBUG is an int describing what debug messages are written to the console. If the debug level of a message is <= QGIS_DEBUG, the message is written to the console. It the variable QGIS_DEBUG is not defined, it defaults to 1 for debug mode and to 0 for release mode
37-
38-
QGIS_DEBUG_FILE may contain a filename. Only the messages from this file are printed (provided they have the right debuglevel). If QGIS_DEBUG_FILE is not set, messages from all files are printed
34+
/** \ingroup core
35+
* QgsLogger is a class to print debug/warning/error messages to the console.
36+
* The advantage of this class over std::cout, std::cerr & co. is that the
37+
* output can be controlled with environment variables:
38+
* QGIS_DEBUG is an int describing what debug messages are written to the console.
39+
* If the debug level of a message is <= QGIS_DEBUG, the message is written to the
40+
* console. It the variable QGIS_DEBUG is not defined, it defaults to 1 for debug
41+
* mode and to 0 for release mode
42+
* QGIS_DEBUG_FILE may contain a filename. Only the messages from this file are
43+
* printed (provided they have the right debuglevel). If QGIS_DEBUG_FILE is not
44+
* set, messages from all files are printed
3945
*/
4046

4147
class CORE_EXPORT QgsLogger

‎src/core/qgsmaplayer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ class QDomDocument;
3434
class QKeyEvent;
3535
class QPainter;
3636

37-
/** \class QgsMapLayer
38-
* \brief Base class for all map layer types.
39-
* This class is the base class for all map layer types (vector, raster).
37+
/** \ingroup core
38+
* Base class for all map layer types.
39+
* This is the base class for all map layer types (vector, raster).
4040
*/
4141
class CORE_EXPORT QgsMapLayer : public QObject
4242
{

‎src/core/qgsmaplayerregistry.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ class QStringList;
2828

2929
class QgsMapLayer;
3030

31-
/**
32-
* \class QgsMapLayerRegistry
33-
* \brief This class tracks map layers that are currently loaded an provides
34-
* a means to fetch a pointer to a map layer and delete it
31+
/** \ingroup core
32+
* This class tracks map layers that are currently loaded and provides
33+
* a means to fetch a pointer to a map layer and delete it.
3534
*/
3635
class CORE_EXPORT QgsMapLayerRegistry : public QObject
3736
{

‎src/core/qgsmaprenderer.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ class QgsScaleCalculator;
3434
class QgsSpatialRefSys;
3535
class QgsDistanceArea;
3636

37-
/**
38-
* \class QgsMapRenderer
39-
* \brief Class for rendering map layer set
40-
*
37+
/** \ingroup core
38+
* A non GUI class for rendering a map layer set onto a QPainter.
4139
*/
4240

4341
class CORE_EXPORT QgsMapRenderer : public QObject

‎src/core/qgsmaptopixel.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
class QgsPoint;
2727
class QPoint;
2828

29-
/*! \class QgsMapToPixel
30-
* \brief Class for doing transforms between map coordinates and device coordinates.
31-
*
32-
* This class can convert device coordinates to map coordinates and vice versa.
33-
*/
29+
/** \ingroup core
30+
* Perform transforms between map coordinates and device coordinates.
31+
*
32+
* This class can convert device coordinates to map coordinates and vice versa.
33+
*/
3434
class CORE_EXPORT QgsMapToPixel{
3535
public:
3636
/* Constructor

‎src/core/qgsmessageoutput.h

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ class QgsMessageOutput;
2525
typedef QgsMessageOutput* (*MESSAGE_OUTPUT_CREATOR)();
2626

2727

28-
/**
29-
\brief Interface for showing messages from QGIS in GUI independent way
30-
31-
This class provides abstraction of a dialog for showing output to the user.
32-
By default QgsMessageConsoleOutput will be used if not overridden
33-
with other message output creator function.
28+
/** \ingroup core
29+
* Interface for showing messages from QGIS in GUI independent way.
30+
* This class provides abstraction of a dialog for showing output to the user.
31+
* By default QgsMessageConsoleOutput will be used if not overridden with other
32+
* message output creator function.
3433
35-
QGIS application uses QgsMessageView class for displaying a dialog to the user.
34+
* QGIS application uses QgsMessageView class for displaying a dialog to the user.
3635
37-
Object deletes itself when it's not needed anymore. Children should use
38-
signal destroyed() to notify the deletion
36+
* Object deletes itself when it's not needed anymore. Children should use
37+
* signal destroyed() to notify the deletion
3938
*/
4039
class CORE_EXPORT QgsMessageOutput
4140
{

‎src/core/qgspoint.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323

2424
#include <QString>
2525

26+
/** \ingroup core
27+
* A class to represent a point geometry.
28+
* Currently no Z axis / 2.5D support is implemented.
29+
*/
2630
class CORE_EXPORT QgsPoint
2731
{
2832
public:

0 commit comments

Comments
 (0)
Please sign in to comment.