Open CASCADE Technology 6.6.0
Public Member Functions
IGESDimen_NewGeneralNote Class Reference

defines NewGeneralNote, Type <213> Form <0>
in package IGESDimen
Further attributes for formatting text strings

#include <IGESDimen_NewGeneralNote.hxx>

Inheritance diagram for IGESDimen_NewGeneralNote:
Inheritance graph
[legend]

Public Member Functions

 IGESDimen_NewGeneralNote ()
void Init (const Standard_Real width, const Standard_Real height, const Standard_Integer justifyCode, const gp_XYZ &areaLoc, const Standard_Real areaRotationAngle, const gp_XYZ &baseLinePos, const Standard_Real normalInterlineSpace, const Handle< TColStd_HArray1OfInteger > &charDisplays, const Handle< TColStd_HArray1OfReal > &charWidths, const Handle< TColStd_HArray1OfReal > &charHeights, const Handle< TColStd_HArray1OfReal > &interCharSpc, const Handle< TColStd_HArray1OfReal > &interLineSpc, const Handle< TColStd_HArray1OfInteger > &fontStyles, const Handle< TColStd_HArray1OfReal > &charAngles, const Handle< Interface_HArray1OfHAsciiString > &controlCodeStrings, const Handle< TColStd_HArray1OfInteger > &nbChars, const Handle< TColStd_HArray1OfReal > &boxWidths, const Handle< TColStd_HArray1OfReal > &boxHeights, const Handle< TColStd_HArray1OfInteger > &charSetCodes, const Handle< IGESData_HArray1OfIGESEntity > &charSetEntities, const Handle< TColStd_HArray1OfReal > &slAngles, const Handle< TColStd_HArray1OfReal > &rotAngles, const Handle< TColStd_HArray1OfInteger > &mirrorFlags, const Handle< TColStd_HArray1OfInteger > &rotateFlags, const Handle< TColgp_HArray1OfXYZ > &startPoints, const Handle< Interface_HArray1OfHAsciiString > &texts)
 This method is used to set the fields of the class
NewGeneralNote

Standard_Real TextWidth () const
 returns width of text containment area of all strings in the note

Standard_Real TextHeight () const
 returns height of text containment area of all strings in the note

Standard_Integer JustifyCode () const
 returns Justification code of all strings within the note
0 = no justification
1 = right justified
2 = center justified
3 = left justified

gp_Pnt AreaLocation () const
 returns Text containment area Location point

gp_Pnt TransformedAreaLocation () const
 returns Text containment area Location point after Transformation

Standard_Real ZDepthAreaLocation () const
 returns distance from the containment area plane

Standard_Real AreaRotationAngle () const
 returns rotation angle of text containment area in radians

gp_Pnt BaseLinePosition () const
 returns position of first base line

gp_Pnt TransformedBaseLinePosition () const
 returns position of first base line after Transformation

Standard_Real ZDepthBaseLinePosition () const
 returns distance from the Base line position plane

Standard_Real NormalInterlineSpace () const
 returns Normal Interline Spacing

Standard_Integer NbStrings () const
 returns number of text HAsciiStrings

Standard_Integer CharacterDisplay (const Standard_Integer Index) const
 returns Fixed/Variable width character display of string
0 = Fixed
1 = Variable
raises exception if Index <= 0 or Index > NbStrings()

Standard_Boolean IsVariable (const Standard_Integer Index) const
 returns False if Character display width is Fixed
optional method, if required
raises exception if Index <= 0 or Index > NbStrings()

Standard_Real CharacterWidth (const Standard_Integer Index) const
 returns Character Width of string
raises exception if Index <= 0 or Index > NbStrings()

Standard_Real CharacterHeight (const Standard_Integer Index) const
 returns Character Height of string
raises exception if Index <= 0 or Index > NbStrings()

Standard_Real InterCharacterSpace (const Standard_Integer Index) const
 returns Inter-character spacing of string
raises exception if Index <= 0 or Index > NbStrings()

Standard_Real InterlineSpace (const Standard_Integer Index) const
 returns Interline spacing of string
raises exception if Index <= 0 or Index > NbStrings()

Standard_Integer FontStyle (const Standard_Integer Index) const
 returns FontStyle of string
raises exception if Index <= 0 or Index > NbStrings()

Standard_Real CharacterAngle (const Standard_Integer Index) const
 returns CharacterAngle of string
Angle returned will be between 0 and 2PI
raises exception if Index <= 0 or Index > NbStrings()

Handle_TCollection_HAsciiString ControlCodeString (const Standard_Integer Index) const
 returns ControlCodeString of string
raises exception if Index <= 0 or Index > NbStrings()

Standard_Integer NbCharacters (const Standard_Integer Index) const
 returns number of characters in string or zero
