aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpreviewlandmark.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/llpreviewlandmark.h
parentREADME.txt (diff)
downloadmeta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/newview/llpreviewlandmark.h')
-rw-r--r--linden/indra/newview/llpreviewlandmark.h99
1 files changed, 99 insertions, 0 deletions
diff --git a/linden/indra/newview/llpreviewlandmark.h b/linden/indra/newview/llpreviewlandmark.h
new file mode 100644
index 0000000..98b2c73
--- /dev/null
+++ b/linden/indra/newview/llpreviewlandmark.h
@@ -0,0 +1,99 @@
1/**
2 * @file llpreviewlandmark.h
3 * @brief LLPreviewLandmark class implementation
4 *
5 * Copyright (c) 2002-2007, Linden Research, Inc.
6 *
7 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement
10 * ("Other License"), formally executed by you and Linden Lab. Terms of
11 * the GPL can be found in doc/GPL-license.txt in this distribution, or
12 * online at http://secondlife.com/developers/opensource/gplv2
13 *
14 * There are special exceptions to the terms and conditions of the GPL as
15 * it is applied to this Source Code. View the full text of the exception
16 * in the file doc/FLOSS-exception.txt in this software distribution, or
17 * online at http://secondlife.com/developers/opensource/flossexception
18 *
19 * By copying, modifying or distributing this software, you acknowledge
20 * that you have read and understood your obligations described above,
21 * and agree to abide by those obligations.
22 *
23 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
24 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
25 * COMPLETENESS OR PERFORMANCE.
26 */
27
28#ifndef LL_LLPREVIEWLANDMARK_H
29#define LL_LLPREVIEWLANDMARK_H
30
31#include <deque>
32
33#include "lllandmark.h"
34
35#include "doublelinkedlist.h"
36#include "llfloater.h"
37#include "llmap.h"
38#include "llstring.h"
39#include "lluuid.h"
40#include "v3dmath.h"
41#include "v4coloru.h"
42
43#include "llhudtext.h"
44#include "llpreview.h"
45
46class LLIconCtrl;
47class LLInventoryItem;
48class LLLandmarkList;
49class LLLineEditor;
50class LLMessageSystem;
51class LLPreviewLandmark;
52
53const S32 PREVIEW_LANDMARK_NUM_COLORS = 6;
54
55typedef std::deque< LLPreviewLandmark* > LLPreviewLandmarkList;
56
57class LLPreviewLandmark : public LLPreview
58{
59public:
60 LLPreviewLandmark(const std::string& name, const LLRect& rect, const std::string& title,
61 const LLUUID& item_uuid,
62 BOOL show_keep_discard = FALSE);
63 virtual ~LLPreviewLandmark();
64
65 /*virtual*/ void draw();
66
67 const LLString& getName() const;
68 const LLColor4& getMarkerColor() const;
69
70 LLVector3d getPositionGlobal() const;
71
72 //static S32 getNumInstances() { return LLPreviewLandmark::sOrderedInstances.getLength(); }
73 //static const LLPreviewLandmark* getFirst() { return LLPreviewLandmark::sOrderedInstances.getFirstData(); }
74 //static const LLPreviewLandmark* getNext() { return LLPreviewLandmark::sOrderedInstances.getNextData(); }
75
76 static void onTeleportBtn(void *user_data);
77 //static void onFlyBtn(void *user_data);
78 static void onMapBtn(void *user_data);
79
80 /*virtual*/ void loadAsset();
81 /*virtual*/ EAssetStatus getAssetStatus();
82
83protected:
84 void getDegreesAndDist(F32* degrees, F64* horiz_dist, F64* vert_dist) const;
85
86private:
87// void renderBeacon();
88// LLPointer<LLHUDText> mBeaconText;
89
90 LLIconCtrl* mIconLandmark;
91
92 LLLandmark* mLandmark;
93 LLColor4 mMarkerColor;
94
95 //static LLDoubleLinkedList< LLPreviewLandmark > sOrderedInstances;
96 static LLPreviewLandmarkList sOrderedInstances;
97};
98
99#endif