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_LINEAR_AXIS_EDITOR_H
00025 #define _POXT_LINEAR_AXIS_EDITOR_H
00026
00027 #include <MeshViz/graph/editors/PoXtCartesianAxisEditor.h>
00028
00029 class SoDEPRECATED PoXtLinearAxisEditor
00041 : public PoXtCartesianAxisEditor
00042 {
00043
00044 public:
00045
00046 enum LinearAxisMask
00047 {
00048 NO_LINEAR_MASK = 0x00000000,
00049 STEP = 0x00000001,
00050 GRAD_FIT = 0x00000002,
00051 MULT_FACTOR_POSITION = 0x00000004,
00052 MULT_FACTOR_DIST_AXIS = 0x00000008,
00053 FORMAT = 0x00000010,
00054 ALL_LINEAR_MASK = STEP | GRAD_FIT | MULT_FACTOR_POSITION
00055 | MULT_FACTOR_DIST_AXIS | FORMAT
00056 } ;
00057
00058
00059
00063 PoXtLinearAxisEditor(SoWidget parent=NULL,
00064 const char * name=NULL,
00065 SbBool buildInsideParent=TRUE);
00066
00070 virtual ~PoXtLinearAxisEditor();
00071
00077 void setLinearAxisFilter(unsigned long inclusionMask,
00078 unsigned long exclusionMask);
00079
00084 void getLinearAxisFilter(unsigned long & inclusionMask,
00085 unsigned long & exclusionMask) const;
00086 private:
00087 virtual void buildWidget (SoWidget Parent,
00088 const char * name,
00089 SbBool buildInsideParent);
00090 virtual void setAxisFilter();
00091
00092 virtual SbString getDefaultWidgetName() const;
00093 virtual SbString getDefaultTitle() const;
00094 virtual SbString getDefaultIconTitle() const;
00095
00096 virtual void copyAxisFields(PoAxis * dest, PoAxis * source);
00097 virtual void updateAxisFromXtElements ();
00098
00099 virtual int getMenuItems();
00100
00101
00102 unsigned long _incLinearMask;
00103 unsigned long _excLinearMask;
00104
00105 private:
00106 int _classMenusNb;
00107 SbBool _isLinearSet;
00108
00109
00110 static void linearElementsCallback (void *, const PoXtDialog::PoXtDialogDataCB *);
00111 };
00112
00113
00114 #endif //_POXT_LINEAR_AXIS_EDITOR_H
00115
00116