File: ReadMe.md

package info (click to toggle)
opencascade 7.8.1%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 293,924 kB
  • sloc: cpp: 1,249,635; tcl: 15,974; cs: 5,173; java: 1,554; sh: 1,354; ansic: 821; xml: 737; makefile: 26; javascript: 22
file content (74 lines) | stat: -rw-r--r-- 2,594 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Qt: OCCT Overview (C++|Qt Widgets) {#samples_qt_overview}
==========

The Overview Qt application provides code snippets for basic usage of C++ API of various OCCT functionality.
The samples are organized in several categories according to relevant module of OCCT:

 * Geometry
 * Topology
 * Triangulation
 * DataExchange
 * OCAF
 * Viewer 2d
 * Viewer 3d

Each sample presents geometry view, C++ code fragment and sample output window.
This sample is described in the @ref samples__novice_guide "Novice guide" for new users.

@figure{sample_overview_qt.png}

1. Contents
-----------------------

The directory <i> samples/qt/OCCTOverview </i> contains the folders and files of the Qt OCCT Overview application:

* Files **OCCTOverview.pro** and **OCCTOverview0.pro** are Qt project files.
* File **genproj.bat** to denerate MS Visual Studio project.
* File **msvc.bat**  to run MS Visual Studio project.
* File **make.sh** to build of the application on Linux.
* Files **run.bat** and **run.sh** to run the application.
* Files **env.bat** and **custom.bat** are called from *genproj.bat*, *msvc.bat*, *run.bat*.
  File *custom.bat* should be defined by user to provide paths to QT directory and OCCT installation directory (see *custom.bat.template*).
* **src** and **res** directories provide source and resources files.

The directory <i> samples/OCCTOverview/code </i> contains the source code of samples.

2. How to build Qt OCCT Overview application
---------------------------------

* Edit custom.bat file. It is necessary to define following variables:
  * **QTDIR** path to where Qt is installed
  * **CASROOT** path to where Open CASCADE binaries are installed.

* Build the application:

    * On Windows:
        * Generate project files: `> genproj.bat vc141 win64 Debug`
        * Launch MS Visual Studio: `> msvc.bat vc141 win64 Debug`
        * Build the application using MS Visual Studio.

    * On Linux: Launch building of the application by make.sh script

3. Running the application
--------------------------

* On Windows:
~~~~
 > run.bat vc141 win64 Debug
~~~~

* On Linux:
~~~~
 > run.sh
~~~~

4. How to use the OCCT Overview application:
---------------------------------

* To select a samples category use the *Category* menu.
* To run concrete sample using the menu to the right of the category menu.
* See the source code in the *Sample code* window. Сopy the code if needed.
* See the sample output in the *Output* window if it exist.
* Zoom, pan and rotate a geometry in the mail window using the mouse.

See hints how to use the mouse in down hints panel.