Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Aspect_WidthMapEntry Class Reference

This class defines a widthmap entry.
A widthmap entry is an association between
a LineStyle object and an index in the widthmap.

#include <Aspect_WidthMapEntry.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC Aspect_WidthMapEntry ()
 Creates an unallocated widthmap entry

 Aspect_WidthMapEntry (const Standard_Integer index, const Aspect_WidthOfLine style)
 Creates an allocated widthmap entry from width style

 Aspect_WidthMapEntry (const Standard_Integer index, const Quantity_Length width)
 Creates an allocated widthmap entry from width value

 Aspect_WidthMapEntry (const Aspect_WidthMapEntry &entry)
 Creates an allocated widthmap entry.

void SetValue (const Standard_Integer index, const Aspect_WidthOfLine style)
 Sets widthmap entry value from width style
and allocates it.

void SetValue (const Standard_Integer index, const Quantity_Length width)
 Sets widthmap entry value from width value
and allocates it.

void SetValue (const Aspect_WidthMapEntry &entry)
 Sets widthmap entry value and allocates it.

void operator= (const Aspect_WidthMapEntry &entry)
void SetIndex (const Standard_Integer index)
 Sets index value of a widthmap entry.

void SetType (const Aspect_WidthOfLine Style)
 Sets width style of widthmap entry.

void SetWidth (const Quantity_Length Width)
 Sets width value of widthmap entry.

Aspect_WidthOfLine Type () const
Quantity_Length Width () const
 Returns width value of widthmap entry.
Warning: Raises error if the widthmap entry is unallocated .

Standard_Integer Index () const
 Returns index value of a widthmap entry.
Warning: Raises error if the widthmap entry is unallocated .

void Free ()
 Unallocates the widthmap entry.

Standard_Boolean IsAllocated () const
 Returns True if the widthmap entry is allocated.
Warning: A widthmap entry is allocated when the width and
the index is defined.

void Dump () const

Constructor & Destructor Documentation


Member Function Documentation

void Aspect_WidthMapEntry::operator= ( const Aspect_WidthMapEntry entry) [inline]

The documentation for this class was generated from the following file: