#include <fillattr2.h>
Inheritance diagram for AttrNoiseTranspFill:
Public Member Functions | |
AttrNoiseTranspFill () | |
Constructor for a transparency fill. | |
AttrNoiseTranspFill (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
~AttrNoiseTranspFill () | |
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 | |
NoiseTranspFillAttribute | Value |
Definition at line 2414 of file fillattr2.h.
|
Constructor for a transparency fill.
Definition at line 18037 of file fillattr.cpp. 18038 { 18039 SetFractalDPI(AttrFillGeometry::FractalDPI); 18040 }
|
|
Definition at line 2420 of file fillattr2.h. 02425 : 02426 AttrTextureTranspFill(ContextNode, Direction, Locked, Mangled, Marked, Selected) {}
|
|
Destructor for a transparency fill.
Definition at line 18052 of file fillattr.cpp.
|
|
Reimplemented from AttrTextureTranspFill. Definition at line 2433 of file fillattr2.h. 02433 { return &Value; }
|
|
Returns a string resource ID describing the attribute.
Reimplemented from AttrTextureTranspFill. Definition at line 17314 of file fillattr.cpp. 17315 { 17316 return (_R(IDS_FRACTALPLASMATRANSPFILL)); 17317 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 18068 of file fillattr.cpp. 18069 { 18070 return sizeof(AttrNoiseTranspFill); 18071 }
|
|
Determine whether this attribute has the default value or not.
Reimplemented from NodeAttribute. Definition at line 18177 of file fillattr.cpp. 18178 { 18179 // Slight bodge - we will assume that the default transparency is fully opaque 18180 if (bAppearance) 18181 return (Value.TranspType==TT_NoTranspType || (Value.TranspType==TT_Mix && Value.Transp == 0 && Value.EndTransp==0)); 18182 else 18183 return FALSE; 18184 }
|
|
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 18088 of file fillattr.cpp. 18089 { 18090 AttrNoiseTranspFill* NodeCopy = new AttrNoiseTranspFill(); 18091 if (NodeCopy == NULL) 18092 return NULL; 18093 18094 CopyNodeContents(NodeCopy); 18095 18096 return NodeCopy; 18097 }
|
|
Reimplemented from Node. Definition at line 18151 of file fillattr.cpp. 18152 { 18153 #ifdef DO_EXPORT 18154 return WritePreChildrenWeb(pFilter); 18155 #else 18156 return FALSE; 18157 #endif 18158 }
|
|
Writes the fractal transparent fill record to the filter. > virtual BOOL AttrNoiseTranspFill::WritePreChildrenWeb(BaseCamelotFilter* pFilter)
Reimplemented from Node. Definition at line 18112 of file fillattr.cpp. 18113 { 18114 #ifdef DO_EXPORT 18115 ERROR2IF(pFilter == NULL,FALSE,"NULL filter param"); 18116 18117 BOOL ok = TRUE; 18118 18119 CamelotFileRecord Rec(pFilter,TAG_NOISETRANSPARENTFILL,TAG_NOISETRANSPARENTFILL_SIZE); 18120 18121 if (ok) ok = Rec.Init(); 18122 if (ok) ok = Rec.WriteCoord(Value.StartPoint); // INT32, INT32 = 4,4 18123 if (ok) ok = Rec.WriteCoord(Value.EndPoint); // 4,4 18124 if (ok) ok = Rec.WriteCoord(Value.EndPoint2); // 4,4 18125 18126 if (ok) ok = Rec.WriteBYTE(BYTE(Value.Transp)); // 1 18127 if (ok) ok = Rec.WriteBYTE(BYTE(Value.EndTransp)); // 1 18128 if (ok) ok = Rec.WriteBYTE(BYTE(Value.TranspType)); // 1 18129 18130 if (ok) ok = Rec.WriteFIXED16(Value.GetGraininess()); // 4 18131 if (ok) ok = Rec.WriteINT32(Value.GetSeed()); // 4 18132 if (ok) ok = Rec.WriteINT32(Value.GetFractalDPI()); // 4 18133 if (ok) ok = Rec.WriteBYTE(Value.GetTileable()); // 1 = 40 18134 if (ok) ok = Rec.WriteDOUBLE ((double) GetProfile ().GetBias ()); // 8 18135 if (ok) ok = Rec.WriteDOUBLE ((double) GetProfile ().GetGain ()); // 8 18136 18137 if (ok) ok = pFilter->Write(&Rec); 18138 18139 if (!ok) 18140 pFilter->GotError(_R(IDE_FILE_WRITE_ERROR)); 18141 18142 return ok; 18143 #else 18144 return FALSE; 18145 #endif 18146 }
|
|
Definition at line 2441 of file fillattr2.h. |