00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _POXT_TIME_AXIS_EDITOR_H
00025 #define _POXT_TIME_AXIS_EDITOR_H
00026
00027 #include <MeshViz/graph/editors/PoXtAxisEditor.h>
00028 class SoDEPRECATED PoXtTimeAxisEditor
00040 : public PoXtAxisEditor
00041 {
00042
00043 public:
00044
00045 enum TimeAxisMask
00046 {
00047 NO_TIME_MASK = 0x00000000,
00048 START_DATE = 0x00000001,
00049 END_DATE = 0x00000002,
00050 COORD = 0x00000004,
00051 TYPE = 0x00000008,
00052 LANGUAGE = 0x00000010,
00053 GRAD_FIT = 0x00000020,
00054 GRAD_REP = 0x00000040,
00055 TIMES_PERIOD = 0x00000080,
00056 DATE_FORMAT_MAPPING = 0x00000100,
00057 ALL_TIME_MASK = START_DATE | END_DATE | COORD
00058 | TYPE | LANGUAGE | GRAD_FIT
00059 | GRAD_REP | TIMES_PERIOD | DATE_FORMAT_MAPPING
00060 } ;
00061
00062
00063
00067 PoXtTimeAxisEditor(SoWidget parent=NULL,
00068 const char * name=NULL,
00069 SbBool buildInsideParent=TRUE);
00070
00074 ~PoXtTimeAxisEditor();
00075
00081 void setTimeAxisFilter(unsigned long inclusionMask,
00082 unsigned long exclusionMask);
00083
00088 void getTimeAxisFilter(unsigned long & inclusionMask,
00089 unsigned long & exclusionMask) const;
00090 private:
00091 virtual void buildWidget (SoWidget Parent,
00092 const char * name,
00093 SbBool buildInsideParent);
00094 virtual void setAxisFilter();
00095
00096 virtual SbString getDefaultWidgetName() const;
00097 virtual SbString getDefaultTitle() const;
00098 virtual SbString getDefaultIconTitle() const;
00099
00100 virtual void copyAxisFields(PoAxis * dest, PoAxis * source);
00101 virtual void updateAxisFromXtElements ();
00102
00103 virtual int getMenuItems();
00104
00105
00106 unsigned long _incTimeMask;
00107 unsigned long _excTimeMask;
00108
00109 private:
00110 int _classMenusNb;
00111 SbBool _isTimeSet;
00112
00113
00114 static void timeElementsCallback (void *, const PoXtDialog::PoXtDialogDataCB *);
00115
00116 };
00117
00118 #endif //_POXT_TIME_AXIS_EDITOR_H
00119
00120