13#ifndef SO_FULL_VIEWER_H
14#define SO_FULL_VIEWER_H
60 } EventDestinationType;
#define SO_VIEWERS_CLASS_SPEC
SoFullViewer encapsulates SoQtFullViewer from Open Inventor in an Inventor Node.
SoFieldSensor * _camFarSensor
SoSFFloat height
heightAngle/height depending on perspective/orthographic
SoFieldSensor * _camPositionSensor
void drawStyleChanged(SoField *)
void stereoOffsetChanged(SoField *)
void setCameraOrientation(int mode)
set the camera orientation depend on mode
SoSFEnum drawStyle
Settings fields.
void setupViewer() override
sets all values from fields
SoSFTrigger resetToHomePosition
void cameraTypeChanged(SoField *)
SoSFTrigger rescanScene
General camera fields.
void viewingChanged(SoField *)
SoSFBool autoApplyUserSettingOrientation
void headlightChanged(SoField *)
void updateCamera()
update camera from viewer
virtual void viewAllChanged(SoField *)
field change callbacks:
void applyCameraOrientationChanged(SoField *)
void resetToHomePositionChanged(SoField *)
SoFieldSensor * _camHeightSensor
SoFieldSensor * _viewerFarSensor
void interactiveDrawStyleChanged(SoField *)
SoRef< SoCamera > _camera
current camera
void saveCameraChanged(SoField *)
void cameraFieldsChanged(SoFieldSensor *s)
triggered by above callback
SoNode * _scene
pointer to the scene that is rendered
void getSyncFieldNames(SbStringList &list) override
collect the fields that should be synced on cloned viewers if you derive this method,...
SoSFRotation userSettingOrientation
void deleteViewer(void *viewer) override
delete the viewer in the given window
SoFieldSensor * _viewerNearSensor
void saveHomePositionChanged(SoField *)
static void cameraFieldsChangedCB(void *data, SoSensor *s)
static callback used by various fields
void decorationChanged(SoField *)
void userSettingOrientationChanged(SoField *)
void popupMenuEnabledChanged(SoField *)
virtual void timerChanged()
SoSFBool storeCurrentState
SoSFEnum applyCameraOrientation
SoSFEnum interactiveDrawStyle
void enableKeyCommandsChanged(SoField *) override
overridden to disable cursor keys
SoFieldSensor * _camNearSensor
SoSFBool forceRedrawOnInteraction
void cursorChanged(SoField *)
SoSFBool popupMenuEnabled
void stereoViewingChanged(SoField *)
SoSFBool automaticViewAll
void autoClippingChanged(SoField *)
bool sendEventToScene(int mode, const SoEvent *e)
returns if the event should still be send to viewer, given the mode
SoTimerSensor * _timer
timer that is used to notice API changes in the viewer and apply these changes to this node
bool _restoreCameraNextTime
internal flag if camera needs to be restored
SoSFBool stereoViewing
stereo viewing settings
SoSFEnum initialCameraOrientation
Viewing.
SoSFTrigger saveHomePosition
SoFieldSensor * _viewerPositionSensor
void setStoredCamera()
set stored camera type and value to viewer
SoSFTrigger storeAsUserSetting
SoFieldSensor * _viewerHeightSensor
SbBool handleEvent(QEvent *anyevent) override
handle event before viewer, returns true if event was handled
void rescanSceneChanged(SoField *)
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
SoFieldSensor * _camOrientationSensor
Sensors.
virtual void storeViewerState()
called automatically by timer sensor if storeCurrentState is on
static void timerSensorCB(void *data, SoSensor *sensor)
SbBool shouldChangeCursor() override
tells the renderarea about our state
SoSFEnum button1events
Event target in "viewing" mode.
SoFieldSensor * _viewerOrientationSensor
void storeAsUserSettingChanged(SoField *)
SoFieldSensor * _camFocalSensor
SoSFBool perspective
is perspective camera?
SoFieldSensor * _viewerFocalSensor
SoRenderArea encapsulates the features of SoQtRenderArea in an Inventor Node.