Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
238 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import sys | ||
from pivy import coin | ||
from pivy.gui import soqt | ||
# import shiboken if you want to use the widget within qt | ||
|
||
# Initialize Coin (returns main window to use) | ||
# If unsuccessful, exit. | ||
myWindow = soqt.SoQt.init(sys.argv[0]) | ||
print(myWindow) | ||
# Make a scene containing a red cone. | ||
myMaterial = coin.SoMaterial() | ||
myMaterial.diffuseColor = (1.0, 0.0, 0.0) | ||
scene = coin.SoSeparator() | ||
scene.ref() | ||
scene.addChild(myMaterial) | ||
scene.addChild(coin.SoCone()) | ||
# Create a viewer to visualize our scene. | ||
viewer = soqt.SoQtExaminerViewer(myWindow) | ||
# Put our scene into viewer, change the title. | ||
viewer.setSceneGraph(scene) | ||
viewer.setTitle("Examiner Viewer") | ||
viewer.show() | ||
soqt.SoQt.show(myWindow) | ||
soqt.SoQt.mainLoop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import sys | ||
from pivy import coin | ||
from pivy.gui import soqt | ||
# import shiboken if you want to use the widget within qt | ||
|
||
myWindow = soqt.SoQt.init(sys.argv[0]) | ||
print(myWindow) | ||
scene = coin.SoSeparator() | ||
cam = coin.SoPerspectiveCamera() | ||
cam.position = (0, 0, 4) | ||
light = coin.SoLightModel() | ||
light.model = coin.SoLightModel.BASE_COLOR | ||
scene += light, cam, coin.SoCone() | ||
viewer = soqt.SoQtRenderArea(myWindow) | ||
viewer.setSceneGraph(scene) | ||
viewer.setTitle("Examiner Viewer") | ||
viewer.show() | ||
soqt.SoQt.show(myWindow) | ||
soqt.SoQt.mainLoop() |
Oops, something went wrong.