MeVisLab Resolution Independence API
|
SoRenderArea encapsulates the features of SoQtRenderArea in an Inventor Node. More...
#include <SoRenderArea.h>
Public Member Functions | |
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 | setupViewer () |
sets all values from fields 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... | |
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) More... | |
bool | getBufferSize (int &w, int &h) |
returns current size of image (returns FALSE if there is no viewer) More... | |
virtual SbBool | handleEvent (QEvent *anyevent) |
called by handleEventCB for each event in viewer More... | |
virtual SbBool | shouldChangeCursor () |
void | syncFromViewerNode (SoViewerNode *node) override |
sync from given src viewer node More... | |
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 More... | |
void | setStatus (const char *str) |
set the status in status field and also with progress CB More... | |
Public Member Functions inherited from SoViewerNode | |
SoViewerNode () | |
virtual void * | getCurrentViewer () |
returns the currently viewer (or NULL, if none was created) More... | |
void | setKeyPressedCB (InvKeyPressedCB *cb, void *data) |
set a keypressed callback More... | |
bool | keyPressedNotify (void *message) |
run keypressed cb More... | |
void | setHandleEventCB (InvHandleEventCB *cb, void *data) |
set a handle event callback More... | |
bool | handleEventNotify (void *message) |
run handle event cb More... | |
void | setGenerateMovieCB (InvGenerateMovieCB *cb, void *data) |
set movie generation callback More... | |
void | generateMovie (const char *name, const char *extension, int count, float framerate, const char *targetFile=nullptr) |
run move generation More... | |
Static Public Member Functions | |
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 Public Member Functions inherited from SoViewerNode | |
static void | initClass () |
Public Attributes | |
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 | |
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 *) |
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: More... | |
Protected Attributes inherited from SoViewerNode | |
void * | _currentViewer |
pointer to the current viewer (void, because the concrete type is unkown) 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... | |
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 SoFullViewer, and SoExaminerViewer.
|
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 SoFullViewer, and SoExaminerViewer.
|
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.