MainWindow::MainWindow(ctkEventAdminBus *bus, QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow), m_EventBus(bus) { ui->setupUi(this); connectEvents(); }
void SelectProjectPage::initializePage() { ui->setupUi(this); registerField("projectType", this, "projectType"); setTitle("Seleccione el tipo de proyecto que desea realizar"); connectEvents(); }//initPage
rtCameraControl::rtCameraControl(vtkCamera* cam, vtkRenderer* renderer, customQVTKWidget* eventWid) : m_camera(cam), m_renderer(renderer), m_eventWidget(eventWid), m_leftMouseDown(false), m_rightMouseDown(false), m_midMouseDown(false), m_scrollWheelMotion(true), m_cameraInMotion(false) { connectEvents(); m_cameraPosList.clear(); m_scrollTimer.setSingleShot(true); m_scrollTimer.setInterval(400); // Wait 400 msec before declaring the scroll event over. CameraPosition p; // Default Positions p.pos[0] = 0.0f; p.pos[1] = 0.0f; p.pos[2] = -1000.0f; p.focal[0] = 0.0f; p.focal[1] = 0.0f; p.focal[2] = 0.0f; p.up[0] = 0.0f; p.up[1] = -1.0f; p.up[2] = 0.0f; m_cameraPosList.append(p); // Robot Arm Position p.pos[0] = 0.0f; p.pos[1] = 0.0f; p.pos[2] = -1000.0f; p.focal[0] = 0.0f; p.focal[1] = 0.0f; p.focal[2] = 0.0f; p.up[0] = 0.0f; p.up[1] = -1.0f; p.up[2] = 0.0f; m_cameraPosList.append(p); }