BlendEffectDistorter Class Reference

#include <blendlayers.h>

Inheritance diagram for BlendEffectDistorter:

Public Types

enum  WrapType {
  WrapNone,
  WrapClamp,
  WrapCycle,
  WrapSeamless
}
 

Public Member Functions

virtual ~BlendEffectDistorter ()
 
virtual String GetLayerName (BaseDocument *pDoc, Bool bReset=false)
 
virtual Bool Read (HyperFile *pFile, Int32 lLevel)
 
virtual Bool Write (HyperFile *pFile) const
 
virtual Int32 Compare (BlendLayer *pLayer)
 
virtual Bool CopyTo (BlendLayer *pDest, AliasTrans *pTrans)
 
virtual void GetParameter (Int32 lItem, const DescID &id, GeData &t_data, Int32 &flags)
 
virtual void SetParameter (Int32 lItem, const DescID &id, const GeData &t_data, Int32 &flags)
 
virtual Bool GetParameter (Int32 lID, GeData &d)
 
virtual Bool SetParameter (Int32 lID, const GeData &d)
 
- Public Member Functions inherited from BlendLayer
virtual ~BlendLayer ()
 
virtual Bool CompareStructure (BlendLayer *pLayer, Bool bCompareNames)
 
virtual void ClearShaders (BaseList2D *pParent, BaseDocument *pDoc)
 
Bool IsFolder ()
 
Bool IsShader ()
 
LayerShaderLayerGetNext ()
 
Bool GetParameter_ (Int32 lID, GeData &d)
 
Bool SetParameter_ (Int32 lID, const GeData &d)
 
String GetName (BaseDocument *pDoc)
 
LayerType GetType ()
 

Static Public Member Functions

static BlendLayerAlloc ()
 
- Static Public Member Functions inherited from BlendLayer
static void Free (BlendLayer *&pLayer)
 

Public Attributes

NoiseType m_Noise
 
Float m_rNoiseStrength
 
Float m_rOctaves
 
Float m_rTimeScale
 
Float m_rNoiseScale
 
Bool m_bUse3DNoise
 
WrapType m_Wrap
 
- Public Attributes inherited from BlendLayer
CBlendLayersm_pParent
 
String m_strName
 
LayerType m_LayerType
 
Bool m_bDirty
 
Bool m_bIsSelected
 
Bool m_bIsActive
 
Int32 m_lLayerID
 
Int32 m_lFlags
 
Int32 m_lRenderFlags
 
BaseBitmapm_pAlphaChannel
 

Protected Attributes

Float m_rInvNoiseScale
 

Private Member Functions

 BlendEffectDistorter ()
 

Additional Inherited Members

- Protected Member Functions inherited from BlendLayer
 BlendLayer ()
 
Bool CopyBasics (BlendLayer *pDest)
 
- Static Protected Member Functions inherited from BlendLayer
static Bool AllocDefaults (BlendLayer *pLayer)
 

Member Enumeration Documentation

◆ WrapType

enum WrapType

Private.

Enumerator
WrapNone 
WrapClamp 
WrapCycle 
WrapSeamless 

Constructor & Destructor Documentation

◆ BlendEffectDistorter()

BlendEffectDistorter ( )
private

Default constructor.

◆ ~BlendEffectDistorter()

virtual ~BlendEffectDistorter ( )
virtual

Default destructor.

Member Function Documentation

◆ Alloc()

static BlendLayer* Alloc ( )
static

Allocates a transform layer. Destroy the allocated transform layer with Free().

Returns
The allocated distorter layer, or nullptr if the allocation failed.

◆ GetLayerName()

virtual String GetLayerName ( BaseDocument pDoc,
Bool  bReset = false 
)
virtual

Private.

Implements BlendLayer.

◆ Read()

virtual Bool Read ( HyperFile pFile,
Int32  lLevel 
)
virtual

Reads the layer from a hyper file.

Parameters
[in]pFileThe hyper file to read from. The caller owns the pointed hyper file.
[in]lLevelThe disklevel of the layer to read.
Returns
true if the layer was read, otherwise false.

Implements BlendLayer.

◆ Write()

virtual Bool Write ( HyperFile pFile) const
virtual

Writes the layer to a hyper file.

Parameters
[in]pFileThe hyper file to write to. The caller owns the pointed hyper file.
Returns
true if the layer was written, otherwise false.

Implements BlendLayer.

◆ Compare()

virtual Int32 Compare ( BlendLayer pLayer)
virtual

Compares two layers.

Parameters
[in]pLayerThe layer to compare with. The caller owns the pointed layer.
Returns
0 if the layers are identical, otherwise 1.

Reimplemented from BlendLayer.

◆ CopyTo()

virtual Bool CopyTo ( BlendLayer pDest,
AliasTrans pTrans 
)
virtual

Copies all values from the layer to pDest.

Parameters
[in]pDestThe destination layer. The caller owns the pointed layer.
[in]pTransAn alias translator for the operation. Can be nullptr. The caller owns the pointed alias translator.
Returns
true if the layer was copied, otherwise false.

Implements BlendLayer.

◆ GetParameter() [1/2]

virtual void GetParameter ( Int32  lItem,
const DescID id,
GeData t_data,
Int32 flags 
)
virtual

Private.

Reimplemented from BlendLayer.

◆ SetParameter() [1/2]

virtual void SetParameter ( Int32  lItem,
const DescID id,
const GeData t_data,
Int32 flags 
)
virtual

Private.

Reimplemented from BlendLayer.

◆ GetParameter() [2/2]

virtual Bool GetParameter ( Int32  lID,
GeData d 
)
virtual

Gets layer parameters.

Parameters
[in]lIDThe layer parameter ID: LAYER_S_PARAM_DISTORT
[in]dFilled with the layer parameter value.
Returns
true if the parameter could be retrieved, otherwise false.

Reimplemented from BlendLayer.

◆ SetParameter() [2/2]

virtual Bool SetParameter ( Int32  lID,
const GeData d 
)
virtual

Sets layer parameters.

Parameters
[in]lIDThe layer parameter ID: LAYER_S_PARAM_DISTORT
[in]dThe layer parameter value.
Returns
true if the parameter could be set, otherwise false.

Reimplemented from BlendLayer.

Member Data Documentation

◆ m_Noise

NoiseType m_Noise

Private.

◆ m_rNoiseStrength

Float m_rNoiseStrength

Private.

◆ m_rOctaves

Float m_rOctaves

Private.

◆ m_rTimeScale

Float m_rTimeScale

Private.

◆ m_rNoiseScale

Float m_rNoiseScale

Private.

◆ m_bUse3DNoise

Bool m_bUse3DNoise

Private.

◆ m_Wrap

WrapType m_Wrap

Private.

◆ m_rInvNoiseScale

Float m_rInvNoiseScale
protected

Private.