cgma
|
00001 //------------------------------------------------------------------------- 00002 // Filename : GeomDataObserver.hpp 00003 // 00004 // Special Notes : 00005 // 00006 // Creator : David R White. 00007 // 00008 // Creation Date : 10/20/02 00009 // 00010 // Owner : David R. White 00011 //------------------------------------------------------------------------- 00012 #ifndef GEOMDATA_OBSERVER_HPP 00013 #define GEOMDATA_OBSERVER_HPP 00014 00015 #include "CubitObserver.hpp" 00016 #include "CGMGeomConfigure.h" 00017 class RefEntity; 00018 00019 class CUBIT_GEOM_EXPORT GeomDataObserver : public CubitObserver 00020 { 00021 public: 00026 static GeomDataObserver* get( RefEntity* on_this ); 00027 static GeomDataObserver* create( RefEntity* on_this ); 00028 00029 virtual void notify_observer(const CubitEvent* event); 00030 00031 virtual ~GeomDataObserver(); 00032 00036 00037 double get_measure() 00038 {return myMeasure;} 00042 00043 void set_measure(double val) 00044 { measureSet = CUBIT_TRUE; 00045 myMeasure = val;} 00049 00050 CubitBoolean is_measure_set() 00051 {return measureSet;} 00052 00053 private: 00054 00055 GeomDataObserver( RefEntity* watched ); 00056 RefEntity* myRefEntity; 00057 double myMeasure; 00058 CubitBoolean measureSet; 00059 00060 }; 00061 00062 #endif 00063