00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef HxConstructorServant_h
00010 #define HxConstructorServant_h
00011
00012 #include <OB/CORBA.h>
00013 #include "HxCorbaConstructor_skel.h"
00014 #include "HxImageSignature.h"
00015 #include "HxMatrix.h"
00016 #include "HxMessageHolder.h"
00017
00018
00020 class HxConstructorServant : public POA_HxCorba::Constructor
00021 {
00022 public:
00023 HxConstructorServant();
00024 virtual ~HxConstructorServant();
00025
00026 virtual CORBA::Object_ptr getInitialObject(const char* name)
00027 throw(CORBA::SystemException);
00028 virtual char* getLastError()
00029 throw(CORBA::SystemException);
00030
00031
00032 virtual HxCorba::TagList_ptr emptyTagList()
00033 throw(CORBA::SystemException);
00034 virtual HxCorba::TagList_ptr simpleIntTag(const char* name,
00035 CORBA::Long val)
00036 throw(CORBA::SystemException);
00037 virtual HxCorba::TagList_ptr simpleFloatTag(const char* name,
00038 CORBA::Double val)
00039 throw(CORBA::SystemException);
00040
00041
00042 virtual HxCorba::RgbBuffer_ptr createRgbBuffer(CORBA::Long size)
00043 throw(CORBA::SystemException);
00044
00045
00046 virtual HxCorba::ImageRep_ptr importImage(HxCorba::ImageData_ptr data)
00047 throw(CORBA::SystemException);
00048 virtual HxCorba::ImageRep_ptr fromSignature(HxCorba::ImageSignature sig,
00049 const HxCorba::Sizes& size)
00050 throw(CORBA::SystemException);
00051 virtual HxCorba::ImageRep_ptr fromImage(HxCorba::ImageSignature sig,
00052 HxCorba::ImageRep_ptr src)
00053 throw(CORBA::SystemException);
00054 virtual HxCorba::ImageRep_ptr fromValue(HxCorba::ImageSignature sig,
00055 const HxCorba::Sizes& size,
00056 const HxCorba::PixValue& val)
00057 throw(CORBA::SystemException);
00058 virtual HxCorba::ImageRep_ptr fromByteData(CORBA::Long pixelDimensionality,
00059 CORBA::Long dimensions,
00060 const HxCorba::Sizes& size,
00061 const HxCorba::OctetSeq& data)
00062 throw(CORBA::SystemException);
00063 virtual HxCorba::ImageRep_ptr fromShortData(CORBA::Long pixelDimensionality,
00064 CORBA::Long dimensions,
00065 const HxCorba::Sizes& size,
00066 const HxCorba::ShortSeq& data)
00067 throw(CORBA::SystemException);
00068 virtual HxCorba::ImageRep_ptr fromIntData(CORBA::Long pixelDimensionality,
00069 CORBA::Long dimensions,
00070 const HxCorba::Sizes& size,
00071 const HxCorba::LongSeq& data)
00072 throw(CORBA::SystemException);
00073 virtual HxCorba::ImageRep_ptr fromFloatData(CORBA::Long pixelDimensionality,
00074 CORBA::Long dimensions,
00075 const HxCorba::Sizes& size,
00076 const HxCorba::FloatSeq& data)
00077 throw(CORBA::SystemException);
00078 virtual HxCorba::ImageRep_ptr fromDoubleData(CORBA::Long pixelDimensionality,
00079 CORBA::Long dimensions,
00080 const HxCorba::Sizes& size,
00081 const HxCorba::DoubleSeq& data)
00082 throw(CORBA::SystemException);
00083 virtual HxCorba::ImageRep_ptr fromJavaRgb(HxCorba::ImageSignature sig,
00084 const HxCorba::Sizes& size,
00085 const HxCorba::RgbSeq& pixels)
00086 throw(CORBA::SystemException);
00087 virtual HxCorba::ImageRep_ptr fromGrayValue(HxCorba::ImageSignature sig,
00088 const HxCorba::Sizes& size,
00089 const HxCorba::OctetSeq& pixels)
00090 throw(CORBA::SystemException);
00091 virtual HxCorba::ImageRep_ptr fromMatlab(HxCorba::ImageSignature sig,
00092 const HxCorba::Sizes& size,
00093 const HxCorba::DoubleSeq& pixels)
00094 throw(CORBA::SystemException);
00095 virtual HxCorba::ImageRep_ptr fromNamedGenerator(HxCorba::ImageSignature sig,
00096 const char* generatorName,
00097 HxCorba::TagList_ptr tags)
00098 throw(CORBA::SystemException);
00099 virtual HxCorba::ImageRep_ptr fromImport(HxCorba::ImageSignature sig,
00100 const HxCorba::Sizes& size,
00101 const char* importOp,
00102 HxCorba::TagList_ptr tags)
00103 throw(CORBA::SystemException);
00104 virtual HxCorba::ImageRep_ptr from2Images(HxCorba::ImageRep_ptr i1,
00105 HxCorba::ImageRep_ptr i2)
00106 throw(CORBA::SystemException);
00107 virtual HxCorba::ImageRep_ptr from3Images(HxCorba::ImageRep_ptr i1,
00108 HxCorba::ImageRep_ptr i2,
00109 HxCorba::ImageRep_ptr i3)
00110 throw(CORBA::SystemException);
00111 virtual HxCorba::ImageRep_ptr fromFile(const char* fileName)
00112 throw(CORBA::SystemException);
00113
00114
00115 virtual HxCorba::SF_ptr makeSFfromImage(HxCorba::ImageRep_ptr im)
00116 throw(CORBA::SystemException);
00117 virtual HxCorba::SF_ptr makeFlatSF(HxCorba::ImageSignature sig,
00118 const HxCorba::Sizes& sz,
00119 const HxCorba::PixValue& val)
00120 throw(CORBA::SystemException);
00121 virtual HxCorba::SF_ptr makeBoxSF(HxCorba::ImageSignature sig,
00122 const HxCorba::Sizes& sz,
00123 const HxCorba::PixValue& val)
00124 throw(CORBA::SystemException);
00125 virtual HxCorba::SF_ptr makeCrossSF(HxCorba::ImageSignature sig,
00126 const HxCorba::Sizes& sz,
00127 const HxCorba::PixValue& val)
00128 throw(CORBA::SystemException);
00129 virtual HxCorba::SF_ptr makeDiskSF(HxCorba::ImageSignature sig,
00130 const HxCorba::Sizes& sz,
00131 const HxCorba::PixValue& val)
00132 throw(CORBA::SystemException);
00133 virtual HxCorba::SF_ptr makeDiamondSF(HxCorba::ImageSignature sig,
00134 const HxCorba::Sizes& sz,
00135 const HxCorba::PixValue& val)
00136 throw(CORBA::SystemException);
00137 virtual HxCorba::SF_ptr makeGaussianSF(const HxCorba::Sizes& sz,
00138 CORBA::Double sigma)
00139 throw(CORBA::SystemException);
00140 virtual HxCorba::SF_ptr makeParabolaSF(const HxCorba::Sizes& sz,
00141 CORBA::Double sigma)
00142 throw(CORBA::SystemException);
00143
00144
00145 virtual HxCorba::ImageSeq_ptr constructImageSeq(const char* name)
00146 throw(CORBA::SystemException);
00147 virtual HxCorba::ImageSeq_ptr constructBufferedImageSeq(const char* name,
00148 CORBA::Long bufSize)
00149 throw(CORBA::SystemException);
00150 virtual void setUseMDC(CORBA::Long flag)
00151 throw(CORBA::SystemException);
00152
00153
00154 virtual HxCorba::Matrix_ptr translate2d(CORBA::Double x,
00155 CORBA::Double y)
00156 throw(CORBA::SystemException);
00157 virtual HxCorba::Matrix_ptr scale2d(CORBA::Double sx, CORBA::Double sy)
00158 throw(CORBA::SystemException);
00159 virtual HxCorba::Matrix_ptr rotate2d(CORBA::Double alpha)
00160 throw(CORBA::SystemException);
00161 virtual HxCorba::Matrix_ptr rotate2dDeg(CORBA::Double alpha)
00162 throw(CORBA::SystemException);
00163 virtual HxCorba::Matrix_ptr reflect2d(CORBA::Boolean doX,
00164 CORBA::Boolean doY)
00165 throw(CORBA::SystemException);
00166 virtual HxCorba::Matrix_ptr shear2d(CORBA::Double sx, CORBA::Double sy)
00167 throw(CORBA::SystemException);
00168 virtual HxCorba::Matrix_ptr translate3d(CORBA::Double x,
00169 CORBA::Double y, CORBA::Double z)
00170 throw(CORBA::SystemException);
00171 virtual HxCorba::Matrix_ptr scale3d(CORBA::Double sx, CORBA::Double sy,
00172 CORBA::Double sz)
00173 throw(CORBA::SystemException);
00174 virtual HxCorba::Matrix_ptr rotateX3d(CORBA::Double alpha)
00175 throw(CORBA::SystemException);
00176 virtual HxCorba::Matrix_ptr rotateX3dDeg(CORBA::Double alpha)
00177 throw(CORBA::SystemException);
00178 virtual HxCorba::Matrix_ptr rotateY3d(CORBA::Double alpha)
00179 throw(CORBA::SystemException);
00180 virtual HxCorba::Matrix_ptr rotateY3dDeg(CORBA::Double alpha)
00181 throw(CORBA::SystemException);
00182 virtual HxCorba::Matrix_ptr rotateZ3d(CORBA::Double alpha)
00183 throw(CORBA::SystemException);
00184 virtual HxCorba::Matrix_ptr rotateZ3dDeg(CORBA::Double alpha)
00185 throw(CORBA::SystemException);
00186 virtual HxCorba::Matrix_ptr reflect3d(CORBA::Boolean doX,
00187 CORBA::Boolean doY, CORBA::Boolean doZ)
00188 throw(CORBA::SystemException);
00189 virtual HxCorba::Matrix_ptr projection(CORBA::Double f)
00190 throw(CORBA::SystemException);
00191 virtual HxCorba::Matrix_ptr camera(CORBA::Double f)
00192 throw(CORBA::SystemException);
00193 virtual HxCorba::Matrix_ptr lift2dTo3dXY()
00194 throw(CORBA::SystemException);
00195
00196
00197 virtual HxCorba::Histogram_ptr makeHistogramFromFile(const char* filename)
00198 throw(CORBA::SystemException);
00199
00200
00201 virtual HxCorba::Polyline2d_ptr importPolyline(
00202 HxCorba::Polyline2dData_ptr data)
00203 throw(CORBA::SystemException);
00204 virtual HxCorba::Polyline2d_ptr createPolyline(
00205 const HxCorba::PointR2Seq& points,
00206 CORBA::Boolean closed)
00207 throw(CORBA::SystemException);
00208
00209
00210 virtual HxCorba::BSplineCurve_ptr makeUniformBSpline(
00211 HxCorba::Polyline2d_ptr cp,
00212 CORBA::Long degree)
00213 throw(CORBA::SystemException);
00214 virtual HxCorba::BSplineCurve_ptr makeInterpolatingBSpline(
00215 HxCorba::Polyline2d_ptr cp)
00216 throw(CORBA::SystemException);
00217 virtual HxCorba::SampledBSplineCurve_ptr makeUniformSampledBSpline(
00218 HxCorba::Polyline2d_ptr cp,
00219 CORBA::Long degree,
00220 CORBA::Double distance)
00221 throw(CORBA::SystemException);
00222 virtual HxCorba::SampledBSplineCurve_ptr makeInterpolatingSampledBSpline(
00223 HxCorba::Polyline2d_ptr cp,
00224 CORBA::Double distance)
00225 throw(CORBA::SystemException);
00226
00227
00228 virtual HxCorba::NJet_ptr makeNJet(HxCorba::ImageRep_ptr im,
00229 CORBA::Long N, CORBA::Double scale,
00230 CORBA::Double precision)
00231 throw(CORBA::SystemException);
00232
00233
00234 virtual HxCorba::VxSegmentation_ptr makeVxSegmentation(const char* filename)
00235 throw(CORBA::SystemException);
00236 virtual HxCorba::VxSegmentation_ptr importSegmentation(HxCorba::VxSegmentation_ptr seg)
00237 throw(CORBA::SystemException);
00238
00239
00240 virtual HxCorba::VxStructure_ptr makeVxStructure(const char* base,
00241 const HxCorba::StringSeq& extLevels)
00242 throw(CORBA::SystemException);
00243
00244
00245 protected:
00246
00247
00248 private:
00249 HxMessageHolder _errorHolder;
00250 };
00251
00252 #endif