Library | File

Class wfcWWindow

# include <wfcDisplay.h>

class wfcWWindow
 : public virtual pfcWindow
{
    xaideclare(wfcWWindow)
    ...
};



Description

Adds more functionality to pfcWindow as indicated below This interface add methods to access light sources in any window of Creo Parametric.
Manual References:
Overview of Creo Object TOOLKIT C++: Casting of Creo Object TOOLKIT C++ pfc Classes to wfc Classes



Method Summary

wfcLightSourceInstructions_ptrGetLightInstructions ()
Gets light sources in specified window
voidRefit ()
Refit a window
voidSetLightInstructions (wfcLightSourceInstructions_ptr LightSourcesInfo)
Sets light sources in specified window


Methods Inherited from Class pfcChild:

GetDBParent, GetOId


Methods Inherited from Class pfcWindow:

GetHeight, GetWidth, GetXPos, GetYPos, GetGraphicsAreaHeight, GetGraphicsAreaWidth, GetScreenTransform, SetScreenTransform, GetModel, Clear, Repaint, Refresh, Close, Activate, GetId, ExportRasterImage, SetURL, GetURL, GetBrowserSize, SetBrowserSize



Method Detail

voidSetLightInstructions (wfcLightSourceInstructions_ptr LightSourcesInfo)

Sets light sources in specified window

Exceptions thrown (but not limited to):

pfcXToolkitCantModify - This type of light is not allowed to be set. (PRO_TK_LIGHT_AMBIENT, PRO_TK_LIGHT_HDRI).

pfcXToolkitUnsupported - light_info has more than 5 elements.

pfcXToolkitEmpty - The sequence of light sources is empty.


Manual References:
Graphics: Setting Light Sources, Graphics: Setting Light Sources
Parameters:
LightSourcesInfo
A sequence of light sources
Returns:



wfcLightSourceInstructions_ptrGetLightInstructions ()

Gets light sources in specified window
Manual References:
Graphics: Setting Light Sources, Graphics: Setting Light Sources
Returns:
A sequence of light sources



voidRefit ()

Refit a window

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - Either view or model was not found.


Manual References:
Windows and Views: Window Operations, Windows and Views: Window Operations, Windows and Views: Coordinate Systems
Returns: