FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
ChartID.hpp
1
2//
3// $Id: ChartID.hpp,v 1.3 2007/03/19 20:23:15 werner Exp $
4//
5// $Log: ChartID.hpp,v $
6// Revision 1.3 2007/03/19 20:23:15 werner
7// bugfix in grid::makeChart() to reuse an existing chart, which consequently
8// results in lots of other code becoming functional immediatly
9//
10// Revision 1.2 2007/01/31 23:00:51 werner
11// fixed hdr
12//
13// Revision 1.1 2007/01/31 22:59:13 werner
14// chartID outsourced
15//
17#ifndef __FIBER_GRID_CHARTID_HPP
18#define __FIBER_GRID_CHARTID_HPP "Created 14.01.2007 15:15:17 by werner"
19
20#include "GridAPI.h"
21#include <memcore/RefPtr.hpp>
22#include <set>
23#include <string>
24
25namespace Fiber
26{
27 using namespace MemCore;
28 using std::set;
29 using std::string;
30
31
44{
45public:
46 string name;
47
51 uint16_t epsg_code = 0;
52
53private:
54 ChartID(const string&n, uint16_t epsg_code = 0);
55
56 friend class ChartIDList;
57public:
58
60 const string&Name() const
61 {
62 return name;
63 }
64
67static const string&Default();
68};
69
70
73typedef RefPtr<ChartID> ChartIdentifier;
74
75
78class GRID_API ChartIDList : public set< RefPtr<ChartID> >, public MemCore::ReferenceBase<ChartIDList>
79{
80 friend class GlobalCharts;
81
82public:
85
87 RefPtr<ChartID> operator()(const string&name) const;
88
90 RefPtr<ChartID> operator[](const string&name);
91
94 bool insertSharedChartID(const RefPtr<ChartID>&id);
95
96
97 unsigned epsg_iterate(uint16_t epsg_code, const std::function<bool(const ChartID&)>&iterator) const;
98
99};
100
101} /* namespace Fiber */
102
103#endif /* __FIBER_GRID_CHARTID_HPP */
basic_string< char > string
_Rep_type::const_iterator iterator
Definition ChartID.hpp:79
A Chart ID is just a textual description of the certain chart object; there may be many chart objects...
Definition ChartID.hpp:44
const string & Name() const
Textual identifier for this chart domain.
Definition ChartID.hpp:60
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
A list of chart identifiers (i.e.
Definition Atlas.hpp:22
T & operator[](index_t i) const
Access an element of the array, writeable.
Definition vector/Iterator.hpp:712
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2