- Notifications
You must be signed in to change notification settings - Fork61
A proof-of-concept widget for integrating Qt and OpenSceneGraph in a thread-safe manner
License
Pseudomanifold/QtOSG
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository contains a widget based onQOpenGLWidget
that is ableto wrap a viewer from theOpenSceneGraph library.This makes it possible to combine both toolkits in a thread-safe manner.
Moreover, the widget demonstrates several interaction mechanisms:
- Rectangular selection processing
- Pick handling
- Node file writing (for debug purposes)
- Linux or MacOS X (see below for a brief discussion on supportingMicrosoft Windows)
- A recent C++ compiler with support for C++11
CMake
(minimum version 2.8.11)Qt5
OpenSceneGraph
I am not familiar enough with graphics programming for Microsoft Windowsto fully support this as a target platform. Inissue 7, it was brieflydiscussed that some modifications are required for QtOSG to fullycompile/work under Microsoft Windows. If you want to target thisplatform, I would be glad for the help!
Thanks toMartial Tola, support forcompiling under Microsoft Windows has been added to the projectand I am looking forward to any comments.
$ git clone https://github.com/Submanifold/QtOSG$ cd QtOSG$ mkdir build$ cd build$ cmake ../$ make
Additional build options can be configured by issuingccmake .
in thebuild directory. In particular, you can toggle the following options:
WITH_PICK_HANDLER
: toggle to compile with/without support for pointpickingWITH_SELECTION_PROCESSING
: toggle to compile with/without supportfor rectangular selections
The demo application merely demonstrates basic usage of the widget.Don't expect too much! Start the application by issuing./qtosg
in thebuild directory.
The following key bindings are active:
d
: writes the current scene graph to/tmp/sceneGraph.osg
h
: resets the view to homes
: toggles selection processing (if compiled); if active, hold leftmouse button down to draw a selection rectangle; selected objects willbe shown on the console
Please see thecontribution guidelines for moreinformation and a list of the contributors.
QtOSG
uses the MIT licence. Pleas see the fileLICENSE.md in the main directory of the repository formore information.
About
A proof-of-concept widget for integrating Qt and OpenSceneGraph in a thread-safe manner