这篇教程C++ updateView函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中updateView函数的典型用法代码示例。如果您正苦于以下问题:C++ updateView函数的具体用法?C++ updateView怎么用?C++ updateView使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了updateView函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: updateViewvoid DirectionNode::backwardDirection(qreal distance) { QVector3D front = direction; front.normalize(); position -= distance*front; updateView();}
开发者ID:tapio,项目名称:liblub,代码行数:6,
示例2: updateViewvoid CFirstPersonCamera::setPosition(const glm::vec3& position){ m_position = position; updateView();}
开发者ID:redagito,项目名称:RTR2014,代码行数:5,
示例3: Kiwaybool FOOTPRINT_EDIT_FRAME::Load_Module_From_BOARD( MODULE* aModule ){ MODULE* newModule; PCB_EDIT_FRAME* frame = (PCB_EDIT_FRAME*) Kiway().Player( FRAME_PCB, false ); if( frame == NULL ) // happens if no board editor opened return false; if( aModule == NULL ) { if( ! frame->GetBoard() || ! frame->GetBoard()->m_Modules ) return false; aModule = SelectFootprint( frame->GetBoard() ); } if( aModule == NULL ) return false; SetCurItem( NULL ); Clear_Pcb( false ); GetBoard()->m_Status_Pcb = 0; newModule = new MODULE( *aModule ); newModule->SetParent( GetBoard() ); newModule->SetLink( aModule->GetTimeStamp() ); aModule = newModule; GetBoard()->Add( newModule ); newModule->ClearFlags(); // Clear references to net info, because the footprint editor // does know any thing about nets handled by the current edited board. // Morever the main board can change or the net info relative to this main board // can change while editing this footprint in the footprint editor for( D_PAD* pad = newModule->Pads(); pad; pad = pad->Next() ) pad->SetNetCode( NETINFO_LIST::UNCONNECTED ); SetCrossHairPosition( wxPoint( 0, 0 ) ); PlaceModule( newModule, NULL ); newModule->SetPosition( wxPoint( 0, 0 ) ); // cursor in GAL may not be initialized at the moment // Put it on FRONT layer, // because this is the default in ModEdit, and in libs if( newModule->GetLayer() != F_Cu ) newModule->Flip( newModule->GetPosition() ); // Put it in orientation 0, // because this is the default orientation in ModEdit, and in libs Rotate_Module( NULL, newModule, 0, false ); GetScreen()->ClrModify(); Zoom_Automatique( false ); if( IsGalCanvasActive() ) updateView(); return true;}
开发者ID:antogg,项目名称:kicad-source-mirror,代码行数:61,
示例4: updateViewvoid BaseView::dayPassed( const QDate & ){ updateView();}
开发者ID:akhuettel,项目名称:kdepim-noakonadi,代码行数:4,
示例5: updateViewvoid PlaylistWidget::deactivate(){ p->isActive = false; updateView();}
开发者ID:david-geiger,项目名称:knowthelist,代码行数:5,
示例6: QWidgetVisualizationWidget::VisualizationWidget( QWidget* parent /*= 0*/ ) : QWidget(parent){ this->setupUi(this); _interactorStyle = VtkCustomInteractorStyle::New(); vtkWidget->GetRenderWindow()->GetInteractor()->SetInteractorStyle(_interactorStyle); _vtkPickCallback = VtkPickCallback::New(); vtkSmartPointer<vtkCellPicker> picker = vtkSmartPointer<vtkCellPicker>::New(); picker->AddObserver(vtkCommand::EndPickEvent, _vtkPickCallback); vtkWidget->GetRenderWindow()->GetInteractor()->SetPicker(picker); vtkRenderWindow* renderWindow = vtkWidget->GetRenderWindow(); renderWindow->StereoCapableWindowOn(); renderWindow->SetStereoTypeToCrystalEyes(); _vtkRender = vtkRenderer::New(); renderWindow->AddRenderer(_vtkRender); _interactorStyle->SetDefaultRenderer(_vtkRender); QSettings settings;#ifdef OGS_USE_VRPN VtkTrackedCamera* cam = new VtkTrackedCamera(this); _vtkRender->SetActiveCamera(cam); connect( cam, SIGNAL(viewUpdated()), this, SLOT(updateView()) ); //QSpaceNavigatorClient* spacenav = QSpaceNavigatorClient::Instance(); //spacenav->init("[email C++ updateViewMatrix函数代码示例 C++ updateVertices函数代码示例
|