#include <fillattr2.h>
Inheritance diagram for AttrFractalTranspFill:
Public Member Functions | |
AttrFractalTranspFill () | |
Constructor for a transparency fill. | |
AttrFractalTranspFill (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
~AttrFractalTranspFill () | |
Destructor for a transparency 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 UINT32 | GetNodeSize () const |
For finding the size of the node. | |
virtual AttributeValue * | GetAttributeValue () |
virtual BOOL | HasEquivalentDefaultValue (BOOL bAppearance=FALSE) |
Determine whether this attribute has the default value or not. | |
virtual BOOL | WritePreChildrenWeb (BaseCamelotFilter *pFilter) |
Writes the fractal transparent fill record to the filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
Protected Attributes | |
FractalTranspFillAttribute | Value |
Definition at line 2368 of file fillattr2.h.
|
Constructor for a transparency fill.
Definition at line 17869 of file fillattr.cpp. 17870 { 17871 SetFractalDPI(AttrFillGeometry::FractalDPI); 17872 }
|
|
Definition at line 2374 of file fillattr2.h. 02380 : 02381 AttrTextureTranspFill(ContextNode, Direction, Locked, Mangled, Marked, Selected) {}
|
|
Destructor for a transparency fill.
Definition at line 17884 of file fillattr.cpp.
|
|
Reimplemented from AttrTextureTranspFill. Definition at line 2388 of file fillattr2.h. 02388 { return &Value; }
|
|
Returns a string resource ID describing the attribute.
Reimplemented from AttrTextureTranspFill. Definition at line 17309 of file fillattr.cpp. 17310 { 17311 return (_R(IDS_FRACTALCLOUDSTRANSPFILL)); 17312 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 17900 of file fillattr.cpp. 17901 { 17902 return sizeof(AttrFractalTranspFill); 17903 }
|
|
Determine whether this attribute has the default value or not.
Reimplemented from NodeAttribute. Definition at line 18009 of file fillattr.cpp. 18010 { 18011 // Slight bodge - we will assume that the default transparency is fully opaque 18012 if (bAppearance) 18013 return (Value.TranspType==TT_NoTranspType || (Value.TranspType==TT_Mix && Value.Transp == 0 && Value.EndTransp==0)); 18014 else 18015 return FALSE; 18016 }
|
|
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 AttrTextureTranspFill. Definition at line 17920 of file fillattr.cpp. 17921 { 17922 AttrFractalTranspFill* NodeCopy = new AttrFractalTranspFill(); 17923 if (NodeCopy == NULL) 17924 return NULL; 17925 17926 CopyNodeContents(NodeCopy); 17927 17928 return NodeCopy; 17929 }
|
|
Reimplemented from Node. Definition at line 17985 of file fillattr.cpp. 17986 { 17987 #ifdef DO_EXPORT 17988 return WritePreChildrenWeb(pFilter); 17989 #else 17990 return FALSE; 17991 #endif 17992 }
|
|
Writes the fractal transparent fill record to the filter. > virtual BOOL AttrFractalTranspFill::WritePreChildrenWeb(BaseCamelotFilter* pFilter)
Reimplemented from Node. Definition at line 17944 of file fillattr.cpp. 17945 { 17946 #ifdef DO_EXPORT 17947 ERROR2IF(pFilter == NULL,FALSE,"NULL filter param"); 17948 17949 BOOL ok = TRUE; 17950 17951 CamelotFileRecord Rec(pFilter,TAG_FRACTALTRANSPARENTFILL,TAG_FRACTALTRANSPARENTFILL_SIZE); 17952 17953 if (ok) ok = Rec.Init(); 17954 if (ok) ok = Rec.WriteCoord(Value.StartPoint); // INT32,INT32 4,4 17955 if (ok) ok = Rec.WriteCoord(Value.EndPoint); // 4,4 17956 if (ok) ok = Rec.WriteCoord(Value.EndPoint2); // 4,4 17957 17958 if (ok) ok = Rec.WriteBYTE(BYTE(Value.Transp)); // 1 17959 if (ok) ok = Rec.WriteBYTE(BYTE(Value.EndTransp)); // 1 17960 if (ok) ok = Rec.WriteBYTE(BYTE(Value.TranspType)); // 1 17961 17962 if (ok) ok = Rec.WriteINT32(Value.Seed); // 4 17963 if (ok) ok = Rec.WriteFIXED16(Value.Graininess); // 4 17964 if (ok) ok = Rec.WriteFIXED16(Value.Gravity); // 4 17965 if (ok) ok = Rec.WriteFIXED16(Value.Squash); // 4 17966 if (ok) ok = Rec.WriteINT32(Value.Dpi); // 4 17967 if (ok) ok = Rec.WriteBYTE(Value.Tileable); // 1 = 48 17968 if (ok) ok = Rec.WriteDOUBLE ((double) GetProfile ().GetBias ()); // 8 17969 if (ok) ok = Rec.WriteDOUBLE ((double) GetProfile ().GetGain ()); // 8 17970 17971 if (ok) ok = pFilter->Write(&Rec); 17972 17973 if (!ok) 17974 pFilter->GotError(_R(IDE_FILE_WRITE_ERROR)); 17975 17976 return ok; 17977 #else 17978 return FALSE; 17979 #endif 17980 }
|
|
Definition at line 2396 of file fillattr2.h. |