Open CASCADE Technology 6.6.0
Public Member Functions | Protected Attributes
Aspect_WidthMap Class Reference

This class defines a WidthMap object.

#include <Aspect_WidthMap.hxx>

Inheritance diagram for Aspect_WidthMap:
Inheritance graph
[legend]

Public Member Functions

 Aspect_WidthMap ()
 Creates a width map.

void AddEntry (const Aspect_WidthMapEntry &AnEntry)
 Adds an entry in the Width map <me>.
Warning: Raises BadAccess if WidthMap size is exceeded.

Standard_Integer AddEntry (const Aspect_WidthOfLine aStyle)
 Search an identical line width entry in the width map <me>
and returns the WidthMapEntry Index if exist.
Or add a new entry and returns the computed WidthMapEntry index used.

Standard_Integer AddEntry (const Quantity_Length aStyle)
 Search an identical line width entry in the width map <me>
and returns the WidthMapEntry Index if exist.
Or add a new entry and returns the computed WidthMapEntry index used.

Standard_Integer Size () const
 Returns the Allocated widthmap Size

Standard_Integer Index (const Standard_Integer aWidthmapIndex) const
 Returns the WidthMapEntry.Index of the WidthMap
at rank <aWidthmapIndex> .

Aspect_WidthMapEntry Entry (const Standard_Integer AnIndex) const
 Returns the Width map entry with the index <AnIndex>.
Warning: Raises BadAccess if the index less than 1 or
greater than Size.

void Dump () const

Protected Attributes

Aspect_SequenceOfWidthMapEntry mydata

Constructor & Destructor Documentation

Aspect_WidthMap::Aspect_WidthMap ( )

Member Function Documentation

void Aspect_WidthMap::AddEntry ( const Aspect_WidthMapEntry AnEntry)
Standard_Integer Aspect_WidthMap::AddEntry ( const Aspect_WidthOfLine  aStyle)
Standard_Integer Aspect_WidthMap::AddEntry ( const Quantity_Length  aStyle)
void Aspect_WidthMap::Dump ( ) const
Aspect_WidthMapEntry Aspect_WidthMap::Entry ( const Standard_Integer  AnIndex) const
Standard_Integer Aspect_WidthMap::Index ( const Standard_Integer  aWidthmapIndex) const
Standard_Integer Aspect_WidthMap::Size ( ) const

Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines