aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolbrush.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/lltoolbrush.h
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/lltoolbrush.h')
-rw-r--r--linden/indra/newview/lltoolbrush.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/linden/indra/newview/lltoolbrush.h b/linden/indra/newview/lltoolbrush.h
index 129a08c..9a12a18 100644
--- a/linden/indra/newview/lltoolbrush.h
+++ b/linden/indra/newview/lltoolbrush.h
@@ -40,8 +40,6 @@ class LLSurface;
40class LLVector3d; 40class LLVector3d;
41class LLViewerRegion; 41class LLViewerRegion;
42 42
43template<class DATA_TYPE> class LLLinkedList;
44
45//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 43//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46// Class LLToolBrushLand 44// Class LLToolBrushLand
47// 45//
@@ -50,6 +48,8 @@ template<class DATA_TYPE> class LLLinkedList;
50 48
51class LLToolBrushLand : public LLTool, public LLEditMenuHandler 49class LLToolBrushLand : public LLTool, public LLEditMenuHandler
52{ 50{
51 typedef std::set<LLViewerRegion*> region_list_t;
52
53public: 53public:
54 LLToolBrushLand(); 54 LLToolBrushLand();
55 55
@@ -74,17 +74,13 @@ public:
74 74
75 void modifyLandInSelectionGlobal(); 75 void modifyLandInSelectionGlobal();
76 virtual void undo(); 76 virtual void undo();
77 virtual BOOL canUndo() { return TRUE; } 77 virtual BOOL canUndo() const { return TRUE; }
78
79 //virtual void redo();
80 virtual BOOL canRedo() { return FALSE; }
81
82 78
83protected: 79protected:
84 void brush( void ); 80 void brush( void );
85 void modifyLandAtPointGlobal( const LLVector3d &spot, MASK mask ); 81 void modifyLandAtPointGlobal( const LLVector3d &spot, MASK mask );
86 82
87 void determineAffectedRegions(LLLinkedList<LLViewerRegion>& regions, 83 void determineAffectedRegions(region_list_t& regions,
88 const LLVector3d& spot) const; 84 const LLVector3d& spot) const;
89 void renderOverlay(LLSurface& land, const LLVector3& pos_region, 85 void renderOverlay(LLSurface& land, const LLVector3& pos_region,
90 const LLVector3& pos_world); 86 const LLVector3& pos_world);
@@ -103,7 +99,8 @@ protected:
103 BOOL mGotHover; 99 BOOL mGotHover;
104 BOOL mLastShowParcelOwners; 100 BOOL mLastShowParcelOwners;
105 BOOL mBrushSelected; 101 BOOL mBrushSelected;
106 LLLinkedList<LLViewerRegion> mLastAffectedRegions; 102 // Order doesn't matter and we do check for existance of regions, so use a set
103 region_list_t mLastAffectedRegions;
107}; 104};
108 105
109extern LLToolBrushLand *gToolLand; 106extern LLToolBrushLand *gToolLand;