MeVisLab Resolution Independence API
|
Encapsulates the So*ExaminerViewer of Open Inventor into an Inventor Node. More...
#include <SoExaminerViewer.h>
Public Member Functions | |
SoExaminerViewer () | |
void * | createViewer (void *hwnd, SoNode *scene) override |
create a viewer in the given window void pointer is used to be compatible to any windows system More... | |
void | setupViewer () override |
sets all values from fields More... | |
void | storeViewerState () override |
called automatically by timer sensor if storeCurrentState is on More... | |
void | rotationChanged (SoSensor *sensor) |
called when the autorotate time is triggered More... | |
void | reorientCamera (const SbRotation &rot) |
reorient the camera, rotating rot around the focus point of the viewer More... | |
void | getSyncFieldNames (SbStringList &list) override |
collect the fields that should be synced on cloned viewers if you derive this method, make sure to call the super class implementation too More... | |
![]() | |
SoFullViewer () | |
void * | createViewer (void *hwnd, SoNode *scene) override |
create a viewer in the given window void pointer is used to be compatible to any windows system More... | |
void | setupViewer () override |
sets all values from fields More... | |
void | deleteViewer (void *viewer) override |
delete the viewer in the given window More... | |
void | startTimer () |
void | stopTimer () |
virtual void | timerChanged () |
SbBool | shouldChangeCursor () override |
tells the renderarea about our state More... | |
SbBool | handleEvent (QEvent *anyevent) override |
handle event before viewer, returns true if event was handled More... | |
void | setStoredCamera () |
set stored camera type and value to viewer More... | |
void | updateCamera () |
update camera from viewer More... | |
void | cameraFieldsChanged (SoFieldSensor *s) |
triggered by above callback More... | |
void | enableKeyCommandsChanged (SoField *) override |
overridden to disable cursor keys More... | |
void | getSyncFieldNames (SbStringList &list) override |
collect the fields that should be synced on cloned viewers if you derive this method, make sure to call the super class implementation too More... | |
![]() | |
SoRenderArea () | |
constructor More... | |
void * | createViewer (void *hwnd, SoNode *scene) override |
create a viewer in the given window void pointer is used to be compatible to any windows system More... | |
void | deleteViewer (void *viewer) override |
delete the previously created viewer More... | |
virtual void | setScene (SoNode *scene) |
This method gets called by createViewer. More... | |
virtual void | fieldChanged (SoSensor *sensor) |
priority 0 sensor call for all fields: More... | |
virtual void | recordChanged (SoSensor *sensor) |
timer sensor call: More... | |
virtual void | startRecordingChanged (SoField *) |
start recording: More... | |
virtual void | stopRecordingChanged (SoField *) |
stop recording: More... | |
virtual void | snapshotChanged (SoField *) |
doSnapshot changed More... | |
virtual void | updateMLOutputChanged (SoField *) |
updateMLOutput changed More... | |
virtual void | createAviChanged (SoField *) |
createAvi: More... | |
MLuint8 * | readBuffer (int &w, int &h) |
read the gl back buffer (ownership is passed to caller, memory needs to be cleared by delete) More... | |
bool | getBufferSize (int &w, int &h) |
returns current size of image (returns FALSE if there is no viewer) More... | |
void | syncFromViewerNode (SoViewerNode *node) override |
sync from given src viewer node More... | |
void | setStatus (const char *str) |
set the status in status field and also with progress CB More... | |
![]() | |
SoViewerNode () | |
virtual void * | getCurrentViewer () |
Returns the currently viewer (or NULL if none was created). More... | |
void | setKeyPressedCB (InvKeyPressedCB *cb, void *data) |
Sets a keypressed callback. More... | |
bool | keyPressedNotify (void *message) |
Runs callback for keypressed event. More... | |
void | setHandleEventCB (InvHandleEventCB *cb, void *data) |
Sets a handle event callback. More... | |
bool | handleEventNotify (void *message) |
Runs handle event callback. More... | |
void | setGenerateMovieCB (InvGenerateMovieCB *cb, void *data) |
Sets movie generation callback. More... | |
void | generateMovie (const char *name, const char *extension, int count, float framerate, const char *targetFile=nullptr) |
Runs move generation callback. More... | |
Static Public Member Functions | |
static void | initClass () |
inventor runtime More... | |
static void | rotationChangedCB (void *data, SoSensor *sensor) |
![]() | |
static void | initClass () |
static void | timerSensorCB (void *data, SoSensor *sensor) |
static void | cameraFieldsChangedCB (void *data, SoSensor *s) |
static callback used by various fields More... | |
![]() | |
static void | initClass () |
inventor runtime type system More... | |
static void | fieldChangedCB (void *userData, SoSensor *s) |
static void | recordChangedCB (void *userData, SoSensor *s) |
static SbBool | handleEventCB (void *userData, QEvent *anyevent) |
needed for key focus grabbing More... | |
![]() | |
static void | initClass () |
Public Attributes | |
SoSFBool | animationEnabled |
Fields. More... | |
SoSFBool | feedback |
SoSFInt32 | feedbackSize |
SoSFTrigger | stopAnimating |
SoSFString | mouseInteraction |
SoSFTrigger | startRotation |
Autorotation Fields around given axis. More... | |
SoSFTrigger | stopRotation |
SoSFVec3f | rotationAxis |
SoSFFloat | rotationAngle |
SoSFInt32 | rotationSteps |
SoSFInt32 | rotationCurrentStep |
SoSFTrigger | rotationStopped |
SoSFBool | recordRotation |
SoSFBool | wheelZoomEnabled |
enable zoom/rotation by mouse wheel More... | |
SoSFBool | wheelRotationEnabled |
![]() | |
SoSFEnum | drawStyle |
Settings fields. More... | |
SoSFEnum | interactiveDrawStyle |
SoSFBool | headlight |
SoSFBool | decoration |
SoSFBool | popupMenuEnabled |
SoSFBool | viewing |
SoSFBool | cursor |
SoSFBool | autoClipping |
SoSFBool | stereoViewing |
stereo viewing settings More... | |
SoSFFloat | stereoOffset |
SoSFEnum | initialCameraOrientation |
Viewing. More... | |
SoSFEnum | applyCameraOrientation |
SoSFBool | autoApplyUserSettingOrientation |
SoSFTrigger | viewAll |
SoSFBool | viewAllFlag |
SoSFTrigger | saveHomePosition |
SoSFTrigger | resetToHomePosition |
SoSFTrigger | rescanScene |
General camera fields. More... | |
SoSFBool | storeCurrentState |
SoSFBool | automaticViewAll |
SoSFBool | saveCamera |
SoSFBool | isCameraStored |
SoSFBool | perspective |
is perspective camera? More... | |
SoSFFloat | height |
heightAngle/height depending on perspective/orthographic More... | |
SoSFEnum | cameraType |
SoSFVec3f | position |
SoSFRotation | orientation |
SoSFFloat | nearDistance |
SoSFFloat | farDistance |
SoSFFloat | focalDistance |
SoSFRotation | userSettingOrientation |
SoSFTrigger | storeAsUserSetting |
SoSFBool | forceRedrawOnInteraction |
SoSFEnum | button1events |
Event target in "viewing" mode. More... | |
SoSFEnum | button2events |
SoSFEnum | button3events |
SoSFEnum | keyEvents |
![]() | |
SoSFString | inputDevicesList |
space separated list of input device type names More... | |
SoSFColor | background |
Appearance Fields. More... | |
SoSFEnum | transparency |
transparency type More... | |
SoSFBool | antialiasing |
turn antialiasing on/off More... | |
SoSFInt32 | antialiasingNumPasses |
number of antialiasing passes More... | |
SoSFBool | useSampleBuffers |
turn sample buffers on/off More... | |
SoSFInt32 | numSamples |
number of samples (0 = maximum number of samplers) More... | |
SoSFBool | border |
show a 3D border More... | |
SoSFBool | grabKeyFocus |
grab the key focus when the mouse moves onto the viewer window More... | |
SoSFBool | enableKeyCommands |
enable the keyboard commands for snapshots and movie generation More... | |
SoSFTrigger | doSnapshot |
Screenshot feature Fields. More... | |
SoSFString | outputSnapshotFile |
filename of the screenshot (without file extension) More... | |
SoSFString | outputSnapshotFileWritten |
filename that was written on doScreenshot More... | |
SoSFBool | autoIncreaseFile |
set if filename should be autoincreased More... | |
SoSFInt32 | snapCount |
count of screenshots taken used for autoIncreaseFile More... | |
SoSFBool | showSnapshotWithShell |
start external program when screenshot was saved (Windows only) More... | |
SoSFMLConnector | outputImage |
ML Output of Viewer screenshot. More... | |
SoSFEnum | snapshotFormat |
format of the output, may be RGB or GREY More... | |
SoSFTrigger | updateMLOutput |
trigger the update of the ML output More... | |
SoSFTrigger | startRecording |
Recorder feature Fields. More... | |
SoSFTrigger | cancelRecording |
cancel recording More... | |
SoSFTrigger | continueRecording |
continue recording More... | |
SoSFTrigger | stopRecording |
stop recording More... | |
SoSFTrigger | singleFrame |
record a single frame, recording is started if it was not running More... | |
SoSFTrigger | createAvi |
create an AVI of the movie (by running a createMovie callback) More... | |
SoSFBool | autoRedrawWhenRecording |
advanced setting if autoredraw of viewer is enabled or if the rendering is done explicitly when saving each frame More... | |
SoSFFloat | frameRate |
frame rate which the recorder uses to grab the screen More... | |
SoSFFloat | frameRateAvi |
frame rate that is used in the generated AVI More... | |
SoSFString | status |
current status of the recorder More... | |
SoSFString | outputAviFile |
filename (including path) of the avi that will be written. More... | |
SoSFString | miSelectedPointingAction |
Managed Interaction support. More... | |
SoSFString | miSelectedPointingActionProvider |
SoSFBool | miSelectedPointingActionActive |
Protected Member Functions | |
~SoExaminerViewer () override | |
void | stopAnimatingChanged (SoField *) |
further field callbacks More... | |
void | feedbackChanged (SoField *) |
void | feedbackSizeChanged (SoField *) |
void | animationEnabledChanged (SoField *) |
void | mouseInteractionChanged (SoField *) |
void | startRotationChanged (SoField *) |
void | stopRotationChanged (SoField *) |
void | wheelZoomEnabledChanged (SoField *) |
void | wheelRotationEnabledChanged (SoField *) |
void | evaluateInteractionString () |
![]() | |
~SoFullViewer () override | |
virtual void | viewAllChanged (SoField *) |
field change callbacks: More... | |
void | saveHomePositionChanged (SoField *) |
void | rescanSceneChanged (SoField *) |
void | resetToHomePositionChanged (SoField *) |
void | cursorChanged (SoField *) |
void | headlightChanged (SoField *) |
void | viewingChanged (SoField *) |
void | stereoViewingChanged (SoField *) |
void | stereoOffsetChanged (SoField *) |
void | popupMenuEnabledChanged (SoField *) |
void | storeAsUserSettingChanged (SoField *) |
void | drawStyleChanged (SoField *) |
void | interactiveDrawStyleChanged (SoField *) |
void | autoClippingChanged (SoField *) |
void | decorationChanged (SoField *) |
void | cameraTypeChanged (SoField *) |
void | applyCameraOrientationChanged (SoField *) |
void | userSettingOrientationChanged (SoField *) |
void | saveCameraChanged (SoField *) |
void | setCameraOrientation (int mode) |
set the camera orientation depend on mode More... | |
bool | sendEventToScene (int mode, const SoEvent *e) |
returns if the event should still be send to viewer, given the mode More... | |
![]() | |
void | setRecordingFlag (bool flag) |
sets the recording flag and starts/stops the recording timer More... | |
~SoRenderArea () override | |
void | borderChanged (SoField *) |
further field change callbacks: More... | |
void | antialiasingChanged (SoField *) |
void | sampleBufferChanged (SoField *) |
void | backgroundChanged (SoField *) |
void | transparencyChanged (SoField *) |
void | singleFrameChanged (SoField *) |
void | continueRecordingChanged (SoField *) |
void | cancelRecordingChanged (SoField *) |
void | frameRateChanged (SoField *) |
void | inputDevicesListChanged (SoField *) |
![]() | |
~SoViewerNode () override | |
Protected Attributes | |
bool | _rotating |
flag if currently autorotating More... | |
SoTimerSensor * | _rotSensor |
timer sensor for autorotation More... | |
![]() | |
SoTimerSensor * | _timer |
timer that is used to notice API changes in the viewer and apply these changes to this node More... | |
SoRef< SoCamera > | _camera |
current camera More... | |
bool | _restoreCameraNextTime |
internal flag if camera needs to be restored More... | |
SoNode * | _scene |
pointer to the scene that is rendered More... | |
SbTime | _lastEventTime |
int | _mouseDown |
SoFieldSensor * | _camOrientationSensor |
Sensors. More... | |
SoFieldSensor * | _viewerOrientationSensor |
SoFieldSensor * | _camPositionSensor |
SoFieldSensor * | _viewerPositionSensor |
SoFieldSensor * | _camNearSensor |
SoFieldSensor * | _camFarSensor |
SoFieldSensor * | _camFocalSensor |
SoFieldSensor * | _camHeightSensor |
SoFieldSensor * | _viewerNearSensor |
SoFieldSensor * | _viewerFarSensor |
SoFieldSensor * | _viewerFocalSensor |
SoFieldSensor * | _viewerHeightSensor |
![]() | |
SoNodeSensor * | _sensor |
FrameGrabber | _writer |
ml::MLSnapshot * | _snapshot |
SoTimerSensor * | _recordSensor |
bool | _isRecording |
bool | _sceneChanged |
FieldSync * | _fieldSync |
SoSceneSetupHelper * | _sceneSetupHelper |
QCursor | _oldCursor |
remember old cursor shape: More... | |
![]() | |
void * | _currentViewer |
Pointer to the current viewer (void, as the concrete type is unknown). More... | |
SoViewerProxy * | _viewerProxy |
Pointer to the proxy for this viewer. More... | |
InvGenerateMovieCB * | _movieCB |
Callback for movie generation. More... | |
void * | _movieCBData |
Callback data for movie generation. More... | |
InvKeyPressedCB * | _keyPressedCB |
Callback for key pressed. More... | |
void * | _keyPressedCBData |
Callback data for key pressed. More... | |
InvHandleEventCB * | _handleEventCB |
Callback for handleEvent. More... | |
void * | _handleEventCBData |
Callback data for handleEvent. More... | |
Additional Inherited Members | |
![]() | |
enum | CameraOrientation { CAMERA_KEEP_AS_IS , CAMERA_AXIAL , CAMERA_SAGITTAL , CAMERA_CORONAL , CAMERA_HEAD_PROFILE , CAMERA_USER_SETTING } |
camera positions More... | |
enum | CameraType { CAMERA_PERSPECTIVE , CAMERA_ORTHOGRAPHIC } |
camera type More... | |
enum | EventDestinationType { TO_SCENE , TO_VIEWER , TO_SCENE_AND_VIEWER , TO_SCENE_OR_VIEWER } |
destination of events when the viewer is in "viewing" mode More... | |
Encapsulates the So*ExaminerViewer of Open Inventor into an Inventor Node.
For details on the fields, see the html documentation of the module.
Definition at line 25 of file SoExaminerViewer.h.
SoExaminerViewer::SoExaminerViewer | ( | ) |
|
overrideprotected |
|
protected |
|
overridevirtual |
create a viewer in the given window void pointer is used to be compatible to any windows system
Reimplemented from SoViewerNode.
|
protected |
|
protected |
|
protected |
|
overridevirtual |
collect the fields that should be synced on cloned viewers if you derive this method, make sure to call the super class implementation too
Reimplemented from SoRenderArea.
|
static |
inventor runtime
|
protected |
void SoExaminerViewer::reorientCamera | ( | const SbRotation & | rot | ) |
reorient the camera, rotating rot around the focus point of the viewer
void SoExaminerViewer::rotationChanged | ( | SoSensor * | sensor | ) |
called when the autorotate time is triggered
|
static |
|
overridevirtual |
sets all values from fields
Reimplemented from SoRenderArea.
|
protected |
|
protected |
further field callbacks
|
protected |
|
overridevirtual |
called automatically by timer sensor if storeCurrentState is on
Reimplemented from SoFullViewer.
|
protected |
|
protected |
|
protected |
flag if currently autorotating
Definition at line 102 of file SoExaminerViewer.h.
|
protected |
timer sensor for autorotation
Definition at line 104 of file SoExaminerViewer.h.
SoSFBool SoExaminerViewer::animationEnabled |
Fields.
Definition at line 32 of file SoExaminerViewer.h.
SoSFBool SoExaminerViewer::feedback |
Definition at line 33 of file SoExaminerViewer.h.
SoSFInt32 SoExaminerViewer::feedbackSize |
Definition at line 34 of file SoExaminerViewer.h.
SoSFString SoExaminerViewer::mouseInteraction |
Definition at line 36 of file SoExaminerViewer.h.
SoSFBool SoExaminerViewer::recordRotation |
Definition at line 49 of file SoExaminerViewer.h.
SoSFFloat SoExaminerViewer::rotationAngle |
Definition at line 45 of file SoExaminerViewer.h.
SoSFVec3f SoExaminerViewer::rotationAxis |
Definition at line 44 of file SoExaminerViewer.h.
SoSFInt32 SoExaminerViewer::rotationCurrentStep |
Definition at line 47 of file SoExaminerViewer.h.
SoSFInt32 SoExaminerViewer::rotationSteps |
Definition at line 46 of file SoExaminerViewer.h.
SoSFTrigger SoExaminerViewer::rotationStopped |
Definition at line 48 of file SoExaminerViewer.h.
SoSFTrigger SoExaminerViewer::startRotation |
Autorotation Fields around given axis.
Definition at line 42 of file SoExaminerViewer.h.
SoSFTrigger SoExaminerViewer::stopAnimating |
Definition at line 35 of file SoExaminerViewer.h.
SoSFTrigger SoExaminerViewer::stopRotation |
Definition at line 43 of file SoExaminerViewer.h.
SoSFBool SoExaminerViewer::wheelRotationEnabled |
Definition at line 55 of file SoExaminerViewer.h.
SoSFBool SoExaminerViewer::wheelZoomEnabled |
enable zoom/rotation by mouse wheel
Definition at line 54 of file SoExaminerViewer.h.