|
Open CASCADE Technology
6.7.1
|
This class defines a WidthMap object.
More...
#include <Aspect_WidthMap.hxx>

Public Member Functions | |
| Aspect_WidthMap () | |
| Creates a width map. More... | |
| void | AddEntry (const Aspect_WidthMapEntry &AnEntry) |
Adds an entry in the Width map <me>. <br> 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> <br> and returns the WidthMapEntry Index if exist. | |
| Standard_Integer | AddEntry (const Quantity_Length aStyle) |
Search an identical line width entry in the width map <me> <br> and returns the WidthMapEntry Index if exist. | |
| Standard_Integer | Size () const |
| Returns the Allocated widthmap Size More... | |
| Standard_Integer | Index (const Standard_Integer aWidthmapIndex) const |
| Returns the WidthMapEntry.Index of the WidthMap at rank <aWidthmapIndex> . More... | |
| Aspect_WidthMapEntry | Entry (const Standard_Integer AnIndex) const |
Returns the Width map entry with the index <AnIndex>. <br> Warning: Raises BadAccess if the index less than 1 or | |
| void | Dump () const |
Public Member Functions inherited from MMgt_TShared | |
| virtual void | Delete () const |
| Memory deallocator for transient classes. More... | |
Public Member Functions inherited from Standard_Transient | |
| Standard_Transient () | |
| Empty constructor. More... | |
| Standard_Transient (const Standard_Transient &) | |
| Copy constructor – does nothing. More... | |
| Standard_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter. More... | |
| virtual | ~Standard_Transient () |
| Destructor must be virtual. More... | |
| virtual void | ShallowDump (Standard_OStream &) const |
| virtual const Handle_Standard_Type & | DynamicType () const |
| Returns a type information object about this object. More... | |
| Standard_Boolean | IsInstance (const Handle_Standard_Type &theType) const |
| Returns a true value if this is an instance of Type. More... | |
| Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
| Returns a true value if this is an instance of TypeName. More... | |
| Standard_Boolean | IsKind (const Handle_Standard_Type &theType) const |
| Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
| Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
| Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
| virtual Handle_Standard_Transient | This () const |
| Returns a Handle which references this object. Must never be called to objects created in stack. More... | |
| Standard_Integer | GetRefCount () const |
| Get the reference counter of this object. More... | |
Protected Attributes | |
| Aspect_SequenceOfWidthMapEntry | mydata |
This class defines a WidthMap object.
| Aspect_WidthMap::Aspect_WidthMap | ( | ) |
Creates a width map.
| void Aspect_WidthMap::AddEntry | ( | const Aspect_WidthMapEntry & | AnEntry | ) |
Adds an entry in the Width map <me>. <br>
Warning: Raises BadAccess if WidthMap size is exceeded.
| Standard_Integer Aspect_WidthMap::AddEntry | ( | const Aspect_WidthOfLine | aStyle | ) |
Search an identical line width entry in the width map <me> <br>
and returns the WidthMapEntry Index if exist.
Or add a new entry and returns the computed WidthMapEntry index used.
| Standard_Integer Aspect_WidthMap::AddEntry | ( | const Quantity_Length | aStyle | ) |
Search an identical line width entry in the width map <me> <br>
and returns the WidthMapEntry Index if exist.
Or add a new entry and returns the computed WidthMapEntry index used.
| void Aspect_WidthMap::Dump | ( | ) | const |
| Aspect_WidthMapEntry Aspect_WidthMap::Entry | ( | const Standard_Integer | AnIndex | ) | const |
Returns the Width map entry with the index <AnIndex>. <br>
Warning: Raises BadAccess if the index less than 1 or
greater than Size.
| Standard_Integer Aspect_WidthMap::Index | ( | const Standard_Integer | aWidthmapIndex | ) | const |
Returns the WidthMapEntry.Index of the WidthMap
at rank <aWidthmapIndex> .
| Standard_Integer Aspect_WidthMap::Size | ( | ) | const |
Returns the Allocated widthmap Size
|
protected |
1.8.5