00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101 #ifndef INC_BEVELATTR
00102 #define INC_BEVELATTR
00103
00104
00105
00106
00107
00108
00109
00110
00111 class BevelAttributePathProcessor;
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124 class BevelAttributeValueIndent : public AttributeValue
00125 {
00126 CC_DECLARE_DYNCREATE(BevelAttributeValueIndent)
00127 public:
00128 BevelAttributeValueIndent();
00129 BevelAttributeValueIndent(INT32 val) { m_Indent = val; }
00130 virtual void Restore(RenderRegion *, BOOL);
00131 virtual void Render(RenderRegion *, BOOL Temp = FALSE);
00132 virtual NodeAttribute *MakeNode();
00133 BOOL IsDifferent(AttributeValue *pAttr);
00134 virtual void SimpleCopy(AttributeValue *);
00135
00136 static BOOL Init();
00137
00138 public:
00139
00140 INT32 m_Indent;
00141
00142
00143 };
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156 class AttrBevel : public NodeAttribute
00157 {
00158 CC_DECLARE_DYNCREATE(AttrBevel)
00159 public:
00160 AttrBevel();
00161 AttrBevel(Node* ContextNode,
00162 AttachNodeDirection Direction,
00163 BOOL Locked=FALSE,
00164 BOOL Mangled=FALSE,
00165 BOOL Marked=FALSE,
00166 BOOL Selected=FALSE);
00167 } ;
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179 class AttrBevelIndent : public AttrBevel
00180 {
00181 CC_DECLARE_DYNCREATE(AttrBevelIndent)
00182
00183 public:
00184 AttrBevelIndent();
00185 AttrBevelIndent(Node* ContextNode,
00186 AttachNodeDirection Direction,
00187 BOOL Locked=FALSE,
00188 BOOL Mangled=FALSE,
00189 BOOL Marked=FALSE,
00190 BOOL Selected=FALSE);
00191
00192 void Render( RenderRegion* pRender );
00193 virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrBevelIndent); }
00194 virtual AttributeValue* GetAttributeValue() { return &Value; }
00195 virtual AttrIndex GetAttributeIndex () { return ATTR_BEVELINDENT; }
00196
00197 Node* SimpleCopy();
00198 virtual INT32 operator==(const NodeAttribute& NodeAttrib);
00199 virtual UINT32 GetAttrNameID(void);
00200
00201 void ShowDebugTreeDetails() const;
00202
00203 void GetDebugDetails(StringBase* Str);
00204
00205 virtual UINT32 GetNodeSize() const;
00206
00207 virtual void Transform( TransformBase& );
00208 virtual BOOL EffectsParentBounds() { return TRUE; }
00209
00210
00211 virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00212 virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00213
00214 void SetValue(INT32 NewValue) { Value.m_Indent = NewValue; }
00215
00216 BOOL Blend(BlendAttrParam* pBlendParam);
00217 virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00218
00219 private:
00220 void CopyNodeContents( AttrBevelIndent* NodeCopy );
00221
00222 public:
00223 BevelAttributeValueIndent Value;
00224 };
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237 class BevelAttributeValueLightAngle : public AttributeValue
00238 {
00239 CC_DECLARE_DYNCREATE(BevelAttributeValueLightAngle)
00240 public:
00241 BevelAttributeValueLightAngle();
00242 BevelAttributeValueLightAngle(INT32 val) { m_LightAngle = val; }
00243 virtual void Restore(RenderRegion *, BOOL);
00244 virtual void Render(RenderRegion *, BOOL Temp = FALSE);
00245 virtual NodeAttribute *MakeNode();
00246 BOOL IsDifferent(AttributeValue *pAttr);
00247 virtual void SimpleCopy(AttributeValue *);
00248
00249 static BOOL Init();
00250
00251 public:
00252
00253 INT32 m_LightAngle;
00254 };
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266 class AttrBevelLightAngle : public AttrBevel
00267 {
00268 CC_DECLARE_DYNCREATE(AttrBevelLightAngle)
00269
00270 public:
00271 AttrBevelLightAngle();
00272 AttrBevelLightAngle(Node* ContextNode,
00273 AttachNodeDirection Direction,
00274 BOOL Locked=FALSE,
00275 BOOL Mangled=FALSE,
00276 BOOL Marked=FALSE,
00277 BOOL Selected=FALSE);
00278
00279 virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrBevelLightAngle); }
00280 virtual AttributeValue* GetAttributeValue() { return &Value; }
00281 virtual AttrIndex GetAttributeIndex () { return ATTR_BEVELLIGHTANGLE; }
00282
00283 void Render( RenderRegion* pRender );
00284
00285 Node* SimpleCopy();
00286 virtual INT32 operator==(const NodeAttribute& NodeAttrib);
00287 virtual UINT32 GetAttrNameID(void);
00288
00289 void ShowDebugTreeDetails() const;
00290
00291 void GetDebugDetails(StringBase* Str);
00292
00293 virtual UINT32 GetNodeSize() const;
00294
00295 virtual void Transform( TransformBase& );
00296 virtual BOOL EffectsParentBounds() { return FALSE; }
00297
00298
00299 virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00300 virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00301
00302 void SetValue(INT32 NewValue) { Value.m_LightAngle = NewValue; }
00303
00304 BOOL Blend(BlendAttrParam* pBlendParam);
00305 virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00306
00307 private:
00308 void CopyNodeContents( AttrBevelLightAngle* NodeCopy );
00309
00310 public:
00311 BevelAttributeValueLightAngle Value;
00312 };
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00325 class BevelAttributeValueContrast : public AttributeValue
00326 {
00327 CC_DECLARE_DYNCREATE(BevelAttributeValueContrast)
00328 public:
00329 BevelAttributeValueContrast();
00330 BevelAttributeValueContrast(INT32 val) { m_Contrast = val; }
00331 virtual void Restore(RenderRegion *, BOOL);
00332 virtual void Render(RenderRegion *, BOOL Temp = FALSE);
00333 virtual NodeAttribute *MakeNode();
00334 BOOL IsDifferent(AttributeValue *pAttr);
00335 virtual void SimpleCopy(AttributeValue *);
00336
00337 static BOOL Init();
00338
00339 public:
00340
00341 INT32 m_Contrast;
00342 };
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00354 class AttrBevelContrast : public AttrBevel
00355 {
00356 CC_DECLARE_DYNCREATE(AttrBevelContrast)
00357
00358 public:
00359 AttrBevelContrast();
00360 AttrBevelContrast(Node* ContextNode,
00361 AttachNodeDirection Direction,
00362 BOOL Locked=FALSE,
00363 BOOL Mangled=FALSE,
00364 BOOL Marked=FALSE,
00365 BOOL Selected=FALSE);
00366
00367 virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrBevelContrast); }
00368 virtual AttributeValue* GetAttributeValue() { return &Value; }
00369 virtual AttrIndex GetAttributeIndex () { return ATTR_BEVELCONTRAST; }
00370
00371 void Render( RenderRegion* pRender );
00372
00373 Node* SimpleCopy();
00374 virtual INT32 operator==(const NodeAttribute& NodeAttrib);
00375 virtual UINT32 GetAttrNameID(void);
00376
00377 void ShowDebugTreeDetails() const;
00378
00379 void GetDebugDetails(StringBase* Str);
00380
00381 virtual UINT32 GetNodeSize() const;
00382
00383 virtual void Transform( TransformBase& );
00384 virtual BOOL EffectsParentBounds() { return FALSE; }
00385
00386
00387 virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00388 virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00389
00390 void SetValue(INT32 NewValue) { Value.m_Contrast = NewValue; }
00391
00392 BOOL Blend(BlendAttrParam* pBlendParam);
00393 virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00394
00395 private:
00396 void CopyNodeContents( AttrBevelContrast* NodeCopy );
00397
00398 public:
00399 BevelAttributeValueContrast Value;
00400 };
00401
00402
00403
00404
00405
00406
00407
00408
00409
00410
00411
00412
00413 class BevelAttributeValueType : public AttributeValue
00414 {
00415 CC_DECLARE_DYNCREATE(BevelAttributeValueType)
00416 public:
00417 BevelAttributeValueType();
00418 ~BevelAttributeValueType();
00419 BevelAttributeValueType(INT32 val);
00420 virtual void Restore(RenderRegion *, BOOL);
00421 virtual void Render(RenderRegion *, BOOL Temp = FALSE);
00422 virtual NodeAttribute *MakeNode();
00423 virtual NodeAttribute *MakeNode(Node * pNode, AttachNodeDirection Direction);
00424 BOOL IsDifferent(AttributeValue *pAttr);
00425 virtual void SimpleCopy(AttributeValue *);
00426 INT32 operator=(AttributeValue& Attrib);
00427 INT32 operator==(AttributeValue& Attrib);
00428
00429
00430 void GoingOutOfScope(RenderRegion * pRegion);
00431
00432 static BOOL Init();
00433
00434 void SetPassbackValue(BOOL b) { m_bPassback = b; }
00435
00436 public:
00437
00438 INT32 m_Type;
00439
00440
00441 BOOL m_bPassback;
00442
00443
00444
00445
00446
00447 void SetIndent(MILLIPOINT Indent) { m_Indent = Indent; }
00448 void SetLightAngle(double LightAngle) { m_LightAngle = LightAngle; }
00449 void SetContrast(INT32 Contrast) { m_Contrast = Contrast; }
00450
00451 MILLIPOINT GetIndent() { return m_Indent; }
00452 double GetLightAngle() { return m_LightAngle; }
00453 INT32 GetContrast() { return m_Contrast; }
00454
00455 private:
00456 MILLIPOINT m_Indent;
00457 double m_LightAngle;
00458 INT32 m_Contrast;
00459
00460 private:
00461 BevelAttributePathProcessor * m_pProc;
00462
00463
00464
00465 KernelBitmap * CreateBevelBitmap(RenderRegion * pRegion);
00466
00467
00468 BOOL RenderBitmap(RenderRegion * pRegion, KernelBitmap * pBitmap,
00469 Path * pSrcPath, Path * pRenderPath);
00470 };
00471
00472
00473
00474
00475
00476
00477
00478
00479
00480
00481
00482 class AttrBevelType : public AttrBevel
00483 {
00484 CC_DECLARE_DYNCREATE(AttrBevelType)
00485
00486 public:
00487 AttrBevelType();
00488 AttrBevelType(Node* ContextNode,
00489 AttachNodeDirection Direction,
00490 BOOL Locked=FALSE,
00491 BOOL Mangled=FALSE,
00492 BOOL Marked=FALSE,
00493 BOOL Selected=FALSE);
00494
00495 void Render( RenderRegion* pRender );
00496
00497 Node* SimpleCopy();
00498 virtual INT32 operator==(const NodeAttribute& NodeAttrib);
00499 virtual UINT32 GetAttrNameID(void);
00500
00501 virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrBevelType); }
00502 virtual AttributeValue* GetAttributeValue() { return &Value; }
00503 virtual AttrIndex GetAttributeIndex () { return ATTR_BEVELTYPE; }
00504
00505 void ShowDebugTreeDetails() const;
00506
00507 void GetDebugDetails(StringBase* Str);
00508
00509 virtual UINT32 GetNodeSize() const;
00510
00511 virtual void Transform( TransformBase& );
00512
00513
00514 virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00515 virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00516
00517 void SetValue(INT32 NewValue) { Value.m_Type = NewValue; }
00518
00519
00520 virtual BOOL Blend(BlendAttrParam* pBlendParam);
00521
00522 virtual BOOL EffectsParentBounds() { return Value.m_bPassback; }
00523 DocRect GetAttrBoundingRect(NodeRenderableInk* pParent = NULL, CCAttrMap* pAttribMap = NULL);
00524
00525 virtual BOOL CanBecomeA(BecomeA* pBecomeA);
00526 virtual BOOL DoBecomeA(BecomeA* pBecomeA);
00527 virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00528
00529 private:
00530 void CopyNodeContents( AttrBevelType* NodeCopy );
00531
00532 public:
00533 BevelAttributeValueType Value;
00534 };
00535
00536
00537
00538
00539
00540
00541
00542
00543
00544
00545
00546
00547 class BevelAttributeValueLightTilt : public AttributeValue
00548 {
00549 CC_DECLARE_DYNCREATE(BevelAttributeValueLightTilt)
00550 public:
00551 BevelAttributeValueLightTilt();
00552 BevelAttributeValueLightTilt(INT32 val) { m_LightTilt = val; }
00553 virtual void Restore(RenderRegion *, BOOL);
00554 virtual void Render(RenderRegion *, BOOL Temp = FALSE);
00555 virtual NodeAttribute *MakeNode();
00556 BOOL IsDifferent(AttributeValue *pAttr);
00557 virtual void SimpleCopy(AttributeValue *);
00558
00559 static BOOL Init();
00560
00561 public:
00562
00563 INT32 m_LightTilt;
00564 };
00565
00566
00567
00568
00569
00570
00571
00572
00573
00574
00575
00576 class AttrBevelLightTilt : public AttrBevel
00577 {
00578 CC_DECLARE_DYNCREATE(AttrBevelLightTilt)
00579
00580 public:
00581 AttrBevelLightTilt();
00582 AttrBevelLightTilt(Node* ContextNode,
00583 AttachNodeDirection Direction,
00584 BOOL Locked=FALSE,
00585 BOOL Mangled=FALSE,
00586 BOOL Marked=FALSE,
00587 BOOL Selected=FALSE);
00588
00589 virtual CCRuntimeClass* GetAttributeType() { return CC_RUNTIME_CLASS(AttrBevelLightTilt); }
00590 virtual AttributeValue* GetAttributeValue() { return &Value; }
00591 virtual AttrIndex GetAttributeIndex () { return ATTR_BEVELLIGHTTILT; }
00592
00593 void Render( RenderRegion* pRender );
00594
00595 Node* SimpleCopy();
00596 virtual INT32 operator==(const NodeAttribute& NodeAttrib);
00597 virtual UINT32 GetAttrNameID(void);
00598
00599 void ShowDebugTreeDetails() const;
00600
00601 void GetDebugDetails(StringBase* Str);
00602
00603 virtual UINT32 GetNodeSize() const;
00604
00605 virtual void Transform( TransformBase& );
00606 virtual BOOL EffectsParentBounds() { return FALSE; }
00607
00608
00609 virtual BOOL WritePreChildrenWeb(BaseCamelotFilter* pFilter);
00610 virtual BOOL WritePreChildrenNative(BaseCamelotFilter* pFilter);
00611
00612 void SetValue(INT32 NewValue) { Value.m_LightTilt = NewValue; }
00613
00614 BOOL Blend(BlendAttrParam* pBlendParam);
00615 virtual void PolyCopyNodeContents(NodeRenderable* pNodeCopy);
00616
00617 private:
00618 void CopyNodeContents( AttrBevelLightTilt* NodeCopy );
00619
00620 public:
00621 BevelAttributeValueLightTilt Value;
00622 };
00623
00624 #endif