Public Member Functions | |
| HRESULT | SetGeneratorNode (IRsNode *pNode) |
| HRESULT | GetGeneratorNode (IRsNode **ppNode) |
| HRESULT | Prepare () |
| HRESULT | SetParameters (IRdPrimitiveFactoryState *pState) |
| HRESULT | GetControlPointReference (RtPoint *pPosition, RtVector3f *pNormal, RtUlong *pDimension) |
| HRESULT | GetTimestamps (RtDWORD *pdwMeshTs, RtDWORD *pdwMatrixTs, RtDWORD *pdwMaterial) |
| HRESULT | GetMesh (IRdMesh **ppMesh) |
| HRESULT | GetMatrix (IRdMatrixf **ppMatrix) |
| HRESULT | GetMaterial (IRdMaterialList **ppMaterial) |
| HRESULT | SetDefaultState ([in] RtDWORD dwFlags) |
| HRESULT | SetUserParameters (BSTR szParams) |
| HRESULT | GetPrimitiveFinished () |
| HRESULT IRsPrimitiveManager::SetGeneratorNode | ( | IRsNode * | pNode | ) |
Tool factory calls this method to set properties panel/generator node for primitive factory.
| pNode | contains node to use as property or generator. |
| HRESULT IRsPrimitiveManager::GetGeneratorNode | ( | IRsNode ** | ppNode | ) |
Get method for properties panel/generator node
| ppNode | is filled with node provided by SetGeneratorNode method. |
| HRESULT IRsPrimitiveManager::Prepare | ( | ) |
Set manager to initial state. Method is called when tool begins to create new primitive
| HRESULT IRsPrimitiveManager::SetParameters | ( | IRdPrimitiveFactoryState * | pState | ) |
Set state vector for primitive creation.
| pState | defines current primitive factory state |
| HRESULT IRsPrimitiveManager::GetControlPointReference | ( | RtPoint * | pPosition, | |
| RtVector3f * | pNormal, | |||
| RtUlong * | pDimension | |||
| ) |
Get reference position and normal current control point evaluation according to current state vector.
| pPosition | defines requested reference position | |
| pNormal | defines requested reference normal |
| HRESULT IRsPrimitiveManager::GetTimestamps | ( | RtDWORD * | pdwMeshTs, | |
| RtDWORD * | pdwMatrixTs, | |||
| RtDWORD * | pdwMaterial | |||
| ) |
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 IRsPrimitiveManager::GetMesh | ( | IRdMesh ** | ppMesh | ) |
Return preview mesh created using current primitive creation state vector.
| ppMesh | is filled with preview mesh. |
| HRESULT IRsPrimitiveManager::GetMatrix | ( | IRdMatrixf ** | ppMatrix | ) |
Return preview matrix created using current primitive creation state vector.
| ppMatrix | is filled with preview matrix. |
| HRESULT IRsPrimitiveManager::GetMaterial | ( | IRdMaterialList ** | ppMaterial | ) |
Return preview material created using current primitive creation state vector.
| ppMaterial | is filled with preview matrix. |
| HRESULT IRsPrimitiveManager::SetDefaultState | ( | [in] RtDWORD | dwFlags | ) |
Set default state of primitive manager according to RePrimitiveManagerDefaultState flags. This method can assume that last creation parameters are set.
| dwFlags | specifies requested default state. |
| HRESULT IRsPrimitiveManager::SetUserParameters | ( | BSTR | szParams | ) |
Set user parameters.
| szParams | is set (if available) with user parameters. |
| HRESULT IRsPrimitiveManager::GetPrimitiveFinished | ( | ) |
Checks, whether provided state vector is sufficient to create a primitive.
1.5.5