#include <HxConstructorServant.h>
Inheritance diagram for HxConstructorServant::
Public Methods | |
HxConstructorServant () | |
virtual | ~HxConstructorServant () |
virtual CORBA::Object_ptr | getInitialObject (const char *name) throw (CORBA::SystemException) |
virtual char * | getLastError () throw (CORBA::SystemException) |
virtual HxCorba::TagList_ptr | emptyTagList () throw (CORBA::SystemException) |
virtual HxCorba::TagList_ptr | simpleIntTag (const char *name, CORBA::Long val) throw (CORBA::SystemException) |
virtual HxCorba::TagList_ptr | simpleFloatTag (const char *name, CORBA::Double val) throw (CORBA::SystemException) |
virtual HxCorba::RgbBuffer_ptr | createRgbBuffer (CORBA::Long size) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | importImage (HxCorba::ImageData_ptr data) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromSignature (HxCorba::ImageSignature sig, const HxCorba::Sizes &size) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromImage (HxCorba::ImageSignature sig, HxCorba::ImageRep_ptr src) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromValue (HxCorba::ImageSignature sig, const HxCorba::Sizes &size, const HxCorba::PixValue &val) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromByteData (CORBA::Long pixelDimensionality, CORBA::Long dimensions, const HxCorba::Sizes &size, const HxCorba::OctetSeq &data) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromShortData (CORBA::Long pixelDimensionality, CORBA::Long dimensions, const HxCorba::Sizes &size, const HxCorba::ShortSeq &data) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromIntData (CORBA::Long pixelDimensionality, CORBA::Long dimensions, const HxCorba::Sizes &size, const HxCorba::LongSeq &data) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromFloatData (CORBA::Long pixelDimensionality, CORBA::Long dimensions, const HxCorba::Sizes &size, const HxCorba::FloatSeq &data) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromDoubleData (CORBA::Long pixelDimensionality, CORBA::Long dimensions, const HxCorba::Sizes &size, const HxCorba::DoubleSeq &data) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromJavaRgb (HxCorba::ImageSignature sig, const HxCorba::Sizes &size, const HxCorba::RgbSeq &pixels) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromGrayValue (HxCorba::ImageSignature sig, const HxCorba::Sizes &size, const HxCorba::OctetSeq &pixels) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromMatlab (HxCorba::ImageSignature sig, const HxCorba::Sizes &size, const HxCorba::DoubleSeq &pixels) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromNamedGenerator (HxCorba::ImageSignature sig, const char *generatorName, HxCorba::TagList_ptr tags) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromImport (HxCorba::ImageSignature sig, const HxCorba::Sizes &size, const char *importOp, HxCorba::TagList_ptr tags) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | from2Images (HxCorba::ImageRep_ptr i1, HxCorba::ImageRep_ptr i2) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | from3Images (HxCorba::ImageRep_ptr i1, HxCorba::ImageRep_ptr i2, HxCorba::ImageRep_ptr i3) throw (CORBA::SystemException) |
virtual HxCorba::ImageRep_ptr | fromFile (const char *fileName) throw (CORBA::SystemException) |
virtual HxCorba::SF_ptr | makeSFfromImage (HxCorba::ImageRep_ptr im) throw (CORBA::SystemException) |
virtual HxCorba::SF_ptr | makeFlatSF (HxCorba::ImageSignature sig, const HxCorba::Sizes &sz, const HxCorba::PixValue &val) throw (CORBA::SystemException) |
virtual HxCorba::SF_ptr | makeBoxSF (HxCorba::ImageSignature sig, const HxCorba::Sizes &sz, const HxCorba::PixValue &val) throw (CORBA::SystemException) |
virtual HxCorba::SF_ptr | makeCrossSF (HxCorba::ImageSignature sig, const HxCorba::Sizes &sz, const HxCorba::PixValue &val) throw (CORBA::SystemException) |
virtual HxCorba::SF_ptr | makeDiskSF (HxCorba::ImageSignature sig, const HxCorba::Sizes &sz, const HxCorba::PixValue &val) throw (CORBA::SystemException) |
virtual HxCorba::SF_ptr | makeDiamondSF (HxCorba::ImageSignature sig, const HxCorba::Sizes &sz, const HxCorba::PixValue &val) throw (CORBA::SystemException) |
virtual HxCorba::SF_ptr | makeGaussianSF (const HxCorba::Sizes &sz, CORBA::Double sigma) throw (CORBA::SystemException) |
virtual HxCorba::SF_ptr | makeParabolaSF (const HxCorba::Sizes &sz, CORBA::Double sigma) throw (CORBA::SystemException) |
virtual HxCorba::ImageSeq_ptr | constructImageSeq (const char *name) throw (CORBA::SystemException) |
virtual HxCorba::ImageSeq_ptr | constructBufferedImageSeq (const char *name, CORBA::Long bufSize) throw (CORBA::SystemException) |
virtual void | setUseMDC (CORBA::Long flag) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | translate2d (CORBA::Double x, CORBA::Double y) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | scale2d (CORBA::Double sx, CORBA::Double sy) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | rotate2d (CORBA::Double alpha) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | rotate2dDeg (CORBA::Double alpha) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | reflect2d (CORBA::Boolean doX, CORBA::Boolean doY) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | shear2d (CORBA::Double sx, CORBA::Double sy) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | translate3d (CORBA::Double x, CORBA::Double y, CORBA::Double z) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | scale3d (CORBA::Double sx, CORBA::Double sy, CORBA::Double sz) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | rotateX3d (CORBA::Double alpha) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | rotateX3dDeg (CORBA::Double alpha) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | rotateY3d (CORBA::Double alpha) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | rotateY3dDeg (CORBA::Double alpha) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | rotateZ3d (CORBA::Double alpha) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | rotateZ3dDeg (CORBA::Double alpha) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | reflect3d (CORBA::Boolean doX, CORBA::Boolean doY, CORBA::Boolean doZ) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | projection (CORBA::Double f) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | camera (CORBA::Double f) throw (CORBA::SystemException) |
virtual HxCorba::Matrix_ptr | lift2dTo3dXY () throw (CORBA::SystemException) |
virtual HxCorba::Histogram_ptr | makeHistogramFromFile (const char *filename) throw (CORBA::SystemException) |
virtual HxCorba::Polyline2d_ptr | importPolyline (HxCorba::Polyline2dData_ptr data) throw (CORBA::SystemException) |
virtual HxCorba::Polyline2d_ptr | createPolyline (const HxCorba::PointR2Seq &points, CORBA::Boolean closed) throw (CORBA::SystemException) |
virtual HxCorba::BSplineCurve_ptr | makeUniformBSpline (HxCorba::Polyline2d_ptr cp, CORBA::Long degree) throw (CORBA::SystemException) |
virtual HxCorba::BSplineCurve_ptr | makeInterpolatingBSpline (HxCorba::Polyline2d_ptr cp) throw (CORBA::SystemException) |
virtual HxCorba::SampledBSplineCurve_ptr | makeUniformSampledBSpline (HxCorba::Polyline2d_ptr cp, CORBA::Long degree, CORBA::Double distance) throw (CORBA::SystemException) |
virtual HxCorba::SampledBSplineCurve_ptr | makeInterpolatingSampledBSpline (HxCorba::Polyline2d_ptr cp, CORBA::Double distance) throw (CORBA::SystemException) |
virtual HxCorba::NJet_ptr | makeNJet (HxCorba::ImageRep_ptr im, CORBA::Long N, CORBA::Double scale, CORBA::Double precision) throw (CORBA::SystemException) |
virtual HxCorba::VxSegmentation_ptr | makeVxSegmentation (const char *filename) throw (CORBA::SystemException) |
virtual HxCorba::VxSegmentation_ptr | importSegmentation (HxCorba::VxSegmentation_ptr seg) throw (CORBA::SystemException) |
virtual HxCorba::VxStructure_ptr | makeVxStructure (const char *base, const HxCorba::StringSeq &extLevels) throw (CORBA::SystemException) |
|
00037 { 00038 } |
|
00041 { 00042 } |
|
00047 { 00048 return HxServer::instance()->getInitialObject(name); 00049 } |
|
Reimplemented from POA_HxCorba::Constructor.
00054 { 00055 return CORBA::string_dup(_errorHolder.getMessage()); 00056 } |
|
Reimplemented from POA_HxCorba::TagListFactory.
00072 { 00073 return HxRegisterTiedServant<HxTagListTiedSvt>(HxTagList()); 00074 } |
|
00080 { 00081 HxCorba::TagList_ptr result = emptyTagList(); 00082 result->addInt(name, val); 00083 return result; 00084 } |
|
00089 { 00090 HxCorba::TagList_ptr result = emptyTagList(); 00091 result->addFloat(name, val); 00092 return result; 00093 } |
|
00442 { 00443 HxRgbBufferServant* servant = new HxRgbBufferServant((int)size); 00444 CORBA::Object_var obj = HxServer::instance()->registerServant(servant); 00445 return HxCorba::RgbBuffer::_narrow(obj); 00446 } |
|
00099 { 00100 HxCorba::RgbSeq_var seq = data->getRgb2d("Direct"); 00101 00102 HxCorba::ImageRep_ptr res = fromJavaRgb(HxCorba::SIG2DVEC3BYTE, 00103 data->getSizes(), seq.in()); 00104 00105 return res; 00106 } |
|
00112 { 00113 HxImageSignature s = HxConvertImageSig(sig); 00114 00115 HxImageRep obj = HxImageFactory::instance().fromSignature(s, 00116 HxSizes(size.x, size.y, size.z)); 00117 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00118 } |
|
00124 { 00125 HxImageSignature s = HxConvertImageSig(sig); 00126 HxImageRep argImg = HxGetTiedObject<HxImageRepTiedSvt>(src); 00127 00128 HxImageRep obj = HxImageFactory::instance().fromImage(s, argImg); 00129 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00130 } |
|
00136 { 00137 HxImageSignature s = HxConvertImageSig(sig); 00138 HxValue val = HxConvertValue(value); 00139 00140 HxImageRep obj = HxImageFactory::instance().fromValue(s, 00141 HxSizes(size.x, size.y, size.z), val); 00142 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00143 } |
|
00150 { 00151 HxByte* byteData = (HxByte*)data.get_buffer(); 00152 00153 HxImageRep obj = HxImageFactory::instance().fromByteData( 00154 pixelDimensionality, dimensions, 00155 HxSizes(size.x, size.y, size.z), byteData); 00156 00157 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00158 } |
|
00165 { 00166 short* shortData = (short*)data.get_buffer(); 00167 00168 HxImageRep obj = HxImageFactory::instance().fromShortData( 00169 pixelDimensionality, dimensions, 00170 HxSizes(size.x, size.y, size.z), shortData); 00171 00172 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00173 } |
|
00180 { 00181 int* intData = (int*)data.get_buffer(); 00182 00183 HxImageRep obj = HxImageFactory::instance().fromIntData( 00184 pixelDimensionality, dimensions, 00185 HxSizes(size.x, size.y, size.z), intData); 00186 00187 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00188 } |
|
00195 { 00196 float* floatData = (float*)data.get_buffer(); 00197 00198 HxImageRep obj = HxImageFactory::instance().fromFloatData( 00199 pixelDimensionality, dimensions, 00200 HxSizes(size.x, size.y, size.z), floatData); 00201 00202 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00203 } |
|
00210 { 00211 double* doubleData = (double*)data.get_buffer(); 00212 00213 HxImageRep obj = HxImageFactory::instance().fromDoubleData( 00214 pixelDimensionality, dimensions, 00215 HxSizes(size.x, size.y, size.z), doubleData); 00216 00217 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00218 } |
|
00225 { 00226 HxImageSignature s = HxConvertImageSig(sig); 00227 int* intPixels = (int*)pixels.get_buffer(); 00228 00229 HxImageRep obj = HxImageFactory::instance().fromJavaRgb(s, 00230 HxSizes(size.x, size.y, size.z), intPixels); 00231 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00232 } |
|
00238 { 00239 HxImageSignature s = HxConvertImageSig(sig); 00240 HxByte* byteData = (HxByte*)pixels.get_buffer(); 00241 00242 HxImageRep obj = HxImageFactory::instance().fromGrayValue(s, 00243 HxSizes(size.x, size.y, size.z), byteData); 00244 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00245 } |
|
00251 { 00252 HxImageSignature s = HxConvertImageSig(sig); 00253 double* doublePix = (double*)pixels.get_buffer(); 00254 00255 HxImageRep obj = HxImageFactory::instance().fromMatlab(s, 00256 HxSizes(size.x, size.y, size.z), doublePix); 00257 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00258 } |
|
00264 { 00265 HxImageSignature s = HxConvertImageSig(sig); 00266 HxTagList empty_tl; 00267 HxTagList& tl = HxGetTiedObject<HxTagListTiedSvt>(tags, empty_tl); 00268 00269 HxImageRep obj = HxImageFactory::instance().fromNamedGenerator(s, 00270 generatorName, tl); 00271 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00272 } |
|
00279 { 00280 HxImageSignature s = HxConvertImageSig(sig); 00281 HxTagList empty_tl; 00282 HxTagList& tl = HxGetTiedObject<HxTagListTiedSvt>(tags, empty_tl); 00283 00284 HxImageRep obj = HxImageFactory::instance().fromImport(s, 00285 HxSizes(size.x, size.y, size.z), importOp, tl); 00286 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00287 } |
|
00293 { 00294 HxImageRep img1 = HxGetTiedObject<HxImageRepTiedSvt>(i1); 00295 HxImageRep img2 = HxGetTiedObject<HxImageRepTiedSvt>(i2); 00296 00297 HxImageRep obj = HxImageFactory::instance().from2Images(img1,img2); 00298 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00299 } |
|
00305 { 00306 HxImageRep img1 = HxGetTiedObject<HxImageRepTiedSvt>(i1); 00307 HxImageRep img2 = HxGetTiedObject<HxImageRepTiedSvt>(i2); 00308 HxImageRep img3 = HxGetTiedObject<HxImageRepTiedSvt>(i3); 00309 00310 HxImageRep obj = HxImageFactory::instance().from3Images( 00311 img1,img2,img3); 00312 return HxRegisterTiedServant<HxImageRepTiedSvt>(obj); 00313 } |
|
00061 { 00062 HxEnvCorbaObject<HxImageRepTiedSvt> *env = 00063 new HxEnvCorbaObject<HxImageRepTiedSvt>(&_errorHolder); 00064 00065 HxImageRep obj = HxImageFactory::instance().fromFile(fileName, HxMakeTagList()); 00066 return env->returnObject(obj); 00067 } |
|
00318 { 00319 HxImageRep image = HxGetTiedObject<HxImageRepTiedSvt>(im); 00320 00321 HxSF obj = HxSFFactory::instance().makeSFfromImage(image); 00322 return HxRegisterTiedServant<HxSFTiedSvt>(obj); 00323 } |
|
00329 { 00330 HxImageSignature s = HxConvertImageSig(sig); 00331 HxValue v = HxConvertValue(val); 00332 00333 HxSF obj = HxSFFactory::instance().makeFlatSF(s, HxSizes(sz.x, sz.y, sz.z), 00334 v); 00335 return HxRegisterTiedServant<HxSFTiedSvt>(obj); 00336 } |
|
00342 { 00343 HxImageSignature s = HxConvertImageSig(sig); 00344 HxValue v = HxConvertValue(val); 00345 00346 HxSF obj = HxSFFactory::instance().makeBoxSF(s, HxSizes(sz.x, sz.y, sz.z), 00347 v); 00348 return HxRegisterTiedServant<HxSFTiedSvt>(obj); 00349 } |
|
00355 { 00356 HxImageSignature s = HxConvertImageSig(sig); 00357 HxValue v = HxConvertValue(val); 00358 00359 HxSF obj = HxSFFactory::instance().makeCrossSF(s, HxSizes(sz.x, sz.y, sz.z), 00360 v); 00361 return HxRegisterTiedServant<HxSFTiedSvt>(obj); 00362 } |
|
00368 { 00369 HxImageSignature s = HxConvertImageSig(sig); 00370 HxValue v = HxConvertValue(val); 00371 00372 HxSF obj = HxSFFactory::instance().makeDiskSF(s, HxSizes(sz.x, sz.y, sz.z), 00373 v); 00374 return HxRegisterTiedServant<HxSFTiedSvt>(obj); 00375 } |
|
00381 { 00382 HxImageSignature s = HxConvertImageSig(sig); 00383 HxValue v = HxConvertValue(val); 00384 00385 HxSF obj = HxSFFactory::instance().makeDiamondSF(s, HxSizes(sz.x, sz.y, sz.z), 00386 v); 00387 return HxRegisterTiedServant<HxSFTiedSvt>(obj); 00388 } |
|
00394 { 00395 HxSF obj = HxSFFactory::instance().makeGaussianSF(HxSizes(sz.x, sz.y, sz.z), 00396 sigma); 00397 return HxRegisterTiedServant<HxSFTiedSvt>(obj); 00398 } |
|
00404 { 00405 HxSF obj = HxSFFactory::instance().makeParabolaSF(HxSizes(sz.x, sz.y, sz.z), 00406 sigma); 00407 return HxRegisterTiedServant<HxSFTiedSvt>(obj); 00408 } |
|
00413 { 00414 return constructBufferedImageSeq(name, 0); 00415 } |
|
00422 { 00423 HxEnvCorbaObject<HxImageSeqTiedSvt> *env = 00424 new HxEnvCorbaObject<HxImageSeqTiedSvt>(&_errorHolder); 00425 00426 HxImageSeq seq(name, bufSize); 00427 //std::cout << "Opening " << name << " : " << seq.nrFrames() << " frames" 00428 // << " (" << seq.frameWidth() << " x " << seq.frameHeight() << ")" << std::endl; 00429 return env->returnObject(seq); 00430 } |
|
00435 { 00436 HxImageSeq::setUseMDC(flag); 00437 } |
|
00451 { 00452 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::translate2d(x,y)); 00453 } |
|
00458 { 00459 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::scale2d(sx,sy)); 00460 } |
|
00465 { 00466 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::rotate2d(alpha)); 00467 } |
|
00472 { 00473 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::rotate2dDeg(alpha)); 00474 } |
|
00479 { 00480 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::reflect2d(doX,doY)); 00481 } |
|
00486 { 00487 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::shear2d(sx,sy)); 00488 } |
|
00494 { 00495 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::translate3d(x,y,z)); 00496 } |
|
00502 { 00503 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::scale3d(sx,sy,sz)); 00504 } |
|
00509 { 00510 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::rotateX3d(alpha)); 00511 } |
|
00516 { 00517 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::rotateX3dDeg(alpha)); 00518 } |
|
00523 { 00524 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::rotateY3d(alpha)); 00525 } |
|
00530 { 00531 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::rotateY3dDeg(alpha)); 00532 } |
|
00537 { 00538 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::rotateZ3d(alpha)); 00539 } |
|
00544 { 00545 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::rotateZ3dDeg(alpha)); 00546 } |
|
00552 { 00553 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::reflect3d(doX,doY, doZ)); 00554 } |
|
00559 { 00560 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::projection(f)); 00561 } |
|
00566 { 00567 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::camera(f)); 00568 } |
|
Reimplemented from POA_HxCorba::MatrixFactory.
00573 { 00574 return HxRegisterTiedServant<HxMatrixTiedSvt>(HxMatrix::lift2dTo3dXY()); 00575 } |
|
00580 { 00581 HxHistogram hist(filename); 00582 return HxRegisterTiedServant<HxHistogramTiedSvt>(hist); 00583 } |
|
00588 { 00589 return createPolyline(*data->getPoints(), data->getClosed()); 00590 } |
|
00596 { 00597 HxPointSetR2 set; 00598 for(int i=0; i<points.length(); i++) 00599 set.push_back(HxPointR2(points[i].x, points[i].y)); 00600 00601 HxPolyline2d poly(set, closed); 00602 return HxRegisterTiedServant<HxPolyline2dTiedSvt>(poly); 00603 } |
|
00610 { 00611 HxPolyline2d poly = HxGetTiedObject<HxPolyline2dTiedSvt>(cp); 00612 HxBSplineCurve c = HxBSplineCurve::makeUniform(poly, degree); 00613 return HxRegisterTiedServant<HxBSplineCurveTiedSvt>(c); 00614 } |
|
00619 { 00620 HxPolyline2d poly = HxGetTiedObject<HxPolyline2dTiedSvt>(cp); 00621 HxBSplineCurve c = HxBSplineCurve::makeInterpolating(poly); 00622 return HxRegisterTiedServant<HxBSplineCurveTiedSvt>(c); 00623 } |
|
00629 { 00630 HxPolyline2d poly = HxGetTiedObject<HxPolyline2dTiedSvt>(cp); 00631 HxSampledBSplineCurve c = HxSampledBSplineCurve::makeUniform(poly, degree, distance); 00632 return HxRegisterTiedServant<HxSampledBSplineCurveTiedSvt>(c); 00633 } |
|
00639 { 00640 HxPolyline2d poly = HxGetTiedObject<HxPolyline2dTiedSvt>(cp); 00641 HxSampledBSplineCurve c = HxSampledBSplineCurve::makeInterpolating(poly,distance); 00642 return HxRegisterTiedServant<HxSampledBSplineCurveTiedSvt>(c); 00643 } |
|
00649 { 00650 HxImageRep image = HxGetTiedObject<HxImageRepTiedSvt>(im); 00651 HxNJet j = HxNJet(image, N, scale, precision); 00652 return HxRegisterTiedServant<HxNJetTiedSvt>(j); 00653 } |
|
00658 { 00659 HxEnvCorbaObject<VxSegmentationTiedSvt> *env = 00660 new HxEnvCorbaObject<VxSegmentationTiedSvt>(&_errorHolder); 00661 00662 VxSegmentList list; 00663 try { 00664 list = VxSegmentList(filename); 00665 } 00666 catch(HxException& ex) { 00667 HX_CERR << ex.what() << STD_ENDL; 00668 HX_FLUSH; 00669 } 00670 00671 return env->returnObject(list); 00672 } |
|
00677 { 00678 VxSegmentList list = VxSegmentList(); 00679 HxCorba::VxSegmentSeq_var segments = seg->getAll(); 00680 for(int i=0; i<segments->length(); i++) { 00681 VxSegment s = VxSegment(segments[i]->start(), segments[i]->end()); 00682 HxCorba::StringSeq_var ids = segments[i]->getIds(); 00683 HxCorba::StringSeq_var types = segments[i]->getTypes(); 00684 for(int j=0; j<ids->length(); j++) { 00685 if(strcmp(types[j], "int") == 0) 00686 s.push(std::string(ids[j]), segments[i]->getInt(ids[j])); 00687 else if(strcmp(types[j], "double") == 0) 00688 s.push(std::string(ids[j]), segments[i]->getDouble(ids[j])); 00689 else if(strcmp(types[j], "string") == 0) 00690 s.push(std::string(ids[j]), HxString(segments[i]->getString(ids[j]))); 00691 } 00692 list.push_back(s); 00693 } 00694 00695 return HxRegisterTiedServant<VxSegmentationTiedSvt>(list); 00696 } |
|
00701 { 00702 std::vector<HxString> extList; 00703 for(int i=0; i<extLevels.length(); i++) 00704 extList.push_back(extLevels[i]); 00705 00706 try { 00707 HxString temp(base); 00708 VxStructure s(temp, extList); 00709 return HxRegisterTiedServant<VxStructureTiedSvt>(s); 00710 } 00711 catch(HxException&) { 00712 std::cerr << "HxException when opening VxStructure" << std::endl; 00713 } 00714 00715 return HxCorba::VxStructure::_nil(); 00716 } |