Open CASCADE Technology
6.5.4
|
defines IGESLineFontDefPattern, Type <304> Form <2>
in package IGESGraph
Line Font may be defined by repetition of a basic pattern
of visible-blank(or, on-off) segments superimposed on
a line or a curve. The line or curve is then displayed
according to the basic pattern.
#include <IGESGraph_LineFontDefPattern.hxx>
Public Member Functions | |
IGESGraph_LineFontDefPattern () | |
void | Init (const Handle< TColStd_HArray1OfReal > &allSegLength, const Handle< TCollection_HAsciiString > &aPattern) |
This method is used to set the fields of the class LineFontDefPattern | |
Standard_Integer | NbSegments () const |
returns the number of segments in the visible-blank pattern | |
Standard_Real | Length (const Standard_Integer Index) const |
returns the Length of Index'th segment of the basic pattern raises exception if Index <= 0 or Index > NbSegments | |
Handle_TCollection_HAsciiString | DisplayPattern () const |
returns the string indicating which segments of the basic pattern are visible and which are blanked. e.g: theNbSegments = 5 and if Bit Pattern = 10110, which means that segments 2, 3 and 5 are visible, whereas segments 1 and 4 are blank. The method returns "2H16" as the HAsciiString. Note: The bits are right justified. (16h = 10110) | |
Standard_Boolean | IsVisible (const Standard_Integer Index) const |
The Display Pattern is decrypted to return True if the Index'th basic pattern is Visible, False otherwise. If Index > NbSegments or Index <= 0 then return value is False. |
Handle_TCollection_HAsciiString IGESGraph_LineFontDefPattern::DisplayPattern | ( | ) | const |
void IGESGraph_LineFontDefPattern::Init | ( | const Handle< TColStd_HArray1OfReal > & | allSegLength, |
const Handle< TCollection_HAsciiString > & | aPattern | ||
) |
Standard_Real IGESGraph_LineFontDefPattern::Length | ( | const Standard_Integer | Index | ) | const |