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_LOG_AXIS_EDITOR_H
00025 #define _POXT_LOG_AXIS_EDITOR_H
00026
00027 #include <MeshViz/graph/editors/PoXtCartesianAxisEditor.h>
00028 class SoDEPRECATED PoXtLogAxisEditor
00040 : public PoXtCartesianAxisEditor
00041 {
00042
00043 public:
00044
00045 enum LogAxisMask
00046 {
00047 NO_LOG_MASK = 0x00000000,
00048 DECADE_LIST_DEF = 0x00000001,
00049 DECADE_LIST = 0x00000002,
00050 DECADE_REP = 0x00000004,
00051 DECADE_FONT_NAME = 0x00000008,
00052 DECADE_FONT_SIZE = 0x00000010,
00053 TEN_POWER_REP = 0x00000020,
00054 MULT_FACTOR_POSITION = 0x00000040,
00055 MULT_FACTOR_DIST_AXIS = 0x00000080,
00056 ALL_LOG_MASK = DECADE_LIST_DEF | DECADE_LIST
00057 | DECADE_REP | DECADE_FONT_NAME
00058 | DECADE_FONT_SIZE | TEN_POWER_REP
00059 | MULT_FACTOR_POSITION | MULT_FACTOR_DIST_AXIS
00060 } ;
00061
00062
00063
00067 PoXtLogAxisEditor(SoWidget parent=NULL,
00068 const char * name=NULL,
00069 SbBool buildInsideParent=TRUE);
00070
00074 ~PoXtLogAxisEditor();
00075
00081 void setLogAxisFilter(unsigned long inclusionMask,
00082 unsigned long exclusionMask);
00083
00088 void getLogAxisFilter(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 *, PoAxis *);
00101 virtual void updateAxisFromXtElements ();
00102
00103 virtual int getMenuItems();
00104
00105
00106 unsigned long _incLogMask;
00107 unsigned long _excLogMask;
00108
00109 private:
00110 int _classMenusNb;
00111 SbBool _isLogSet;
00112
00113
00114 static void logElementsCallback (void *, const PoXtDialog::PoXtDialogDataCB *);
00115 };
00116
00117
00118 #endif //_POXT_LOG_AXIS_EDITOR_H
00119
00120