Public Member Functions | |
| HRESULT | CreatePrimitive (IRsPrimitiveManager *pManager, IRsCommand **ppUndoRedoCmd, BSTR *pszScriptForm) |
| HRESULT | CreatePrimitivePreview (IRsPrimitiveManager *pManager) |
| HRESULT | GetTimestamps (RtDWORD *pdwMeshTs, RtDWORD *pdwMatrixTs, RtDWORD *pdwMaterialTs) |
| HRESULT | GetPreviewMesh (IRdMesh **ppMesh) |
| HRESULT | GetPreviewMatrix (IRdMatrixf **ppMatrix) |
| HRESULT | GetPreviewMaterial (IRdMaterialList **ppMaterial) |
| HRESULT | SetUserParameters (BSTR szParams) |
| HRESULT | Prepare () |
| HRESULT IRsPrimitiveFactory::CreatePrimitive | ( | IRsPrimitiveManager * | pManager, | |
| IRsCommand ** | ppUndoRedoCmd, | |||
| BSTR * | pszScriptForm | |||
| ) |
Create primitive and return command for Undo/Redo and script form.
| pManager | is manager used to create a primitive | |
| ppUndoRedoCmd | is expected to be filled with command handling undo/redo actions for creating the primitive | |
| pszScriptForm | should be filled with script form of primitive creation command. |
| HRESULT IRsPrimitiveFactory::CreatePrimitivePreview | ( | IRsPrimitiveManager * | pManager | ) |
Create primitive preview mesh.
| pManager | is manager used to create a primitive preview |
| HRESULT IRsPrimitiveFactory::GetTimestamps | ( | RtDWORD * | pdwMeshTs, | |
| RtDWORD * | pdwMatrixTs, | |||
| RtDWORD * | pdwMaterialTs | |||
| ) |
Get mesh and matrix timestamps for mesh and matrix. Timestamps are used for caching; if value does not change between two calls than specified resource has not changed - and caller can assume that they have not changed.
| pdwMeshTs | Mesh timestamp value. initial value is 0. | |
| pdwMatrixTs. | Matrix timestamp value. Initial value is 0. | |
| pdwMaterialTs. | Material timestamp value. Initial value is 0. |
| HRESULT IRsPrimitiveFactory::GetPreviewMesh | ( | IRdMesh ** | ppMesh | ) |
Return preview mesh.
| ppMesh | is filled with preview mesh. |
| HRESULT IRsPrimitiveFactory::GetPreviewMatrix | ( | IRdMatrixf ** | ppMatrix | ) |
Return preview matrix.
| ppMatrix | is filled with preview matrix. |
| HRESULT IRsPrimitiveFactory::GetPreviewMaterial | ( | IRdMaterialList ** | ppMaterial | ) |
Return preview material.
| ppMaterial | is filled with preview material. |
| HRESULT IRsPrimitiveFactory::SetUserParameters | ( | BSTR | szParams | ) |
Set user parameters.
| szParams | define additional user parameters defined through widget interface. |
| HRESULT IRsPrimitiveFactory::Prepare | ( | ) |
Set factory to initial state. Method is called when tool begins to create new primitive
1.5.5