00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaImageRep_skel_h__
00016 #define ___HxCorbaImageRep_skel_h__
00017
00018 #include <HxCorbaImageRep.h>
00019
00020 #include <HxCorbaTagList_skel.h>
00021 #include <HxCorbaTypes_skel.h>
00022 #include <HxCorbaRgbBuffer_skel.h>
00023 #include <HxCorbaMatrix_skel.h>
00024 #include <HxCorbaRefCountBase_skel.h>
00025
00026 #ifndef OB_INTEGER_VERSION
00027 # error No ORBacus version defined! Is <OB/CORBA.h> included?
00028 #endif
00029
00030 #ifndef OB_NO_VERSION_CHECK
00031 # if (OB_INTEGER_VERSION != 4010000L)
00032 # error ORBacus version mismatch!
00033 # endif
00034 #endif
00035
00036
00037
00038
00039 namespace POA_HxCorba
00040 {
00041
00042
00043
00044
00045 class ImageRepRgbSource : virtual public POA_HxCorba::RgbSource
00046 {
00047 ImageRepRgbSource(const ImageRepRgbSource&);
00048 void operator=(const ImageRepRgbSource&);
00049
00050 protected:
00051
00052
00053
00054
00055 void _OB_op_setDisplayMode(OB::Upcall_ptr);
00056
00057
00058
00059
00060 void _OB_op_getDisplayMode(OB::Upcall_ptr);
00061
00062
00063
00064
00065 void _OB_op_setSize(OB::Upcall_ptr);
00066
00067
00068
00069
00070 void _OB_op_setMaxSize(OB::Upcall_ptr);
00071
00072
00073
00074
00075 void _OB_op_scale(OB::Upcall_ptr);
00076
00077
00078
00079
00080 void _OB_op_setTransferSize(OB::Upcall_ptr);
00081
00082
00083
00084
00085 void _OB_op_getTransferSize(OB::Upcall_ptr);
00086
00087
00088
00089
00090 void _OB_op_setTransferPos(OB::Upcall_ptr);
00091
00092
00093
00094
00095 void _OB_op_getTransferPos(OB::Upcall_ptr);
00096
00097
00098
00099
00100 void _OB_op_getSizes(OB::Upcall_ptr);
00101
00102
00103
00104
00105 void _OB_op_getOriginalSizes(OB::Upcall_ptr);
00106
00107
00108
00109
00110 void _OB_op_close(OB::Upcall_ptr);
00111
00112 public:
00113
00114 ImageRepRgbSource() { }
00115
00116 virtual CORBA::Boolean _is_a(const char*)
00117 throw(CORBA::SystemException);
00118
00119 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00120 PortableServer::POA_ptr);
00121
00122 HxCorba::ImageRepRgbSource_ptr _this();
00123
00124 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00125 const PortableServer::ObjectId&);
00126 virtual void _OB_dispatch(OB::Upcall_ptr);
00127
00128
00129
00130
00131 virtual void setDisplayMode(const char* displayMode)
00132 throw(CORBA::SystemException) = 0;
00133
00134
00135
00136
00137 virtual char* getDisplayMode()
00138 throw(CORBA::SystemException) = 0;
00139
00140
00141
00142
00143 virtual void setSize(const HxCorba::Sizes& newSize)
00144 throw(CORBA::SystemException) = 0;
00145
00146
00147
00148
00149 virtual void setMaxSize(const HxCorba::Sizes& maxSize)
00150 throw(CORBA::SystemException) = 0;
00151
00152
00153
00154
00155 virtual void scale(CORBA::Float factor)
00156 throw(CORBA::SystemException) = 0;
00157
00158
00159
00160
00161 virtual void setTransferSize(CORBA::Long nLines)
00162 throw(CORBA::SystemException) = 0;
00163
00164
00165
00166
00167 virtual CORBA::Long getTransferSize()
00168 throw(CORBA::SystemException) = 0;
00169
00170
00171
00172
00173 virtual void setTransferPos(CORBA::Long line)
00174 throw(CORBA::SystemException) = 0;
00175
00176
00177
00178
00179 virtual CORBA::Long getTransferPos()
00180 throw(CORBA::SystemException) = 0;
00181
00182
00183
00184
00185 virtual HxCorba::Sizes getSizes()
00186 throw(CORBA::SystemException) = 0;
00187
00188
00189
00190
00191 virtual HxCorba::Sizes getOriginalSizes()
00192 throw(CORBA::SystemException) = 0;
00193
00194
00195
00196
00197 virtual void close()
00198 throw(CORBA::SystemException) = 0;
00199 };
00200
00201
00202
00203
00204 class ImageData : virtual public PortableServer::ServantBase
00205 {
00206 ImageData(const ImageData&);
00207 void operator=(const ImageData&);
00208
00209 protected:
00210
00211
00212
00213
00214 void _OB_op_dimensionality(OB::Upcall_ptr);
00215
00216
00217
00218
00219 void _OB_op_numberOfPixels(OB::Upcall_ptr);
00220
00221
00222
00223
00224 void _OB_op_pixelDimensionality(OB::Upcall_ptr);
00225
00226
00227
00228
00229 void _OB_op_pixelPrecision(OB::Upcall_ptr);
00230
00231
00232
00233
00234 void _OB_op_pixelType(OB::Upcall_ptr);
00235
00236
00237
00238
00239 void _OB_op_getSizes(OB::Upcall_ptr);
00240
00241
00242
00243
00244 void _OB_op_dimensionSize(OB::Upcall_ptr);
00245
00246
00247
00248
00249 void _OB_op_signature(OB::Upcall_ptr);
00250
00251
00252
00253
00254 void _OB_op_getRgb2d(OB::Upcall_ptr);
00255
00256
00257
00258
00259 void _OB_op_fillRgb2d(OB::Upcall_ptr);
00260
00261
00262
00263
00264 void _OB_op_getRgbSource(OB::Upcall_ptr);
00265
00266 public:
00267
00268 ImageData() { }
00269
00270 virtual CORBA::Boolean _is_a(const char*)
00271 throw(CORBA::SystemException);
00272
00273 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00274 PortableServer::POA_ptr);
00275
00276 HxCorba::ImageData_ptr _this();
00277
00278 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00279 const PortableServer::ObjectId&);
00280 virtual void _OB_dispatch(OB::Upcall_ptr);
00281
00282
00283
00284
00285 virtual CORBA::Long dimensionality()
00286 throw(CORBA::SystemException) = 0;
00287
00288
00289
00290
00291 virtual CORBA::Long numberOfPixels()
00292 throw(CORBA::SystemException) = 0;
00293
00294
00295
00296
00297 virtual CORBA::Long pixelDimensionality()
00298 throw(CORBA::SystemException) = 0;
00299
00300
00301
00302
00303 virtual CORBA::Long pixelPrecision()
00304 throw(CORBA::SystemException) = 0;
00305
00306
00307
00308
00309 virtual HxCorba::PixelT pixelType()
00310 throw(CORBA::SystemException) = 0;
00311
00312
00313
00314
00315 virtual HxCorba::Sizes getSizes()
00316 throw(CORBA::SystemException) = 0;
00317
00318
00319
00320
00321 virtual CORBA::Long dimensionSize(CORBA::Long i)
00322 throw(CORBA::SystemException) = 0;
00323
00324
00325
00326
00327 virtual HxCorba::ImageSignature signature()
00328 throw(CORBA::SystemException) = 0;
00329
00330
00331
00332
00333 virtual HxCorba::RgbSeq* getRgb2d(const char* displayMode)
00334 throw(CORBA::SystemException) = 0;
00335
00336
00337
00338
00339 virtual void fillRgb2d(HxCorba::RgbBuffer_ptr buf,
00340 const char* displayMode)
00341 throw(CORBA::SystemException) = 0;
00342
00343
00344
00345
00346 virtual HxCorba::ImageRepRgbSource_ptr getRgbSource()
00347 throw(CORBA::SystemException) = 0;
00348 };
00349
00350
00351
00352
00353 class ImageRep : virtual public POA_HxCorba::ImageData,
00354 virtual public POA_HxCorba::RefCountBase
00355 {
00356 ImageRep(const ImageRep&);
00357 void operator=(const ImageRep&);
00358
00359 protected:
00360
00361
00362
00363
00364 void _OB_op_binaryPixOp(OB::Upcall_ptr);
00365
00366
00367
00368
00369 void _OB_op_binaryPixOpVal(OB::Upcall_ptr);
00370
00371
00372
00373
00374 void _OB_op_unaryPixOp(OB::Upcall_ptr);
00375
00376
00377
00378
00379 void _OB_op_multiPixOp(OB::Upcall_ptr);
00380
00381
00382
00383
00384 void _OB_op_MNPixOp(OB::Upcall_ptr);
00385
00386
00387
00388
00389 void _OB_op_reduceOp(OB::Upcall_ptr);
00390
00391
00392
00393
00394 void _OB_op_generalizedConvolution(OB::Upcall_ptr);
00395
00396
00397
00398
00399 void _OB_op_genConv2dSep(OB::Upcall_ptr);
00400
00401
00402
00403
00404 void _OB_op_recGenConv(OB::Upcall_ptr);
00405
00406
00407
00408
00409 void _OB_op_neighbourhoodOp(OB::Upcall_ptr);
00410
00411
00412
00413
00414 void _OB_op_geometricOp2d(OB::Upcall_ptr);
00415
00416
00417
00418
00419 void _OB_op_scale(OB::Upcall_ptr);
00420
00421
00422
00423
00424 void _OB_op_getAt(OB::Upcall_ptr);
00425
00426
00427
00428
00429 void _OB_op_destroy(OB::Upcall_ptr);
00430
00431 public:
00432
00433 ImageRep() { }
00434
00435 virtual CORBA::Boolean _is_a(const char*)
00436 throw(CORBA::SystemException);
00437
00438 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00439 PortableServer::POA_ptr);
00440
00441 HxCorba::ImageRep_ptr _this();
00442
00443 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00444 const PortableServer::ObjectId&);
00445 virtual void _OB_dispatch(OB::Upcall_ptr);
00446
00447
00448
00449
00450 virtual HxCorba::ImageRep_ptr binaryPixOp(HxCorba::ImageRep_ptr arg,
00451 const char* bpoName,
00452 HxCorba::TagList_ptr tags)
00453 throw(HxCorba::ImageException,
00454 CORBA::SystemException) = 0;
00455
00456
00457
00458
00459 virtual HxCorba::ImageRep_ptr binaryPixOpVal(const HxCorba::PixValue& arg,
00460 const char* bpoName,
00461 HxCorba::TagList_ptr tags)
00462 throw(HxCorba::ImageException,
00463 CORBA::SystemException) = 0;
00464
00465
00466
00467
00468 virtual HxCorba::ImageRep_ptr unaryPixOp(const char* upoName,
00469 HxCorba::TagList_ptr tags)
00470 throw(HxCorba::ImageException,
00471 CORBA::SystemException) = 0;
00472
00473
00474
00475
00476 virtual HxCorba::ImageRep_ptr multiPixOp(const HxCorba::ImageList& args,
00477 const char* mpoName,
00478 HxCorba::TagList_ptr tags)
00479 throw(HxCorba::ImageException,
00480 CORBA::SystemException) = 0;
00481
00482
00483
00484
00485 virtual HxCorba::ImageList* MNPixOp(const HxCorba::ImageList& args,
00486 const char* mpoName,
00487 HxCorba::TagList_ptr tags)
00488 throw(HxCorba::ImageException,
00489 CORBA::SystemException) = 0;
00490
00491
00492
00493
00494 virtual HxCorba::PixValue reduceOp(const char* op,
00495 HxCorba::TagList_ptr tags)
00496 throw(HxCorba::ImageException,
00497 CORBA::SystemException) = 0;
00498
00499
00500
00501
00502 virtual HxCorba::ImageRep_ptr generalizedConvolution(HxCorba::ImageRep_ptr kernel,
00503 const char* gMul,
00504 const char* gAdd,
00505 HxCorba::ResultPrecision resPrec,
00506 HxCorba::TagList_ptr tags)
00507 throw(HxCorba::ImageException,
00508 CORBA::SystemException) = 0;
00509
00510
00511
00512
00513 virtual HxCorba::ImageRep_ptr genConv2dSep(HxCorba::ImageRep_ptr kernel1,
00514 HxCorba::ImageRep_ptr kernel2,
00515 const char* gMul,
00516 const char* gAdd,
00517 HxCorba::ResultPrecision resPrec,
00518 HxCorba::TagList_ptr tags)
00519 throw(HxCorba::ImageException,
00520 CORBA::SystemException) = 0;
00521
00522
00523
00524
00525 virtual HxCorba::ImageRep_ptr recGenConv(HxCorba::ImageRep_ptr kerImg,
00526 const char* gMul,
00527 const char* gAdd,
00528 HxCorba::ResultPrecision resPrec,
00529 HxCorba::TagList_ptr tags)
00530 throw(HxCorba::ImageException,
00531 CORBA::SystemException) = 0;
00532
00533
00534
00535
00536 virtual HxCorba::ImageRep_ptr neighbourhoodOp(const char* ngbName,
00537 HxCorba::TagList_ptr tags)
00538 throw(HxCorba::ImageException,
00539 CORBA::SystemException) = 0;
00540
00541
00542
00543
00544 virtual HxCorba::ImageRep_ptr geometricOp2d(HxCorba::Matrix_ptr func,
00545 HxCorba::GeoIntType gi,
00546 HxCorba::GeoTransType gt,
00547 CORBA::Boolean adjustSize,
00548 const HxCorba::PixValue& background)
00549 throw(HxCorba::ImageException,
00550 CORBA::SystemException) = 0;
00551
00552
00553
00554
00555 virtual HxCorba::ImageRep_ptr scale(CORBA::Double sx,
00556 CORBA::Double sy,
00557 HxCorba::GeoIntType gi)
00558 throw(CORBA::SystemException) = 0;
00559
00560
00561
00562
00563 virtual HxCorba::PixValue getAt(CORBA::Long x,
00564 CORBA::Long y,
00565 CORBA::Long zz)
00566 throw(CORBA::SystemException) = 0;
00567
00568
00569
00570
00571 virtual void destroy()
00572 throw(CORBA::SystemException) = 0;
00573 };
00574
00575
00576
00577
00578 class ImageFactory : virtual public PortableServer::ServantBase
00579 {
00580 ImageFactory(const ImageFactory&);
00581 void operator=(const ImageFactory&);
00582
00583 protected:
00584
00585
00586
00587
00588 void _OB_op_importImage(OB::Upcall_ptr);
00589
00590
00591
00592
00593 void _OB_op_fromSignature(OB::Upcall_ptr);
00594
00595
00596
00597
00598 void _OB_op_fromImage(OB::Upcall_ptr);
00599
00600
00601
00602
00603 void _OB_op_fromValue(OB::Upcall_ptr);
00604
00605
00606
00607
00608 void _OB_op_fromByteData(OB::Upcall_ptr);
00609
00610
00611
00612
00613 void _OB_op_fromShortData(OB::Upcall_ptr);
00614
00615
00616
00617
00618 void _OB_op_fromIntData(OB::Upcall_ptr);
00619
00620
00621
00622
00623 void _OB_op_fromFloatData(OB::Upcall_ptr);
00624
00625
00626
00627
00628 void _OB_op_fromDoubleData(OB::Upcall_ptr);
00629
00630
00631
00632
00633 void _OB_op_fromJavaRgb(OB::Upcall_ptr);
00634
00635
00636
00637
00638 void _OB_op_fromGrayValue(OB::Upcall_ptr);
00639
00640
00641
00642
00643 void _OB_op_fromMatlab(OB::Upcall_ptr);
00644
00645
00646
00647
00648 void _OB_op_fromNamedGenerator(OB::Upcall_ptr);
00649
00650
00651
00652
00653 void _OB_op_fromImport(OB::Upcall_ptr);
00654
00655
00656
00657
00658 void _OB_op_from2Images(OB::Upcall_ptr);
00659
00660
00661
00662
00663 void _OB_op_from3Images(OB::Upcall_ptr);
00664
00665
00666
00667
00668 void _OB_op_fromFile(OB::Upcall_ptr);
00669
00670 public:
00671
00672 ImageFactory() { }
00673
00674 virtual CORBA::Boolean _is_a(const char*)
00675 throw(CORBA::SystemException);
00676
00677 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00678 PortableServer::POA_ptr);
00679
00680 HxCorba::ImageFactory_ptr _this();
00681
00682 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00683 const PortableServer::ObjectId&);
00684 virtual void _OB_dispatch(OB::Upcall_ptr);
00685
00686
00687
00688
00689 virtual HxCorba::ImageRep_ptr importImage(HxCorba::ImageData_ptr data)
00690 throw(CORBA::SystemException) = 0;
00691
00692
00693
00694
00695 virtual HxCorba::ImageRep_ptr fromSignature(HxCorba::ImageSignature sig,
00696 const HxCorba::Sizes& size)
00697 throw(CORBA::SystemException) = 0;
00698
00699
00700
00701
00702 virtual HxCorba::ImageRep_ptr fromImage(HxCorba::ImageSignature sig,
00703 HxCorba::ImageRep_ptr src)
00704 throw(CORBA::SystemException) = 0;
00705
00706
00707
00708
00709 virtual HxCorba::ImageRep_ptr fromValue(HxCorba::ImageSignature sig,
00710 const HxCorba::Sizes& size,
00711 const HxCorba::PixValue& val)
00712 throw(CORBA::SystemException) = 0;
00713
00714
00715
00716
00717 virtual HxCorba::ImageRep_ptr fromByteData(CORBA::Long pixelDimensionality,
00718 CORBA::Long dimensions,
00719 const HxCorba::Sizes& size,
00720 const HxCorba::OctetSeq& data)
00721 throw(CORBA::SystemException) = 0;
00722
00723
00724
00725
00726 virtual HxCorba::ImageRep_ptr fromShortData(CORBA::Long pixelDimensionality,
00727 CORBA::Long dimensions,
00728 const HxCorba::Sizes& size,
00729 const HxCorba::ShortSeq& data)
00730 throw(CORBA::SystemException) = 0;
00731
00732
00733
00734
00735 virtual HxCorba::ImageRep_ptr fromIntData(CORBA::Long pixelDimensionality,
00736 CORBA::Long dimensions,
00737 const HxCorba::Sizes& size,
00738 const HxCorba::LongSeq& data)
00739 throw(CORBA::SystemException) = 0;
00740
00741
00742
00743
00744 virtual HxCorba::ImageRep_ptr fromFloatData(CORBA::Long pixelDimensionality,
00745 CORBA::Long dimensions,
00746 const HxCorba::Sizes& size,
00747 const HxCorba::FloatSeq& data)
00748 throw(CORBA::SystemException) = 0;
00749
00750
00751
00752
00753 virtual HxCorba::ImageRep_ptr fromDoubleData(CORBA::Long pixelDimensionality,
00754 CORBA::Long dimensions,
00755 const HxCorba::Sizes& size,
00756 const HxCorba::DoubleSeq& data)
00757 throw(CORBA::SystemException) = 0;
00758
00759
00760
00761
00762 virtual HxCorba::ImageRep_ptr fromJavaRgb(HxCorba::ImageSignature sig,
00763 const HxCorba::Sizes& size,
00764 const HxCorba::RgbSeq& pixels)
00765 throw(CORBA::SystemException) = 0;
00766
00767
00768
00769
00770 virtual HxCorba::ImageRep_ptr fromGrayValue(HxCorba::ImageSignature sig,
00771 const HxCorba::Sizes& size,
00772 const HxCorba::OctetSeq& pixels)
00773 throw(CORBA::SystemException) = 0;
00774
00775
00776
00777
00778 virtual HxCorba::ImageRep_ptr fromMatlab(HxCorba::ImageSignature sig,
00779 const HxCorba::Sizes& size,
00780 const HxCorba::DoubleSeq& pixels)
00781 throw(CORBA::SystemException) = 0;
00782
00783
00784
00785
00786 virtual HxCorba::ImageRep_ptr fromNamedGenerator(HxCorba::ImageSignature sig,
00787 const char* generatorName,
00788 HxCorba::TagList_ptr tags)
00789 throw(CORBA::SystemException) = 0;
00790
00791
00792
00793
00794 virtual HxCorba::ImageRep_ptr fromImport(HxCorba::ImageSignature sig,
00795 const HxCorba::Sizes& size,
00796 const char* importOp,
00797 HxCorba::TagList_ptr tags)
00798 throw(CORBA::SystemException) = 0;
00799
00800
00801
00802
00803 virtual HxCorba::ImageRep_ptr from2Images(HxCorba::ImageRep_ptr i1,
00804 HxCorba::ImageRep_ptr i2)
00805 throw(CORBA::SystemException) = 0;
00806
00807
00808
00809
00810 virtual HxCorba::ImageRep_ptr from3Images(HxCorba::ImageRep_ptr i1,
00811 HxCorba::ImageRep_ptr i2,
00812 HxCorba::ImageRep_ptr i3)
00813 throw(CORBA::SystemException) = 0;
00814
00815
00816
00817
00818 virtual HxCorba::ImageRep_ptr fromFile(const char* fileName)
00819 throw(CORBA::SystemException) = 0;
00820 };
00821
00822 }
00823
00824
00825
00826
00827 namespace OBDirectStubImpl_HxCorba
00828 {
00829
00830
00831
00832
00833 class ImageRepRgbSource : virtual public OBStubImpl_HxCorba::ImageRepRgbSource,
00834 virtual public OBDirectStubImpl_HxCorba::RgbSource
00835 {
00836 ImageRepRgbSource(const ImageRepRgbSource&);
00837 void operator=(const ImageRepRgbSource&);
00838
00839 protected:
00840
00841 #ifdef HAVE_VCPLUSPLUS_BUGS
00842
00843 ImageRepRgbSource() { }
00844
00845 #endif
00846
00847 ImageRepRgbSource(PortableServer::POA_ptr,
00848 const PortableServer::ObjectId&,
00849 PortableServer::ServantBase*);
00850
00851 friend class POA_HxCorba::ImageRepRgbSource;
00852
00853 public:
00854
00855
00856
00857
00858 virtual void setDisplayMode(const char* displayMode);
00859
00860
00861
00862
00863 virtual char* getDisplayMode();
00864
00865
00866
00867
00868 virtual void setSize(const HxCorba::Sizes& newSize);
00869
00870
00871
00872
00873 virtual void setMaxSize(const HxCorba::Sizes& maxSize);
00874
00875
00876
00877
00878 virtual void scale(CORBA::Float factor);
00879
00880
00881
00882
00883 virtual void setTransferSize(CORBA::Long nLines);
00884
00885
00886
00887
00888 virtual CORBA::Long getTransferSize();
00889
00890
00891
00892
00893 virtual void setTransferPos(CORBA::Long line);
00894
00895
00896
00897
00898 virtual CORBA::Long getTransferPos();
00899
00900
00901
00902
00903 virtual HxCorba::Sizes getSizes();
00904
00905
00906
00907
00908 virtual HxCorba::Sizes getOriginalSizes();
00909
00910
00911
00912
00913 virtual void close();
00914 };
00915
00916
00917
00918
00919 class ImageData : virtual public OBStubImpl_HxCorba::ImageData,
00920 virtual public OB::DirectStubImpl
00921 {
00922 ImageData(const ImageData&);
00923 void operator=(const ImageData&);
00924
00925 protected:
00926
00927 #ifdef HAVE_VCPLUSPLUS_BUGS
00928
00929 ImageData() { }
00930
00931 #endif
00932
00933 ImageData(PortableServer::POA_ptr,
00934 const PortableServer::ObjectId&,
00935 PortableServer::ServantBase*);
00936
00937 friend class POA_HxCorba::ImageData;
00938
00939 public:
00940
00941
00942
00943
00944 virtual CORBA::Long dimensionality();
00945
00946
00947
00948
00949 virtual CORBA::Long numberOfPixels();
00950
00951
00952
00953
00954 virtual CORBA::Long pixelDimensionality();
00955
00956
00957
00958
00959 virtual CORBA::Long pixelPrecision();
00960
00961
00962
00963
00964 virtual HxCorba::PixelT pixelType();
00965
00966
00967
00968
00969 virtual HxCorba::Sizes getSizes();
00970
00971
00972
00973
00974 virtual CORBA::Long dimensionSize(CORBA::Long i);
00975
00976
00977
00978
00979 virtual HxCorba::ImageSignature signature();
00980
00981
00982
00983
00984 virtual HxCorba::RgbSeq* getRgb2d(const char* displayMode);
00985
00986
00987
00988
00989 virtual void fillRgb2d(HxCorba::RgbBuffer_ptr buf,
00990 const char* displayMode);
00991
00992
00993
00994
00995 virtual HxCorba::ImageRepRgbSource_ptr getRgbSource();
00996 };
00997
00998
00999
01000
01001 class ImageRep : virtual public OBStubImpl_HxCorba::ImageRep,
01002 virtual public OBDirectStubImpl_HxCorba::ImageData,
01003 virtual public OBDirectStubImpl_HxCorba::RefCountBase
01004 {
01005 ImageRep(const ImageRep&);
01006 void operator=(const ImageRep&);
01007
01008 protected:
01009
01010 #ifdef HAVE_VCPLUSPLUS_BUGS
01011
01012 ImageRep() { }
01013
01014 #endif
01015
01016 ImageRep(PortableServer::POA_ptr,
01017 const PortableServer::ObjectId&,
01018 PortableServer::ServantBase*);
01019
01020 friend class POA_HxCorba::ImageRep;
01021
01022 public:
01023
01024
01025
01026
01027 virtual HxCorba::ImageRep_ptr binaryPixOp(HxCorba::ImageRep_ptr arg,
01028 const char* bpoName,
01029 HxCorba::TagList_ptr tags);
01030
01031
01032
01033
01034 virtual HxCorba::ImageRep_ptr binaryPixOpVal(const HxCorba::PixValue& arg,
01035 const char* bpoName,
01036 HxCorba::TagList_ptr tags);
01037
01038
01039
01040
01041 virtual HxCorba::ImageRep_ptr unaryPixOp(const char* upoName,
01042 HxCorba::TagList_ptr tags);
01043
01044
01045
01046
01047 virtual HxCorba::ImageRep_ptr multiPixOp(const HxCorba::ImageList& args,
01048 const char* mpoName,
01049 HxCorba::TagList_ptr tags);
01050
01051
01052
01053
01054 virtual HxCorba::ImageList* MNPixOp(const HxCorba::ImageList& args,
01055 const char* mpoName,
01056 HxCorba::TagList_ptr tags);
01057
01058
01059
01060
01061 virtual HxCorba::PixValue reduceOp(const char* op,
01062 HxCorba::TagList_ptr tags);
01063
01064
01065
01066
01067 virtual HxCorba::ImageRep_ptr generalizedConvolution(HxCorba::ImageRep_ptr kernel,
01068 const char* gMul,
01069 const char* gAdd,
01070 HxCorba::ResultPrecision resPrec,
01071 HxCorba::TagList_ptr tags);
01072
01073
01074
01075
01076 virtual HxCorba::ImageRep_ptr genConv2dSep(HxCorba::ImageRep_ptr kernel1,
01077 HxCorba::ImageRep_ptr kernel2,
01078 const char* gMul,
01079 const char* gAdd,
01080 HxCorba::ResultPrecision resPrec,
01081 HxCorba::TagList_ptr tags);
01082
01083
01084
01085
01086 virtual HxCorba::ImageRep_ptr recGenConv(HxCorba::ImageRep_ptr kerImg,
01087 const char* gMul,
01088 const char* gAdd,
01089 HxCorba::ResultPrecision resPrec,
01090 HxCorba::TagList_ptr tags);
01091
01092
01093
01094
01095 virtual HxCorba::ImageRep_ptr neighbourhoodOp(const char* ngbName,
01096 HxCorba::TagList_ptr tags);
01097
01098
01099
01100
01101 virtual HxCorba::ImageRep_ptr geometricOp2d(HxCorba::Matrix_ptr func,
01102 HxCorba::GeoIntType gi,
01103 HxCorba::GeoTransType gt,
01104 CORBA::Boolean adjustSize,
01105 const HxCorba::PixValue& background);
01106
01107
01108
01109
01110 virtual HxCorba::ImageRep_ptr scale(CORBA::Double sx,
01111 CORBA::Double sy,
01112 HxCorba::GeoIntType gi);
01113
01114
01115
01116
01117 virtual HxCorba::PixValue getAt(CORBA::Long x,
01118 CORBA::Long y,
01119 CORBA::Long zz);
01120
01121
01122
01123
01124 virtual void destroy();
01125 };
01126
01127
01128
01129
01130 class ImageFactory : virtual public OBStubImpl_HxCorba::ImageFactory,
01131 virtual public OB::DirectStubImpl
01132 {
01133 ImageFactory(const ImageFactory&);
01134 void operator=(const ImageFactory&);
01135
01136 protected:
01137
01138 #ifdef HAVE_VCPLUSPLUS_BUGS
01139
01140 ImageFactory() { }
01141
01142 #endif
01143
01144 ImageFactory(PortableServer::POA_ptr,
01145 const PortableServer::ObjectId&,
01146 PortableServer::ServantBase*);
01147
01148 friend class POA_HxCorba::ImageFactory;
01149
01150 public:
01151
01152
01153
01154
01155 virtual HxCorba::ImageRep_ptr importImage(HxCorba::ImageData_ptr data);
01156
01157
01158
01159
01160 virtual HxCorba::ImageRep_ptr fromSignature(HxCorba::ImageSignature sig,
01161 const HxCorba::Sizes& size);
01162
01163
01164
01165
01166 virtual HxCorba::ImageRep_ptr fromImage(HxCorba::ImageSignature sig,
01167 HxCorba::ImageRep_ptr src);
01168
01169
01170
01171
01172 virtual HxCorba::ImageRep_ptr fromValue(HxCorba::ImageSignature sig,
01173 const HxCorba::Sizes& size,
01174 const HxCorba::PixValue& val);
01175
01176
01177
01178
01179 virtual HxCorba::ImageRep_ptr fromByteData(CORBA::Long pixelDimensionality,
01180 CORBA::Long dimensions,
01181 const HxCorba::Sizes& size,
01182 const HxCorba::OctetSeq& data);
01183
01184
01185
01186
01187 virtual HxCorba::ImageRep_ptr fromShortData(CORBA::Long pixelDimensionality,
01188 CORBA::Long dimensions,
01189 const HxCorba::Sizes& size,
01190 const HxCorba::ShortSeq& data);
01191
01192
01193
01194
01195 virtual HxCorba::ImageRep_ptr fromIntData(CORBA::Long pixelDimensionality,
01196 CORBA::Long dimensions,
01197 const HxCorba::Sizes& size,
01198 const HxCorba::LongSeq& data);
01199
01200
01201
01202
01203 virtual HxCorba::ImageRep_ptr fromFloatData(CORBA::Long pixelDimensionality,
01204 CORBA::Long dimensions,
01205 const HxCorba::Sizes& size,
01206 const HxCorba::FloatSeq& data);
01207
01208
01209
01210
01211 virtual HxCorba::ImageRep_ptr fromDoubleData(CORBA::Long pixelDimensionality,
01212 CORBA::Long dimensions,
01213 const HxCorba::Sizes& size,
01214 const HxCorba::DoubleSeq& data);
01215
01216
01217
01218
01219 virtual HxCorba::ImageRep_ptr fromJavaRgb(HxCorba::ImageSignature sig,
01220 const HxCorba::Sizes& size,
01221 const HxCorba::RgbSeq& pixels);
01222
01223
01224
01225
01226 virtual HxCorba::ImageRep_ptr fromGrayValue(HxCorba::ImageSignature sig,
01227 const HxCorba::Sizes& size,
01228 const HxCorba::OctetSeq& pixels);
01229
01230
01231
01232
01233 virtual HxCorba::ImageRep_ptr fromMatlab(HxCorba::ImageSignature sig,
01234 const HxCorba::Sizes& size,
01235 const HxCorba::DoubleSeq& pixels);
01236
01237
01238
01239
01240 virtual HxCorba::ImageRep_ptr fromNamedGenerator(HxCorba::ImageSignature sig,
01241 const char* generatorName,
01242 HxCorba::TagList_ptr tags);
01243
01244
01245
01246
01247 virtual HxCorba::ImageRep_ptr fromImport(HxCorba::ImageSignature sig,
01248 const HxCorba::Sizes& size,
01249 const char* importOp,
01250 HxCorba::TagList_ptr tags);
01251
01252
01253
01254
01255 virtual HxCorba::ImageRep_ptr from2Images(HxCorba::ImageRep_ptr i1,
01256 HxCorba::ImageRep_ptr i2);
01257
01258
01259
01260
01261 virtual HxCorba::ImageRep_ptr from3Images(HxCorba::ImageRep_ptr i1,
01262 HxCorba::ImageRep_ptr i2,
01263 HxCorba::ImageRep_ptr i3);
01264
01265
01266
01267
01268 virtual HxCorba::ImageRep_ptr fromFile(const char* fileName);
01269 };
01270
01271 }
01272
01273 #endif