SoXtMPExaminerViewer Class Reference

Viewer component which uses a virtual trackball to view the data. More...

#include <Inventor/MP/Xt/viewers/SoXtMPExaminerViewer.h>

Inheritance diagram for SoXtMPExaminerViewer:
SoXtMPFullViewer SoXtMPViewer SoXtMPRenderArea SoXtMPGLWidget SoStereoViewer SoXtComponent

List of all members.

Public Member Functions

 SoXtMPExaminerViewer (SoWidget parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE, SoXtMPFullViewer::BuildFlag flag=BUILD_ALL, SoXtMPViewer::Type type=BROWSER)
 ~SoXtMPExaminerViewer ()
void setFeedbackVisibility (SbBool onOrOff)
SbBool isFeedbackVisible () const
void setFeedbackSize (int newSize)
int getFeedbackSize () const
void setAnimationEnabled (SbBool onOrOff)
SbBool isAnimationEnabled ()
void stopAnimating ()
SbBool isAnimating ()
virtual void viewAll ()
virtual void resetToHomePosition ()
virtual void setCamera (SoCamera *cam)
virtual void setViewing (SbBool onOrOff)
virtual void setCursorEnabled (SbBool onOrOff)
void setCursor (SoXtCursor *cursor)
SoXtCursornewCursor (void)

Detailed Description

Viewer component which uses a virtual trackball to view the data.

The Examiner viewer component allows you to rotate the view around a point of interest using a virtual trackball. The viewer uses the camera focalDistance field to figure out the point of rotation, which is usually set to be at the center of the scene. In addition to allowing you to rotate the camera around the point of interest, this viewer also allows you to translate the camera in the viewer plane, as well as dolly (move forward and backward) to get closer to or further away from the point of interest. The viewer also supports seek to quickly move the camera to a desired object or point.

NOTE: This class does not exist in Open Inventor 10.0 and later.

RESOURCES

USAGE

SEE ALSO

SoXtMPFullViewer, SoXtMPViewer, SoXtComponent, SoXtMPRenderArea, SoXtMPWalkViewer, SoXtMPFlyViewer, SoXtMPPlaneViewer


Constructor & Destructor Documentation

SoXtMPExaminerViewer::SoXtMPExaminerViewer ( SoWidget  parent = NULL,
const char *  name = NULL,
SbBool  buildInsideParent = TRUE,
SoXtMPFullViewer::BuildFlag  flag = BUILD_ALL,
SoXtMPViewer::Type  type = BROWSER 
)

Constructor which specifies the viewer type.

Please refer to the SoXtMPViewer reference page for a description of the viewer types.

SoXtMPExaminerViewer::~SoXtMPExaminerViewer (  ) 

Destructor.


Member Function Documentation

int SoXtMPExaminerViewer::getFeedbackSize (  )  const [inline]

Returns the point of rotation feedback size in pixels.

SbBool SoXtMPExaminerViewer::isAnimating (  )  [inline]

Queries if the viewer is currently animating.

SbBool SoXtMPExaminerViewer::isAnimationEnabled (  )  [inline]

Returns whether spin animation is enabled.

SbBool SoXtMPExaminerViewer::isFeedbackVisible (  )  const [inline]

Returns the rotation feedback flag.

SoXtCursor* SoXtMPExaminerViewer::newCursor ( void   ) 

Returns a pointer to a newly created SoXtCursor instance, which can then be customized with a pixmap, colors, etc.

virtual void SoXtMPExaminerViewer::resetToHomePosition (  )  [virtual]

Restores the camera values.

Reimplemented from SoXtMPViewer.

void SoXtMPExaminerViewer::setAnimationEnabled ( SbBool  onOrOff  ) 

Enables/disables the spinning animation feature of the viewer (enabled by default).

virtual void SoXtMPExaminerViewer::setCamera ( SoCamera cam  )  [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.

Reimplemented from SoXtMPFullViewer.

void SoXtMPExaminerViewer::setCursor ( SoXtCursor cursor  ) 

Sets the specified cursor active inside all MultiPipe windows.

If cursor is NULL, the default arrow cursor is used.

virtual void SoXtMPExaminerViewer::setCursorEnabled ( SbBool  onOrOff  )  [virtual]

Sets whether the viewer is allowed to change the cursor over the renderArea window.

When disabled, the cursor is undefined by the viewer and will not change as the mode of the viewer changes. When re-enabled, the viewer will reset it to the appropriate icon.

Disabling the cursor enables the application to set the cursor directly on the viewer window or on any parent widget of the viewer. This can be used when setting a busy cursor on the application shell.

Reimplemented from SoXtMPViewer.

void SoXtMPExaminerViewer::setFeedbackSize ( int  newSize  ) 

Sets the point of rotation feedback size in pixels (default 20 pix).

void SoXtMPExaminerViewer::setFeedbackVisibility ( SbBool  onOrOff  ) 

Shows/hides the point of rotation feedback, which only appears while in viewing mode (default is off).

virtual void SoXtMPExaminerViewer::setViewing ( SbBool  onOrOff  )  [virtual]

Sets whether the viewer is turned on or off.

When turned on, events are consumed by the viewer. When viewing is off, events are processed by the viewer's render area. This means events will be sent down to the scene graph for processing (i.e. picking can occur). Note that if the application has registered an event callback, it will be invoked on every message, whether viewing is turned on or not. However, the return value of this callback (which specifies whether the callback handled the event or not) is ignored when viewing is on. That is, the viewer will process the event even if the callback already did. This is to ensure that the viewing paradigm is not broken (default viewing is on).

Reimplemented from SoXtMPFullViewer.

void SoXtMPExaminerViewer::stopAnimating (  ) 

Stops animation, if it is occurring.

virtual void SoXtMPExaminerViewer::viewAll (  )  [virtual]

Changes the camera position to view the entire scene (the camera zoom or orientation isn't changed).

Reimplemented from SoXtMPViewer.


The documentation for this class was generated from the following file:

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/