Skip to content

TextureEvaluator

Public Class

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

Obsolete.

Base class constructor


Protected Method

Base class constructor


Methods

Name

Description


Public Method

For Dispose pattern


Protected Method

For Dispose pattern


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Protected Method

For Dispose pattern

(Overrides Object.Finalize..)


Public Method

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

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

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

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

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

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

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.