#include <SoQtViewer.h>
Inheritance diagram for SoQtViewer:
Public Member Functions | |
SoQtViewer (QWidget *parent=0) | |
virtual | ~SoQtViewer () |
virtual void | setCamera (SoCamera *camera) |
SoCamera * | getCamera () |
Gets the edited camera. | |
virtual void | setSceneGraph (SoNode *a_new_scene) |
Sets the scene graph to be rendered in this component's window. | |
virtual void | setCameraType (SoType type) |
virtual SoNode * | getSceneGraph () |
Gets the scene graph to be rendered in this component's window. | |
virtual void | viewAll () |
Changes the camera position to view the entire scene (the camera zoom or orientation isn't changed). | |
virtual void | setViewing (bool state) |
bool | isViewing () const |
SbVec3f | projectPoint (const SbVec2f &pt) const |
void | rotateCamera (const SbRotation &rot) |
void | adjustCameraClippingPlanes () |
Protected Member Functions | |
virtual void | soPaintEvent () |
virtual void | soKeyPressEvent (SoKeyboardEvent *e) |
virtual void | soMousePressEvent (SoMouseButtonEvent *e) |
virtual void | soMouseMoveEvent (SoLocation2Event *e) |
virtual void | soMouseReleaseEvent (SoMouseButtonEvent *e) |
virtual void | soWheelEvent (SoWheelEvent *e) |
SoQtViewer::SoQtViewer | ( | QWidget * | parent = 0 |
) |
virtual SoQtViewer::~SoQtViewer | ( | ) | [virtual] |
virtual void SoQtViewer::setCamera | ( | SoCamera * | camera | ) | [virtual] |
Sets the edited camera. Setting the camera is only needed if the first camera found in the scene when setting the scene graph isn't the one the user really wants to edit.
SoCamera* SoQtViewer::getCamera | ( | ) |
Gets the edited camera.
virtual void SoQtViewer::setSceneGraph | ( | SoNode * | a_new_scene | ) | [virtual] |
virtual void SoQtViewer::setCameraType | ( | SoType | type | ) | [virtual] |
Sets the camera type that will be created by the viewer if no cameras are found in the scene graph (see SoPerspectiveCamera and SoOrthographicCamera). By default an SoPerspectiveCamera will be created if no cameras are found.
virtual SoNode* SoQtViewer::getSceneGraph | ( | ) | [virtual] |
virtual void SoQtViewer::viewAll | ( | ) | [virtual] |
Changes the camera position to view the entire scene (the camera zoom or orientation isn't changed).
virtual void SoQtViewer::setViewing | ( | bool | state | ) | [virtual] |
Set view mode. If the view mode is on, user events will be caught and used to influence the camera position / orientation. If view mode is off, all events in the viewer canvas (like for instance keypresses or mouseclicks and -movements) will be passed along to the scene graph. Default is to have the view mode active.
bool SoQtViewer::isViewing | ( | ) | const [inline] |
Return state of view mode. true means that the mode of the viewer is set such that user interaction with the mouse is used to modify the position and orientation of the camera.
SbVec3f SoQtViewer::projectPoint | ( | const SbVec2f & | pt | ) | const |
void SoQtViewer::rotateCamera | ( | const SbRotation & | rot | ) |
void SoQtViewer::adjustCameraClippingPlanes | ( | ) |
virtual void SoQtViewer::soPaintEvent | ( | ) | [protected, virtual] |
Reimplemented from SoRenderArea.
virtual void SoQtViewer::soKeyPressEvent | ( | SoKeyboardEvent * | e | ) | [protected, virtual] |
Reimplemented from SoRenderArea.
virtual void SoQtViewer::soMousePressEvent | ( | SoMouseButtonEvent * | e | ) | [protected, virtual] |
Reimplemented from SoRenderArea.
virtual void SoQtViewer::soMouseMoveEvent | ( | SoLocation2Event * | e | ) | [protected, virtual] |
Reimplemented from SoRenderArea.
virtual void SoQtViewer::soMouseReleaseEvent | ( | SoMouseButtonEvent * | e | ) | [protected, virtual] |
Reimplemented from SoRenderArea.
virtual void SoQtViewer::soWheelEvent | ( | SoWheelEvent * | e | ) | [protected, virtual] |
Reimplemented from SoRenderArea.