• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataPlaylist.cpp
Go to the documentation of this file.
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 2013 Illya Kovalevskyy <illya.kovalevskyy@gmail.com>
9 //
10 
11 #include "GeoDataPlaylist.h"
12 
13 #include "GeoDataTypes.h"
14 
15 namespace Marble
16 {
17 
18 GeoDataPlaylist::GeoDataPlaylist()
19 {
20 }
21 
22 GeoDataPlaylist::~GeoDataPlaylist()
23 {
24 }
25 
26 const char *GeoDataPlaylist::nodeType() const
27 {
28  return GeoDataTypes::GeoDataPlaylistType;
29 }
30 
31 GeoDataTourPrimitive* GeoDataPlaylist::primitive(int id)
32 {
33  if (size() <= id || id < 0) {
34  return 0;
35  }
36  return m_primitives.at(id);
37 }
38 
39 const GeoDataTourPrimitive* GeoDataPlaylist::primitive(int id) const
40 {
41  if (size() <= id || id < 0) {
42  return 0;
43  }
44  return m_primitives.at(id);
45 }
46 
47 void GeoDataPlaylist::addPrimitive(GeoDataTourPrimitive *primitive)
48 {
49  m_primitives.push_back(primitive);
50 }
51 
52 int GeoDataPlaylist::size() const
53 {
54  return m_primitives.size();
55 }
56 
57 } // namespace Marble
Marble::GeoDataPlaylist::addPrimitive
void addPrimitive(GeoDataTourPrimitive *primitive)
Definition: GeoDataPlaylist.cpp:47
Marble::GeoDataTourPrimitive
Definition: GeoDataTourPrimitive.h:20
Marble::GeoDataPlaylist::nodeType
const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataPlaylist.cpp:26
Marble::GeoDataPlaylist::~GeoDataPlaylist
~GeoDataPlaylist()
Definition: GeoDataPlaylist.cpp:22
Marble::GeoDataPlaylist::primitive
GeoDataTourPrimitive * primitive(int id)
Definition: GeoDataPlaylist.cpp:31
Marble::GeoDataTypes::GeoDataPlaylistType
const char * GeoDataPlaylistType
Definition: GeoDataTypes.cpp:63
GeoDataPlaylist.h
Marble::GeoDataPlaylist::size
int size() const
Definition: GeoDataPlaylist.cpp:52
GeoDataTypes.h
Marble::GeoDataPlaylist::GeoDataPlaylist
GeoDataPlaylist()
Definition: GeoDataPlaylist.cpp:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal