Rhino C++ API
8.6
|
#include <RhRdkNewPostEffectPlugIn.h>
Public Member Functions | |
CRhRdkPostEffect (IRhRdkPostEffect::Types type) | |
virtual | ~CRhRdkPostEffect () |
virtual IRhRdkPostEffect & | BeginChange (RhRdkChangeContext cc) const override |
virtual bool | CanExecute (const IRhRdkPostEffectPipeline &) const override |
virtual void | Changed (void) override |
void | CopyParamsFrom (const ON_3dmRenderSettings &rs) |
void | CopyParamsTo (ON_3dmRenderSettings &rs) const |
virtual ON__UINT32 | CRC (void) const final override |
virtual bool | EndChange (void) override |
virtual void * | EVF (const wchar_t *wszFunc, void *pvData) override |
virtual int | ExecuteWhileRenderingDelayMS (void) const override |
virtual bool | IsActive (void) const final override |
virtual bool | IsSelected (void) const final override |
virtual bool | IsVisible (void) const override |
virtual const IRhRdkListablePostEffect * | Listable (void) const override |
virtual IRhRdkListablePostEffect * | Listable (void) override |
virtual bool | ReadFromDocumentDefaults (const CRhinoDoc &doc) override |
bool | ReadFromRenderSettings (const ON_3dmRenderSettings &rs) |
virtual void | RequiredChannels (OUT ON_SimpleArray< UUID > &aChan) const override |
virtual void | SetManager (class CRhRdkPostEffectManager &man) final override |
virtual Types | Type (void) const final override |
virtual bool | WriteToDocumentDefaults (CRhinoDoc &doc) const override |
bool | WriteToRenderSettings (ON_3dmRenderSettings &rs) const |
Public Member Functions inherited from CRhRdkObject | |
CRhRdkObject () | |
virtual | ~CRhRdkObject () |
void | operator delete (void *buf) |
void | operator delete[] (void *buf) |
void * | operator new (size_t size) |
void * | operator new[] (size_t size) |
Public Member Functions inherited from IRhRdkPostEffect | |
virtual | ~IRhRdkPostEffect () |
virtual void | AddUISections (class IRhRdkPostEffectUI &ui)=0 |
virtual unsigned int | BitFlags (void) const =0 |
virtual bool | CanDisplayHelp (void) const =0 |
virtual bool | CanExecute (const class IRhRdkPostEffectPipeline &pepl) const =0 |
virtual bool | DisplayHelp (void) const =0 |
virtual bool | Execute (IRhRdkPostEffectPipeline &pepl, const ON_4iRect &rect) const =0 |
virtual ExecuteWhileRenderingOptions | GetExecuteWhileRenderingOption (void) const =0 |
virtual bool | GetParameter (const wchar_t *wszName, OUT CRhRdkVariant &vValue) const =0 |
virtual UUID | Id (void) const =0 |
virtual ON_wString | LocalName (void) const =0 |
bool | ReadFromRenderSettings (const ON_3dmRenderSettings &rs) |
virtual bool | ReadState (const IState &state)=0 |
virtual void | ResetToFactoryDefaults (void)=0 |
virtual bool | SetParameter (const wchar_t *wszName, const CRhRdkVariant &vValue)=0 |
virtual bool | WriteState (IState &state) const =0 |
bool | WriteToRenderSettings (ON_3dmRenderSettings &rs) const |
Public Attributes | |
CImpl * | m_pImpl |
Protected Member Functions | |
CImpl * | Impl (void) |
const CImpl * | Impl (void) const |
Additional Inherited Members | |
Public Types inherited from IRhRdkPostEffect | |
enum | : unsigned int { uf_ExecuteForProductionRendering = 0x0001, uf_ExecuteForRealtimeRendering = 0x0002, uf_ExecuteForViewportDisplay = 0x0004, uf_Fixed = 0x0100, uf_DefaultShown = 0x0200, uf_DefaultOn = 0x0400, uf_UsesRenderingSettings = 0x0800 } |
enum | ExecuteWhileRenderingOptions { ExecuteWhileRenderingOptions::Never, ExecuteWhileRenderingOptions::Always, ExecuteWhileRenderingOptions::UseDelay } |
enum | Types : int { Types::Early, Types::ToneMapping, Types::Late } |
Static Public Member Functions inherited from CRhRdkObject | |
static void | CheckMemory (void) |
static void | PopulateDebuggingInfo (void) |
CRhRdkPostEffect::CRhRdkPostEffect | ( | IRhRdkPostEffect::Types | type | ) |
|
virtual |
|
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 IRhRdkPostEffect.
|
overridevirtual |
|
overridevirtual |
Called when the state of the post effect is changed. If your post effect subclass implements a member variable that affects rendering and/or appears in the post effect's user interface, then you should call this method from your Set... method when the Set... method detects a change to the value of the member.
Implements IRhRdkPostEffect.
void CRhRdkPostEffect::CopyParamsFrom | ( | const ON_3dmRenderSettings & | rs | ) |
void CRhRdkPostEffect::CopyParamsTo | ( | ON_3dmRenderSettings & | rs | ) | const |
|
finaloverridevirtual |
Implements IRhRdkPostEffect.
|
overridevirtual |
Call this method after finishing a batch of changes. You must call EndChange() once for every call to BeginChange().
Implements IRhRdkPostEffect.
|
overridevirtual |
Emergency virtual function for future expansion.
Implements IRhRdkPostEffect.
|
overridevirtual |
If GetExecuteWhileRenderingOption() returns UseDelay then this method returns the delay in milliseconds before the post effect should execute for the first time. After the first time, the post effect will execute every time the dib is updated during rendering.
Implements IRhRdkPostEffect.
|
protected |
|
protected |
|
finaloverridevirtual |
Implements IRhRdkPostEffect.
|
finaloverridevirtual |
Implements IRhRdkPostEffect.
|
overridevirtual |
Implements IRhRdkPostEffect.
|
overridevirtual |
Get the listable interface (const version). Returns null if the post effect is not listable. Therefore, it only returns an object if it's an early or late post effect.
Implements IRhRdkPostEffect.
|
overridevirtual |
Get the listable interface. Returns null if the post effect is not listable. Therefore, it only returns an object if it's an early or late post effect.
Implements IRhRdkPostEffect.
|
overridevirtual |
Because post effects are now in the render settings, this function can no longer be called. ReadFromRenderSettings() is called instead.
Implements IRhRdkPostEffect.
bool CRhRdkPostEffect::ReadFromRenderSettings | ( | const ON_3dmRenderSettings & | rs | ) |
|
overridevirtual |
The RDK calls this method to determine which channels a post effect requires. If a required channel is not available, the RDK will hide the post effect's UI and display explanatory text instead.
aChan | accepts the channels. The post effect should add all channels used by its implementation to this array. The post effect should not clear the array as other post effects may have previously added their channels to it. |
Implements IRhRdkPostEffect.
|
finaloverridevirtual |
Implements IRhRdkPostEffect.
|
finaloverridevirtual |
Implements IRhRdkPostEffect.
|
overridevirtual |
Because post effects are now in the render settings, this function can no longer be called. WriteToRenderSettings() is called instead.
Implements IRhRdkPostEffect.
bool CRhRdkPostEffect::WriteToRenderSettings | ( | ON_3dmRenderSettings & | rs | ) | const |
CImpl* CRhRdkPostEffect::m_pImpl |