Ri2DRampTexture[ Texture | Source | Search | Keywords | Summary | Ancestors | All Members | Descendants ]
| public: | |
| // Constructors and assignment | |
| Ri2DRampTexture(int rampType, int interpType, RiReal *positions, RiVector3TextureProxy *colors, int numVals); | |
| // Members | |
| RiReal | GetScalar(RiMaterialRegion &hit); |
| RiVector2 | GetVector2(RiMaterialRegion &hit); |
| RiVector3 | GetVector3(RiMaterialRegion &hit); |
| protected: |
Ri2DRampTexture(int rampType, int interpType, RiReal *positions, RiVector3TextureProxy *colors, int numVals);
Default Constructor (adopts the two vectors)
Ri2DRampTexture(int rampType, int interpType,
RiReal *positions, RiVector3TextureProxy *colors, int numVals);
virtual RiReal GetScalar(RiMaterialRegion &hit);
virtual RiVector2 GetVector2(RiMaterialRegion &hit);
virtual RiVector3 GetVector3(RiMaterialRegion &hit);
| public: | ||
|---|---|---|
| // Accessors | ||
| RiReal | GetScalar(RiMaterialRegion &hit); | // pure virtual |
| RiVector2 | GetVector2(RiMaterialRegion &hit); | // pure virtual |
| RiVector3 | GetVector3(RiMaterialRegion &hit); | // pure virtual |
| RiSpectrum | GetSpectrum(RiMaterialRegion &hit); | // pure virtual |
| // General Color properties | ||
| void | SetDefaultColor(const RiVector3 &rgbDefault); | |
| RiVector3 | GetDefaultColor(); | |
| void | SetColorGain(const RiVector3 &rgbGain); | |
| void | SetColorOffset(const RiVector3 &rgbOffset); | |
| void | SetInvertColor(bool on); | |
| // place2DTexture stuff | ||
| void | SetWindowTransform(const RiAffineTMatrix2 &wTrans); | |
| void | SetPlacementTransform(const RiAffineTMatrix2 &trans); | |
| void | SetMirror(bool on); | |
| void | SetWrap(bool onU, bool onV); | |
| void | SetStagger(bool on); | |
| void | SetNoise(const RiVector2 &amount); | |
| protected: | ||
| RiVector3 | DoColorCorrection(RiVector3 rgb); | |
| bool | DoTransform(RiMaterialRegion &hit, RiVector2 &newUV); | |