~ubuntu-branches/ubuntu/quantal/marble/quantal

« back to all changes in this revision

Viewing changes to src/lib/geodata/data/GeoDataLinearRing_p.h

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muškovac
  • Date: 2011-07-11 15:43:02 UTC
  • Revision ID: james.westby@ubuntu.com-20110711154302-lq69ftcx125g1jx5
Tags: upstream-4.6.90+repack
Import upstream version 4.6.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// This file is part of the Marble Virtual Globe.
 
3
//
 
4
// This program is free software licensed under the GNU LGPL. You can
 
5
// find a copy of this license in LICENSE.txt in the top directory of
 
6
// the source code.
 
7
//
 
8
// Copyright 2009      Patrick Spendrin <ps_ml@gmx.de>
 
9
//
 
10
 
 
11
#ifndef MARBLE_GEODATALINEARRINGPRIVATE_H
 
12
#define MARBLE_GEODATALINEARRINGPRIVATE_H
 
13
 
 
14
#include "GeoDataLineString_p.h"
 
15
 
 
16
#include "GeoDataTypes.h"
 
17
 
 
18
namespace Marble
 
19
{
 
20
 
 
21
class GeoDataLinearRingPrivate : public GeoDataLineStringPrivate
 
22
{
 
23
  public:
 
24
    GeoDataLinearRingPrivate( TessellationFlags f )
 
25
     : GeoDataLineStringPrivate( f )
 
26
    {
 
27
    }
 
28
 
 
29
    GeoDataLinearRingPrivate()
 
30
    {
 
31
    }
 
32
 
 
33
    virtual GeoDataGeometryPrivate* copy()
 
34
    { 
 
35
        GeoDataLinearRingPrivate* copy = new GeoDataLinearRingPrivate;
 
36
        *copy = *this;
 
37
        return copy;
 
38
    }
 
39
 
 
40
    virtual const char* nodeType() const
 
41
    {
 
42
        return GeoDataTypes::GeoDataLinearRingType;
 
43
    }
 
44
 
 
45
    virtual EnumGeometryId geometryId() const
 
46
    {
 
47
        return GeoDataLinearRingId;
 
48
    }
 
49
};
 
50
 
 
51
} // namespace Marble
 
52
 
 
53
#endif