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_ANGULAR_AXIS_EDITOR_H
00025 #define _POXT_ANGULAR_AXIS_EDITOR_H
00026
00027 #include <MeshViz/graph/editors/PoXtAxisEditor.h>
00028 class SoDEPRECATED PoXtAngularAxisEditor
00040 : public PoXtAxisEditor
00041 {
00042
00043 public:
00044
00045 enum AngularAxisMask
00046 {
00047 NO_ANGULAR_MASK = 0x00000000,
00048 OFFSET = 0x00000001,
00049 START_ANGLE = 0x00000002,
00050 END_ANGLE = 0x00000004,
00051 RADIUS = 0x00000008,
00052 ANGLE_STEP = 0x00000010,
00053 GRAD_FIT = 0x00000020,
00054 ALL_ANGULAR_MASK = OFFSET | START_ANGLE | END_ANGLE
00055 | RADIUS | ANGLE_STEP | GRAD_FIT
00056 } ;
00057
00058
00059
00063 PoXtAngularAxisEditor(SoWidget parent=NULL,
00064 const char * name=NULL,
00065 SbBool buildInsideParent=TRUE);
00066
00070 ~PoXtAngularAxisEditor();
00071
00077 void setAngularAxisFilter(unsigned long inclusionMask,
00078 unsigned long exclusionMask);
00079
00084 void getAngularAxisFilter(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 _incAngularMask;
00103 unsigned long _excAngularMask;
00104
00105 private:
00106 int _classMenusNb;
00107 SbBool _isAngularSet;
00108
00109
00110 static void angularElementsCallback (void *, const PoXtDialog::PoXtDialogDataCB *);
00111 };
00112
00113
00114 #endif //_POXT_ANGULAR_AXIS_EDITOR_H
00115
00116