BevelAttributeValueLightTilt Class Reference

Sets the indent attribute. More...

#include <attrbev.h>

Inheritance diagram for BevelAttributeValueLightTilt:

AttributeValue CCObject SimpleCCObject List of all members.

Public Member Functions

 BevelAttributeValueLightTilt ()
 BevelAttributeValueLightTilt (INT32 val)
virtual void Restore (RenderRegion *, BOOL)
 Restores the line width attribute for the given render region. i.e. all lines drawn will now be drawn with this line width.
virtual void Render (RenderRegion *, BOOL Temp=FALSE)
 Sets the line width attribute for the given render region. i.e. all lines drawn will now be drawn with this line width.
virtual NodeAttributeMakeNode ()
 Make a AttrbValue node from this line width attribute.
BOOL IsDifferent (AttributeValue *pAttr)
 See base class version.
virtual void SimpleCopy (AttributeValue *)
 See AttributeValue::SimpleCopy.

Static Public Member Functions

static BOOL Init ()
 Registers line width attribute, and provides a default attribute to give 0.25pt lines.

Public Attributes

INT32 m_LightTilt

Detailed Description

Sets the indent attribute.

Author:
David_McClarnon (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/98
See also:

Definition at line 547 of file attrbev.h.


Constructor & Destructor Documentation

BevelAttributeValueLightTilt::BevelAttributeValueLightTilt  ) 
 

Definition at line 2864 of file attrbev.cpp.

02865 {
02866     m_LightTilt = 32;
02867 }

BevelAttributeValueLightTilt::BevelAttributeValueLightTilt INT32  val  )  [inline]
 

Definition at line 552 of file attrbev.h.

00552 { m_LightTilt = val; }


Member Function Documentation

BOOL BevelAttributeValueLightTilt::Init void   )  [static]
 

Registers line width attribute, and provides a default attribute to give 0.25pt lines.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/04/94
Returns:
TRUE - initialised ok; FALSE if not.

Errors: Out of memory.

See also:
AttributeManager

Reimplemented from SimpleCCObject.

Definition at line 2942 of file attrbev.cpp.

02943 {
02944     BevelAttributeValueLightTilt *pAttr = new BevelAttributeValueLightTilt;
02945     if (pAttr == NULL)
02946         return FALSE;
02947 
02948     UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 
02949                                                          pAttr);
02950     if (ID == ATTR_BAD_ID)
02951         return FALSE;
02952     ENSURE(ID == ATTR_BEVELLIGHTTILT, "Incorrect ID for attribute!");
02953     return TRUE;
02954 }

BOOL BevelAttributeValueLightTilt::IsDifferent AttributeValue pAttr  )  [virtual]
 

See base class version.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/04/94
Returns:
Errors: The two attributes are not of the same type.
See also:
AttributeValue::IsDifferent

Reimplemented from AttributeValue.

Definition at line 2993 of file attrbev.cpp.

02994 {
02995     ENSURE(GetRuntimeClass() == pAttr->GetRuntimeClass(), 
02996            "Different attribute types in AttributeValue::IsDifferent()");
02997     return ((BevelAttributeValueLightTilt *) pAttr)->m_LightTilt != m_LightTilt;
02998 }

NodeAttribute * BevelAttributeValueLightTilt::MakeNode  )  [virtual]
 

Make a AttrbValue node from this line width attribute.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/04/94
Returns:
Pointer to the new node, or NULL if out of memory.

Errors: Out of memory

See also:
AttributeValue::MakeNode

Reimplemented from AttributeValue.

Definition at line 2969 of file attrbev.cpp.

02970 {
02971     // Create new attribute node
02972     AttrBevelLightTilt *pAttr = new AttrBevelLightTilt();
02973 
02974     // Copy attribute value into the new node.
02975     pAttr->Value.SimpleCopy(this);
02976 
02977     // Return the new node
02978     return pAttr;
02979 }

void BevelAttributeValueLightTilt::Render RenderRegion pRegion,
BOOL  Temp = FALSE
[virtual]
 

Sets the line width attribute for the given render region. i.e. all lines drawn will now be drawn with this line width.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
03/02/94
Parameters:
pRegion - the render region to render this attribute into. [INPUTS]
See also:
BevelAttributeValueLightTilt; RenderStack; AttributeValue; NodeAttribute; BevelAttributeValueLightTilt::Restore; BevelAttributeValueLightTilt::SimpleCopy; AttributeValue::Render; AttributeValue::Restore; AttributeValue::SimpleCopy

Implements AttributeValue.

Definition at line 2884 of file attrbev.cpp.

02885 {
02886 }

void BevelAttributeValueLightTilt::Restore RenderRegion pRegion,
BOOL  Temp
[virtual]
 

Restores the line width attribute for the given render region. i.e. all lines drawn will now be drawn with this line width.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
03/02/94
Parameters:
pRegion - the render region to restore the attribute into. [INPUTS] Temp - TRUE if this is a temporary attribute, FALSE if it is permanent (e.g. it's in a document tree).
See also:
BevelAttributeValueLightTilt; RenderStack; AttributeValue; NodeAttribute; BevelAttributeValueLightTilt::Render; BevelAttributeValueLightTilt::SimpleCopy; AttributeValue::Render; AttributeValue::Restore; AttributeValue::SimpleCopy

Implements AttributeValue.

Definition at line 2905 of file attrbev.cpp.

02906 {
02907 }

void BevelAttributeValueLightTilt::SimpleCopy AttributeValue pValue  )  [virtual]
 

See AttributeValue::SimpleCopy.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
03/02/94
Parameters:
pAttr - pointer to the AttributeValue to copy. [INPUTS]
See also:
BevelAttributeValueLightTilt; RenderStack; AttributeValue; NodeAttribute; BevelAttributeValueLightTilt::Render; BevelAttributeValueLightTilt::Restore; AttributeValue::Render; AttributeValue::Restore; AttributeValue::SimpleCopy

Implements AttributeValue.

Definition at line 2923 of file attrbev.cpp.

02924 {
02925     m_LightTilt = ((BevelAttributeValueLightTilt *) pValue)->m_LightTilt;
02926 }


Member Data Documentation

INT32 BevelAttributeValueLightTilt::m_LightTilt
 

Definition at line 563 of file attrbev.h.


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