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_POLAR_AXIS_EDITOR_H
00025 #define _POXT_POLAR_AXIS_EDITOR_H
00026
00027 #include <MeshViz/graph/editors/PoXtAxisEditor.h>
00028 class SoDEPRECATED PoXtPolarAxisEditor : public PoXtAxisEditor
00040 {
00041
00042 public:
00043
00044 enum PolarAxisMask
00045 {
00046 NO_POLAR_MASK = 0x00000000,
00047 OFFSET = 0x00000001,
00048 START_RADIUS = 0x00000002,
00049 END_RADIUS = 0x00000004,
00050 THETA = 0x00000008,
00051 MULT_FACTOR_POSITION = 0x00000010,
00052 MULT_FACTOR_DIST_AXIS = 0x00000020,
00053 ALL_POLAR_MASK = OFFSET | START_RADIUS
00054 | END_RADIUS | THETA
00055 | MULT_FACTOR_POSITION | MULT_FACTOR_DIST_AXIS
00056 } ;
00057
00058
00059
00065 void setPolarAxisFilter(unsigned long inclusionMask,
00066 unsigned long exclusionMask);
00067
00072 void getPolarAxisFilter(unsigned long & inclusionMask,
00073 unsigned long & exclusionMask) const;
00074 private:
00075 PoXtPolarAxisEditor (SoWidget Parent = NULL,
00076 const char * name = NULL,
00077 SbBool buildInsideParent = TRUE);
00078
00079 virtual void buildWidget (SoWidget Parent,
00080 const char * name,
00081 SbBool buildInsideParent);
00082 virtual void setAxisFilter();
00083
00084 virtual ~PoXtPolarAxisEditor ();
00085
00086 virtual SbString getDefaultWidgetName() const;
00087 virtual SbString getDefaultTitle() const;
00088 virtual SbString getDefaultIconTitle() const;
00089
00090 virtual void copyAxisFields(PoAxis * dest, PoAxis * source);
00091 virtual void updateAxisFromXtElements ();
00092
00093 virtual int getMenuItems();
00094
00095
00096
00097 unsigned long _incPolarMask;
00098 unsigned long _excPolarMask;
00099
00100 private:
00101 int _classMenusNb;
00102 SbBool _isPolarSet;
00103
00104
00105 static void polarElementsCallback (void *, const PoXtDialog::PoXtDialogDataCB *);
00106 };
00107
00108
00109 #endif //_POXT_POLAR_AXIS_EDITOR_H
00110
00111