AttrNoiseTranspFill Class Reference

Noisy transparent Fill Attribute class. More...

#include <fillattr2.h>

Inheritance diagram for AttrNoiseTranspFill:

AttrTextureTranspFill AttrFractalFill AttrBitmapFill AttrFillGeometry NodeAttribute NodeRenderable Node CCObject SimpleCCObject List of all members.

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 NodeSimpleCopy ()
 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 AttributeValueGetAttributeValue ()
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

Detailed Description

Noisy transparent Fill Attribute class.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/01/97
See also:
AttrTextureTranspFill

Definition at line 2414 of file fillattr2.h.


Constructor & Destructor Documentation

AttrNoiseTranspFill::AttrNoiseTranspFill  ) 
 

Constructor for a transparency fill.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/9/94

Definition at line 18037 of file fillattr.cpp.

AttrNoiseTranspFill::AttrNoiseTranspFill Node ContextNode,
AttachNodeDirection  Direction,
BOOL  Locked = FALSE,
BOOL  Mangled = FALSE,
BOOL  Marked = FALSE,
BOOL  Selected = FALSE
[inline]
 

Definition at line 2420 of file fillattr2.h.

02425                                          : 
02426             AttrTextureTranspFill(ContextNode, Direction, Locked, Mangled, Marked, Selected) {}

AttrNoiseTranspFill::~AttrNoiseTranspFill  ) 
 

Destructor for a transparency fill.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/9/94

Definition at line 18052 of file fillattr.cpp.

18053 {
18054 }


Member Function Documentation

virtual AttributeValue* AttrNoiseTranspFill::GetAttributeValue  )  [inline, virtual]
 

Reimplemented from AttrTextureTranspFill.

Definition at line 2433 of file fillattr2.h.

02433 { return &Value; }

UINT32 AttrNoiseTranspFill::GetAttrNameID void   )  [virtual]
 

Returns a string resource ID describing the attribute.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/8/94
Returns:
Attribute description ID

Reimplemented from AttrTextureTranspFill.

Definition at line 17314 of file fillattr.cpp.

17315 {   
17316     return (_R(IDS_FRACTALPLASMATRANSPFILL));
17317 }

UINT32 AttrNoiseTranspFill::GetNodeSize  )  const [virtual]
 

For finding the size of the node.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/8/94
Returns:
The size of the node in bytes
See also:
Node::GetSubtreeSize

Reimplemented from Node.

Definition at line 18068 of file fillattr.cpp.

18069 {     
18070     return sizeof(AttrNoiseTranspFill);
18071 }  

BOOL AttrNoiseTranspFill::HasEquivalentDefaultValue BOOL  bAppearance = FALSE  )  [virtual]
 

Determine whether this attribute has the default value or not.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/05/2005
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
TRUE if this node has a value equivalent to the relevant FALSE otherwise

Errors: -

See also:
-

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 }

Node * AttrNoiseTranspFill::SimpleCopy void   )  [virtual]
 

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.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/8/94
Returns:
A copy of the node, or NULL if memory runs out

Errors: If memory runs out when trying to copy, then ERROR is called with an out of memory error and the function returns NULL. Scope: protected

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 }  

BOOL AttrNoiseTranspFill::WritePreChildrenNative BaseCamelotFilter pFilter  )  [virtual]
 

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 }

BOOL AttrNoiseTranspFill::WritePreChildrenWeb BaseCamelotFilter pFilter  )  [virtual]
 

Writes the fractal transparent fill record to the filter.

> virtual BOOL AttrNoiseTranspFill::WritePreChildrenWeb(BaseCamelotFilter* pFilter)

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/6/96
Parameters:
pFilter = ptr to the filter [INPUTS]
Returns:
TRUE if record is written, FALSE if not
See also:
-

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 }


Member Data Documentation

NoiseTranspFillAttribute AttrNoiseTranspFill::Value [protected]
 

Definition at line 2441 of file fillattr2.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:50:29 2007 for Camelot by  doxygen 1.4.4