OCC Main Page | Visualization | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Visualization
TKService
Aspect


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

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT Aspect_WidthMapEntry ()
 Creates an unallocated widthmap entry
.
Standard_EXPORT Aspect_WidthMapEntry (const Standard_Integer index, const Aspect_WidthOfLine style)
 Creates an allocated widthmap entry from width style
.
Standard_EXPORT Aspect_WidthMapEntry (const Standard_Integer index, const Quantity_Length width)
 Creates an allocated widthmap entry from width value
.
Standard_EXPORT Aspect_WidthMapEntry (const Aspect_WidthMapEntry &entry)
 Creates an allocated widthmap entry.
.
Standard_EXPORT void SetValue (const Standard_Integer index, const Aspect_WidthOfLine style)
 Sets widthmap entry value from width style
and allocates it.
.
Standard_EXPORT void SetValue (const Standard_Integer index, const Quantity_Length width)
 Sets widthmap entry value from width value
and allocates it.
.
Standard_EXPORT void SetValue (const Aspect_WidthMapEntry &entry)
 Sets widthmap entry value and allocates it.
.
void operator= (const Aspect_WidthMapEntry &entry)
Standard_EXPORT void SetIndex (const Standard_Integer index)
 Sets index value of a widthmap entry.
.
Standard_EXPORT void SetType (const Aspect_WidthOfLine Style)
 Sets width style of widthmap entry.
.
Standard_EXPORT void SetWidth (const Quantity_Length Width)
 Sets width value of widthmap entry.
.
Standard_EXPORT Aspect_WidthOfLine Type () const
Standard_EXPORT Quantity_Length Width () const
 Returns width value of widthmap entry.
Warning: Raises error if the widthmap entry is unallocated .
.
Standard_EXPORT Standard_Integer Index () const
 Returns index value of a widthmap entry.
Warning: Raises error if the widthmap entry is unallocated .
.
Standard_EXPORT void Free ()
 Unallocates the widthmap entry.
.
Standard_EXPORT 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.
.
Standard_EXPORT void Dump () const

Private Member Functions

Standard_EXPORT void SetPredefinedStyle (const Aspect_WidthOfLine Type)
 Set Line Width with the predefined style values
according of type
Warning: Raises error if the Width style is USER_DEFINED
.

Private Attributes

Aspect_WidthOfLine MyType
Standard_Real MyWidth
Standard_Integer MyIndex
Standard_Boolean MyTypeIsDef
Standard_Boolean MyIndexIsDef


Constructor & Destructor Documentation

Standard_EXPORT Aspect_WidthMapEntry::Aspect_WidthMapEntry  ) 
 

Standard_EXPORT Aspect_WidthMapEntry::Aspect_WidthMapEntry const Standard_Integer  index,
const Aspect_WidthOfLine  style
 

Standard_EXPORT Aspect_WidthMapEntry::Aspect_WidthMapEntry const Standard_Integer  index,
const Quantity_Length  width
 

Standard_EXPORT Aspect_WidthMapEntry::Aspect_WidthMapEntry const Aspect_WidthMapEntry entry  ) 
 


Member Function Documentation

Standard_EXPORT void Aspect_WidthMapEntry::Dump  )  const
 

Standard_EXPORT void Aspect_WidthMapEntry::Free  ) 
 

Standard_EXPORT Standard_Integer Aspect_WidthMapEntry::Index  )  const
 

Standard_EXPORT Standard_Boolean Aspect_WidthMapEntry::IsAllocated  )  const
 

void Aspect_WidthMapEntry::operator delete void *  anAddress  )  [inline]
 

void* Aspect_WidthMapEntry::operator new size_t  size  )  [inline]
 

void* Aspect_WidthMapEntry::operator new size_t  ,
void *  anAddress
[inline]
 

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

Standard_EXPORT void Aspect_WidthMapEntry::SetIndex const Standard_Integer  index  ) 
 

Standard_EXPORT void Aspect_WidthMapEntry::SetPredefinedStyle const Aspect_WidthOfLine  Type  )  [private]
 

Standard_EXPORT void Aspect_WidthMapEntry::SetType const Aspect_WidthOfLine  Style  ) 
 

Standard_EXPORT void Aspect_WidthMapEntry::SetValue const Aspect_WidthMapEntry entry  ) 
 

Standard_EXPORT void Aspect_WidthMapEntry::SetValue const Standard_Integer  index,
const Quantity_Length  width
 

Standard_EXPORT void Aspect_WidthMapEntry::SetValue const Standard_Integer  index,
const Aspect_WidthOfLine  style
 

Standard_EXPORT void Aspect_WidthMapEntry::SetWidth const Quantity_Length  Width  ) 
 

Standard_EXPORT Aspect_WidthOfLine Aspect_WidthMapEntry::Type  )  const
 

Standard_EXPORT Quantity_Length Aspect_WidthMapEntry::Width  )  const
 


Field Documentation

Standard_Integer Aspect_WidthMapEntry::MyIndex [private]
 

Standard_Boolean Aspect_WidthMapEntry::MyIndexIsDef [private]
 

Aspect_WidthOfLine Aspect_WidthMapEntry::MyType [private]
 

Standard_Boolean Aspect_WidthMapEntry::MyTypeIsDef [private]
 

Standard_Real Aspect_WidthMapEntry::MyWidth [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:55:28 2008 for OpenCASCADE by  doxygen 1.4.1