#include <fillattr2.h>
Inheritance diagram for AttrFractalColourFill:
Public Member Functions | |
AttrFractalColourFill () | |
Constructor for a fractal fill. | |
AttrFractalColourFill (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
~AttrFractalColourFill () | |
Destructor for a fractal fill. | |
virtual Node * | SimpleCopy () |
This method returns a shallow copy of the node with all Node pointers NULL. The function is virtual, and must be defined for all derived classes. | |
virtual UINT32 | GetAttrNameID (void) |
Returns a string resource ID describing the attribute. | |
virtual void | GetDebugDetails (StringBase *Str) |
Output details of this attribute to the Camelot debug tree dialog. | |
virtual UINT32 | GetNodeSize () const |
For finding the size of the node. | |
virtual AttributeValue * | GetAttributeValue () |
virtual BOOL | WritePreChildrenWeb (BaseCamelotFilter *pFilter) |
Writes the fractal fill record to the filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
virtual BOOL | WriteColourDefinitions (BaseCamelotFilter *pFilter) |
Writes out colour definitions for this fill. | |
Protected Attributes | |
FractalFillAttribute | Value |
Definition at line 2147 of file fillattr2.h.
|
Constructor for a fractal fill.
Definition at line 16801 of file fillattr.cpp. 16802 { 16803 SetFractalDPI(AttrFillGeometry::FractalDPI); 16804 }
|
|
Definition at line 2153 of file fillattr2.h. 02159 : 02160 AttrTextureColourFill(ContextNode, Direction, Locked, Mangled, Marked, Selected) {}
|
|
Destructor for a fractal fill.
Definition at line 16816 of file fillattr.cpp.
|
|
Reimplemented from AttrTextureColourFill. Definition at line 2168 of file fillattr2.h. 02168 { return &Value; }
|
|
Returns a string resource ID describing the attribute.
Reimplemented from AttrTextureColourFill. Definition at line 16217 of file fillattr.cpp. 16218 { 16219 return (_R(IDS_FRACTALCLOUDSGRADFILL)); 16220 }
|
|
Output details of this attribute to the Camelot debug tree dialog.
Reimplemented from AttrTextureColourFill. Definition at line 16833 of file fillattr.cpp. 16834 { 16835 #ifdef _DEBUG 16836 AttrTextureColourFill::GetDebugDetails( Str ); 16837 16838 String_256 TempStr; 16839 16840 TempStr._MakeMsg( TEXT("\r\nFractal Fill:\r\n")); 16841 (*Str) += TempStr; 16842 16843 INT32 Seed = ((FractalFillAttribute*)GetAttributeValue())->Seed; 16844 // double Gravity = ((FractalFillAttribute*)GetAttributeValue())->Gravity.MakeDouble(); 16845 // double Graininess = ((FractalFillAttribute*)GetAttributeValue())->Graininess.MakeDouble(); 16846 // double Squash = ((FractalFillAttribute*)GetAttributeValue())->Squash.MakeDouble(); 16847 16848 TempStr._MakeMsg(TEXT("\r\n\nSeed = #1%ld "), 16849 (Seed)); 16850 (*Str) += TempStr; 16851 #endif 16852 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 16867 of file fillattr.cpp. 16868 { 16869 return sizeof(AttrFractalColourFill); 16870 }
|
|
This method returns a shallow copy of the node with all Node pointers NULL. The function is virtual, and must be defined for all derived classes.
Reimplemented from AttrTextureColourFill. Definition at line 16888 of file fillattr.cpp. 16889 { 16890 AttrFractalColourFill* NodeCopy = new AttrFractalColourFill(); 16891 if (NodeCopy == NULL) 16892 return NULL; 16893 16894 CopyNodeContents(NodeCopy); 16895 16896 return NodeCopy; 16897 }
|
|
Writes out colour definitions for this fill. > virtual BOOL AttrFractalColourFill::WriteColourDefinitions (BaseCamelotFilter* pFilter)
Reimplemented from AttrFillGeometry. Definition at line 16986 of file fillattr.cpp. 16987 { 16988 // Make sure the start & end colours are written out first. 16989 INT32 StartColRef = pFilter->WriteRecord(Value.GetStartColour()); 16990 INT32 EndColRef = pFilter->WriteRecord(Value.GetEndColour()); 16991 16992 // Are the colour refs ok? 16993 BOOL ok = (StartColRef != 0) && (EndColRef != 0); 16994 16995 return (ok); 16996 }
|
|
Reimplemented from Node. Definition at line 16962 of file fillattr.cpp. 16963 { 16964 #ifdef DO_EXPORT 16965 return WritePreChildrenWeb(pFilter); 16966 #else 16967 return FALSE; 16968 #endif 16969 }
|
|
Writes the fractal fill record to the filter. > virtual BOOL AttrFractalColourFill::WritePreChildrenWeb(BaseCamelotFilter* pFilter)
Reimplemented from Node. Definition at line 16913 of file fillattr.cpp. 16914 { 16915 #ifdef DO_EXPORT 16916 ERROR2IF(pFilter == NULL,FALSE,"NULL filter param"); 16917 16918 BOOL ok = TRUE; 16919 16920 // Make sure the start & end colours are written out first. 16921 INT32 StartColRef = pFilter->WriteRecord(Value.GetStartColour()); 16922 INT32 EndColRef = pFilter->WriteRecord(Value.GetEndColour()); 16923 16924 // Are the colour refs ok? 16925 ok = (StartColRef != 0) && (EndColRef != 0); 16926 16927 if (ok) 16928 { 16929 CamelotFileRecord Rec(pFilter,TAG_FRACTALFILL,TAG_FRACTALFILL_SIZE); 16930 16931 if (ok) ok = Rec.Init(); 16932 if (ok) ok = Rec.WriteCoord(Value.StartPoint); 16933 if (ok) ok = Rec.WriteCoord(Value.EndPoint); 16934 if (ok) ok = Rec.WriteCoord(Value.EndPoint2); 16935 if (ok) ok = Rec.WriteReference(StartColRef); 16936 if (ok) ok = Rec.WriteReference(EndColRef); 16937 16938 if (ok) ok = Rec.WriteINT32(Value.Seed); 16939 if (ok) ok = Rec.WriteFIXED16(Value.Graininess); 16940 if (ok) ok = Rec.WriteFIXED16(Value.Gravity); 16941 if (ok) ok = Rec.WriteFIXED16(Value.Squash); 16942 if (ok) ok = Rec.WriteINT32(Value.Dpi); 16943 if (ok) ok = Rec.WriteBYTE(Value.Tileable); 16944 if (ok) ok = Rec.WriteDOUBLE ((double) GetProfile ().GetBias ()); 16945 if (ok) ok = Rec.WriteDOUBLE ((double) GetProfile ().GetGain ()); 16946 16947 if (ok) ok = pFilter->Write(&Rec); 16948 } 16949 16950 if (!ok) 16951 pFilter->GotError(_R(IDE_FILE_WRITE_ERROR)); 16952 16953 return ok; 16954 #else 16955 return FALSE; 16956 #endif 16957 }
|
|
Definition at line 2176 of file fillattr2.h. |