BevelAttributeValueLightAngle Class Reference

Sets the indent attribute. More...

#include <attrbev.h>

Inheritance diagram for BevelAttributeValueLightAngle:

AttributeValue CCObject SimpleCCObject List of all members.

Public Member Functions

 BevelAttributeValueLightAngle ()
 BevelAttributeValueLightAngle (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_LightAngle

Detailed Description

Sets the indent attribute.

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

Definition at line 237 of file attrbev.h.


Constructor & Destructor Documentation

BevelAttributeValueLightAngle::BevelAttributeValueLightAngle  ) 
 

Definition at line 2359 of file attrbev.cpp.

02360 {
02361     m_LightAngle = 300;
02362 }

BevelAttributeValueLightAngle::BevelAttributeValueLightAngle INT32  val  )  [inline]
 

Definition at line 242 of file attrbev.h.

00242 { m_LightAngle = val; }


Member Function Documentation

BOOL BevelAttributeValueLightAngle::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 2437 of file attrbev.cpp.

02438 {
02439     BevelAttributeValueLightAngle *pAttr = new BevelAttributeValueLightAngle;
02440     if (pAttr == NULL)
02441         return FALSE;
02442 
02443     UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 
02444                                                          pAttr);
02445     if (ID == ATTR_BAD_ID)
02446         return FALSE;
02447     ENSURE(ID == ATTR_BEVELLIGHTANGLE, "Incorrect ID for attribute!");
02448     return TRUE;
02449 }

BOOL BevelAttributeValueLightAngle::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 2488 of file attrbev.cpp.

02489 {
02490     ENSURE(GetRuntimeClass() == pAttr->GetRuntimeClass(), 
02491            "Different attribute types in AttributeValue::IsDifferent()");
02492     return ((BevelAttributeValueLightAngle *) pAttr)->m_LightAngle != m_LightAngle;
02493 }

NodeAttribute * BevelAttributeValueLightAngle::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 2464 of file attrbev.cpp.

02465 {
02466     // Create new attribute node
02467     AttrBevelLightAngle *pAttr = new AttrBevelLightAngle();
02468 
02469     // Copy attribute value into the new node.
02470     pAttr->Value.SimpleCopy(this);
02471 
02472     // Return the new node
02473     return pAttr;
02474 }

void BevelAttributeValueLightAngle::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:
BevelAttributeValueLightAngle; RenderStack; AttributeValue; NodeAttribute; BevelAttributeValueLightAngle::Restore; BevelAttributeValueLightAngle::SimpleCopy; AttributeValue::Render; AttributeValue::Restore; AttributeValue::SimpleCopy

Implements AttributeValue.

Definition at line 2379 of file attrbev.cpp.

02380 {
02381 }

void BevelAttributeValueLightAngle::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:
BevelAttributeValueLightAngle; RenderStack; AttributeValue; NodeAttribute; BevelAttributeValueLightAngle::Render; BevelAttributeValueLightAngle::SimpleCopy; AttributeValue::Render; AttributeValue::Restore; AttributeValue::SimpleCopy

Implements AttributeValue.

Definition at line 2400 of file attrbev.cpp.

02401 {
02402 }

void BevelAttributeValueLightAngle::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:
BevelAttributeValueLightAngle; RenderStack; AttributeValue; NodeAttribute; BevelAttributeValueLightAngle::Render; BevelAttributeValueLightAngle::Restore; AttributeValue::Render; AttributeValue::Restore; AttributeValue::SimpleCopy

Implements AttributeValue.

Definition at line 2418 of file attrbev.cpp.

02419 {
02420     m_LightAngle = ((BevelAttributeValueLightAngle *) pValue)->m_LightAngle;
02421 }


Member Data Documentation

INT32 BevelAttributeValueLightAngle::m_LightAngle
 

Definition at line 253 of file attrbev.h.


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