raises exception if Index <= 0 or Index > NbStrings()

Standard_Real BoxWidth (const Standard_Integer Index) const
 returns Box width of string
raises exception if Index <= 0 or Index > NbStrings()

Standard_Real BoxHeight (const Standard_Integer Index) const
 returns Box height of string
raises exception if Index <= 0 or Index > NbStrings()

Standard_Boolean IsCharSetEntity (const Standard_Integer Index) const
 returns False if Value, True if Pointer (Entity)
raises exception if Index <= 0 or Index > NbStrings()

Standard_Integer CharSetCode (const Standard_Integer Index) const
 returns Character Set Interpretation (default = 1) of string
returns 0 if IsCharSetEntity () is True
1 = Standard ASCII
1001 = Symbol Font1
1002 = Symbol Font2
1003 = Symbol Font3
raises exception if Index <= 0 or Index > NbStrings()

Handle_IGESData_IGESEntity CharSetEntity (const Standard_Integer Index) const
 returns Character Set Interpretation of string
returns a Null Handle if IsCharSetEntity () is False
raises exception if Index <= 0 or Index > NbStrings()

Standard_Real SlantAngle (const Standard_Integer Index) const
 returns Slant angle of string in radians
default value = PI/2
raises exception if Index <= 0 or Index > NbStrings()

Standard_Real RotationAngle (const Standard_Integer Index) const
 returns Rotation angle of string in radians
raises exception if Index <= 0 or Index > NbStrings()

Standard_Integer MirrorFlag (const Standard_Integer Index) const
 returns Mirror Flag of string
0 = no mirroring
1 = mirror axis is perpendicular to the text base line
2 = mirror axis is text base line
raises exception if Index <= 0 or Index > NbStrings()

Standard_Boolean IsMirrored (const Standard_Integer Index) const
 returns False if MirrorFlag = 0. ie. no mirroring
else returns True
raises exception if Index <= 0 or Index > NbStrings()

Standard_Integer RotateFlag (const Standard_Integer Index) const
 returns Rotate internal text Flag of string
0 = text horizontal
1 = text vertical
raises exception if Index <= 0 or Index > NbStrings()

gp_Pnt StartPoint (const Standard_Integer Index) const
 returns text start point of string
raises exception if Index <= 0 or Index > NbStrings()

gp_Pnt TransformedStartPoint (const Standard_Integer Index) const
 returns text start point of string after Transformation
raises exception if Index <= 0 or Index > NbStrings()

Standard_Real ZDepthStartPoint (const Standard_Integer Index) const
 returns distance from the start point plane
raises exception if Index <= 0 or Index > NbStrings()

Handle_TCollection_HAsciiString Text (const Standard_Integer Index) const
 returns text string
raises exception if Index <= 0 or Index > NbStrings()


Constructor & Destructor Documentation

IGESDimen_NewGeneralNote::IGESDimen_NewGeneralNote ( )

Member Function Documentation

