File indexing completed on 2024-09-07 04:36:20
0001 #ifndef Fireworks_Core_FW3DViewDistanceMeasureTool_h
0002 #define Fireworks_Core_FW3DViewDistanceMeasureTool_h
0003
0004 #include "TGLUtil.h"
0005
0006 class TGCompositeFrame;
0007 class FW3DViewBase;
0008 class TGTextButton;
0009 class TGLabel;
0010 class FW3DViewDistanceMeasureTool {
0011 friend class FW3DViewBase;
0012
0013 public:
0014 enum EPickAction { kPnt1, kPnt2, kNone };
0015
0016 FW3DViewDistanceMeasureTool();
0017 virtual ~FW3DViewDistanceMeasureTool() {}
0018
0019 void resetAction();
0020
0021 void Print() const;
0022 TGLVector3& refCurrentVertex();
0023
0024 void setActionPnt1();
0025 void setActionPnt2();
0026
0027 TGCompositeFrame* buildGUI(TGCompositeFrame* p);
0028
0029 protected:
0030 TGLVector3 m_pnt1;
0031 TGLVector3 m_pnt2;
0032 EPickAction m_action;
0033
0034 private:
0035 TGTextButton* m_bp1;
0036 TGTextButton* m_bp2;
0037 TGLabel* m_lp1;
0038 TGLabel* m_lp2;
0039 TGLabel* m_ldist;
0040
0041 ClassDef(FW3DViewDistanceMeasureTool, 0);
0042 };
0043 #endif