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-2018 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : David Beilloin (Sep 2013) 00022 **=======================================================================*/ 00023 #ifndef _SO_DATA_MEASURE_H_ 00024 #define _SO_DATA_MEASURE_H_ 00025 00026 #include <ImageViz/SoImageViz.h> 00027 #include <Inventor/fields/SoFieldContainer.h> 00028 00040 class SoDataMeasure : public SoFieldContainer 00041 { 00042 SO_FIELDCONTAINER_ABSTRACT_HEADER(SoDataMeasure); 00043 public: 00044 00054 enum UnitDimension 00055 { 00057 SQUAREINTENSITY, 00059 INTENSITY, 00061 VOLUME, 00063 AREA, 00065 PERIMETER, 00067 NOUNIT, 00069 DEGREES, 00071 PIXELS 00072 }; 00073 00081 enum ResultFormat { 00082 // Integer 32-bit 00083 INT, 00084 // Float 32-bit 00085 FLOAT, 00086 // String 00087 STRING, 00088 // Integer 64-bit 00089 INT64, 00090 // Unsigned Integer 64-bit 00091 UINT64, 00092 // Float 64-bit 00093 DOUBLE, 00094 }; 00095 00100 virtual const SbString& getMeasureName() const = 0; 00101 00105 virtual UnitDimension getUnitDimension() const = 0; 00106 00110 virtual ResultFormat getFormat() const = 0; 00111 00112 private: 00114 SoDataMeasure(); 00115 00117 virtual ~SoDataMeasure(); 00118 }; 00119 00120 #endif /* _SO_DATA_MEASURE_H_ */ 00121