SoWxViewer Class Reference

#include <SoWxViewer.h>

Inheritance diagram for SoWxViewer:

SoWxRenderArea SoRenderArea List of all members.

Public Member Functions

 SoWxViewer (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxT("SoWxRenderArea"))
virtual ~SoWxViewer ()
virtual void setCamera (SoCamera *camera)
SoCamera * getCamera ()
 Gets the edited camera.
virtual void setSceneGraph (SoNode *a_new_scene)
 Sets the scene graph to be rendered in this component's window.
virtual void setCameraType (SoType type)
virtual SoNode * getSceneGraph ()
 Gets the scene graph to be rendered in this component's window.
virtual void viewAll ()
 Changes the camera position to view the entire scene (the camera zoom or orientation isn't changed).
virtual void setViewing (bool state)
bool isViewing () const
SbVec3f projectPoint (const SbVec2f &pt) const
void rotateCamera (const SbRotation &rot)
void adjustCameraClippingPlanes ()

Protected Member Functions

virtual void soPaintEvent ()
virtual void soKeyPressEvent (SoKeyboardEvent *e)
virtual void soMousePressEvent (SoMouseButtonEvent *e)
virtual void soMouseMoveEvent (SoLocation2Event *e)
virtual void soMouseReleaseEvent (SoMouseButtonEvent *e)
virtual void soWheelEvent (SoWheelEvent *e)

Constructor & Destructor Documentation

SoWxViewer::SoWxViewer ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0,
const wxString &  name = wxT("SoWxRenderArea") 
)

virtual SoWxViewer::~SoWxViewer (  )  [virtual]


Member Function Documentation

virtual void SoWxViewer::setCamera ( SoCamera *  camera  )  [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.

SoCamera* SoWxViewer::getCamera (  ) 

Gets the edited camera.

virtual void SoWxViewer::setSceneGraph ( SoNode *  a_new_scene  )  [virtual]

Sets the scene graph to be rendered in this component's window.

Reimplemented from SoRenderArea.

virtual void SoWxViewer::setCameraType ( SoType  type  )  [virtual]

Sets the camera type that will be created by the viewer if no cameras are found in the scene graph (see SoPerspectiveCamera and SoOrthographicCamera). By default an SoPerspectiveCamera will be created if no cameras are found.

virtual SoNode* SoWxViewer::getSceneGraph (  )  [virtual]

Gets the scene graph to be rendered in this component's window.

Reimplemented from SoRenderArea.

virtual void SoWxViewer::viewAll (  )  [virtual]

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

virtual void SoWxViewer::setViewing ( bool  state  )  [virtual]

Set view mode. If the view mode is on, user events will be caught and used to influence the camera position / orientation. If view mode is off, all events in the viewer canvas (like for instance keypresses or mouseclicks and -movements) will be passed along to the scene graph. Default is to have the view mode active.

bool SoWxViewer::isViewing (  )  const [inline]

Return state of view mode. true means that the mode of the viewer is set such that user interaction with the mouse is used to modify the position and orientation of the camera.

SbVec3f SoWxViewer::projectPoint ( const SbVec2f &  pt  )  const

void SoWxViewer::rotateCamera ( const SbRotation &  rot  ) 

void SoWxViewer::adjustCameraClippingPlanes (  ) 

virtual void SoWxViewer::soPaintEvent (  )  [protected, virtual]

Reimplemented from SoRenderArea.

virtual void SoWxViewer::soKeyPressEvent ( SoKeyboardEvent *  e  )  [protected, virtual]

Reimplemented from SoRenderArea.

virtual void SoWxViewer::soMousePressEvent ( SoMouseButtonEvent *  e  )  [protected, virtual]

Reimplemented from SoRenderArea.

virtual void SoWxViewer::soMouseMoveEvent ( SoLocation2Event *  e  )  [protected, virtual]

Reimplemented from SoRenderArea.

virtual void SoWxViewer::soMouseReleaseEvent ( SoMouseButtonEvent *  e  )  [protected, virtual]

Reimplemented from SoRenderArea.

virtual void SoWxViewer::soWheelEvent ( SoWheelEvent e  )  [protected, virtual]

Reimplemented from SoRenderArea.


The documentation for this class was generated from the following file:
Generated on Thu May 8 14:30:10 2008 for OpenInventorViewer by  doxygen 1.5.1