00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaHistogram_skel_h__
00016 #define ___HxCorbaHistogram_skel_h__
00017
00018 #include <HxCorbaHistogram.h>
00019
00020 #include <HxCorbaImageRep_skel.h>
00021
00022 #ifndef OB_INTEGER_VERSION
00023 # error No ORBacus version defined! Is <OB/CORBA.h> included?
00024 #endif
00025
00026 #ifndef OB_NO_VERSION_CHECK
00027 # if (OB_INTEGER_VERSION != 4010000L)
00028 # error ORBacus version mismatch!
00029 # endif
00030 #endif
00031
00032
00033
00034
00035 namespace POA_HxCorba
00036 {
00037
00038
00039
00040
00041 class HistogramData : virtual public PortableServer::ServantBase
00042 {
00043 HistogramData(const HistogramData&);
00044 void operator=(const HistogramData&);
00045
00046 protected:
00047
00048
00049
00050
00051 void _OB_op_dimensionality(OB::Upcall_ptr);
00052
00053
00054
00055
00056 void _OB_op_dimensionSize(OB::Upcall_ptr);
00057
00058
00059
00060
00061 void _OB_op_nrOfBins(OB::Upcall_ptr);
00062
00063
00064
00065
00066 void _OB_op_lowBin(OB::Upcall_ptr);
00067
00068
00069
00070
00071 void _OB_op_highBin(OB::Upcall_ptr);
00072
00073
00074
00075
00076 void _OB_op_binWidth(OB::Upcall_ptr);
00077
00078
00079
00080
00081 void _OB_op_binToValue(OB::Upcall_ptr);
00082
00083
00084
00085
00086 void _OB_op_valueToBin(OB::Upcall_ptr);
00087
00088
00089
00090
00091 void _OB_op_get1(OB::Upcall_ptr);
00092
00093
00094
00095
00096 void _OB_op_get2(OB::Upcall_ptr);
00097
00098
00099
00100
00101 void _OB_op_get3(OB::Upcall_ptr);
00102
00103
00104
00105
00106 void _OB_op_sum(OB::Upcall_ptr);
00107
00108
00109
00110
00111 void _OB_op_minVal(OB::Upcall_ptr);
00112
00113
00114
00115
00116 void _OB_op_maxVal(OB::Upcall_ptr);
00117
00118
00119
00120
00121 void _OB_op_maxValIndex(OB::Upcall_ptr);
00122
00123
00124
00125
00126 void _OB_op_getDataDouble(OB::Upcall_ptr);
00127
00128 public:
00129
00130 HistogramData() { }
00131
00132 virtual CORBA::Boolean _is_a(const char*)
00133 throw(CORBA::SystemException);
00134
00135 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00136 PortableServer::POA_ptr);
00137
00138 HxCorba::HistogramData_ptr _this();
00139
00140 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00141 const PortableServer::ObjectId&);
00142 virtual void _OB_dispatch(OB::Upcall_ptr);
00143
00144
00145
00146
00147 virtual CORBA::Long dimensionality()
00148 throw(CORBA::SystemException) = 0;
00149
00150
00151
00152
00153 virtual CORBA::Long dimensionSize(CORBA::Long dim)
00154 throw(CORBA::SystemException) = 0;
00155
00156
00157
00158
00159 virtual CORBA::Long nrOfBins()
00160 throw(CORBA::SystemException) = 0;
00161
00162
00163
00164
00165 virtual CORBA::Double lowBin(CORBA::Long dim)
00166 throw(CORBA::SystemException) = 0;
00167
00168
00169
00170
00171 virtual CORBA::Double highBin(CORBA::Long dim)
00172 throw(CORBA::SystemException) = 0;
00173
00174
00175
00176
00177 virtual CORBA::Double binWidth(CORBA::Long dim)
00178 throw(CORBA::SystemException) = 0;
00179
00180
00181
00182
00183 virtual CORBA::Double binToValue(CORBA::Long bin,
00184 CORBA::Long dim)
00185 throw(CORBA::SystemException) = 0;
00186
00187
00188
00189
00190 virtual CORBA::Long valueToBin(CORBA::Double value,
00191 CORBA::Long dim)
00192 throw(CORBA::SystemException) = 0;
00193
00194
00195
00196
00197 virtual CORBA::Double get1(CORBA::Long bin1)
00198 throw(CORBA::SystemException) = 0;
00199
00200
00201
00202
00203 virtual CORBA::Double get2(CORBA::Long bin1,
00204 CORBA::Long bin2)
00205 throw(CORBA::SystemException) = 0;
00206
00207
00208
00209
00210 virtual CORBA::Double get3(CORBA::Long bin1,
00211 CORBA::Long bin2,
00212 CORBA::Long bin3)
00213 throw(CORBA::SystemException) = 0;
00214
00215
00216
00217
00218 virtual CORBA::Double sum()
00219 throw(CORBA::SystemException) = 0;
00220
00221
00222
00223
00224 virtual CORBA::Double minVal()
00225 throw(CORBA::SystemException) = 0;
00226
00227
00228
00229
00230 virtual CORBA::Double maxVal()
00231 throw(CORBA::SystemException) = 0;
00232
00233
00234
00235
00236 virtual CORBA::Double maxValIndex(CORBA::Long_out index)
00237 throw(CORBA::SystemException) = 0;
00238
00239
00240
00241
00242 virtual HxCorba::BinDataSequence* getDataDouble()
00243 throw(CORBA::SystemException) = 0;
00244 };
00245
00246
00247
00248
00249 class Histogram : virtual public POA_HxCorba::HistogramData
00250 {
00251 Histogram(const Histogram&);
00252 void operator=(const Histogram&);
00253
00254 protected:
00255
00256
00257
00258
00259 void _OB_op_smooth(OB::Upcall_ptr);
00260
00261
00262
00263
00264 void _OB_op_modes(OB::Upcall_ptr);
00265
00266
00267
00268
00269 void _OB_op_normalize(OB::Upcall_ptr);
00270
00271
00272
00273
00274 void _OB_op_intersection(OB::Upcall_ptr);
00275
00276
00277
00278
00279 void _OB_op_chiSquare(OB::Upcall_ptr);
00280
00281
00282
00283
00284 void _OB_op_chiSquareNorm(OB::Upcall_ptr);
00285
00286
00287
00288
00289 void _OB_op_threshold(OB::Upcall_ptr);
00290
00291
00292
00293
00294 void _OB_op_countBins(OB::Upcall_ptr);
00295
00296
00297
00298
00299 void _OB_op_reduceRange(OB::Upcall_ptr);
00300
00301
00302
00303
00304 void _OB_op_reduceRangeVal(OB::Upcall_ptr);
00305
00306
00307
00308
00309 void _OB_op_to1D(OB::Upcall_ptr);
00310
00311
00312
00313
00314 void _OB_op_render3d(OB::Upcall_ptr);
00315
00316
00317
00318
00319 void _OB_op_destroy(OB::Upcall_ptr);
00320
00321
00322
00323
00324 void _OB_op_put(OB::Upcall_ptr);
00325
00326 public:
00327
00328 Histogram() { }
00329
00330 virtual CORBA::Boolean _is_a(const char*)
00331 throw(CORBA::SystemException);
00332
00333 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00334 PortableServer::POA_ptr);
00335
00336 HxCorba::Histogram_ptr _this();
00337
00338 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00339 const PortableServer::ObjectId&);
00340 virtual void _OB_dispatch(OB::Upcall_ptr);
00341
00342
00343
00344
00345 virtual HxCorba::Histogram_ptr smooth(CORBA::Double sigma)
00346 throw(CORBA::SystemException) = 0;
00347
00348
00349
00350
00351 virtual HxCorba::HistogramModeSeq* modes()
00352 throw(CORBA::SystemException) = 0;
00353
00354
00355
00356
00357 virtual HxCorba::Histogram_ptr normalize(CORBA::Double weight)
00358 throw(CORBA::SystemException) = 0;
00359
00360
00361
00362
00363 virtual CORBA::Double intersection(HxCorba::Histogram_ptr h)
00364 throw(CORBA::SystemException) = 0;
00365
00366
00367
00368
00369 virtual CORBA::Double chiSquare(HxCorba::Histogram_ptr h)
00370 throw(CORBA::SystemException) = 0;
00371
00372
00373
00374
00375 virtual CORBA::Double chiSquareNorm(HxCorba::Histogram_ptr h)
00376 throw(CORBA::SystemException) = 0;
00377
00378
00379
00380
00381 virtual HxCorba::Histogram_ptr threshold(CORBA::Double valThreshold)
00382 throw(CORBA::SystemException) = 0;
00383
00384
00385
00386
00387 virtual CORBA::Long countBins(CORBA::Double valThreshold)
00388 throw(CORBA::SystemException) = 0;
00389
00390
00391
00392
00393 virtual HxCorba::Histogram_ptr reduceRange(CORBA::Long binMin1,
00394 CORBA::Long binMax1,
00395 CORBA::Long binMin2,
00396 CORBA::Long binMax2,
00397 CORBA::Long binMin3,
00398 CORBA::Long binMax3)
00399 throw(CORBA::SystemException) = 0;
00400
00401
00402
00403
00404 virtual HxCorba::Histogram_ptr reduceRangeVal(CORBA::Double binValMin1,
00405 CORBA::Double binValMax1,
00406 CORBA::Double binValMin2,
00407 CORBA::Double binValMax2,
00408 CORBA::Double binValMin3,
00409 CORBA::Double binValMax3)
00410 throw(CORBA::SystemException) = 0;
00411
00412
00413
00414
00415 virtual HxCorba::Histogram_ptr to1D(CORBA::Long dim)
00416 throw(CORBA::SystemException) = 0;
00417
00418
00419
00420
00421 virtual void render3d(HxCorba::RgbBuffer_ptr buf,
00422 CORBA::Long dataWidth,
00423 CORBA::Long dataHeight,
00424 CORBA::Double elevation,
00425 CORBA::Double alpha,
00426 CORBA::Double threshold)
00427 throw(CORBA::SystemException) = 0;
00428
00429
00430
00431
00432 virtual void destroy()
00433 throw(CORBA::SystemException) = 0;
00434
00435
00436
00437
00438 virtual void put()
00439 throw(CORBA::SystemException) = 0;
00440 };
00441
00442
00443
00444
00445 class HistogramFactory : virtual public PortableServer::ServantBase
00446 {
00447 HistogramFactory(const HistogramFactory&);
00448 void operator=(const HistogramFactory&);
00449
00450 protected:
00451
00452
00453
00454
00455 void _OB_op_makeHistogramFromFile(OB::Upcall_ptr);
00456
00457 public:
00458
00459 HistogramFactory() { }
00460
00461 virtual CORBA::Boolean _is_a(const char*)
00462 throw(CORBA::SystemException);
00463
00464 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00465 PortableServer::POA_ptr);
00466
00467 HxCorba::HistogramFactory_ptr _this();
00468
00469 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00470 const PortableServer::ObjectId&);
00471 virtual void _OB_dispatch(OB::Upcall_ptr);
00472
00473
00474
00475
00476 virtual HxCorba::Histogram_ptr makeHistogramFromFile(const char* filename)
00477 throw(CORBA::SystemException) = 0;
00478 };
00479
00480 }
00481
00482
00483
00484
00485 namespace OBDirectStubImpl_HxCorba
00486 {
00487
00488
00489
00490
00491 class HistogramData : virtual public OBStubImpl_HxCorba::HistogramData,
00492 virtual public OB::DirectStubImpl
00493 {
00494 HistogramData(const HistogramData&);
00495 void operator=(const HistogramData&);
00496
00497 protected:
00498
00499 #ifdef HAVE_VCPLUSPLUS_BUGS
00500
00501 HistogramData() { }
00502
00503 #endif
00504
00505 HistogramData(PortableServer::POA_ptr,
00506 const PortableServer::ObjectId&,
00507 PortableServer::ServantBase*);
00508
00509 friend class POA_HxCorba::HistogramData;
00510
00511 public:
00512
00513
00514
00515
00516 virtual CORBA::Long dimensionality();
00517
00518
00519
00520
00521 virtual CORBA::Long dimensionSize(CORBA::Long dim);
00522
00523
00524
00525
00526 virtual CORBA::Long nrOfBins();
00527
00528
00529
00530
00531 virtual CORBA::Double lowBin(CORBA::Long dim);
00532
00533
00534
00535
00536 virtual CORBA::Double highBin(CORBA::Long dim);
00537
00538
00539
00540
00541 virtual CORBA::Double binWidth(CORBA::Long dim);
00542
00543
00544
00545
00546 virtual CORBA::Double binToValue(CORBA::Long bin,
00547 CORBA::Long dim);
00548
00549
00550
00551
00552 virtual CORBA::Long valueToBin(CORBA::Double value,
00553 CORBA::Long dim);
00554
00555
00556
00557
00558 virtual CORBA::Double get1(CORBA::Long bin1);
00559
00560
00561
00562
00563 virtual CORBA::Double get2(CORBA::Long bin1,
00564 CORBA::Long bin2);
00565
00566
00567
00568
00569 virtual CORBA::Double get3(CORBA::Long bin1,
00570 CORBA::Long bin2,
00571 CORBA::Long bin3);
00572
00573
00574
00575
00576 virtual CORBA::Double sum();
00577
00578
00579
00580
00581 virtual CORBA::Double minVal();
00582
00583
00584
00585
00586 virtual CORBA::Double maxVal();
00587
00588
00589
00590
00591 virtual CORBA::Double maxValIndex(CORBA::Long_out index);
00592
00593
00594
00595
00596 virtual HxCorba::BinDataSequence* getDataDouble();
00597 };
00598
00599
00600
00601
00602 class Histogram : virtual public OBStubImpl_HxCorba::Histogram,
00603 virtual public OBDirectStubImpl_HxCorba::HistogramData
00604 {
00605 Histogram(const Histogram&);
00606 void operator=(const Histogram&);
00607
00608 protected:
00609
00610 #ifdef HAVE_VCPLUSPLUS_BUGS
00611
00612 Histogram() { }
00613
00614 #endif
00615
00616 Histogram(PortableServer::POA_ptr,
00617 const PortableServer::ObjectId&,
00618 PortableServer::ServantBase*);
00619
00620 friend class POA_HxCorba::Histogram;
00621
00622 public:
00623
00624
00625
00626
00627 virtual HxCorba::Histogram_ptr smooth(CORBA::Double sigma);
00628
00629
00630
00631
00632 virtual HxCorba::HistogramModeSeq* modes();
00633
00634
00635
00636
00637 virtual HxCorba::Histogram_ptr normalize(CORBA::Double weight);
00638
00639
00640
00641
00642 virtual CORBA::Double intersection(HxCorba::Histogram_ptr h);
00643
00644
00645
00646
00647 virtual CORBA::Double chiSquare(HxCorba::Histogram_ptr h);
00648
00649
00650
00651
00652 virtual CORBA::Double chiSquareNorm(HxCorba::Histogram_ptr h);
00653
00654
00655
00656
00657 virtual HxCorba::Histogram_ptr threshold(CORBA::Double valThreshold);
00658
00659
00660
00661
00662 virtual CORBA::Long countBins(CORBA::Double valThreshold);
00663
00664
00665
00666
00667 virtual HxCorba::Histogram_ptr reduceRange(CORBA::Long binMin1,
00668 CORBA::Long binMax1,
00669 CORBA::Long binMin2,
00670 CORBA::Long binMax2,
00671 CORBA::Long binMin3,
00672 CORBA::Long binMax3);
00673
00674
00675
00676
00677 virtual HxCorba::Histogram_ptr reduceRangeVal(CORBA::Double binValMin1,
00678 CORBA::Double binValMax1,
00679 CORBA::Double binValMin2,
00680 CORBA::Double binValMax2,
00681 CORBA::Double binValMin3,
00682 CORBA::Double binValMax3);
00683
00684
00685
00686
00687 virtual HxCorba::Histogram_ptr to1D(CORBA::Long dim);
00688
00689
00690
00691
00692 virtual void render3d(HxCorba::RgbBuffer_ptr buf,
00693 CORBA::Long dataWidth,
00694 CORBA::Long dataHeight,
00695 CORBA::Double elevation,
00696 CORBA::Double alpha,
00697 CORBA::Double threshold);
00698
00699
00700
00701
00702 virtual void destroy();
00703
00704
00705
00706
00707 virtual void put();
00708 };
00709
00710
00711
00712
00713 class HistogramFactory : virtual public OBStubImpl_HxCorba::HistogramFactory,
00714 virtual public OB::DirectStubImpl
00715 {
00716 HistogramFactory(const HistogramFactory&);
00717 void operator=(const HistogramFactory&);
00718
00719 protected:
00720
00721 #ifdef HAVE_VCPLUSPLUS_BUGS
00722
00723 HistogramFactory() { }
00724
00725 #endif
00726
00727 HistogramFactory(PortableServer::POA_ptr,
00728 const PortableServer::ObjectId&,
00729 PortableServer::ServantBase*);
00730
00731 friend class POA_HxCorba::HistogramFactory;
00732
00733 public:
00734
00735
00736
00737
00738 virtual HxCorba::Histogram_ptr makeHistogramFromFile(const char* filename);
00739 };
00740
00741 }
00742
00743 #endif