Rhino C++ API
8.10
|
#include <RhRdkLinearWorkflow.h>
Public Member Functions | |
CRhRdkLinearWorkflow () | |
CRhRdkLinearWorkflow (const IRhRdkLinearWorkflow &lw) | |
virtual void | ApplyPostProcessGamma (CRhinoDib &dibInOut) const override |
virtual void | ApplyPreProcessGamma (CRhinoDib &dibInOut) const override |
virtual void | ApplyPreProcessGamma (CRhRdkColor &col, bool bForTexture) const override |
virtual IRhRdkLinearWorkflow & | BeginChange (RhRdkChangeContext cc) const override |
virtual ON__UINT32 | ComputeCRC (void) const override |
virtual void | CopyFrom (const IRhRdkLinearWorkflow &lw) override |
void | CopyFrom (const ON_LinearWorkflow &lw) |
virtual bool | EndChange (void) override |
virtual void * | EVF (const wchar_t *, void *) override |
virtual bool | IsEqual (const IRhRdkLinearWorkflow &lw) const override |
bool | operator!= (const IRhRdkLinearWorkflow &lw) const |
const CRhRdkLinearWorkflow & | operator= (const IRhRdkLinearWorkflow &lw) |
bool | operator== (const IRhRdkLinearWorkflow &lw) const |
virtual bool | PostProcessFrameBuffer (void) const override |
virtual float | PostProcessGamma (void) const override |
virtual float | PostProcessGammaReciprocal (void) const override |
virtual bool | PreProcessColors (void) const override |
virtual float | PreProcessGamma (void) const override |
virtual bool | PreProcessTextures (void) const override |
virtual void | SetPostProcessFrameBuffer (bool b) override |
virtual void | SetPostProcessGamma (float fGamma) override |
virtual void | SetPreProcessColors (bool b) override |
virtual void | SetPreProcessGamma (float fGamma) override |
virtual void | SetPreProcessTextures (bool b) override |
![]() | |
virtual | ~IRhRdkLinearWorkflow () |
bool | PostProcessFrameBufferOn (void) const |
bool | PostProcessGammaOn (void) const |
bool | PreProcessColorsOn (void) const |
bool | PreProcessTexturesOn (void) const |
void | SetPostProcessFrameBufferOn (bool b) |
void | SetPostProcessGammaOn (bool) |
void | SetPreProcessColorsOn (bool b) |
void | SetPreProcessTexturesOn (bool b) |
Additional Inherited Members | |
![]() | |
static IRhRdkLinearWorkflow * | New (void) |
This helper class provides simple gamma and linear workflow processing.
If you want to get the linear workflow or gamma settings being used by a document, please see CRhRdkDocument::LinearWorkflow().
Note that this does not support the EVF functions "PostProcessGammaOn" or "SetPostProcessGammaOn" mentioned in IRhRdkLinearWorkflow. Please use CRhRdkLinearWorkflowEx to solve this.
CRhRdkLinearWorkflow::CRhRdkLinearWorkflow | ( | ) |
CRhRdkLinearWorkflow::CRhRdkLinearWorkflow | ( | const IRhRdkLinearWorkflow & | lw | ) |
|
overridevirtual |
Modifies a DIB by applying gamma correction using the gamma reciprocal.
dibInOut | is the DIB which is altered if gamma is not equal to 1. |
Implements IRhRdkLinearWorkflow.
Reimplemented in CRhRdkLinearWorkflowEx.
|
overridevirtual |
Applies pre-process gamma correction to a dib (i.e., an LDR texture) if PreProcessTextures is true.
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Applies pre-process gamma correction to a color if linear workflow is active.
bForTexture | is true if the color is part of a texture. See notes below for checking CRhRdkTexture::IsLinear(). |
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Call this method to get a non-const object upon which you can call non-const methods. Calls to this method are counted; you must call EndChange() once for every call to BeginChange(). Please do not use const_cast or any other means of circumventing this requirement.
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Copy another linear workflow object to this one.
Implements IRhRdkLinearWorkflow.
void CRhRdkLinearWorkflow::CopyFrom | ( | const ON_LinearWorkflow & | lw | ) |
|
overridevirtual |
Implements IRhRdkLinearWorkflow.
|
inlineoverridevirtual |
Emergency virtual function for future expansion. Currently implemented wszFunc: "PostProcessGammaOn" (pvData = null; returns pointer to bool). "SetPostProcessGammaOn" (pvData is pointer to bool).
Implements IRhRdkLinearWorkflow.
Reimplemented in CRhRdkLinearWorkflowEx.
|
overridevirtual |
Implements IRhRdkLinearWorkflow.
bool CRhRdkLinearWorkflow::operator!= | ( | const IRhRdkLinearWorkflow & | lw | ) | const |
const CRhRdkLinearWorkflow& CRhRdkLinearWorkflow::operator= | ( | const IRhRdkLinearWorkflow & | lw | ) |
bool CRhRdkLinearWorkflow::operator== | ( | const IRhRdkLinearWorkflow & | lw | ) | const |
|
overridevirtual |
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Set linear workflow (pre-process) active state for individual colors.
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Set post-process gamma. This will generally be >= 1.0 (usually 2.2). The actual value to be applied in post-process is the reciprocal.
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Set linear workflow (pre-process) active state for individual colors.
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Set pre-process gamma. This will generally be >= 1.0 (usually 2.2). This is the actual value applied in pre-process.
Implements IRhRdkLinearWorkflow.
|
overridevirtual |
Set linear workflow (pre-process) active state for textures.
Implements IRhRdkLinearWorkflow.