#include <HxUserOpsServant.h>
Inheritance diagram for HxUserOpsServant::
Public Methods | |
HxUserOpsServant (HxServerBase *) | |
virtual | ~HxUserOpsServant () |
HxCorba::MyMessage * | MyStringFunction2 () throw (CORBA::SystemException) |
HxCorba::AapFeatures | JmCalcAapFeatures (HxCorba::ImageRep_ptr aap, HxCorba::ImageRep_ptr aapSegmentation) throw (CORBA::SystemException) |
HxCorba::SegmentQueryResultSeq * | HxTrecDemo (HxCorba::TrecFaceT faces, HxCorba::TrecYesNoT monologue, HxCorba::TrecYesNoT speech, HxCorba::TrecCameraT camera, HxCorba::ImageRep_ptr qimage) throw (CORBA::SystemException) |
void | HxInitTrack (HxCorba::ImageSeq_ptr seq, CORBA::Long startFrame, CORBA::Long x0, CORBA::Long y0, CORBA::Long x1, CORBA::Long y1) throw (CORBA::SystemException) |
CORBA::Boolean | HxDoTrack (CORBA::Long nextFrame, CORBA::Long_out x0, CORBA::Long_out y0, CORBA::Long_out x1, CORBA::Long_out y1, CORBA::Boolean_out occlusion) throw (CORBA::SystemException) |
The constituent parts of the servant are: HxUserOpsGenSvt, HxUserOpsServant, HxGlobalOpsGenSvt, and HxGlobalOpsServant.
|
00016 : HxUserOpsGenSvt(s) 00017 { 00018 } |
|
00021 { 00022 } |
|
Reimplemented from POA_HxCorba::UserOps.
00030 { 00031 HxString s = ::MyStringFunction2(); 00032 00033 HxCorba::MyMessage* result = new HxCorba::MyMessage(); 00034 result->msg = CORBA::string_dup(s.c_str()); 00035 00036 return result; 00037 } |
|
00043 { 00044 HxImageRep hxAap = HxGetTiedObject<HxImageRepTiedSvt>(_server,aap); 00045 HxImageRep hxAapSeg = HxGetTiedObject<HxImageRepTiedSvt>(_server,aapSegmentation); 00046 00047 HxCorba::Color col; 00048 col.x = 1.2; 00049 col.y = 3.4; 00050 col.z = 5.6; 00051 HxCorba::AapFeatures features; 00052 features.outdoor = false; 00053 features.col = col; 00054 features.percentage = 61.2; 00055 features.label = 12; 00056 return features; 00057 } |
|
00075 { 00076 HxTrecFaceT _faces_arg = HxTrecFaceT_values[faces]; 00077 HxTrecYesNoT _monologue_arg = HxTrecYesNoT_values[monologue]; 00078 HxTrecYesNoT _speech_arg = HxTrecYesNoT_values[speech]; 00079 HxTrecCameraT _camera_arg = HxTrecCameraT_values[camera]; 00080 HxImageRep _qimage_arg = HxGetTiedObject<HxImageRepTiedSvt>(_server,qimage); 00081 00082 HxTrecSegmentList segList = ::HxTrecDemo(_faces_arg, _monologue_arg, _speech_arg, _camera_arg, _qimage_arg); 00083 00084 HxCorba::SegmentQueryResultSeq_var segseq = 00085 new HxCorba::SegmentQueryResultSeq(); 00086 segseq->length(segList.size()); 00087 00088 HxTrecSegmentList::const_iterator it = segList.begin(); 00089 for (int i=0; it != segList.end() ; i++, it++) { 00090 HxCorba::VxSegment_ptr vp = 00091 HxRegisterTiedServant<VxSegmentTiedSvt>(_server, it->segment); 00092 segseq[i].videoName = CORBA::string_dup(it->videoName.c_str()); 00093 segseq[i].segmentationName = CORBA::string_dup("blocks"); 00094 segseq[i].segment = vp; 00095 segseq[i].time.start = it->segment.start(); 00096 segseq[i].time.end = it->segment.end(); 00097 } 00098 00099 return segseq._retn(); 00100 } |
|
00113 { 00114 HxImageSeq _seq_arg = HxGetTiedObject<HxImageSeqTiedSvt>(_server, seq); 00115 ::HxInitTrack(_seq_arg, startFrame, x0, y0, x1, y1); 00116 } |
|
00126 { 00127 int _x0_arg, _x1_arg, _y0_arg, _y1_arg; 00128 int _occ_arg; 00129 00130 int result = ::HxDoTrack(nextFrame, _x0_arg, _y0_arg, _x1_arg, _y1_arg, 00131 _occ_arg); 00132 x0 = _x0_arg; 00133 x1 = _x1_arg; 00134 y0 = _y0_arg; 00135 y1 = _y1_arg; 00136 occlusion = _occ_arg; 00137 00138 return result; 00139 } |