1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
# data file for the Fltk User Interface Designer (fluid)
version 1.0107
header_name {.h}
code_name {.cxx}
class OneViewAndTrackingGUI {open
} {
Function {OneViewAndTrackingGUI()} {open
} {
Fl_Window mainWindow {
label {IGSTK: Tracking example} open
xywh {497 96 990 695} type Double resizable visible
} {
Fl_Box Display3D {
label {Display 3D}
xywh {0 0 995 665} box FLAT_BOX color 0 labelcolor 7
code0 {\#include "igstkFLTKWidget.h"}
code1 {\#include "igstkView3D.h"}
class {igstk::FLTKWidget}
}
Fl_Light_Button TrackingButton {
label Tracking
callback {if( o->value() ) this->EnableTracking();
else this->DisableTracking();}
xywh {5 670 85 25} labelsize 11
}
Fl_Button QuitButton {
label Quit
callback {this->Quit();}
xywh {95 670 85 25}
}
}
code {this->hasQuitted = false;
this->View3D = igstk::View3D::New();
this->Display3D->RequestSetView( this->View3D );} {}
}
Function {~OneViewAndTrackingGUI()} {open return_type virtual
} {
code {delete Display3D;} {}
}
Function {Quit()} {open return_type {virtual void}
} {
code {this->Display3D->RequestDisableInteractions();
this->View3D->RequestStop();
this->mainWindow->hide();
this->hasQuitted = true;} {}
}
Function {Show()} {open return_type {virtual void}
} {
code {this->mainWindow->show();
this->Display3D->RequestEnableInteractions();
this->View3D->RequestStart();} {}
}
Function {EnableTracking()} {open return_type {virtual void}
} {}
Function {DisableTracking()} {open return_type {virtual void}
} {}
Function {HasQuitted()} {return_type {virtual bool}
} {
code {return this->hasQuitted;} {}
}
decl {bool hasQuitted;} {}
decl {igstk::View3D::Pointer View3D;} {selected public
}
}
|