Ivf wrapper for an SoWinRenderArea. More...
#include <Ivf/Viewers/IvfRenderArea.h>
Public Member Functions | |
CIvfRenderArea () | |
IVF_COMPONENT_BASE () | |
void | IvfSpinText (LPCTSTR pText) |
Protected Member Functions | |
virtual | ~CIvfRenderArea () |
Protected Attributes | |
SoWinRenderArea * | m_pViewer |
SoCamera * | m_pCamera |
SoDirectionalLight * | m_pLight |
Ivf wrapper for an SoWinRenderArea.
This class provides Open Inventor rendering and message handling inside a Windows window. There is a routine to specify the scene to render. The scene is automatically rendered whenever anything under it changes (a data sensor is attached to the root of the scene), unless explicitly told not to do so (manual redraws). Users can also set Open Inventor rendering attributes such as the transparency type, antialiasing on or off, etc. This class employs an SoSceneManager to manage rendering and message handling.
Windows messages that occur in the render area can be handled by the application, by the viewer (if this is really a viewer), or by the nodes in the scene graph. When a message occurs, it is first passed to the application message callback function registered with the method SoWinRenderArea::setEventCallback(). If this function does not exist or returns FALSE, the message is either used directly by the viewer or translated to an SoEvent for further scene graph processing. If the viewer does not handle the message, and an overlay scene graph exists, the SoEvent is sent to that scene graph by way of an SoHandleEventAction. If no node in the overlay scene graph handles the message (i.e., calls SoHandleEventAction::setHandled()), the SoEvent is passed to the normal scene graph in the same manner.
See the SoWinRenderArea description for additional information.
Note: Although the class name is CIvfRenderArea, the header file name is IvfRenderArea.h.
CIvfRenderArea::CIvfRenderArea | ( | ) |
virtual CIvfRenderArea::~CIvfRenderArea | ( | ) | [protected, virtual] |
Destrcutor.
CIvfRenderArea::IVF_COMPONENT_BASE | ( | ) |
This macro declares the minimum number of methods necessary to create a class derived from CIvfComponent.
void CIvfRenderArea::IvfSpinText | ( | LPCTSTR | pText | ) |
create a spinning text logo
SoCamera* CIvfRenderArea::m_pCamera [protected] |
Pointer to the camera.
SoDirectionalLight* CIvfRenderArea::m_pLight [protected] |
Pointer to the light.
SoWinRenderArea* CIvfRenderArea::m_pViewer [protected] |
Pointer to the render area.