MeVisLab Resolution Independence API
|
SoRenderArea encapsulates the features of SoQtRenderArea in an Inventor Node. More...
#include <SoRenderArea.h>
Public Member Functions | |
SoRenderArea () | |
constructor | |
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 | |
void | deleteViewer (void *viewer) override |
delete the previously created viewer | |
virtual void | setupViewer () |
sets all values from fields | |
virtual void | setScene (SoNode *scene) |
This method gets called by createViewer. | |
virtual void | fieldChanged (SoSensor *sensor) |
priority 0 sensor call for all fields: | |
virtual void | recordChanged (SoSensor *sensor) |
timer sensor call: | |
virtual void | startRecordingChanged (SoField *) |
start recording: | |
virtual void | stopRecordingChanged (SoField *) |
stop recording: | |
virtual void | snapshotChanged (SoField *) |
doSnapshot changed | |
virtual void | updateMLOutputChanged (SoField *) |
updateMLOutput changed | |
virtual void | createAviChanged (SoField *) |
createAvi: | |
virtual void | enableKeyCommandsChanged (SoField *) |
MLuint8 * | readBuffer (int &w, int &h) |
read the gl back buffer (ownership is passed to caller, memory needs to be cleared by delete) | |
bool | getBufferSize (int &w, int &h) |
returns current size of image (returns FALSE if there is no viewer) | |
virtual SbBool | handleEvent (QEvent *anyevent) |
called by handleEventCB for each event in viewer | |
virtual SbBool | shouldChangeCursor () |
void | syncFromViewerNode (SoViewerNode *node) override |
sync from given src viewer node | |
virtual void | getSyncFieldNames (SbStringList &list) |
collect the fields that should be synced on cloned viewers if you derive this method, make sure to call the super class implementation too | |
void | setStatus (const char *str) |
set the status in status field and also with progress CB | |
Public Member Functions inherited from SoViewerNode | |
SoViewerNode () | |
virtual void * | getCurrentViewer () |
returns the currently viewer (or NULL, if none was created) | |
void | setKeyPressedCB (InvKeyPressedCB *cb, void *data) |
set a keypressed callback | |
bool | keyPressedNotify (void *message) |
run keypressed cb | |
void | setHandleEventCB (InvHandleEventCB *cb, void *data) |
set a handle event callback | |
bool | handleEventNotify (void *message) |
run handle event cb | |
void | setGenerateMovieCB (InvGenerateMovieCB *cb, void *data) |
set movie generation callback | |
void | generateMovie (const char *name, const char *extension, int count, float framerate, const char *targetFile=nullptr) |
run move generation | |
Static Public Member Functions | |
static void | initClass () |
inventor runtime type system | |
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 | |
Static Public Member Functions inherited from SoViewerNode | |
static void | initClass () |
Public Attributes | |
SoSFString | inputDevicesList |
space separated list of input device type names | |
SoSFColor | background |
Appearance Fields. | |
SoSFEnum | transparency |
transparency type | |
SoSFBool | antialiasing |
turn antialiasing on/off | |
SoSFInt32 | antialiasingNumPasses |
number of antialiasing passes | |
SoSFBool | useSampleBuffers |
turn sample buffers on/off | |
SoSFInt32 | numSamples |
number of samples (0 = maximum number of samplers) | |
SoSFBool | border |
show a 3D border | |
SoSFBool | grabKeyFocus |
grab the key focus when the mouse moves onto the viewer window | |
SoSFBool | enableKeyCommands |
enable the keyboard commands for snapshots and movie generation | |
SoSFTrigger | doSnapshot |
Screenshot feature Fields. | |
SoSFString | outputSnapshotFile |
filename of the screenshot (without file extension) | |
SoSFString | outputSnapshotFileWritten |
filename that was written on doScreenshot | |
SoSFBool | autoIncreaseFile |
set if filename should be autoincreased | |
SoSFInt32 | snapCount |
count of screenshots taken used for autoIncreaseFile | |
SoSFBool | showSnapshotWithShell |
start external program when screenshot was saved (Windows only) | |
SoSFMLConnector | outputImage |
ML Output of Viewer screenshot. | |
SoSFEnum | snapshotFormat |
format of the output, may be RGB or GREY | |
SoSFTrigger | updateMLOutput |
trigger the update of the ML output | |
SoSFTrigger | startRecording |
Recorder feature Fields. | |
SoSFTrigger | cancelRecording |
cancel recording | |
SoSFTrigger | continueRecording |
continue recording | |
SoSFTrigger | stopRecording |
stop recording | |
SoSFTrigger | singleFrame |
record a single frame, recording is started if it was not running | |
SoSFTrigger | createAvi |
create an AVI of the movie (by running a createMovie callback) | |
SoSFBool | autoRedrawWhenRecording |
advanced setting if autoredraw of viewer is enabled or if the rendering is done explicitly when saving each frame | |
SoSFFloat | frameRate |
frame rate which the recorder uses to grab the screen | |
SoSFFloat | frameRateAvi |
frame rate that is used in the generated AVI | |
SoSFString | status |
current status of the recorder | |
SoSFString | outputAviFile |
filename (including path) of the avi that will be written. | |
SoSFString | miSelectedPointingAction |
Managed Interaction support. | |
SoSFString | miSelectedPointingActionProvider |
SoSFBool | miSelectedPointingActionActive |
Protected Member Functions | |
void | setRecordingFlag (bool flag) |
sets the recording flag and starts/stops the recording timer | |
~SoRenderArea () override | |
void | borderChanged (SoField *) |
further field change callbacks: | |
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 *) |
Protected Member Functions inherited from SoViewerNode | |
~SoViewerNode () override | |
Protected Attributes | |
SoNodeSensor * | _sensor |
FrameGrabber | _writer |
ml::MLSnapshot * | _snapshot |
SoTimerSensor * | _recordSensor |
bool | _isRecording |
bool | _sceneChanged |
FieldSync * | _fieldSync |
SoSceneSetupHelper * | _sceneSetupHelper |
QCursor | _oldCursor |
remember old cursor shape: | |
Protected Attributes inherited from SoViewerNode | |
void * | _currentViewer |
pointer to the current viewer (void, because the concrete type is unkown) | |
SoViewerProxy * | _viewerProxy |
pointer to the proxy for this viewer | |
InvGenerateMovieCB * | _movieCB |
callback for movie generation | |
void * | _movieCBData |
callback data for movie generation | |
InvKeyPressedCB * | _keyPressedCB |
callback for key pressed | |
void * | _keyPressedCBData |
callback data for key pressed | |
InvHandleEventCB * | _handleEventCB |
callback for handleEvent | |
void * | _handleEventCBData |
callback data for handleEvent | |
SoRenderArea encapsulates the features of SoQtRenderArea in an Inventor Node.
SoRenderArea is used standalone and as a base class to the more complex viewers SoFullViewer, SoExaminerViewer, ... SoRenderArea implements a Movie Recorder, this is extended in the more complex viewers where there is a notion of a camera. For additional details, see the html documentation of SoRenderArea in MeVisLab.
Definition at line 46 of file SoRenderArea.h.
SoRenderArea::SoRenderArea | ( | ) |
constructor
|
overrideprotected |
|
protected |
|
protected |
|
protected |
further field change callbacks:
|
protected |
|
protected |
|
virtual |
createAvi:
|
overridevirtual |
create a viewer in the given window void pointer is used to be compatible to any windows system
Reimplemented from SoViewerNode.
|
overridevirtual |
delete the previously created viewer
Reimplemented from SoViewerNode.
|
inlinevirtual |
Reimplemented in SoFullViewer.
Definition at line 182 of file SoRenderArea.h.
|
virtual |
priority 0 sensor call for all fields:
|
static |
|
protected |
bool SoRenderArea::getBufferSize | ( | int & | w, |
int & | h ) |
returns current size of image (returns FALSE if there is no viewer)
|
virtual |
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 in SoExaminerViewer, and SoFullViewer.
|
virtual |
called by handleEventCB for each event in viewer
Reimplemented in SoFullViewer.
|
static |
needed for key focus grabbing
|
static |
inventor runtime type system
|
protected |
MLuint8 * SoRenderArea::readBuffer | ( | int & | w, |
int & | h ) |
read the gl back buffer (ownership is passed to caller, memory needs to be cleared by delete)
|
virtual |
timer sensor call:
|
static |
|
protected |
|
protected |
sets the recording flag and starts/stops the recording timer
|
virtual |
This method gets called by createViewer.
void SoRenderArea::setStatus | ( | const char * | str | ) |
set the status in status field and also with progress CB
|
virtual |
sets all values from fields
Reimplemented in SoExaminerViewer, and SoFullViewer.
|
virtual |
Reimplemented in SoFullViewer.
|
protected |
|
virtual |
doSnapshot changed
|
virtual |
start recording:
|
virtual |
stop recording:
|
overridevirtual |
sync from given src viewer node
Reimplemented from SoViewerNode.
|
protected |
|
virtual |
updateMLOutput changed
|
protected |
Definition at line 234 of file SoRenderArea.h.
|
protected |
Definition at line 231 of file SoRenderArea.h.
|
protected |
remember old cursor shape:
Definition at line 239 of file SoRenderArea.h.
|
protected |
Definition at line 230 of file SoRenderArea.h.
|
protected |
Definition at line 232 of file SoRenderArea.h.
|
protected |
Definition at line 236 of file SoRenderArea.h.
|
protected |
Definition at line 226 of file SoRenderArea.h.
|
protected |
Definition at line 229 of file SoRenderArea.h.
|
protected |
Definition at line 228 of file SoRenderArea.h.
SoSFBool SoRenderArea::antialiasing |
turn antialiasing on/off
Definition at line 58 of file SoRenderArea.h.
SoSFInt32 SoRenderArea::antialiasingNumPasses |
number of antialiasing passes
Definition at line 60 of file SoRenderArea.h.
SoSFBool SoRenderArea::autoIncreaseFile |
set if filename should be autoincreased
Definition at line 85 of file SoRenderArea.h.
SoSFBool SoRenderArea::autoRedrawWhenRecording |
advanced setting if autoredraw of viewer is enabled or if the rendering is done explicitly when saving each frame
Definition at line 117 of file SoRenderArea.h.
SoSFColor SoRenderArea::background |
SoSFBool SoRenderArea::border |
show a 3D border
Definition at line 68 of file SoRenderArea.h.
SoSFTrigger SoRenderArea::cancelRecording |
cancel recording
Definition at line 106 of file SoRenderArea.h.
SoSFTrigger SoRenderArea::continueRecording |
continue recording
Definition at line 108 of file SoRenderArea.h.
SoSFTrigger SoRenderArea::createAvi |
create an AVI of the movie (by running a createMovie callback)
Definition at line 114 of file SoRenderArea.h.
SoSFTrigger SoRenderArea::doSnapshot |
SoSFBool SoRenderArea::enableKeyCommands |
enable the keyboard commands for snapshots and movie generation
Definition at line 72 of file SoRenderArea.h.
SoSFFloat SoRenderArea::frameRate |
frame rate which the recorder uses to grab the screen
Definition at line 119 of file SoRenderArea.h.
SoSFFloat SoRenderArea::frameRateAvi |
frame rate that is used in the generated AVI
Definition at line 121 of file SoRenderArea.h.
SoSFBool SoRenderArea::grabKeyFocus |
grab the key focus when the mouse moves onto the viewer window
Definition at line 70 of file SoRenderArea.h.
SoSFString SoRenderArea::inputDevicesList |
space separated list of input device type names
Definition at line 132 of file SoRenderArea.h.
SoSFString SoRenderArea::miSelectedPointingAction |
Managed Interaction support.
Definition at line 136 of file SoRenderArea.h.
SoSFBool SoRenderArea::miSelectedPointingActionActive |
Definition at line 138 of file SoRenderArea.h.
SoSFString SoRenderArea::miSelectedPointingActionProvider |
Definition at line 137 of file SoRenderArea.h.
SoSFInt32 SoRenderArea::numSamples |
number of samples (0 = maximum number of samplers)
Definition at line 65 of file SoRenderArea.h.
SoSFString SoRenderArea::outputAviFile |
filename (including path) of the avi that will be written.
If no file is given, the MeVisLab screenshot gallery will automatically be used
Definition at line 127 of file SoRenderArea.h.
SoSFMLConnector SoRenderArea::outputImage |
ML Output of Viewer screenshot.
Definition at line 93 of file SoRenderArea.h.
SoSFString SoRenderArea::outputSnapshotFile |
filename of the screenshot (without file extension)
Definition at line 81 of file SoRenderArea.h.
SoSFString SoRenderArea::outputSnapshotFileWritten |
filename that was written on doScreenshot
Definition at line 83 of file SoRenderArea.h.
SoSFBool SoRenderArea::showSnapshotWithShell |
start external program when screenshot was saved (Windows only)
Definition at line 89 of file SoRenderArea.h.
SoSFTrigger SoRenderArea::singleFrame |
record a single frame, recording is started if it was not running
Definition at line 112 of file SoRenderArea.h.
SoSFInt32 SoRenderArea::snapCount |
count of screenshots taken used for autoIncreaseFile
Definition at line 87 of file SoRenderArea.h.
SoSFEnum SoRenderArea::snapshotFormat |
format of the output, may be RGB or GREY
Definition at line 95 of file SoRenderArea.h.
SoSFTrigger SoRenderArea::startRecording |
SoSFString SoRenderArea::status |
current status of the recorder
Definition at line 123 of file SoRenderArea.h.
SoSFTrigger SoRenderArea::stopRecording |
stop recording
Definition at line 110 of file SoRenderArea.h.
SoSFEnum SoRenderArea::transparency |
transparency type
Definition at line 56 of file SoRenderArea.h.
SoSFTrigger SoRenderArea::updateMLOutput |
trigger the update of the ML output
Definition at line 97 of file SoRenderArea.h.
SoSFBool SoRenderArea::useSampleBuffers |
turn sample buffers on/off
Definition at line 63 of file SoRenderArea.h.