TextureEvaluator
This is the interface to a lightweight object capable of evaluating texture color throughout uvw space. Derive from this class to create your own texture evaluator to return from a custom RenderTexture.
Inheritance Hierarchy
System.Object
Rhino.Render.TextureEvaluator
Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public class TextureEvaluator : IDisposable
The TextureEvaluator type exposes the following members.
Constructors
Name
Description
Protected Method
TextureEvaluator.
Obsolete.
Base class constructor
Protected Method
TextureEvaluator(RenderTexture.TextureEvaluatorFlags)
Base class constructor
Methods
Name
Description
Public Method
Dispose.
For Dispose pattern
Protected Method
Dispose(Boolean)
For Dispose pattern
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected Method
Finalize
For Dispose pattern
(Overrides Object.Finalize..)
Public Method
GetColor(Point3d, Vector3d, Vector3d)
Get the color of the texture at a particular point in uvw space. May be called from within a rendering shade pipeline. note For ray differentials see Pharr Humphreys, “Physically Based Rendering”, chapter 11.
Public Method
GetColor(Point3d, Vector3d, Vector3d, Color4f.)
Optimized version of GetColor for callers. Much faster in the case of a native (C++) evaluator.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public Method
Initialize
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.
Protected Method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public Method
WriteToByteArray
Obsolete.
Fast access to bitmap evaluator - supply size (which you will probably have received from CRhRdkTexture::PixelSize) to see if the data can be extracted direct to a width*height*4 array of unsigned chars.
Public Method
WriteToByteArray2
Fast access to bitmap evaluator - supply size (which you will probably have received from CRhRdkTexture::PixelSize) to see if the data can be extracted direct to a width*height*4 array of unsigned chars.
Public Method
WriteToFloatArray
Obsolete.
Fast access to bitmap evaluator - supply size (which you will probably have received from CRhRdkTexture::PixelSize) to see if the data can be extracted direct to a width*height*4 array of unsigned chars.
Public Method
WriteToFloatArray2
Fast access to bitmap evaluator - supply size (which you will probably have received from CRhRdkTexture::PixelSize) to see if the data can be extracted direct to a width*height*4 array of unsigned chars.