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-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : VSG (MMM YYYY) 00022 **=======================================================================*/ 00023 00024 #ifndef _PO_PARALLELOGRAM3_ 00025 #define _PO_PARALLELOGRAM3_ 00026 00027 #include <MeshViz/graph/PoGraphMaster.h> 00028 #include <Inventor/fields/SoSFVec3f.h> 00029 00052 class PoParallelogram3 : public PoGraphMaster { 00053 00054 SO_KIT_HEADER(PoParallelogram3) ; 00055 00056 SO_KIT_CATALOG_ENTRY_HEADER(parallelogram3) ; 00057 00058 00059 public: 00060 00061 /* Fields */ 00062 00066 SoSFVec3f p ; 00067 00071 SoSFVec3f q ; 00072 00076 SoSFVec3f r ; 00077 00078 00079 00080 /* Methods */ 00081 00085 PoParallelogram3() 00086 { init(TRUE, SbVec3f(0.,0.,0.), SbVec3f(1.,0.,0.), SbVec3f(1.,1.,0.)) ; } 00087 00091 PoParallelogram3(const SbVec3f &_p, const SbVec3f &_q, const SbVec3f &_r) 00092 { init(FALSE, _p, _q, _r) ;} 00093 00097 virtual void rebuild() ; 00098 00099 /*----------------------------------------------------------------------------*/ 00100 private: 00101 static void initClass() ; 00102 static void exitClass() ; 00103 00104 private: 00105 // Methods 00106 // Destructor 00107 virtual ~PoParallelogram3() ; 00108 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ; 00109 virtual void setDefaultOnNonWritingFields() ; 00110 00111 private: 00112 // Initialise 00113 void init(SbBool isDefault, const SbVec3f &_p, const SbVec3f &_q, const SbVec3f &_r) ; 00114 00115 // Sensors 00116 FieldSensorList fieldSensorList ; 00117 00118 // List of fields defined in this class 00119 SoFieldList fieldList ; 00120 00121 } ; 00122 00123 /*----------------------------------------------------------------------------*/ 00124 00125 #endif /* _PO_PARALLELOGRAM3_ */ 00126 00127