From: abuhsing Date: Fri, 13 Dec 2013 13:25:46 +0000 (+0000) Subject: Le nom du panneau du model s'appelle 'Model' X-Git-Tag: V7_3_0~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=392c090858522009116e5ee7bcbfa4823111a283;p=modules%2Fhexablock.git Le nom du panneau du model s'appelle 'Model' --- diff --git a/doc/_static/gui_addshape.png b/doc/_static/gui_addshape.png new file mode 100644 index 0000000..a093009 Binary files /dev/null and b/doc/_static/gui_addshape.png differ diff --git a/doc/gui_add_geometry.rst b/doc/gui_add_geometry.rst new file mode 100644 index 0000000..9b0343a --- /dev/null +++ b/doc/gui_add_geometry.rst @@ -0,0 +1,29 @@ +:tocdepth: 3 + +.. _guiaddgeometry: + +============================ +Add a geometry to a document +============================ + +Only geometries added to a document can be used by that document. +Vertices, Edges and Quadrangles of the model of blocks of a document can only be associated to those of a geometry that +has already been added to that document. + +To add a geometry to a document: + +- *1-* Import the geometry (.brep, .step, ...) in the GEOM Module +- *2-* Activate HexaBlock +- *3-* Open your document or create a new one +- *4-* In the **Main Menu** select **Association -> Add geometry** +- *5-* Select the imported geometry and click the **Apply** button of the **Add geometry** Dialog Box + + + .. image:: _static/gui_addshape.png + :align: center + +.. centered:: + Adding geometry to a document + + +TUI command: :ref:`tuiaddgeometry` \ No newline at end of file diff --git a/doc/interactive.rst b/doc/interactive.rst index 2b507e5..2bf64fa 100644 --- a/doc/interactive.rst +++ b/doc/interactive.rst @@ -65,6 +65,7 @@ It provides the toolset allowing to: gui_modify_elmts.rst gui_modify_symmetry.rst gui_association.rst + gui_add_geometry.rst gui_asso_quad_to_geom.rst gui_asso_vertex_to_geom.rst gui_groups.rst diff --git a/doc/python.rst b/doc/python.rst index dbc72ed..762cf5b 100644 --- a/doc/python.rst +++ b/doc/python.rst @@ -32,6 +32,7 @@ By the links below you can find sample scripts for all operations provided by He tui_modify_elmts.rst tui_quad_revolution.rst tui_association.rst + tui_add_geometry.rst tui_asso_quad_to_geom.rst tui_asso_vertex_to_geom.rst tui_groups.rst diff --git a/doc/tui_add_geometry.rst b/doc/tui_add_geometry.rst new file mode 100644 index 0000000..6e7ba0e --- /dev/null +++ b/doc/tui_add_geometry.rst @@ -0,0 +1,22 @@ +:tocdepth: 3 + + +.. _tuiaddgeometry: + +============================ +Add a geometry to a document +============================ + +To add a geometry to a document in python mode, you need the following arguments: + +- *doc* : the document +- *geom* : the geometry +- *shape_name* : the name of the geometry + +Use the function **addShape**:: + + doc = hexablock.addDocument (doc_name) + geom = geompy.ImportBREP (shape_name + ".brep") + shape = hexablock.addShape (doc, geom , shape_name) + +GUI command: :ref:`guiaddgeometry` diff --git a/src/HEXABLOCKGUI/HEXABLOCKGUI.cxx b/src/HEXABLOCKGUI/HEXABLOCKGUI.cxx index 5e2ccc3..c243f38 100755 --- a/src/HEXABLOCKGUI/HEXABLOCKGUI.cxx +++ b/src/HEXABLOCKGUI/HEXABLOCKGUI.cxx @@ -521,7 +521,7 @@ bool HEXABLOCKGUI::renameObject( const QString& entry, const QString& name) docModel->setName( name ); aName->SetValue( name.toLatin1().data() ); getApp()->updateObjectBrowser(); - _dwPattern->setWindowTitle( name ); +// _dwPattern->setWindowTitle( name ); result = true; } } @@ -1971,7 +1971,7 @@ void HEXABLOCKGUI::switchModel(VtkDocumentGraphicView* dgview) currentDocGView = dgview; showOnlyActor(); currentDocGView->getDocumentModel()->refresh(); - _dwPattern->setWindowTitle(currentDocGView->getDocumentModel()->getName()); +// _dwPattern->setWindowTitle(currentDocGView->getDocumentModel()->getName()); showAllMenus(); }