w->doJavaScript(jsCom);
- std::cout<<" REF: "<<w->jsRef()<<std::endl;
- std::cout<<" CREANDO TIPO: "<<mType<<" --- "<<jsCom<<std::endl;
}
BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,ViewerNVWeb)
{
Wt::WContainerWidget* w = (Wt::WContainerWidget*)bbGetOutputWidget();
std::string jsCom;
-printf("EED ViewerNVWeb::Process %s\n", bbGetInputImagePath().c_str() );
+FILE *flog;
+flog=fopen("/var/www/testwtdbg/docroot/appli1/imagesTMP/bbtk-Web.log","a+");
+fprintf(flog,"EED %p ViewerNVWeb::Process START %s\n", this, bbGetInputImagePath().c_str() );
+fclose(flog);
bool ok;
FILE *ff=fopen( bbGetInputImagePath().c_str() , "r" );
if (ff)
";
*/
-/*
+flog=fopen("/var/www/testwtdbg/docroot/appli1/imagesTMP/bbtk-Web.log","a+");
+fprintf(flog," EED ViewerNVWeb::Process firsttime = false\n" );
+fclose(flog);
+
jsCom = "\
try{\
- " +w->jsRef() + ".mVolume.file = '" + bbGetInputImagePath() + "';\
- setTimeout(function(){\
- " + wtWindow1->jsRef() + ".mRenderer.add(" +w->jsRef() + ".mVolume);\
- " + wtWindow1->jsRef() + ".mRenderer.render();\
- },300);\
+ " +w->jsRef() + ".mVolume.file = '" + bbGetInputImagePath() + "';\
+ " +w->jsRef() + ".mVolume.modified(true);\
+ " + wtWindow1->jsRef() + ".mRenderer.render();\
+ alert('firsttime=false');\
} catch (err) {\
} \
";
w->doJavaScript(jsCom);
-*/
}
if (firstTime==true)
{
+
+flog=fopen("/var/www/testwtdbg/docroot/appli1/imagesTMP/bbtk-Web.log","a+");
+fprintf(flog," EED ViewerNVWeb::Process firsttime = true \n" );
+fclose(flog);
+
firstTime=false;
jsCom = "\
try{\
setTimeout(function(){\
" + wtWindow1->jsRef() + ".mRenderer.add(" +w->jsRef() + ".mVolume);\
" + wtWindow1->jsRef() + ".mRenderer.render();\
+ alert('(1) firsttime=true');\
},300);\
setTimeout(function(){\
" + w->jsRef() +".mVolume.upperThreshold =20000;\
" + wtWindow3->jsRef() + ".mRenderer.render();\
" + wtWindow4->jsRef() + ".mRenderer.add(" +w->jsRef() + ".mVolume);\
" + wtWindow4->jsRef() + ".mRenderer.render();\
- },3000);\
+ alert('(2) firsttime=true');\
+ },10000);\
} catch(err) { \
} \
";
+
+
// jsCom = "\
var volume = new X.volume();\
volume.spacing = [0.7,0.7,0.7 ];\
// wtWindow3->resize(Wt::WLength::Auto, 200);
// wtWindow4->resize(Wt::WLength::Auto, 200);
+flog=fopen("/var/www/testwtdbg/docroot/appli1/imagesTMP/bbtk-Web.log","a+");
+fprintf(flog,"EED ViewerNVWeb::Process END \n" );
+fclose(flog);
+
Wt::WApplication::instance()->refresh();
wtWindow1 = new Viewer_NV(w,nType[0]);
wtWindow1->configureWt();
wtWindow1->setStyleClass("black-box");
- std::cout<<" PRUEBA 1 RENDERER"<<std::endl;
bbSetOutputviewer1(wtWindow1->jsRef());
}
else if(nType.size() == 2)
As root or with sudo command:
--1)
+1) BBTK
Compile bbtk with the cmake option USE_WT
+(Make sure you are in a new consolo with all the thirdparty variables are loaded)
-0)
-yum install fcgi-devel
-yum install mod_fcgid
+2) Compile and install le package de creaWt
+definir <creaWTInstall>
+
+3)
+dnf install fcgi-devel
+dnf install mod_fcgid
-1) ld configuration
+4) ld configuration
cp bbtk.conf /etc/ld.so.conf.d/.
-1.1) check the path of the file /etc/ld.so.conf.d/bbtk.conf
-1.2) execute :
+4.1) check the path of the file /etc/ld.so.conf.d/bbtk.conf
+4.2) execute :
ldconfig
-1.2) Check the paths of the file
+4.2) Check the paths of the file
-2) Create virtual site apache
+5) Create virtual site apache
mkdir /var/www/testwtdbg
mkdir /var/www/testwtdbg/docroot
<rootBbtkWt> = /var/www/testwtdbg/docroot
-3) Apache configuration
+6) Apache configuration
cp fastcgi-wt.conf /etc/httpd/conf.d/.
service httpd restart
-4) wt temporary diractory
+7) wt temporary diractory
mkdir /var/run/wt
chown apache:apache /var/run/wt
-5) wt CONFIGURATION
+8) wt CONFIGURATION
mkdir /etc/wt
cp wt_config.xml /etc/wt/.
-6) Prepare wt application site
+9) Prepare wt application site
mkdir <rootBbtkWt>/<appliBtkWt>
chown apache:apache <rootBbtkWt>/<appliBtkWt>
ln -s <INSTALATION_creaWTInstall>/share/data/reosurcesXTK <rootBbtkWt>/resourcesXTK
ln -s <INSTALATION_BBTK>/bin/bbiWeb.wt <rootBbtkWt>/bbiWeb.wt
-7) To cofigure new Package in
+10) To cofigure new Package in
<rootBbtkWt>/.bbtk/bbtk_config.xml
with
<bbs_path>
-8) Call application from browser
+11) Call application from browser
http://localhost/<appliBbtkWt>/bbiWeb.php