BlendNodeParam Class Reference

Class which encapsulates data for blending between nodes We need all these so we don't duplicate code between this node and the blender (unfortunately). More...

#include <blendatt.h>

List of all members.

Public Member Functions

 BlendNodeParam ()
void Init (NodeBlend *pBlender, RenderRegion *pRegion, BlendPath *pStartPath, BlendPath *pEndPath, double BlendRatio, double AttrBlendRatio, double AngleStart, double AngleEnd, double ObjectRatio, double InvObjectRatio, ColourBlendType ColBType, NodeRenderableInk *pNodeStart, NodeRenderableInk *pNodeEnd, BOOL IsOneToOne, NodeBlendPath *pBlenderPath=NULL, HandleBecomeA *pHandleBecomeA=NULL, SumAllPathsPathProcessor *pPathProcessor=NULL)
void Init (BlendNodeParam *pParam, BlendPath *pStartPath, BlendPath *pEndPath, BOOL bInverse=FALSE)
BlendPathGetStartBlendPath ()
BlendPathGetEndBlendPath ()
double GetBlendRatio ()
double GetAttrBlendRatio ()
RenderRegionGetRenderRegion ()
NodeBlendPathGetNodeBlendPath ()
double GetAngleStart ()
double GetAngleEnd ()
double GetObjectRatio ()
double GetInvertedAttributeRatio ()
ColourBlendType GetColourBlendType ()
BOOL GetOneToOne ()
void SetBlendRatio (double Ratio)
NodeRenderableInkGetNodeStart ()
NodeRenderableInkGetNodeEnd ()
HandleBecomeAGetHandleBecomeA ()
SumAllPathsPathProcessorGetPathProcessor ()
void SetPathProcessor (SumAllPathsPathProcessor *proc)
NodeBlendGetNodeBlend ()

Private Attributes

NodeBlendm_pNodeBlend
BlendPathm_pStartPath
BlendPathm_pEndPath
NodeBlendPathm_pBlenderPath
RenderRegionm_pRegion
double m_BlendRatio
double m_AttrBlendRatio
double m_AngleStart
double m_AngleEnd
double m_ObjectRatio
double m_InvObjectRatio
ColourBlendType m_ColourBlendType
NodeRenderableInkm_pNodeStart
NodeRenderableInkm_pNodeEnd
BOOL m_bIsOneToOne
HandleBecomeAm_pHandleBecomeA
SumAllPathsPathProcessorm_pPathProcessor


Detailed Description

Class which encapsulates data for blending between nodes We need all these so we don't duplicate code between this node and the blender (unfortunately).

Author:
David_McClarnon (Xara Group Ltd) <camelotdev@xara.com>
Date:
22/2/2000

Definition at line 231 of file blendatt.h.


Constructor & Destructor Documentation

BlendNodeParam::BlendNodeParam  )  [inline]
 

Definition at line 234 of file blendatt.h.

00235     {
00236         m_pNodeBlend = NULL;
00237         m_pStartPath = NULL;
00238         m_pEndPath = NULL;
00239         m_BlendRatio = 0;
00240         m_AttrBlendRatio = 0;
00241         m_pRegion = NULL;
00242         m_pBlenderPath = NULL;
00243         m_AngleStart = 0;
00244         m_AngleEnd = 0;
00245         m_ObjectRatio = 0;
00246         m_InvObjectRatio = 0;
00247         m_ColourBlendType = COLOURBLEND_FADE;
00248         m_pNodeStart = NULL;
00249         m_pNodeEnd   = NULL;
00250         m_bIsOneToOne = FALSE;
00251         m_pHandleBecomeA = NULL;
00252         m_pPathProcessor = NULL;
00253     }


Member Function Documentation

double BlendNodeParam::GetAngleEnd  )  [inline]
 

Definition at line 327 of file blendatt.h.

00327 { return m_AngleEnd; }

double BlendNodeParam::GetAngleStart  )  [inline]
 

Definition at line 326 of file blendatt.h.

00326 { return m_AngleStart; }

double BlendNodeParam::GetAttrBlendRatio  )  [inline]
 

Definition at line 323 of file blendatt.h.

00323 { return m_AttrBlendRatio; }

