llframestatview.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_LLFRAMESTATVIEW_H
00033 #define LL_LLFRAMESTATVIEW_H
00034 
00035 #include "llview.h"
00036 #include "lltimer.h"
00037 #include "v4color.h"
00038 
00039 class LLStat;
00040 class LLFrameStats;
00041 
00042 class LLFrameStatView : public LLView
00043 {
00044 public:
00045         enum
00046         {
00047                 MAX_STATS = 30
00048         };
00049         LLFrameStatView(const std::string& name, const LLRect& rect);
00050         virtual ~LLFrameStatView();
00051 
00052         void setup(const LLFrameStats &frame_stats);
00053 
00054         virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
00055         virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask);
00056         virtual BOOL handleHover(S32 x, S32 y, MASK mask);
00057         virtual void draw();
00058 
00059         F32 mTotalTime;         // Total time to render for graph.
00060         F32 mTickSpacing;
00061         F32 mLabelSpacing;
00062         S32 mCenterOn;
00063         BOOL mShowPercent;
00064         void addStat(LLStat *statp, const char *label, const LLColor4 &color);
00065 private:
00066         LLStat *mStats[MAX_STATS];
00067         LLColor4 mColors[MAX_STATS];
00068         const char *mLabels[MAX_STATS];         /* Flawfinder: ignore */
00069         S32 mNumStats;
00070 };
00071 
00072 #endif

Generated on Fri May 16 08:33:36 2008 for SecondLife by  doxygen 1.5.5