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-2017 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 00021 #ifndef _SO_RESAMPLE_IMAGE_PROCESSING_3D_H_ 00022 #define _SO_RESAMPLE_IMAGE_PROCESSING_3D_H_ 00023 00024 #include <ImageViz/Fields/SoSFImageDataAdapter.h> 00025 #include <ImageViz/Engines/SoImageVizEngine.h> 00026 #include <ImageViz/Engines/SoSubImageVizEngine.h> 00027 #include <ImageViz/Engines/SoImageVizEngineOutput.h> 00028 00029 #include <Inventor/fields/SoSFBox3f.h> 00030 #include <Inventor/fields/SoSFEnum.h> 00031 #include <Inventor/fields/SoSFMatrix.h> 00032 #include <Inventor/fields/SoSFVec3i32.h> 00033 #include <Inventor/fields/SoSFDouble.h> 00034 00084 class SoResampleImageProcessing3d : public SoImageVizEngine 00085 { 00086 SO_IMAGEVIZ_ENGINE_HEADER( SoResampleImageProcessing3d ); 00087 00088 public: 00089 00091 SoResampleImageProcessing3d(); 00092 00094 SoSFImageDataAdapter inImage; 00095 00098 SoSFBox3f subVolume; 00099 00101 SoSFMatrix subVolumeTransform; 00102 00106 enum SamplingMode 00107 { 00112 AUTOMATIC = 0, 00116 MANUAL 00117 }; 00118 00121 SoSFEnum samplingMode; 00122 00125 SoSFVec3i32 subVolumeDimension; 00126 00130 enum InterpolationType 00131 { 00135 NEAREST = 0, 00139 LINEAR 00140 }; 00141 00144 SoSFEnum interpolationType; 00145 00147 SoSFDouble paddingValue; 00148 00150 SoSFMatrix transform; 00151 00153 SoImageVizEngineOutput<SoSFImageDataAdapter, SoImageDataAdapter*> outImage; 00154 00155 private: 00157 virtual ~SoResampleImageProcessing3d(); 00158 }; 00159 00160 #endif //_SO_RESAMPLE_IMAGE_PROCESSING_3D_H_ 00161