Rhino C++ API  8.7
Public Types | Public Member Functions | Static Public Member Functions | List of all members
IRhRdkDithering Class Referenceabstract

#include <IRhRdkDithering.h>

Public Types

enum  Methods : unsigned int { Methods::None, Methods::FloydSteinberg, Methods::SimpleNoise }
 Dithering algorithm. More...

Public Member Functions

virtual ~IRhRdkDithering ()
virtual IRhRdkDitheringBeginChange (RhRdkChangeContext cc) const =0
virtual void CopyFrom (const IRhRdkDithering &dit)=0
virtual bool EndChange (void)=0
virtual void * EVF (const wchar_t *wszFunc, void *pvData)=0
virtual bool IsEqual (const IRhRdkDithering &dit) const =0
virtual Methods Method (void) const =0
bool On (void) const
virtual void SetMethod (Methods m)=0
void SetOn (bool bOn)

Static Public Member Functions

static IRhRdkDitheringNew (void)

Detailed Description

This interface is deprecated and only kept for backward compatibility.

Member Enumeration Documentation

◆ Methods

enum IRhRdkDithering::Methods : unsigned int

Dithering algorithm.


No dithering


Floyd Steinberg algorithm


Simple random noise

Constructor & Destructor Documentation

◆ ~IRhRdkDithering()

virtual IRhRdkDithering::~IRhRdkDithering ( )

Member Function Documentation

◆ BeginChange()

virtual IRhRdkDithering& IRhRdkDithering::BeginChange ( RhRdkChangeContext  cc) const
pure virtual

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.

◆ CopyFrom()

virtual void IRhRdkDithering::CopyFrom ( const IRhRdkDithering dit)
pure virtual

Copy another dithering object to this one.

◆ EndChange()

virtual bool IRhRdkDithering::EndChange ( void  )
pure virtual

◆ EVF()

virtual void* IRhRdkDithering::EVF ( const wchar_t *  wszFunc,
void *  pvData 
pure virtual

Emergency virtual function for future expansion. Currently implemented wszFunc: "On" (pvData = null; returns pointer to bool). "SetOn" (pvData is pointer to bool).

◆ IsEqual()

virtual bool IRhRdkDithering::IsEqual ( const IRhRdkDithering dit) const
pure virtual
true if this object is equal to another one.

◆ Method()

virtual Methods IRhRdkDithering::Method ( void  ) const
pure virtual

Get the dithering method

◆ New()

static IRhRdkDithering* IRhRdkDithering::New ( void  )

◆ On()

bool IRhRdkDithering::On ( void  ) const

◆ SetMethod()

virtual void IRhRdkDithering::SetMethod ( Methods  m)
pure virtual

Set the dithering method

◆ SetOn()

void IRhRdkDithering::SetOn ( bool  bOn)