Logo Search packages:      
Sourcecode: earth3d version File versions  Download package

Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes

TreeDrawFactory Class Reference

#include <treeDrawFactory.h>

Inheritance diagram for TreeDrawFactory:
Inheritance graph
[legend]
Collaboration diagram for TreeDrawFactory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void addDownloader (StopableDownload *drl)
virtual void dataReceived (const char *response, int size, const char *sender, int countParts, struct part_t *parts, void *userdata, ConnectNetworkService *cns, StopableDownload *download)
virtual void remove (Draw *draw)
virtual void removeDownloader (StopableDownload *drl)
virtual void stopDownloads ()
 TreeDrawFactory (GraphicsObjectsContainer *goc, ConnectNetworkService *cns, GLTestWidget *glwidget)

Protected Member Functions

void tagGeometry (QDomNode geometryNode, int msgid, const char *sender, ConnectNetworkService *cns)
DrawtagGeometryGpsMark (QDomNode geometryNode, Draw *newDraw)
DrawtagGeometryMapTree (QDomNode geometryNode, Draw *newDraw, bool &gocAdd)
void tagNavigation (QDomNode navigationNode, int msgid, const char *sender, ConnectNetworkService *cns)

Protected Attributes

QMutex downloadableMutex
int runningDownloads
StopableDownload ** runningDownloadsArray

Private Attributes

ConnectNetworkServicecns
GLTestWidgetglwidget
GraphicsObjectsContainergoc
std::map< long, Draw * > gocIDs
DrawignoreDraw
Geometry2D3DSphere sphere

Detailed Description

This class builds Draw objects from a downloaded description. In the dataReceived method the type determined and the correct class is called to build an object from the data.

To add some new visual object type, add a protected method like tagGeometryPOI and insert it into tagGeomtry. The new object must be inherited from the Draw class.

Definition at line 18 of file treeDrawFactory.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index