8 #include <qapplication.h> 20 TemperatureSub() : info(
"FSC_CONTROL/TEMPERATURE", (void*)NULL, 0, this), view(NULL)
28 cout <<
"Hum, I'm getting info from subsciptions to which I didn\'t subscribe... weird" << endl;
31 float* values = (
float*)(I->
getData());
32 if (I->
getSize() != 60*
sizeof(float))
34 cout <<
"wrong size: " << I->
getSize() << endl;
38 view->updateData(values);
44 QApplication a(argc, argv);
50 QHBoxLayout* layout =
new QHBoxLayout(&window);
51 layout->setContentsMargins(0,0,0,0);
52 layout->addWidget(view);
56 window.resize(600,600);
65 int main(
int argc,
char** argv)
int main(int argc, char **argv)
void do3DView(int argc, char **argv)
void setViewer(Q3DCameraWidget *v)