00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaImageSeq_h__
00016 #define ___HxCorbaImageSeq_h__
00017
00018 #include <HxCorbaImageRep.h>
00019 #include <HxCorbaVxSegmentation.h>
00020
00021 #ifndef OB_INTEGER_VERSION
00022 # error No ORBacus version defined! Is <OB/CORBA.h> included?
00023 #endif
00024
00025 #ifndef OB_NO_VERSION_CHECK
00026 # if (OB_INTEGER_VERSION != 4000500L)
00027 # error ORBacus version mismatch!
00028 # endif
00029 #endif
00030
00031 namespace HxCorba
00032 {
00033
00034 class ImageSeqDisplayer;
00035 typedef ImageSeqDisplayer* ImageSeqDisplayer_ptr;
00036 typedef ImageSeqDisplayer* ImageSeqDisplayerRef;
00037
00038 extern OB::TypeCodeConst _tc_ImageSeqDisplayer;
00039
00040 class ImageSeq;
00041 typedef ImageSeq* ImageSeq_ptr;
00042 typedef ImageSeq* ImageSeqRef;
00043
00044 extern OB::TypeCodeConst _tc_ImageSeq;
00045
00046 class ImageSeqFactory;
00047 typedef ImageSeqFactory* ImageSeqFactory_ptr;
00048 typedef ImageSeqFactory* ImageSeqFactoryRef;
00049
00050 extern OB::TypeCodeConst _tc_ImageSeqFactory;
00051
00052 }
00053
00054 void OBDuplicate(HxCorba::ImageSeqDisplayer_ptr);
00055 void OBRelease(HxCorba::ImageSeqDisplayer_ptr);
00056
00057 void OBMarshal(HxCorba::ImageSeqDisplayer_ptr, OB::OutputStreamImpl*);
00058 void OBUnmarshal(HxCorba::ImageSeqDisplayer_ptr&, OB::InputStreamImpl*);
00059
00060 void OBDuplicate(HxCorba::ImageSeq_ptr);
00061 void OBRelease(HxCorba::ImageSeq_ptr);
00062
00063 void OBMarshal(HxCorba::ImageSeq_ptr, OB::OutputStreamImpl*);
00064 void OBUnmarshal(HxCorba::ImageSeq_ptr&, OB::InputStreamImpl*);
00065
00066 void OBDuplicate(HxCorba::ImageSeqFactory_ptr);
00067 void OBRelease(HxCorba::ImageSeqFactory_ptr);
00068
00069 void OBMarshal(HxCorba::ImageSeqFactory_ptr, OB::OutputStreamImpl*);
00070 void OBUnmarshal(HxCorba::ImageSeqFactory_ptr&, OB::InputStreamImpl*);
00071
00072 namespace HxCorba
00073 {
00074
00075 typedef OB::ObjVar< ImageSeqDisplayer > ImageSeqDisplayer_var;
00076 typedef OB::ObjOut< ImageSeqDisplayer > ImageSeqDisplayer_out;
00077
00078 typedef OB::ObjVar< ImageSeq > ImageSeq_var;
00079 typedef OB::ObjOut< ImageSeq > ImageSeq_out;
00080
00081 typedef OB::ObjVar< ImageSeqFactory > ImageSeqFactory_var;
00082 typedef OB::ObjOut< ImageSeqFactory > ImageSeqFactory_out;
00083
00084 }
00085
00086 namespace OBStubImpl_HxCorba
00087 {
00088
00089 class ImageSeqDisplayer;
00090 typedef ImageSeqDisplayer* ImageSeqDisplayer_ptr;
00091
00092 class ImageSeq;
00093 typedef ImageSeq* ImageSeq_ptr;
00094
00095 class ImageSeqFactory;
00096 typedef ImageSeqFactory* ImageSeqFactory_ptr;
00097
00098 }
00099
00100 void OBDuplicate(OBStubImpl_HxCorba::ImageSeqDisplayer_ptr);
00101 void OBRelease(OBStubImpl_HxCorba::ImageSeqDisplayer_ptr);
00102
00103 void OBDuplicate(OBStubImpl_HxCorba::ImageSeq_ptr);
00104 void OBRelease(OBStubImpl_HxCorba::ImageSeq_ptr);
00105
00106 void OBDuplicate(OBStubImpl_HxCorba::ImageSeqFactory_ptr);
00107 void OBRelease(OBStubImpl_HxCorba::ImageSeqFactory_ptr);
00108
00109 namespace OBStubImpl_HxCorba
00110 {
00111
00112 typedef OB::ObjVar< ImageSeqDisplayer > ImageSeqDisplayer_var;
00113
00114 typedef OB::ObjVar< ImageSeq > ImageSeq_var;
00115
00116 typedef OB::ObjVar< ImageSeqFactory > ImageSeqFactory_var;
00117
00118 }
00119
00120
00121
00122
00123 namespace HxCorba
00124 {
00125
00126
00127
00128
00129 class ImageSeqDisplayer : virtual public CORBA::Object
00130 {
00131 ImageSeqDisplayer(const ImageSeqDisplayer&);
00132 void operator=(const ImageSeqDisplayer&);
00133
00134 static const char* ids_[];
00135
00136 protected:
00137
00138 virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();
00139
00140 public:
00141
00142 ImageSeqDisplayer() { }
00143 virtual ~ImageSeqDisplayer() { }
00144
00145 typedef ImageSeqDisplayer_ptr _ptr_type;
00146 typedef ImageSeqDisplayer_var _var_type;
00147
00148 static inline ImageSeqDisplayer_ptr
00149 _duplicate(ImageSeqDisplayer_ptr p)
00150 {
00151 if(p)
00152 p -> _OB_incRef();
00153 return p;
00154 }
00155
00156 static inline ImageSeqDisplayer_ptr
00157 _nil()
00158 {
00159 return 0;
00160 }
00161
00162 static ImageSeqDisplayer_ptr _narrow(CORBA::Object_ptr);
00163 static ImageSeqDisplayer_ptr _narrow(CORBA::AbstractBase_ptr);
00164
00165 virtual const char** _OB_ids() const;
00166 static const char** _OB_staticIds();
00167
00168
00169
00170
00171 RgbSeq* getRgb2d(CORBA::Long frameNr);
00172
00173
00174
00175
00176 void fillRgb2d(CORBA::Long frameNr,
00177 RgbBuffer_ptr buf);
00178
00179
00180
00181
00182 CORBA::Long nrFrames();
00183
00184
00185
00186
00187 void setDisplayMode(const char* displayMode);
00188
00189
00190
00191
00192 char* getDisplayMode();
00193
00194
00195
00196
00197 void setSize(const Sizes& newSize);
00198
00199
00200
00201
00202 Sizes getSizes();
00203
00204
00205
00206
00207 Sizes getOriginalSizes();
00208
00209
00210
00211
00212 void close();
00213 };
00214
00215
00216
00217
00218 class ImageSeq : virtual public CORBA::Object
00219 {
00220 ImageSeq(const ImageSeq&);
00221 void operator=(const ImageSeq&);
00222
00223 static const char* ids_[];
00224
00225 protected:
00226
00227 virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();
00228
00229 public:
00230
00231 ImageSeq() { }
00232 virtual ~ImageSeq() { }
00233
00234 typedef ImageSeq_ptr _ptr_type;
00235 typedef ImageSeq_var _var_type;
00236
00237 static inline ImageSeq_ptr
00238 _duplicate(ImageSeq_ptr p)
00239 {
00240 if(p)
00241 p -> _OB_incRef();
00242 return p;
00243 }
00244
00245 static inline ImageSeq_ptr
00246 _nil()
00247 {
00248 return 0;
00249 }
00250
00251 static ImageSeq_ptr _narrow(CORBA::Object_ptr);
00252 static ImageSeq_ptr _narrow(CORBA::AbstractBase_ptr);
00253
00254 virtual const char** _OB_ids() const;
00255 static const char** _OB_staticIds();
00256
00257
00258
00259
00260 ImageRep_ptr getFrame(CORBA::Long frameNr);
00261
00262
00263
00264
00265 CORBA::Long nrFrames();
00266
00267
00268
00269
00270 Sizes frameSizes();
00271
00272
00273
00274
00275 RgbSeq* getRgb2d(CORBA::Long frameNr,
00276 const char* displayMode);
00277
00278
00279
00280
00281 void fillRgb2d(CORBA::Long frameNr,
00282 RgbBuffer_ptr buf,
00283 const char* displayMode);
00284
00285
00286
00287
00288 ImageSeqDisplayer_ptr getDisplayer();
00289
00290
00291
00292
00293 VxSegmentation_ptr findCuts(TagList_ptr tags);
00294 };
00295
00296
00297
00298
00299 class ImageSeqFactory : virtual public CORBA::Object
00300 {
00301 ImageSeqFactory(const ImageSeqFactory&);
00302 void operator=(const ImageSeqFactory&);
00303
00304 static const char* ids_[];
00305
00306 protected:
00307
00308 virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();
00309
00310 public:
00311
00312 ImageSeqFactory() { }
00313 virtual ~ImageSeqFactory() { }
00314
00315 typedef ImageSeqFactory_ptr _ptr_type;
00316 typedef ImageSeqFactory_var _var_type;
00317
00318 static inline ImageSeqFactory_ptr
00319 _duplicate(ImageSeqFactory_ptr p)
00320 {
00321 if(p)
00322 p -> _OB_incRef();
00323 return p;
00324 }
00325
00326 static inline ImageSeqFactory_ptr
00327 _nil()
00328 {
00329 return 0;
00330 }
00331
00332 static ImageSeqFactory_ptr _narrow(CORBA::Object_ptr);
00333 static ImageSeqFactory_ptr _narrow(CORBA::AbstractBase_ptr);
00334
00335 virtual const char** _OB_ids() const;
00336 static const char** _OB_staticIds();
00337
00338
00339
00340
00341 ImageSeq_ptr constructImageSeq(const char* name);
00342
00343
00344
00345
00346 ImageSeq_ptr constructBufferedImageSeq(const char* name,
00347 CORBA::Long bufSize);
00348 };
00349
00350 }
00351
00352
00353
00354
00355 namespace OBStubImpl_HxCorba
00356 {
00357
00358
00359
00360
00361 class ImageSeqDisplayer : virtual public OB::StubImplBase
00362 {
00363 ImageSeqDisplayer(const ImageSeqDisplayer&);
00364 void operator=(const ImageSeqDisplayer&);
00365
00366 protected:
00367
00368 ImageSeqDisplayer() { }
00369
00370 public:
00371
00372 static inline ImageSeqDisplayer_ptr
00373 _duplicate(ImageSeqDisplayer_ptr p)
00374 {
00375 if(p)
00376 p -> _OB_incRef();
00377 return p;
00378 }
00379
00380 static inline ImageSeqDisplayer_ptr
00381 _nil()
00382 {
00383 return 0;
00384 }
00385
00386
00387
00388
00389 virtual HxCorba::RgbSeq* getRgb2d(CORBA::Long frameNr) = 0;
00390
00391
00392
00393
00394 virtual void fillRgb2d(CORBA::Long frameNr,
00395 HxCorba::RgbBuffer_ptr buf) = 0;
00396
00397
00398
00399
00400 virtual CORBA::Long nrFrames() = 0;
00401
00402
00403
00404
00405 virtual void setDisplayMode(const char* displayMode) = 0;
00406
00407
00408
00409
00410 virtual char* getDisplayMode() = 0;
00411
00412
00413
00414
00415 virtual void setSize(const HxCorba::Sizes& newSize) = 0;
00416
00417
00418
00419
00420 virtual HxCorba::Sizes getSizes() = 0;
00421
00422
00423
00424
00425 virtual HxCorba::Sizes getOriginalSizes() = 0;
00426
00427
00428
00429
00430 virtual void close() = 0;
00431 };
00432
00433
00434
00435
00436 class ImageSeq : virtual public OB::StubImplBase
00437 {
00438 ImageSeq(const ImageSeq&);
00439 void operator=(const ImageSeq&);
00440
00441 protected:
00442
00443 ImageSeq() { }
00444
00445 public:
00446
00447 static inline ImageSeq_ptr
00448 _duplicate(ImageSeq_ptr p)
00449 {
00450 if(p)
00451 p -> _OB_incRef();
00452 return p;
00453 }
00454
00455 static inline ImageSeq_ptr
00456 _nil()
00457 {
00458 return 0;
00459 }
00460
00461
00462
00463
00464 virtual HxCorba::ImageRep_ptr getFrame(CORBA::Long frameNr) = 0;
00465
00466
00467
00468
00469 virtual CORBA::Long nrFrames() = 0;
00470
00471
00472
00473
00474 virtual HxCorba::Sizes frameSizes() = 0;
00475
00476
00477
00478
00479 virtual HxCorba::RgbSeq* getRgb2d(CORBA::Long frameNr,
00480 const char* displayMode) = 0;
00481
00482
00483
00484
00485 virtual void fillRgb2d(CORBA::Long frameNr,
00486 HxCorba::RgbBuffer_ptr buf,
00487 const char* displayMode) = 0;
00488
00489
00490
00491
00492 virtual HxCorba::ImageSeqDisplayer_ptr getDisplayer() = 0;
00493
00494
00495
00496
00497 virtual HxCorba::VxSegmentation_ptr findCuts(HxCorba::TagList_ptr tags) = 0;
00498 };
00499
00500
00501
00502
00503 class ImageSeqFactory : virtual public OB::StubImplBase
00504 {
00505 ImageSeqFactory(const ImageSeqFactory&);
00506 void operator=(const ImageSeqFactory&);
00507
00508 protected:
00509
00510 ImageSeqFactory() { }
00511
00512 public:
00513
00514 static inline ImageSeqFactory_ptr
00515 _duplicate(ImageSeqFactory_ptr p)
00516 {
00517 if(p)
00518 p -> _OB_incRef();
00519 return p;
00520 }
00521
00522 static inline ImageSeqFactory_ptr
00523 _nil()
00524 {
00525 return 0;
00526 }
00527
00528
00529
00530
00531 virtual HxCorba::ImageSeq_ptr constructImageSeq(const char* name) = 0;
00532
00533
00534
00535
00536 virtual HxCorba::ImageSeq_ptr constructBufferedImageSeq(const char* name,
00537 CORBA::Long bufSize) = 0;
00538 };
00539
00540 }
00541
00542
00543
00544
00545 namespace OBMarshalStubImpl_HxCorba
00546 {
00547
00548
00549
00550
00551 class ImageSeqDisplayer : virtual public OBStubImpl_HxCorba::ImageSeqDisplayer,
00552 virtual public OB::MarshalStubImpl
00553 {
00554 ImageSeqDisplayer(const ImageSeqDisplayer&);
00555 void operator=(const ImageSeqDisplayer&);
00556
00557 protected:
00558
00559 ImageSeqDisplayer() { }
00560 friend class HxCorba::ImageSeqDisplayer;
00561
00562 public:
00563
00564
00565
00566
00567 virtual HxCorba::RgbSeq* getRgb2d(CORBA::Long frameNr);
00568
00569
00570
00571
00572 virtual void fillRgb2d(CORBA::Long frameNr,
00573 HxCorba::RgbBuffer_ptr buf);
00574
00575
00576
00577
00578 virtual CORBA::Long nrFrames();
00579
00580
00581
00582
00583 virtual void setDisplayMode(const char* displayMode);
00584
00585
00586
00587
00588 virtual char* getDisplayMode();
00589
00590
00591
00592
00593 virtual void setSize(const HxCorba::Sizes& newSize);
00594
00595
00596
00597
00598 virtual HxCorba::Sizes getSizes();
00599
00600
00601
00602
00603 virtual HxCorba::Sizes getOriginalSizes();
00604
00605
00606
00607
00608 virtual void close();
00609 };
00610
00611
00612
00613
00614 class ImageSeq : virtual public OBStubImpl_HxCorba::ImageSeq,
00615 virtual public OB::MarshalStubImpl
00616 {
00617 ImageSeq(const ImageSeq&);
00618 void operator=(const ImageSeq&);
00619
00620 protected:
00621
00622 ImageSeq() { }
00623 friend class HxCorba::ImageSeq;
00624
00625 public:
00626
00627
00628
00629
00630 virtual HxCorba::ImageRep_ptr getFrame(CORBA::Long frameNr);
00631
00632
00633
00634
00635 virtual CORBA::Long nrFrames();
00636
00637
00638
00639
00640 virtual HxCorba::Sizes frameSizes();
00641
00642
00643
00644
00645 virtual HxCorba::RgbSeq* getRgb2d(CORBA::Long frameNr,
00646 const char* displayMode);
00647
00648
00649
00650
00651 virtual void fillRgb2d(CORBA::Long frameNr,
00652 HxCorba::RgbBuffer_ptr buf,
00653 const char* displayMode);
00654
00655
00656
00657
00658 virtual HxCorba::ImageSeqDisplayer_ptr getDisplayer();
00659
00660
00661
00662
00663 virtual HxCorba::VxSegmentation_ptr findCuts(HxCorba::TagList_ptr tags);
00664 };
00665
00666
00667
00668
00669 class ImageSeqFactory : virtual public OBStubImpl_HxCorba::ImageSeqFactory,
00670 virtual public OB::MarshalStubImpl
00671 {
00672 ImageSeqFactory(const ImageSeqFactory&);
00673 void operator=(const ImageSeqFactory&);
00674
00675 protected:
00676
00677 ImageSeqFactory() { }
00678 friend class HxCorba::ImageSeqFactory;
00679
00680 public:
00681
00682
00683
00684
00685 virtual HxCorba::ImageSeq_ptr constructImageSeq(const char* name);
00686
00687
00688
00689
00690 virtual HxCorba::ImageSeq_ptr constructBufferedImageSeq(const char* name,
00691 CORBA::Long bufSize);
00692 };
00693
00694 }
00695
00696
00697
00698
00699 namespace OBV_HxCorba
00700 {
00701
00702 }
00703
00704
00705
00706
00707 namespace CORBA
00708 {
00709
00710 inline void
00711 release(HxCorba::ImageSeqDisplayer_ptr p)
00712 {
00713 if(p)
00714 p -> _OB_decRef();
00715 }
00716
00717 inline Boolean
00718 is_nil(HxCorba::ImageSeqDisplayer_ptr p)
00719 {
00720 return p == 0;
00721 }
00722
00723 inline void
00724 release(OBStubImpl_HxCorba::ImageSeqDisplayer_ptr p)
00725 {
00726 if(p)
00727 p -> _OB_decRef();
00728 }
00729
00730 inline Boolean
00731 is_nil(OBStubImpl_HxCorba::ImageSeqDisplayer_ptr p)
00732 {
00733 return p == 0;
00734 }
00735
00736 }
00737
00738 void operator<<=(CORBA::Any&, HxCorba::ImageSeqDisplayer_ptr*);
00739 void operator<<=(CORBA::Any&, HxCorba::ImageSeqDisplayer_ptr);
00740 CORBA::Boolean operator>>=(const CORBA::Any&, HxCorba::ImageSeqDisplayer_ptr&);
00741
00742 inline void
00743 operator<<=(CORBA::Any_var& any, HxCorba::ImageSeqDisplayer_ptr* val)
00744 {
00745 any.inout() <<= val;
00746 }
00747
00748 inline void
00749 operator<<=(CORBA::Any_var& any, HxCorba::ImageSeqDisplayer_ptr val)
00750 {
00751 any.inout() <<= val;
00752 }
00753
00754 inline CORBA::Boolean
00755 operator>>=(const CORBA::Any_var& any, HxCorba::ImageSeqDisplayer_ptr& val)
00756 {
00757 return any.in() >>= val;
00758 }
00759
00760
00761
00762
00763 namespace CORBA
00764 {
00765
00766 inline void
00767 release(HxCorba::ImageSeq_ptr p)
00768 {
00769 if(p)
00770 p -> _OB_decRef();
00771 }
00772
00773 inline Boolean
00774 is_nil(HxCorba::ImageSeq_ptr p)
00775 {
00776 return p == 0;
00777 }
00778
00779 inline void
00780 release(OBStubImpl_HxCorba::ImageSeq_ptr p)
00781 {
00782 if(p)
00783 p -> _OB_decRef();
00784 }
00785
00786 inline Boolean
00787 is_nil(OBStubImpl_HxCorba::ImageSeq_ptr p)
00788 {
00789 return p == 0;
00790 }
00791
00792 }
00793
00794 void operator<<=(CORBA::Any&, HxCorba::ImageSeq_ptr*);
00795 void operator<<=(CORBA::Any&, HxCorba::ImageSeq_ptr);
00796 CORBA::Boolean operator>>=(const CORBA::Any&, HxCorba::ImageSeq_ptr&);
00797
00798 inline void
00799 operator<<=(CORBA::Any_var& any, HxCorba::ImageSeq_ptr* val)
00800 {
00801 any.inout() <<= val;
00802 }
00803
00804 inline void
00805 operator<<=(CORBA::Any_var& any, HxCorba::ImageSeq_ptr val)
00806 {
00807 any.inout() <<= val;
00808 }
00809
00810 inline CORBA::Boolean
00811 operator>>=(const CORBA::Any_var& any, HxCorba::ImageSeq_ptr& val)
00812 {
00813 return any.in() >>= val;
00814 }
00815
00816
00817
00818
00819 namespace CORBA
00820 {
00821
00822 inline void
00823 release(HxCorba::ImageSeqFactory_ptr p)
00824 {
00825 if(p)
00826 p -> _OB_decRef();
00827 }
00828
00829 inline Boolean
00830 is_nil(HxCorba::ImageSeqFactory_ptr p)
00831 {
00832 return p == 0;
00833 }
00834
00835 inline void
00836 release(OBStubImpl_HxCorba::ImageSeqFactory_ptr p)
00837 {
00838 if(p)
00839 p -> _OB_decRef();
00840 }
00841
00842 inline Boolean
00843 is_nil(OBStubImpl_HxCorba::ImageSeqFactory_ptr p)
00844 {
00845 return p == 0;
00846 }
00847
00848 }
00849
00850 void operator<<=(CORBA::Any&, HxCorba::ImageSeqFactory_ptr*);
00851 void operator<<=(CORBA::Any&, HxCorba::ImageSeqFactory_ptr);
00852 CORBA::Boolean operator>>=(const CORBA::Any&, HxCorba::ImageSeqFactory_ptr&);
00853
00854 inline void
00855 operator<<=(CORBA::Any_var& any, HxCorba::ImageSeqFactory_ptr* val)
00856 {
00857 any.inout() <<= val;
00858 }
00859
00860 inline void
00861 operator<<=(CORBA::Any_var& any, HxCorba::ImageSeqFactory_ptr val)
00862 {
00863 any.inout() <<= val;
00864 }
00865
00866 inline CORBA::Boolean
00867 operator>>=(const CORBA::Any_var& any, HxCorba::ImageSeqFactory_ptr& val)
00868 {
00869 return any.in() >>= val;
00870 }
00871
00872 #endif