File: README.md

package info (click to toggle)
sight 25.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,184 kB
  • sloc: cpp: 289,476; xml: 17,257; ansic: 9,878; python: 1,379; sh: 144; makefile: 33
file content (45 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download | duplicates (2)
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
# sight::viz::scene2d

Contains the generic classes for the 2D scene display elements. 
The generic element cover background size, position, viewports, scenes and mouse interactions.

## Classes

* **adaptor**: root class for the 2D scene adaptors. Needs to be extended to get the sight::viz::scene2D elements. 

* **graphics_view**: contains the view dedicated element: viewport, as well as all the mouse interaction methods. 

* **render**: renders the QT scene. 
 
### Data

* **Axis**: defines an axis on the scene2D.

* **Coord**: defines a point on the scene2D.

* **Event**: manages the events on the scene2D.

* **InitQPen**: initialise the color of a QPen on the scene2D.

* **Size**: defines a 2D size data structure for scene2D elements.

* **Viewport**: defines a 2D viewport with its position and size for scene2D elements.
 
### Registry

* **adaptor**: Handles a map containing adaptor-render association for the sight registry.

 
## How to use it

### CMake

```cmake
add_dependencies(my_target viz_scene2d ... )
```

### Implementation

Define your specific scene2D class as an extension of the adaptor class.