SAP 3D Visual Enterprise applications SDK
|
#include <DVLClient.h>
Public Member Functions | |
virtual void | OnNodeSelectionChanged (IDVLScene *pScene, size_t uNumberOfSelectedNodes, DVLID idFirstSelectedNode) |
virtual void | OnNodeVisibilityChanged (IDVLScene *pScene, DVLID id, bool bNewVisibility) |
virtual void | LogMessage (DVLCLIENTLOGTYPE type, const char *szSource, const char *szText) |
virtual void | OnStepEvent (DVLSTEPEVENT type, DVLID stepId) |
virtual void | OnURLClick (const char *url, DVLID nodeId) |
virtual bool | NotifyFileLoadProgress (float fProgress) |
virtual void | NotifyFrameStarted () |
virtual void | NotifyFrameFinished () |
virtual const char * | GetDebugInfoString () |
virtual bool | RequestCallback (void *pCallbackParam) |
virtual void | NotifySceneGeometryLoaded (IDVLScene *pScene) |
This class defines the main interface for interaction between DVL and the client
Default implementations of all methods do nothing. You may override them if you'd like to get some information from the core, like logging messages or selection events.
|
inlinevirtual |
If DVLRENDEROPTION_SHOW_DEBUG_INFO is ON, this method will be used to display custom information in the top of rendered image together with debug info from the renderer.
NULL | if you don't need to display any custom text |
ANSI | string with custom text if you need to display something. Note: you are responsible to allocating and releasing the string buffer. |
|
inlinevirtual |
Called when library wants to report a warning, error, etc
type | Type of the message, see DVLCLIENTLOGTYPE |
szSource | Text representation of the message source, see DVLLOGSOURCE_XXX defines. Can be NULL. |
szText | The text message in UTF-8. Can be NULL. |
|
inlinevirtual |
Called to notify about file loading progress (which may be quite time consuming) and to check if user wants to abort file loading
fProgress | A value from 0.0f to 1.0f indicating the progress |
true | OK to proceed with file loading |
false | If the loading needs to be canceled (for example, user abort in UI) |
|
inlinevirtual |
Called to notify when frame rendering has finished
|
inlinevirtual |
Called to notify when frame rendering has started
|
inlinevirtual |
Called once all scene geometry has been loaded into GPU.
Note: This notification is called only when geometry streaming is disabled on the target platform (like in JavaScript). On all other platforms this is never called, as they stream geometry data instead of preloading it.
|
inlinevirtual |
Called when selection list changes. There are three possible scenarios:
|
inlinevirtual |
Called when node visibility changes as a result of viewport activation or query execution.
|
inlinevirtual |
Called to notify about the updated step status
type | The type of the event that happened to the step |
stepId | The identifier of the step. See the DVLSTEPEVENT enum comments for details |
|
inlinevirtual |
Called to notify about the URL click
url | The URL |
nodeId | The identifier of the node |
|
inlinevirtual |
If DVL calls IDVLClient::RequestCallback(void *pCallbackParam) method, then the client must execute IDVLCore::ExecuteCallback() with the same "pCallbackParam" parameter as soon as possible. This technique is usually used for supporting UI updates during long operations (like LoadScene) on platforms without multithreading support.
true | If the caller agrees to issue a IDVLCore::ExecuteCallback() call to as soon as possible |
false | If the caller will not execute IDVLCore::ExecuteCallback(). This usually means error and DVL will act accordingly. For example, failing .vds file load, etc. |