AttrFractalTranspFill Class Reference

Fractal Transparency Fill Attribute class. More...

#include <fillattr2.h>

Inheritance diagram for AttrFractalTranspFill:

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

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 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

FractalTranspFillAttribute Value

Detailed Description

Fractal Transparency Fill Attribute class.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
22/8/94
See also:
AttrTextureTranspFill

Definition at line 2368 of file fillattr2.h.


Constructor & Destructor Documentation

AttrFractalTranspFill::AttrFractalTranspFill  ) 
 

Constructor for a transparency fill.

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

Definition at line 17869 of file fillattr.cpp.

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

Definition at line 2374 of file fillattr2.h.

02380                                          : 
02381             AttrTextureTranspFill(ContextNode, Direction, Locked, Mangled, Marked, Selected) {}

AttrFractalTranspFill::~AttrFractalTranspFill  ) 
 

Destructor for a transparency fill.

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

Definition at line 17884 of file fillattr.cpp.

17885 {
17886 }


Member Function Documentation

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

Reimplemented from AttrTextureTranspFill.

Definition at line 2388 of file fillattr2.h.

02388 { return &Value; }

UINT32 AttrFractalTranspFill::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 17309 of file fillattr.cpp.

17310 {   
17311     return (_R(IDS_FRACTALCLOUDSTRANSPFILL));
17312 }

UINT32 AttrFractalTranspFill::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 17900 of file fillattr.cpp.

17901 {     
17902     return sizeof(AttrFractalTranspFill);
17903 }  

BOOL AttrFractalTranspFill::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 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 }

Node * AttrFractalTranspFill::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 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 }  

BOOL AttrFractalTranspFill::WritePreChildrenNative BaseCamelotFilter pFilter  )  [virtual]
 

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 }

BOOL AttrFractalTranspFill::WritePreChildrenWeb BaseCamelotFilter pFilter  )  [virtual]
 

Writes the fractal transparent fill record to the filter.

> virtual BOOL AttrFractalTranspFill::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 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 }


Member Data Documentation

FractalTranspFillAttribute AttrFractalTranspFill::Value [protected]
 

Definition at line 2396 of file fillattr2.h.


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