Logo Search packages:      
Sourcecode: labplot version File versions

Plot3D::Plot3D ( QWidget *  parent = 0,
const char *  name = 0 
)

This should be the first call in your derived classes constructors.

Definition at line 15 of file qwt3d_plot.cpp.

References assignKeyboard(), assignMouse(), Qwt3D::ColorLegend::BottomTop, disableLighting(), Qwt3D::FILLEDMESH, Qwt3D::GOURAUD, Qwt3D::ColorLegend::Left, Qwt3D::NOFLOOR, setBackgroundColor(), Qwt3D::Label::setFont(), setKeySpeed(), Qwt3D::ColorLegend::setLimits(), Qwt3D::ColorLegend::setMajors(), setMeshColor(), setMeshLineWidth(), Qwt3D::ColorLegend::setMinors(), Qwt3D::ColorLegend::setOrientation(), setPolygonOffset(), Qwt3D::Label::setString(), and setTitlePosition().

    : QGLWidget( parent, name )
{  
  initializedGL_ = false;
  xRot_ = yRot_ = zRot_ = 0.0;            // default object rotation
  
      xShift_ = yShift_ = zShift_ = xVPShift_ = yVPShift_ = 0.0;
      xScale_ = yScale_ = zScale_ = 1.0;
      zoom_ = 1;
      ortho_ = true;
      plotstyle_ = FILLEDMESH;
  userplotstyle_p = 0;
      shading_ = GOURAUD;
      floorstyle_ = NOFLOOR;
      isolines_ = 10;
      displaylegend_ = false;
      smoothdatamesh_p = false;
  actualData_p = 0;

      lastMouseMovePosition_ = QPoint(0,0);
      mpressed_ = false;
      mouse_input_enabled_ = true;

      setPolygonOffset(0.5);
      setMeshColor(RGBA(0.0,0.0,0.0));
      setMeshLineWidth(1);
      setBackgroundColor(RGBA(1.0,1.0,1.0,1.0));

      displaylists_p = std::vector<GLuint>(DisplayListSize);
      for (unsigned k=0; k!=displaylists_p.size(); ++k)
      {
            displaylists_p[k] = 0;
      }

      datacolor_p = new StandardColor(this, 100);
      title_.setFont("Courier", 16, QFont::Bold);
      title_.setString("");

      setTitlePosition(0.95);
      
      assignMouse(Qt::LeftButton, 
                                          Qt::LeftButton | Qt::ShiftButton,
                                          Qt::LeftButton, 
                                          Qt::LeftButton | Qt::AltButton, 
                                          Qt::LeftButton | Qt::AltButton, 
                                          Qt::LeftButton | Qt::AltButton | Qt::ShiftButton,
                                          Qt::LeftButton | Qt::AltButton | Qt::ControlButton,
                                          Qt::LeftButton | Qt::ControlButton, 
                                          Qt::LeftButton | Qt::ControlButton);


  kbd_input_enabled_ = true;
  setFocusPolicy(QWidget::StrongFocus);
  assignKeyboard(Qt::Key_Down, Qt::Key_Up,
    Qt::ShiftButton + Qt::Key_Right, Qt::ShiftButton + Qt::Key_Left,
    Qt::Key_Right, Qt::Key_Left,
    Qt::AltButton + Qt::Key_Right, Qt::AltButton + Qt::Key_Left,
    Qt::AltButton + Qt::Key_Down, Qt::AltButton + Qt::Key_Up,
    Qt::AltButton + Qt::ShiftButton + Qt::Key_Down, Qt::AltButton + Qt::ShiftButton + Qt::Key_Up,
    Qt::AltButton + Qt::ControlButton + Qt::Key_Down, Qt::AltButton + Qt::ControlButton + Qt::Key_Up,
    Qt::ControlButton + Qt::Key_Right, Qt::ControlButton + Qt::Key_Left,
    Qt::ControlButton + Qt::Key_Down, Qt::ControlButton + Qt::Key_Up
   );
   setKeySpeed(3,5,5);


      legend_.setLimits(0, 100);
      legend_.setMajors(10);
      legend_.setMinors(2);
      legend_.setOrientation(ColorLegend::BottomTop, ColorLegend::Left);

  lighting_enabled_ = false;
  disableLighting();
  lights_ = std::vector<Light>(8);
}


Generated by  Doxygen 1.6.0   Back to index