00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaImageRep_tie_h__
00016 #define ___HxCorbaImageRep_tie_h__
00017
00018 #include <HxCorbaImageRep_skel.h>
00019
00020 #ifndef OB_INTEGER_VERSION
00021 # error No ORBacus version defined! Is <OB/CORBA.h> included?
00022 #endif
00023
00024 #ifndef OB_NO_VERSION_CHECK
00025 # if (OB_INTEGER_VERSION != 4010000L)
00026 # error ORBacus version mismatch!
00027 # endif
00028 #endif
00029
00030
00031
00032
00033 namespace POA_HxCorba
00034 {
00035
00036
00037
00038
00039 template<class T>
00040 class ImageRepRgbSource_tie : virtual public ImageRepRgbSource
00041 {
00042 T* ptr_;
00043 PortableServer::POA_ptr poa_;
00044 CORBA::Boolean rel_;
00045
00046 ImageRepRgbSource_tie(const ImageRepRgbSource_tie<T>&) { }
00047 void operator=(const ImageRepRgbSource_tie<T>&) { }
00048
00049 public:
00050
00051 ImageRepRgbSource_tie(T& t)
00052 : ptr_(&t), poa_(PortableServer::POA::_nil()), rel_(false)
00053 {
00054 }
00055
00056 ImageRepRgbSource_tie(T& t, PortableServer::POA_ptr poa)
00057 : ptr_(&t), poa_(PortableServer::POA::_duplicate(poa)), rel_(false)
00058 {
00059 }
00060
00061 ImageRepRgbSource_tie(T* p, CORBA::Boolean release = true)
00062 : ptr_(p), poa_(PortableServer::POA::_nil()), rel_(release)
00063 {
00064 }
00065
00066 ImageRepRgbSource_tie(T* p, PortableServer::POA_ptr poa, CORBA::Boolean release = true)
00067 : ptr_(p), poa_(PortableServer::POA::_duplicate(poa)), rel_(release)
00068 {
00069 }
00070
00071 virtual
00072 ~ImageRepRgbSource_tie()
00073 {
00074 if(rel_)
00075 delete ptr_;
00076
00077 CORBA::release(poa_);
00078 }
00079
00080 T*
00081 _tied_object()
00082 {
00083 return ptr_;
00084 }
00085
00086 void
00087 _tied_object(T& obj)
00088 {
00089 if(rel_)
00090 delete ptr_;
00091
00092 ptr_ = &obj;
00093 rel_ = false;
00094 }
00095
00096 void
00097 _tied_object(T* obj, CORBA::Boolean release = true)
00098 {
00099 if(rel_)
00100 delete ptr_;
00101
00102 ptr_ = obj;
00103 rel_ = release;
00104 }
00105
00106 CORBA::Boolean
00107 _is_owner()
00108 {
00109 return rel_;
00110 }
00111
00112 void
00113 _is_owner(CORBA::Boolean b)
00114 {
00115 rel_ = b;
00116 }
00117
00118 virtual void
00119 setDisplayMode(const char* displayMode)
00120 throw(CORBA::SystemException)
00121 {
00122 ptr_ -> setDisplayMode(displayMode);
00123 }
00124
00125 virtual char*
00126 getDisplayMode()
00127 throw(CORBA::SystemException)
00128 {
00129 return ptr_ -> getDisplayMode();
00130 }
00131
00132 virtual void
00133 setSize(const HxCorba::Sizes& newSize)
00134 throw(CORBA::SystemException)
00135 {
00136 ptr_ -> setSize(newSize);
00137 }
00138
00139 virtual void
00140 setMaxSize(const HxCorba::Sizes& maxSize)
00141 throw(CORBA::SystemException)
00142 {
00143 ptr_ -> setMaxSize(maxSize);
00144 }
00145
00146 virtual void
00147 scale(CORBA::Float factor)
00148 throw(CORBA::SystemException)
00149 {
00150 ptr_ -> scale(factor);
00151 }
00152
00153 virtual void
00154 setTransferSize(CORBA::Long nLines)
00155 throw(CORBA::SystemException)
00156 {
00157 ptr_ -> setTransferSize(nLines);
00158 }
00159
00160 virtual CORBA::Long
00161 getTransferSize()
00162 throw(CORBA::SystemException)
00163 {
00164 return ptr_ -> getTransferSize();
00165 }
00166
00167 virtual void
00168 setTransferPos(CORBA::Long line)
00169 throw(CORBA::SystemException)
00170 {
00171 ptr_ -> setTransferPos(line);
00172 }
00173
00174 virtual CORBA::Long
00175 getTransferPos()
00176 throw(CORBA::SystemException)
00177 {
00178 return ptr_ -> getTransferPos();
00179 }
00180
00181 virtual HxCorba::Sizes
00182 getSizes()
00183 throw(CORBA::SystemException)
00184 {
00185 return ptr_ -> getSizes();
00186 }
00187
00188 virtual HxCorba::Sizes
00189 getOriginalSizes()
00190 throw(CORBA::SystemException)
00191 {
00192 return ptr_ -> getOriginalSizes();
00193 }
00194
00195 virtual void
00196 close()
00197 throw(CORBA::SystemException)
00198 {
00199 ptr_ -> close();
00200 }
00201
00202 virtual HxCorba::RgbSeq*
00203 getRgb()
00204 throw(CORBA::SystemException)
00205 {
00206 return ptr_ -> getRgb();
00207 }
00208
00209 virtual void
00210 fillRgb(HxCorba::RgbBuffer_ptr buffer)
00211 throw(CORBA::SystemException)
00212 {
00213 ptr_ -> fillRgb(buffer);
00214 }
00215
00216 PortableServer::POA_ptr _default_POA()
00217 {
00218 if(!CORBA::is_nil(poa_))
00219 return PortableServer::POA::_duplicate(poa_);
00220 else
00221 return ImageRepRgbSource::_default_POA();
00222 }
00223 };
00224
00225
00226
00227
00228 template<class T>
00229 class ImageData_tie : virtual public ImageData
00230 {
00231 T* ptr_;
00232 PortableServer::POA_ptr poa_;
00233 CORBA::Boolean rel_;
00234
00235 ImageData_tie(const ImageData_tie<T>&) { }
00236 void operator=(const ImageData_tie<T>&) { }
00237
00238 public:
00239
00240 ImageData_tie(T& t)
00241 : ptr_(&t), poa_(PortableServer::POA::_nil()), rel_(false)
00242 {
00243 }
00244
00245 ImageData_tie(T& t, PortableServer::POA_ptr poa)
00246 : ptr_(&t), poa_(PortableServer::POA::_duplicate(poa)), rel_(false)
00247 {
00248 }
00249
00250 ImageData_tie(T* p, CORBA::Boolean release = true)
00251 : ptr_(p), poa_(PortableServer::POA::_nil()), rel_(release)
00252 {
00253 }
00254
00255 ImageData_tie(T* p, PortableServer::POA_ptr poa, CORBA::Boolean release = true)
00256 : ptr_(p), poa_(PortableServer::POA::_duplicate(poa)), rel_(release)
00257 {
00258 }
00259
00260 virtual
00261 ~ImageData_tie()
00262 {
00263 if(rel_)
00264 delete ptr_;
00265
00266 CORBA::release(poa_);
00267 }
00268
00269 T*
00270 _tied_object()
00271 {
00272 return ptr_;
00273 }
00274
00275 void
00276 _tied_object(T& obj)
00277 {
00278 if(rel_)
00279 delete ptr_;
00280
00281 ptr_ = &obj;
00282 rel_ = false;
00283 }
00284
00285 void
00286 _tied_object(T* obj, CORBA::Boolean release = true)
00287 {
00288 if(rel_)
00289 delete ptr_;
00290
00291 ptr_ = obj;
00292 rel_ = release;
00293 }
00294
00295 CORBA::Boolean
00296 _is_owner()
00297 {
00298 return rel_;
00299 }
00300
00301 void
00302 _is_owner(CORBA::Boolean b)
00303 {
00304 rel_ = b;
00305 }
00306
00307 virtual CORBA::Long
00308 dimensionality()
00309 throw(CORBA::SystemException)
00310 {
00311 return ptr_ -> dimensionality();
00312 }
00313
00314 virtual CORBA::Long
00315 numberOfPixels()
00316 throw(CORBA::SystemException)
00317 {
00318 return ptr_ -> numberOfPixels();
00319 }
00320
00321 virtual CORBA::Long
00322 pixelDimensionality()
00323 throw(CORBA::SystemException)
00324 {
00325 return ptr_ -> pixelDimensionality();
00326 }
00327
00328 virtual CORBA::Long
00329 pixelPrecision()
00330 throw(CORBA::SystemException)
00331 {
00332 return ptr_ -> pixelPrecision();
00333 }
00334
00335 virtual HxCorba::PixelT
00336 pixelType()
00337 throw(CORBA::SystemException)
00338 {
00339 return ptr_ -> pixelType();
00340 }
00341
00342 virtual HxCorba::Sizes
00343 getSizes()
00344 throw(CORBA::SystemException)
00345 {
00346 return ptr_ -> getSizes();
00347 }
00348
00349 virtual CORBA::Long
00350 dimensionSize(CORBA::Long i)
00351 throw(CORBA::SystemException)
00352 {
00353 return ptr_ -> dimensionSize(i);
00354 }
00355
00356 virtual HxCorba::ImageSignature
00357 signature()
00358 throw(CORBA::SystemException)
00359 {
00360 return ptr_ -> signature();
00361 }
00362
00363 virtual HxCorba::RgbSeq*
00364 getRgb2d(const char* displayMode)
00365 throw(CORBA::SystemException)
00366 {
00367 return ptr_ -> getRgb2d(displayMode);
00368 }
00369
00370 virtual void
00371 fillRgb2d(HxCorba::RgbBuffer_ptr buf,
00372 const char* displayMode)
00373 throw(CORBA::SystemException)
00374 {
00375 ptr_ -> fillRgb2d(buf, displayMode);
00376 }
00377
00378 virtual HxCorba::ImageRepRgbSource_ptr
00379 getRgbSource()
00380 throw(CORBA::SystemException)
00381 {
00382 return ptr_ -> getRgbSource();
00383 }
00384
00385 PortableServer::POA_ptr _default_POA()
00386 {
00387 if(!CORBA::is_nil(poa_))
00388 return PortableServer::POA::_duplicate(poa_);
00389 else
00390 return ImageData::_default_POA();
00391 }
00392 };
00393
00394
00395
00396
00397 template<class T>
00398 class ImageRep_tie : virtual public ImageRep
00399 {
00400 T* ptr_;
00401 PortableServer::POA_ptr poa_;
00402 CORBA::Boolean rel_;
00403
00404 ImageRep_tie(const ImageRep_tie<T>&) { }
00405 void operator=(const ImageRep_tie<T>&) { }
00406
00407 public:
00408
00409 ImageRep_tie(T& t)
00410 : ptr_(&t), poa_(PortableServer::POA::_nil()), rel_(false)
00411 {
00412 }
00413
00414 ImageRep_tie(T& t, PortableServer::POA_ptr poa)
00415 : ptr_(&t), poa_(PortableServer::POA::_duplicate(poa)), rel_(false)
00416 {
00417 }
00418
00419 ImageRep_tie(T* p, CORBA::Boolean release = true)
00420 : ptr_(p), poa_(PortableServer::POA::_nil()), rel_(release)
00421 {
00422 }
00423
00424 ImageRep_tie(T* p, PortableServer::POA_ptr poa, CORBA::Boolean release = true)
00425 : ptr_(p), poa_(PortableServer::POA::_duplicate(poa)), rel_(release)
00426 {
00427 }
00428
00429 virtual
00430 ~ImageRep_tie()
00431 {
00432 if(rel_)
00433 delete ptr_;
00434
00435 CORBA::release(poa_);
00436 }
00437
00438 T*
00439 _tied_object()
00440 {
00441 return ptr_;
00442 }
00443
00444 void
00445 _tied_object(T& obj)
00446 {
00447 if(rel_)
00448 delete ptr_;
00449
00450 ptr_ = &obj;
00451 rel_ = false;
00452 }
00453
00454 void
00455 _tied_object(T* obj, CORBA::Boolean release = true)
00456 {
00457 if(rel_)
00458 delete ptr_;
00459
00460 ptr_ = obj;
00461 rel_ = release;
00462 }
00463
00464 CORBA::Boolean
00465 _is_owner()
00466 {
00467 return rel_;
00468 }
00469
00470 void
00471 _is_owner(CORBA::Boolean b)
00472 {
00473 rel_ = b;
00474 }
00475
00476 virtual HxCorba::ImageRep_ptr
00477 binaryPixOp(HxCorba::ImageRep_ptr arg,
00478 const char* bpoName,
00479 HxCorba::TagList_ptr tags)
00480 throw(HxCorba::ImageException,
00481 CORBA::SystemException)
00482 {
00483 return ptr_ -> binaryPixOp(arg, bpoName, tags);
00484 }
00485
00486 virtual HxCorba::ImageRep_ptr
00487 binaryPixOpVal(const HxCorba::PixValue& arg,
00488 const char* bpoName,
00489 HxCorba::TagList_ptr tags)
00490 throw(HxCorba::ImageException,
00491 CORBA::SystemException)
00492 {
00493 return ptr_ -> binaryPixOpVal(arg, bpoName, tags);
00494 }
00495
00496 virtual HxCorba::ImageRep_ptr
00497 unaryPixOp(const char* upoName,
00498 HxCorba::TagList_ptr tags)
00499 throw(HxCorba::ImageException,
00500 CORBA::SystemException)
00501 {
00502 return ptr_ -> unaryPixOp(upoName, tags);
00503 }
00504
00505 virtual HxCorba::ImageRep_ptr
00506 multiPixOp(const HxCorba::ImageList& args,
00507 const char* mpoName,
00508 HxCorba::TagList_ptr tags)
00509 throw(HxCorba::ImageException,
00510 CORBA::SystemException)
00511 {
00512 return ptr_ -> multiPixOp(args, mpoName, tags);
00513 }
00514
00515 virtual HxCorba::ImageList*
00516 MNPixOp(const HxCorba::ImageList& args,
00517 const char* mpoName,
00518 HxCorba::TagList_ptr tags)
00519 throw(HxCorba::ImageException,
00520 CORBA::SystemException)
00521 {
00522 return ptr_ -> MNPixOp(args, mpoName, tags);
00523 }
00524
00525 virtual HxCorba::PixValue
00526 reduceOp(const char* op,
00527 HxCorba::TagList_ptr tags)
00528 throw(HxCorba::ImageException,
00529 CORBA::SystemException)
00530 {
00531 return ptr_ -> reduceOp(op, tags);
00532 }
00533
00534 virtual HxCorba::ImageRep_ptr
00535 generalizedConvolution(HxCorba::ImageRep_ptr kernel,
00536 const char* gMul,
00537 const char* gAdd,
00538 HxCorba::ResultPrecision resPrec,
00539 HxCorba::TagList_ptr tags)
00540 throw(HxCorba::ImageException,
00541 CORBA::SystemException)
00542 {
00543 return ptr_ -> generalizedConvolution(kernel, gMul, gAdd, resPrec, tags);
00544 }
00545
00546 virtual HxCorba::ImageRep_ptr
00547 genConv2dSep(HxCorba::ImageRep_ptr kernel1,
00548 HxCorba::ImageRep_ptr kernel2,
00549 const char* gMul,
00550 const char* gAdd,
00551 HxCorba::ResultPrecision resPrec,
00552 HxCorba::TagList_ptr tags)
00553 throw(HxCorba::ImageException,
00554 CORBA::SystemException)
00555 {
00556 return ptr_ -> genConv2dSep(kernel1, kernel2, gMul, gAdd, resPrec, tags);
00557 }
00558
00559 virtual HxCorba::ImageRep_ptr
00560 recGenConv(HxCorba::ImageRep_ptr kerImg,
00561 const char* gMul,
00562 const char* gAdd,
00563 HxCorba::ResultPrecision resPrec,
00564 HxCorba::TagList_ptr tags)
00565 throw(HxCorba::ImageException,
00566 CORBA::SystemException)
00567 {
00568 return ptr_ -> recGenConv(kerImg, gMul, gAdd, resPrec, tags);
00569 }
00570
00571 virtual HxCorba::ImageRep_ptr
00572 neighbourhoodOp(const char* ngbName,
00573 HxCorba::TagList_ptr tags)
00574 throw(HxCorba::ImageException,
00575 CORBA::SystemException)
00576 {
00577 return ptr_ -> neighbourhoodOp(ngbName, tags);
00578 }
00579
00580 virtual HxCorba::ImageRep_ptr
00581 geometricOp2d(HxCorba::Matrix_ptr func,
00582 HxCorba::GeoIntType gi,
00583 HxCorba::GeoTransType gt,
00584 CORBA::Boolean adjustSize,
00585 const HxCorba::PixValue& background)
00586 throw(HxCorba::ImageException,
00587 CORBA::SystemException)
00588 {
00589 return ptr_ -> geometricOp2d(func, gi, gt, adjustSize, background);
00590 }
00591
00592 virtual HxCorba::ImageRep_ptr
00593 scale(CORBA::Double sx,
00594 CORBA::Double sy,
00595 HxCorba::GeoIntType gi)
00596 throw(CORBA::SystemException)
00597 {
00598 return ptr_ -> scale(sx, sy, gi);
00599 }
00600
00601 virtual HxCorba::PixValue
00602 getAt(CORBA::Long x,
00603 CORBA::Long y,
00604 CORBA::Long zz)
00605 throw(CORBA::SystemException)
00606 {
00607 return ptr_ -> getAt(x, y, zz);
00608 }
00609
00610 virtual void
00611 destroy()
00612 throw(CORBA::SystemException)
00613 {
00614 ptr_ -> destroy();
00615 }
00616
00617 virtual CORBA::Long
00618 dimensionality()
00619 throw(CORBA::SystemException)
00620 {
00621 return ptr_ -> dimensionality();
00622 }
00623
00624 virtual CORBA::Long
00625 numberOfPixels()
00626 throw(CORBA::SystemException)
00627 {
00628 return ptr_ -> numberOfPixels();
00629 }
00630
00631 virtual CORBA::Long
00632 pixelDimensionality()
00633 throw(CORBA::SystemException)
00634 {
00635 return ptr_ -> pixelDimensionality();
00636 }
00637
00638 virtual CORBA::Long
00639 pixelPrecision()
00640 throw(CORBA::SystemException)
00641 {
00642 return ptr_ -> pixelPrecision();
00643 }
00644
00645 virtual HxCorba::PixelT
00646 pixelType()
00647 throw(CORBA::SystemException)
00648 {
00649 return ptr_ -> pixelType();
00650 }
00651
00652 virtual HxCorba::Sizes
00653 getSizes()
00654 throw(CORBA::SystemException)
00655 {
00656 return ptr_ -> getSizes();
00657 }
00658
00659 virtual CORBA::Long
00660 dimensionSize(CORBA::Long i)
00661 throw(CORBA::SystemException)
00662 {
00663 return ptr_ -> dimensionSize(i);
00664 }
00665
00666 virtual HxCorba::ImageSignature
00667 signature()
00668 throw(CORBA::SystemException)
00669 {
00670 return ptr_ -> signature();
00671 }
00672
00673 virtual HxCorba::RgbSeq*
00674 getRgb2d(const char* displayMode)
00675 throw(CORBA::SystemException)
00676 {
00677 return ptr_ -> getRgb2d(displayMode);
00678 }
00679
00680 virtual void
00681 fillRgb2d(HxCorba::RgbBuffer_ptr buf,
00682 const char* displayMode)
00683 throw(CORBA::SystemException)
00684 {
00685 ptr_ -> fillRgb2d(buf, displayMode);
00686 }
00687
00688 virtual HxCorba::ImageRepRgbSource_ptr
00689 getRgbSource()
00690 throw(CORBA::SystemException)
00691 {
00692 return ptr_ -> getRgbSource();
00693 }
00694
00695 virtual void
00696 addRef()
00697 throw(CORBA::SystemException)
00698 {
00699 ptr_ -> addRef();
00700 }
00701
00702 virtual void
00703 removeRef()
00704 throw(CORBA::SystemException)
00705 {
00706 ptr_ -> removeRef();
00707 }
00708
00709 PortableServer::POA_ptr _default_POA()
00710 {
00711 if(!CORBA::is_nil(poa_))
00712 return PortableServer::POA::_duplicate(poa_);
00713 else
00714 return ImageRep::_default_POA();
00715 }
00716 };
00717
00718
00719
00720
00721 template<class T>
00722 class ImageFactory_tie : virtual public ImageFactory
00723 {
00724 T* ptr_;
00725 PortableServer::POA_ptr poa_;
00726 CORBA::Boolean rel_;
00727
00728 ImageFactory_tie(const ImageFactory_tie<T>&) { }
00729 void operator=(const ImageFactory_tie<T>&) { }
00730
00731 public:
00732
00733 ImageFactory_tie(T& t)
00734 : ptr_(&t), poa_(PortableServer::POA::_nil()), rel_(false)
00735 {
00736 }
00737
00738 ImageFactory_tie(T& t, PortableServer::POA_ptr poa)
00739 : ptr_(&t), poa_(PortableServer::POA::_duplicate(poa)), rel_(false)
00740 {
00741 }
00742
00743 ImageFactory_tie(T* p, CORBA::Boolean release = true)
00744 : ptr_(p), poa_(PortableServer::POA::_nil()), rel_(release)
00745 {
00746 }
00747
00748 ImageFactory_tie(T* p, PortableServer::POA_ptr poa, CORBA::Boolean release = true)
00749 : ptr_(p), poa_(PortableServer::POA::_duplicate(poa)), rel_(release)
00750 {
00751 }
00752
00753 virtual
00754 ~ImageFactory_tie()
00755 {
00756 if(rel_)
00757 delete ptr_;
00758
00759 CORBA::release(poa_);
00760 }
00761
00762 T*
00763 _tied_object()
00764 {
00765 return ptr_;
00766 }
00767
00768 void
00769 _tied_object(T& obj)
00770 {
00771 if(rel_)
00772 delete ptr_;
00773
00774 ptr_ = &obj;
00775 rel_ = false;
00776 }
00777
00778 void
00779 _tied_object(T* obj, CORBA::Boolean release = true)
00780 {
00781 if(rel_)
00782 delete ptr_;
00783
00784 ptr_ = obj;
00785 rel_ = release;
00786 }
00787
00788 CORBA::Boolean
00789 _is_owner()
00790 {
00791 return rel_;
00792 }
00793
00794 void
00795 _is_owner(CORBA::Boolean b)
00796 {
00797 rel_ = b;
00798 }
00799
00800 virtual HxCorba::ImageRep_ptr
00801 importImage(HxCorba::ImageData_ptr data)
00802 throw(CORBA::SystemException)
00803 {
00804 return ptr_ -> importImage(data);
00805 }
00806
00807 virtual HxCorba::ImageRep_ptr
00808 fromSignature(HxCorba::ImageSignature sig,
00809 const HxCorba::Sizes& size)
00810 throw(CORBA::SystemException)
00811 {
00812 return ptr_ -> fromSignature(sig, size);
00813 }
00814
00815 virtual HxCorba::ImageRep_ptr
00816 fromImage(HxCorba::ImageSignature sig,
00817 HxCorba::ImageRep_ptr src)
00818 throw(CORBA::SystemException)
00819 {
00820 return ptr_ -> fromImage(sig, src);
00821 }
00822
00823 virtual HxCorba::ImageRep_ptr
00824 fromValue(HxCorba::ImageSignature sig,
00825 const HxCorba::Sizes& size,
00826 const HxCorba::PixValue& val)
00827 throw(CORBA::SystemException)
00828 {
00829 return ptr_ -> fromValue(sig, size, val);
00830 }
00831
00832 virtual HxCorba::ImageRep_ptr
00833 fromByteData(CORBA::Long pixelDimensionality,
00834 CORBA::Long dimensions,
00835 const HxCorba::Sizes& size,
00836 const HxCorba::OctetSeq& data)
00837 throw(CORBA::SystemException)
00838 {
00839 return ptr_ -> fromByteData(pixelDimensionality, dimensions, size, data);
00840 }
00841
00842 virtual HxCorba::ImageRep_ptr
00843 fromShortData(CORBA::Long pixelDimensionality,
00844 CORBA::Long dimensions,
00845 const HxCorba::Sizes& size,
00846 const HxCorba::ShortSeq& data)
00847 throw(CORBA::SystemException)
00848 {
00849 return ptr_ -> fromShortData(pixelDimensionality, dimensions, size, data);
00850 }
00851
00852 virtual HxCorba::ImageRep_ptr
00853 fromIntData(CORBA::Long pixelDimensionality,
00854 CORBA::Long dimensions,
00855 const HxCorba::Sizes& size,
00856 const HxCorba::LongSeq& data)
00857 throw(CORBA::SystemException)
00858 {
00859 return ptr_ -> fromIntData(pixelDimensionality, dimensions, size, data);
00860 }
00861
00862 virtual HxCorba::ImageRep_ptr
00863 fromFloatData(CORBA::Long pixelDimensionality,
00864 CORBA::Long dimensions,
00865 const HxCorba::Sizes& size,
00866 const HxCorba::FloatSeq& data)
00867 throw(CORBA::SystemException)
00868 {
00869 return ptr_ -> fromFloatData(pixelDimensionality, dimensions, size, data);
00870 }
00871
00872 virtual HxCorba::ImageRep_ptr
00873 fromDoubleData(CORBA::Long pixelDimensionality,
00874 CORBA::Long dimensions,
00875 const HxCorba::Sizes& size,
00876 const HxCorba::DoubleSeq& data)
00877 throw(CORBA::SystemException)
00878 {
00879 return ptr_ -> fromDoubleData(pixelDimensionality, dimensions, size, data);
00880 }
00881
00882 virtual HxCorba::ImageRep_ptr
00883 fromJavaRgb(HxCorba::ImageSignature sig,
00884 const HxCorba::Sizes& size,
00885 const HxCorba::RgbSeq& pixels)
00886 throw(CORBA::SystemException)
00887 {
00888 return ptr_ -> fromJavaRgb(sig, size, pixels);
00889 }
00890
00891 virtual HxCorba::ImageRep_ptr
00892 fromGrayValue(HxCorba::ImageSignature sig,
00893 const HxCorba::Sizes& size,
00894 const HxCorba::OctetSeq& pixels)
00895 throw(CORBA::SystemException)
00896 {
00897 return ptr_ -> fromGrayValue(sig, size, pixels);
00898 }
00899
00900 virtual HxCorba::ImageRep_ptr
00901 fromMatlab(HxCorba::ImageSignature sig,
00902 const HxCorba::Sizes& size,
00903 const HxCorba::DoubleSeq& pixels)
00904 throw(CORBA::SystemException)
00905 {
00906 return ptr_ -> fromMatlab(sig, size, pixels);
00907 }
00908
00909 virtual HxCorba::ImageRep_ptr
00910 fromNamedGenerator(HxCorba::ImageSignature sig,
00911 const char* generatorName,
00912 HxCorba::TagList_ptr tags)
00913 throw(CORBA::SystemException)
00914 {
00915 return ptr_ -> fromNamedGenerator(sig, generatorName, tags);
00916 }
00917
00918 virtual HxCorba::ImageRep_ptr
00919 fromImport(HxCorba::ImageSignature sig,
00920 const HxCorba::Sizes& size,
00921 const char* importOp,
00922 HxCorba::TagList_ptr tags)
00923 throw(CORBA::SystemException)
00924 {
00925 return ptr_ -> fromImport(sig, size, importOp, tags);
00926 }
00927
00928 virtual HxCorba::ImageRep_ptr
00929 from2Images(HxCorba::ImageRep_ptr i1,
00930 HxCorba::ImageRep_ptr i2)
00931 throw(CORBA::SystemException)
00932 {
00933 return ptr_ -> from2Images(i1, i2);
00934 }
00935
00936 virtual HxCorba::ImageRep_ptr
00937 from3Images(HxCorba::ImageRep_ptr i1,
00938 HxCorba::ImageRep_ptr i2,
00939 HxCorba::ImageRep_ptr i3)
00940 throw(CORBA::SystemException)
00941 {
00942 return ptr_ -> from3Images(i1, i2, i3);
00943 }
00944
00945 virtual HxCorba::ImageRep_ptr
00946 fromFile(const char* fileName)
00947 throw(CORBA::SystemException)
00948 {
00949 return ptr_ -> fromFile(fileName);
00950 }
00951
00952 PortableServer::POA_ptr _default_POA()
00953 {
00954 if(!CORBA::is_nil(poa_))
00955 return PortableServer::POA::_duplicate(poa_);
00956 else
00957 return ImageFactory::_default_POA();
00958 }
00959 };
00960
00961 }
00962
00963 #endif