00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : VSG (MMM YYYY) 00022 **=======================================================================*/ 00023 00024 #ifndef _PO_CIRCLE_ARC_CTR_PT_ANGLE_ 00025 #define _PO_CIRCLE_ARC_CTR_PT_ANGLE_ 00026 00027 #include <MeshViz/graph/PoCircleArc.h> 00028 #include <Inventor/fields/SoSFVec2f.h> 00029 #include <Inventor/fields/SoSFFloat.h> 00030 00054 class PoCircleArcCtrPtAngle : public PoCircleArc { 00055 00056 SO_KIT_HEADER(PoCircleArcCtrPtAngle) ; 00057 00058 00059 public: 00060 00061 /* Fields */ 00062 00066 SoSFVec2f center ; 00067 00071 SoSFVec2f startPoint ; 00072 00076 SoSFFloat angle ; 00077 00078 00079 00080 /* Methods */ 00081 00085 PoCircleArcCtrPtAngle() 00086 { init(SbVec2f(0.0, 0.0), SbVec2f(1.0, 0.0), (float)PDEUXPI) ; } 00087 00091 PoCircleArcCtrPtAngle(const SbVec2f &_center, const SbVec2f &_startPoint, 00092 float _angle) 00093 { init(_center, _startPoint, _angle) ; } 00094 00098 virtual void rebuild() ; 00099 00100 /*----------------------------------------------------------------------------*/ 00101 00102 00103 private: 00104 static void initClass() ; 00105 static void exitClass() ; 00106 00107 private: 00108 // Methods 00109 // Destructor 00110 virtual ~PoCircleArcCtrPtAngle() ; 00111 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ; 00112 virtual void setDefaultOnNonWritingFields() ; 00113 00114 private: 00115 // Init method 00116 void init(const SbVec2f ¢er, const SbVec2f &startPoint, 00117 float angle) ; 00118 00119 00120 // Sensors 00121 FieldSensorList fieldSensorList ; 00122 00123 // List of fields defined in this class 00124 SoFieldList fieldList ; 00125 } ; 00126 00127 /*----------------------------------------------------------------------------*/ 00128 00129 #endif /* _PO_CIRCLE_ARC_CTR_PT_ANGLE_ */ 00130 00131