Open CASCADE Technology
6.5.4
|
This class defines a WidthMap object.
#include <Aspect_WidthMap.hxx>
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 |
void Aspect_WidthMap::AddEntry | ( | const Aspect_WidthMapEntry & | AnEntry | ) |
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 |