本文整理汇总了C++中MeshRenderer::setRenderWireFrame方法的典型用法代码示例。如果您正苦于以下问题:C++ MeshRenderer::setRenderWireFrame方法的具体用法?C++ MeshRenderer::setRenderWireFrame怎么用?C++ MeshRenderer::setRenderWireFrame使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MeshRenderer
的用法示例。
在下文中一共展示了MeshRenderer::setRenderWireFrame方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void ZFramework3D::slot_update_render_opt()
{
//updateUi();
QGLViewerWidget* wiget = this->ui.widget;
MeshRenderer* mr = (MeshRenderer*)wiget->getRenderer();
ZMeshSpace::ZMeshAlgorithms* handler = ZDataManager::getDataManager()->getAlgorithmHandler();
mr->setRenderWireFrame(ui.cbRenderWireframe->isChecked());
mr->setRenderType(ui.cobRenderType->currentText().toStdString());
mr->getRenderOption().show_iso_lines = ui.cbIsoLines->isChecked();
mr->getRenderOption().show_iso_plane = ui.cbShowIsoLines->isChecked();
mr->getRenderOption().translucent = ui.cbTransparency->isChecked();
mr->getRenderOption().strRenderIsoPlaneMethod = ui.cobIsoLines->currentText().toStdString();
mr->getRenderOption().show_kmeans_center_plane = ui.cbShowKmeanPlane->isChecked();
mr->getRenderOption().show_iso_plane_plane_list = ui.cbClusteredLines->isChecked();
mr->getRenderOption().show_face_normals = ui.cbShowNormals->isChecked();
ui.cobIsoLines->setEnabled(ui.cbShowIsoLines->isChecked());
mr->getRenderOption().show_iso_line_by_id = ui.cbOneByOne->isChecked();
ui.hSliderIsoLine->setEnabled(ui.cbOneByOne->isChecked());
ui.labelIsoLineIdx->setEnabled(ui.cbOneByOne->isChecked());
mr->getRenderOption().show_cvt_init_samples = ui.cbShowCVTSamples->isChecked();
mr->getRenderOption().show_cvt_delaunay = ui.cbShowCVTDelaunay->isChecked();
mr->getRenderOption().show_cvt_voronoi = ui.cbShowCVTVoronoi->isChecked();
mr->getRenderOption().show_cvt_clippingRegion = ui.cbShowCVTClippingRegion->isChecked();
mr->getRenderOption().show_cvt_voronoi_vertices = ui.cbShowCVTVoronoiVertices->isChecked();
mr->getRenderOption().show_cvt_vertices = ui.cbShowCVTDelaunayVertices->isChecked();
int curPos = ui.hSliderIsoLine->sliderPosition();
handler->setCurrentIsoLineIdx(curPos);
bool bCluster = (ui.cobIsoLines->currentText()==render_type(RENDER_TYPE_IP_LINES_BY_CLUSTERID));
QString str;//("IsoLineIdx: ");
str = bCluster ? ("ClusterId: ") : ("IsoLineIdx: ");
str += QString::number(curPos);
ui.labelIsoLineIdx->setText(str);
updateViews();
}