double BlendNodeParam::GetBlendRatio  )  [inline]
 

Definition at line 322 of file blendatt.h.

00322 { return m_BlendRatio; }

ColourBlendType BlendNodeParam::GetColourBlendType  )  [inline]
 

Definition at line 330 of file blendatt.h.

00330 { return m_ColourBlendType; }

BlendPath* BlendNodeParam::GetEndBlendPath  )  [inline]
 

Definition at line 321 of file blendatt.h.

00321 { return m_pEndPath; }

HandleBecomeA* BlendNodeParam::GetHandleBecomeA  )  [inline]
 

Definition at line 338 of file blendatt.h.

00338 { return (m_pHandleBecomeA); }

double BlendNodeParam::GetInvertedAttributeRatio  )  [inline]
 

Definition at line 329 of file blendatt.h.

00329 { return m_InvObjectRatio; }

NodeBlend* BlendNodeParam::GetNodeBlend  )  [inline]
 

Definition at line 345 of file blendatt.h.

00345 { return (m_pNodeBlend); }

NodeBlendPath* BlendNodeParam::GetNodeBlendPath  )  [inline]
 

Definition at line 325 of file blendatt.h.

00325 { return m_pBlenderPath; }

NodeRenderableInk* BlendNodeParam::GetNodeEnd  )  [inline]
 

Definition at line 336 of file blendatt.h.

00336 { return m_pNodeEnd; }

NodeRenderableInk* BlendNodeParam::GetNodeStart  )  [inline]
 

Definition at line 335 of file blendatt.h.

00335 { return m_pNodeStart; }

double BlendNodeParam::GetObjectRatio  )  [inline]
 

Definition at line 328 of file blendatt.h.

00328 { return m_ObjectRatio; }

BOOL BlendNodeParam::GetOneToOne  )  [inline]
 

Definition at line 331 of file blendatt.h.

00331 { return m_bIsOneToOne; }

SumAllPathsPathProcessor* BlendNodeParam::GetPathProcessor  )  [inline]
 

Definition at line 342 of file blendatt.h.

00342 { return (m_pPathProcessor); }

RenderRegion* BlendNodeParam::GetRenderRegion  )  [inline]
 

Definition at line 324 of file blendatt.h.

00324 { return m_pRegion; }

BlendPath* BlendNodeParam::GetStartBlendPath  )  [inline]
 

Definition at line 320 of file blendatt.h.

00320 { return m_pStartPath; }

void BlendNodeParam::Init BlendNodeParam pParam,
BlendPath pStartPath,
BlendPath pEndPath,
BOOL  bInverse = FALSE
[inline]
 

Definition at line 287 of file blendatt.h.

00289     {
00290         m_pNodeBlend        = pParam->GetNodeBlend ();
00291         m_pStartPath        = pStartPath;
00292         m_pEndPath          = pEndPath;
00293 
00294         m_pRegion           = pParam->GetRenderRegion();
00295         m_pBlenderPath      = pParam->GetNodeBlendPath();
00296         m_AngleStart        = pParam->GetAngleEnd();
00297         m_AngleEnd          = pParam->GetAngleStart();
00298         m_ObjectRatio       = pParam->GetObjectRatio();
00299         m_InvObjectRatio    = pParam->GetInvertedAttributeRatio();
00300         m_ColourBlendType   = pParam->GetColourBlendType();
00301         m_pNodeStart        = pParam->GetNodeStart();
00302         m_pNodeEnd          = pParam->GetNodeEnd();
00303         m_bIsOneToOne       = pParam->GetOneToOne();
00304         m_pHandleBecomeA    = pParam->GetHandleBecomeA ();
00305         m_pPathProcessor    = pParam->GetPathProcessor ();
00306         
00307         if (!bInverse)
00308         {
00309             m_AttrBlendRatio    = pParam->GetAttrBlendRatio();
00310             m_BlendRatio        = pParam->GetBlendRatio();
00311         }
00312         else
00313         {
00314             m_AttrBlendRatio    = 1.0 - pParam->GetAttrBlendRatio();
00315             m_BlendRatio        = 1.0 - pParam->GetBlendRatio();
00316         }
00317 
00318     }