gp_Pnt IGESDimen_NewGeneralNote::AreaLocation ( ) const
Standard_Real IGESDimen_NewGeneralNote::AreaRotationAngle ( ) const
gp_Pnt IGESDimen_NewGeneralNote::BaseLinePosition ( ) const
Standard_Real IGESDimen_NewGeneralNote::BoxHeight ( const Standard_Integer  Index) const
Standard_Real IGESDimen_NewGeneralNote::BoxWidth ( const Standard_Integer  Index) const
Standard_Real IGESDimen_NewGeneralNote::CharacterAngle ( const Standard_Integer  Index) const
Standard_Integer IGESDimen_NewGeneralNote::CharacterDisplay ( const Standard_Integer  Index) const
Standard_Real IGESDimen_NewGeneralNote::CharacterHeight ( const Standard_Integer  Index) const
Standard_Real IGESDimen_NewGeneralNote::CharacterWidth ( const Standard_Integer  Index) const
Standard_Integer IGESDimen_NewGeneralNote::CharSetCode ( const Standard_Integer  Index) const
Handle_IGESData_IGESEntity IGESDimen_NewGeneralNote::CharSetEntity ( const Standard_Integer  Index) const
Handle_TCollection_HAsciiString IGESDimen_NewGeneralNote::ControlCodeString ( const Standard_Integer  Index) const
Standard_Integer IGESDimen_NewGeneralNote::FontStyle ( const Standard_Integer  Index) const
void IGESDimen_NewGeneralNote::Init ( const Standard_Real  width,
const Standard_Real  height,
const Standard_Integer  justifyCode,
const gp_XYZ areaLoc,
const Standard_Real  areaRotationAngle,
const gp_XYZ baseLinePos,
const Standard_Real  normalInterlineSpace,
const Handle< TColStd_HArray1OfInteger > &  charDisplays,
const Handle< TColStd_HArray1OfReal > &  charWidths,
const Handle< TColStd_HArray1OfReal > &  charHeights,
const Handle< TColStd_HArray1OfReal > &  interCharSpc,
const Handle< TColStd_HArray1OfReal > &  interLineSpc,
const Handle< TColStd_HArray1OfInteger > &  fontStyles,
const Handle< TColStd_HArray1OfReal > &  charAngles,
const Handle< Interface_HArray1OfHAsciiString > &  controlCodeStrings,
const Handle< TColStd_HArray1OfInteger > &  nbChars,
const Handle< TColStd_HArray1OfReal > &  boxWidths,
const Handle< TColStd_HArray1OfReal > &  boxHeights,
const Handle< TColStd_HArray1OfInteger > &  charSetCodes,
const Handle< IGESData_HArray1OfIGESEntity > &  charSetEntities,
const Handle< TColStd_HArray1OfReal > &  slAngles,
const Handle< TColStd_HArray1OfReal > &  rotAngles,
const Handle< TColStd_HArray1OfInteger > &  mirrorFlags,
const Handle< TColStd_HArray1OfInteger > &  rotateFlags,
const Handle< TColgp_HArray1OfXYZ > &  startPoints,
const Handle< Interface_HArray1OfHAsciiString > &  texts 
)
  • width : Width of text containment area
  • height : Height of text containment area
  • justifyCode : Justification code
  • areaLoc : Text containment area location
  • areaRotationAngle : Text containment area rotation
  • baseLinePos : Base line position
  • normalInterlineSpace : Normal interline spacing
  • charDisplays : Character display type
  • charWidths : Character width
  • charHeights : Character height
  • interCharSpc : Intercharacter spacing
  • interLineSpc : Interline spacing
  • fontStyles : Font style
  • charAngles : Character angle
  • controlCodeStrings : Control Code string
  • nbChars : Number of characters in string
  • boxWidths : Box width
  • boxHeights : Box height
  • charSetCodes : Character Set Interpretation
  • charSetEntities : Character Set Font
  • slAngles : Slant angle of text in radians
  • rotAngles : Rotation angle of text in radians
  • mirrorFlags : Type of mirroring
  • rotateFlags : Rotate internal text flag
  • startPoints : Text start point
  • texts : Text strings
    raises exception if there is mismatch between the various
    Array Lengths.
Standard_Real IGESDimen_NewGeneralNote::InterCharacterSpace ( const Standard_Integer  Index) const
Standard_Real IGESDimen_NewGeneralNote::InterlineSpace ( const Standard_Integer  Index) const
Standard_Boolean IGESDimen_NewGeneralNote::IsCharSetEntity ( const Standard_Integer  Index) const
Standard_Boolean IGESDimen_NewGeneralNote::IsMirrored ( const Standard_Integer  Index) const
Standard_Boolean IGESDimen_NewGeneralNote::IsVariable ( const Standard_Integer  Index) const
Standard_Integer IGESDimen_NewGeneralNote::JustifyCode ( ) const
Standard_Integer IGESDimen_NewGeneralNote::MirrorFlag ( const Standard_Integer  Index) const
Standard_Integer IGESDimen_NewGeneralNote::NbCharacters ( const Standard_Integer  Index) const
Standard_Integer IGESDimen_NewGeneralNote::NbStrings ( ) const
Standard_Real IGESDimen_NewGeneralNote::NormalInterlineSpace ( ) const
Standard_Integer IGESDimen_NewGeneralNote::RotateFlag ( const Standard_Integer  Index) const
Standard_Real IGESDimen_NewGeneralNote::RotationAngle ( const Standard_Integer  Index) const
Standard_Real IGESDimen_NewGeneralNote::SlantAngle ( const Standard_Integer  Index) const
gp_Pnt IGESDimen_NewGeneralNote::StartPoint ( const Standard_Integer  Index) const
Handle_TCollection_HAsciiString IGESDimen_NewGeneralNote::Text ( const Standard_Integer  Index) const
Standard_Real IGESDimen_NewGeneralNote::TextHeight ( ) const
Standard_Real IGESDimen_NewGeneralNote::TextWidth ( ) const
gp_Pnt IGESDimen_NewGeneralNote::TransformedAreaLocation ( ) const
gp_Pnt IGESDimen_NewGeneralNote::TransformedBaseLinePosition ( ) const
gp_Pnt IGESDimen_NewGeneralNote::TransformedStartPoint ( const Standard_Integer  Index) const
Standard_Real IGESDimen_NewGeneralNote::ZDepthAreaLocation ( ) const
Standard_Real IGESDimen_NewGeneralNote::ZDepthBaseLinePosition ( ) const
Standard_Real IGESDimen_NewGeneralNote::ZDepthStartPoint ( const Standard_Integer  Index) const

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