QtDescribeView.cpp | |
Functions | |
QtDescribeView | QtDescribeViewクラスのコンストラクタ |
initializeGL | OpenGLを初期化する |
resizeGL | リサイズウィジェット |
paintGL | OpenGLを描画する |
mousePressEvent | マウス押下時のイベント |
mouseReleaseEvent | マウスリリース時イベント |
mouseMoveEvent | マウス移動時イベント |
wheelEvent | マウスホイールイベント |
keyPressEvent | キーボードイベント |
getMouseBtn | 押されているマウスボタンの取得 |
getModifierkey | 押されている修飾キーを取得する |
drawPoint | 点を描画する |
drawPoints | 点群を描画する |
drawVector | ベクトルを描画する |
drawLine | 2点間に線分を描画する |
QtDescribeViewクラスのコンストラクタ
QtDescribeView::QtDescribeView( QWidget * parent ) : QGLWidget(parent)
OpenGLを初期化する
void QtDescribeView::initializeGL()
リサイズウィジェット
void QtDescribeView::resizeGL( int w, int h )
OpenGLを描画する
void QtDescribeView::paintGL()
マウス押下時のイベント
void QtDescribeView::mousePressEvent( QMouseEvent * event )
マウスリリース時イベント
void QtDescribeView::mouseReleaseEvent( QMouseEvent * event )
マウス移動時イベント
void QtDescribeView::mouseMoveEvent( QMouseEvent * event )
マウスホイールイベント
void QtDescribeView::wheelEvent( QWheelEvent * event )
キーボードイベント
void QtDescribeView::keyPressEvent( QKeyEvent * event )
押されているマウスボタンの取得
long QtDescribeView::getMouseBtn( QMouseEvent * event )
点を描画する
void QtDescribeView::drawPoint( Coord p, double scale, double width, double color[3] )
点群を描画する
void QtDescribeView::drawPoints( Coord * p, int n, double scale, double width, double color[3] )
ベクトルを描画する
void QtDescribeView::drawVector( Coord s, Coord e, double vec_len, double width, double color[3] )
2点間に線分を描画する
void QtDescribeView::drawLine( Coord s, Coord e, double width, double color[3] )