![]() |
Simplygon C++ API
8.3.35800.0
|
#include <SimplygonSDK.h>
Public Member Functions | |
virtual bool | CreatePreviewer (int _width, int _height)=0 |
virtual const char * | GetClass () |
virtual bool | IsA (const char *type) const |
virtual bool | LoadGeometryData (IGeometryData *geom, IMaterialTable *materials)=0 |
virtual bool | LoadGeometryDataWithMaterialShadingNetwork (IScene *_scene)=0 |
virtual void | RenderAlongCameraPathAndStorePics (int cameraSelectionSetID, const char *file_name_base, const char *format)=0 |
virtual void | SetRenderWireFrameMode (bool flag)=0 |
![]() | |
virtual rid | AddObserver (robserver *Observer, rid EventId)=0 |
virtual void | AddRef ()=0 |
virtual rstring | GetName ()=0 |
virtual void * | GetUserComponentArea (rid userid)=0 |
virtual void | PrintInfo ()=0 |
virtual void | Release ()=0 |
virtual void | RemoveObserver (rid ObserverId)=0 |
virtual void | SetName (const char *Name)=0 |
Static Public Member Functions | |
static bool | IsClassA (const char *type) |
static IDirectXRenderer * | SafeCast (IObject *ptr) |
![]() | |
static bool | IsClassA (const char *type) |
static IObject * | SafeCast (IObject *ptr) |
A Renderer using DirectX 11 that can be used to preview a scene object containing geometry data by rendering it from selected SceneCamera nodes within the given scene and then storing the frames to disc. If using a Shading Node Network (having an IShadingNode assigned to the IMaterial), then the material can be previewed with the generated HLSL shader.
Definition at line 4535 of file SimplygonSDK.h.
|
pure virtual |
Creates a previewer with the specified window dimensions.
_width | the window width |
_height | the window height |
|
virtual |
GetClass returns the name of the class of the object.
Reimplemented from SimplygonSDK::IObject.
|
virtual |
The IsA function returns true if the object is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the object is, or is a descendant of |
Reimplemented from SimplygonSDK::IObject.
|
inlinestatic |
The IsClassA function returns true if IDirectXRenderer is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the class is, or is a descendant of |
Definition at line 4556 of file SimplygonSDK.h.
|
pure virtual |
Loads a geometry data object and its materials into the previewer.
geom | the geometry data object to preview |
materials | the material table of the geometry. Can be NULL if no material table exists. |
|
pure virtual |
Loads a scene into the previewer. The material should have a shading network attached to it.
_scene | the scene to preview. |
|
pure virtual |
Render from each camera view in the camera target direction specified in the selection set with the scene cameras and stores the frame to the file path specified.
cameraSelectionSetID | the ID of the selection set with the scene cameras to render from |
file_name_base | the desired directory and file name |
format | picture format (PNG or RAW) |
|
inlinestatic |
SafeCast makes sure the pointer is of a class that can be cast into a IDirectXRenderer pointer, and if this is possible, returns the cast pointer.
ptr | is the pointer to be cast into a IDirectXRenderer pointer |
Definition at line 4569 of file SimplygonSDK.h.
|
pure virtual |
Sets the render mode to wire frame
flag | true if render mode should be enabled |