|
Spectrum | eval (const Intersection &its, bool filter=true) const |
| Return the texture value at its . More...
|
|
void | evalGradient (const Intersection &its, Spectrum *gradient) const |
| Return the texture gradient at its . More...
|
|
virtual void | serialize (Stream *stream, InstanceManager *manager) const |
| Serialize to a binary data stream. More...
|
|
virtual Spectrum | eval (const Point2 &uv) const =0 |
| Unfiltered texture lookup – Texture2D subclasses must provide this function. More...
|
|
virtual Spectrum | eval (const Point2 &uv, const Vector2 &d0, const Vector2 &d1) const =0 |
| Filtered texture lookup – Texture2D subclasses must provide this function. More...
|
|
virtual void | evalGradient (const Point2 &uv, Spectrum *gradient) const |
| Unfiltered radient lookup lookup – Texture2D subclasses can optionally provide this function. More...
|
|
virtual ref< Bitmap > | getBitmap (const Vector2i &sizeHint=Vector2i(-1,-1)) const |
| Return a bitmap representation of the texture. More...
|
|
virtual const Class * | getClass () const |
| Retrieve this object's class. More...
|
|
virtual Spectrum | getAverage () const |
| Return the component-wise average value of the texture over its domain. More...
|
|
virtual Spectrum | getMinimum () const |
| Return the component-wise minimum of the texture over its domain. More...
|
|
virtual Spectrum | getMaximum () const |
| Return the component-wise maximum of the texture over its domain. More...
|
|
virtual Vector3i | getResolution () const |
| Return the resolution in pixels, if applicable. More...
|
|
virtual bool | isConstant () const |
| Return whether the texture takes on a constant value everywhere. More...
|
|
virtual bool | isMonochromatic () const |
| Return whether the texture is monochromatic / spectrally uniform. More...
|
|
virtual bool | usesRayDifferentials () const |
| Does this texture perform any pre-filtering when ray differentials are available? More...
|
|
virtual ref< Texture > | expand () |
| Some textures are only proxies for an actual implementation. This function returns the actual texture implementation to be used. More...
|
|
virtual void | setParent (ConfigurableObject *parent) |
| Notify the ConfigurableObject instance about its parent object. More...
|
|
virtual void | addChild (const std::string &name, ConfigurableObject *child) |
| Add a child (default implementation throws an error) More...
|
|
void | addChild (ConfigurableObject *child) |
| Add an unnamed child. More...
|
|
virtual void | configure () |
| Configure the object (called once after construction and addition of all child ConfigurableObject instances)) More...
|
|
const std::string & | getID () const |
| Return the identifier associated with this instance (or "unnamed") More...
|
|
void | setID (const std::string &name) |
| Set the identifier associated with this instance. More...
|
|
const Properties & | getProperties () const |
| Return the properties object that was originally used to create this instance. More...
|
|
| SerializableObject (Stream *stream, InstanceManager *manager) |
| Unserialize a serializable object. More...
|
|
| Object () |
| Construct a new object. More...
|
|
int | getRefCount () const |
| Return the current reference count. More...
|
|
void | incRef () const |
| Increase the reference count of the object by one. More...
|
|
void | decRef (bool autoDeallocate=true) const |
| Decrease the reference count of the object and possibly deallocate it. More...
|
|
virtual std::string | toString () const |
| Return a human-readable string representation of the object's contents. More...
|
|
virtual Shader * | createShader (Renderer *renderer) const |
|
virtual | ~HWResource () |
|
Base class of all 2D textures.
Return a bitmap representation of the texture.
When the class implementing this interface is a bitmap-backed texture, this function directly returns the underlying bitmap. When it is procedural, a bitmap version must first be generated. In this case, the parameter sizeHint is used to control the target size. The default value -1, -1
allows the implementation to choose a suitable size by itself.
Reimplemented from mitsuba::Texture.