void BlendNodeParam::Init NodeBlend pBlender,
RenderRegion pRegion,
BlendPath pStartPath,
BlendPath pEndPath,
double  BlendRatio,
double  AttrBlendRatio,
double  AngleStart,
double  AngleEnd,
double  ObjectRatio,
double  InvObjectRatio,
ColourBlendType  ColBType,
NodeRenderableInk pNodeStart,
NodeRenderableInk pNodeEnd,
BOOL  IsOneToOne,
NodeBlendPath pBlenderPath = NULL,
HandleBecomeA pHandleBecomeA = NULL,
SumAllPathsPathProcessor pPathProcessor = NULL
[inline]
 

Definition at line 255 of file blendatt.h.

00265     {
00266         m_pNodeBlend        = pBlender;
00267         m_pStartPath        = pStartPath;
00268         m_pEndPath          = pEndPath;
00269         m_BlendRatio        = BlendRatio;
00270         m_pRegion           = pRegion;
00271         m_pBlenderPath      = pBlenderPath;
00272         m_AngleStart        = AngleStart;
00273         m_AngleEnd          = AngleEnd;
00274         m_ObjectRatio       = ObjectRatio;
00275         m_InvObjectRatio    = InvObjectRatio;
00276         m_ColourBlendType   = ColBType;
00277         m_pNodeStart        = pNodeStart;
00278         m_pNodeEnd          = pNodeEnd;
00279         m_bIsOneToOne       = IsOneToOne;
00280         m_AttrBlendRatio    = AttrBlendRatio;
00281         m_pHandleBecomeA    = pHandleBecomeA;
00282         m_pPathProcessor    = pPathProcessor;
00283     }

void BlendNodeParam::SetBlendRatio double  Ratio  )  [inline]
 

Definition at line 333 of file blendatt.h.

00333 { m_BlendRatio = Ratio; }

void BlendNodeParam::SetPathProcessor SumAllPathsPathProcessor proc  )  [inline]
 

Definition at line 343 of file blendatt.h.

00343 { m_pPathProcessor = proc; }


Member Data Documentation

double BlendNodeParam::m_AngleEnd [private]
 

Definition at line 358 of file blendatt.h.

double BlendNodeParam::m_AngleStart [private]
 

Definition at line 357 of file blendatt.h.

double BlendNodeParam::m_AttrBlendRatio [private]
 

Definition at line 356 of file blendatt.h.

BOOL BlendNodeParam::m_bIsOneToOne [private]
 

Definition at line 364 of file blendatt.h.

double BlendNodeParam::m_BlendRatio [private]
 

Definition at line 355 of file blendatt.h.

ColourBlendType BlendNodeParam::m_ColourBlendType [private]
 

Definition at line 361 of file blendatt.h.

double BlendNodeParam::m_InvObjectRatio [private]
 

Definition at line 360 of file blendatt.h.

double BlendNodeParam::m_ObjectRatio [private]
 

Definition at line 359 of file blendatt.h.

NodeBlendPath* BlendNodeParam::m_pBlenderPath [private]
 

Definition at line 353 of file blendatt.h.

BlendPath* BlendNodeParam::m_pEndPath [private]
 

Definition at line 352 of file blendatt.h.

HandleBecomeA* BlendNodeParam::m_pHandleBecomeA [private]
 

Definition at line 368 of file blendatt.h.

NodeBlend* BlendNodeParam::m_pNodeBlend [private]
 

Definition at line 348 of file blendatt.h.

NodeRenderableInk* BlendNodeParam::m_pNodeEnd [private]
 

Definition at line 363 of file blendatt.h.

NodeRenderableInk* BlendNodeParam::m_pNodeStart [private]
 

Definition at line 362 of file blendatt.h.

SumAllPathsPathProcessor* BlendNodeParam::m_pPathProcessor [private]
 

Definition at line 371 of file blendatt.h.

RenderRegion* BlendNodeParam::m_pRegion [private]
 

Definition at line 354 of file blendatt.h.

BlendPath* BlendNodeParam::m_pStartPath [private]
 

Definition at line 351 of file blendatt.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:51:27 2007 for Camelot by  doxygen 1.4.4