Rhino C++ API
8.13
|
#include <IRhRdkTextureEvaluator.h>
Classes | |
class | CEvalFlags |
class | IChildCallback |
Public Member Functions | |
virtual const IChildCallback * | ChildCallback (void) const =0 |
virtual void | DeleteThis (void)=0 |
virtual void * | EVF (const wchar_t *, void *)=0 |
virtual bool | GetColor (const ON_3dPoint &uvw, const ON_3dVector &duvwdx, const ON_3dVector &duvwdy, CRhRdkColor &colOut, void *pvData=NULL) const =0 |
virtual bool | Initialize (void)=0 |
virtual bool | RegisterChildCallback (IChildCallback *pChildCallback, const CRhRdkTexture &texture, void *pvData)=0 |
bool | WriteByteArray (const ON_2iSize &size, unsigned char *buffer) const |
bool | WriteFloatArray (const ON_2iSize &size, float *buffer) const |
Protected Member Functions | |
virtual | ~IRhRdkTextureEvaluator () |
This is the interface to a lightweight object capable of evaluating texture color throughout uvw space.
|
inlineprotectedvirtual |
|
pure virtual |
Implemented in CRhRdkTextureEvaluator.
|
pure virtual |
|
pure virtual |
Emergency virtual function for future expansion.
Implemented in CRhRdkTextureEvaluator, and CRhRdkOneColorEvaluator.
|
pure virtual |
Get the color of the texture at a particular point in uvw space. May be called from within a rendering shade pipeline.
uvw | is the point for which to evaluate the texture. |
duvwdx | is a ray differential. |
duvwdy | is a ray differential. |
colOut | receives the texture color. |
Implemented in CRhRdkOneColorEvaluator.
|
pure virtual |
Call this function before calling GetColor for the first time. Ideally, this should be on the main thread, but you can also call it on a worker thread as long as you are sure that Initialize() or GetColor() cannot be called at the same time on another thread.
Implemented in CRhRdkTextureEvaluator.
|
pure virtual |
Implemented in CRhRdkTextureEvaluator, CRhRdkTwoColorEvaluator, and CRhRdkOneColorEvaluator.
bool IRhRdkTextureEvaluator::WriteByteArray | ( | const ON_2iSize & | size, |
unsigned char * | buffer | ||
) | const |
bool IRhRdkTextureEvaluator::WriteFloatArray | ( | const ON_2iSize & | size, |
float * | buffer | ||
) | const |