1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
|
// File generated by CPPExt (Transient)
//
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#ifndef _IGESGraph_TextDisplayTemplate_HeaderFile
#define _IGESGraph_TextDisplayTemplate_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Handle_IGESGraph_TextDisplayTemplate_HeaderFile
#include <Handle_IGESGraph_TextDisplayTemplate.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_IGESGraph_TextFontDef_HeaderFile
#include <Handle_IGESGraph_TextFontDef.hxx>
#endif
#ifndef _gp_XYZ_HeaderFile
#include <gp_XYZ.hxx>
#endif
#ifndef _IGESData_IGESEntity_HeaderFile
#include <IGESData_IGESEntity.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class IGESGraph_TextFontDef;
class gp_XYZ;
class gp_Pnt;
//! defines IGES TextDisplayTemplate Entity, <br>
//! Type <312>, form <0, 1> in package IGESGraph <br>
class IGESGraph_TextDisplayTemplate : public IGESData_IGESEntity {
public:
// Methods PUBLIC
//
Standard_EXPORT IGESGraph_TextDisplayTemplate();
//! This method is used to set the fields of the class <br>
//! TextDisplayTemplate <br>
//! - aWidth : Character box width <br>
//! - aHeight : Character box height <br>
//! - afontCode : Font code <br>
//! - aFontEntity : Text Font Definition Entity <br>
//! - aSlantAngle : Slant angle <br>
//! - aRotationAngle : Rotation angle <br>
//! - aMirrorFlag : Mirror Flag <br>
//! - aRotationFlag : Rotate internal text flag <br>
//! - aCorner : Lower left corner coordinates(Form No. 0), <br>
//! Increments from coordinates (Form No. 1) <br>
Standard_EXPORT void Init(const Standard_Real aWidth,const Standard_Real aHeight,const Standard_Integer aFontCode,const Handle(IGESGraph_TextFontDef)& aFontEntity,const Standard_Real aSlantAngle,const Standard_Real aRotationAngle,const Standard_Integer aMirrorFlag,const Standard_Integer aRotationFlag,const gp_XYZ& aCorner) ;
//! Sets <me> to be Incremental (Form 1) if <mode> is True, <br>
//! or Basolute (Form 0) else <br>
Standard_EXPORT void SetIncremental(const Standard_Boolean mode) ;
//! returns True if entity is Incremental (Form 1). <br>
//! False if entity is Absolute (Form 0). <br>
Standard_EXPORT Standard_Boolean IsIncremental() const;
//! returns Character Box Width. <br>
Standard_EXPORT Standard_Real BoxWidth() const;
//! returns Character Box Height. <br>
Standard_EXPORT Standard_Real BoxHeight() const;
//! returns False if theFontEntity is Null, True otherwise. <br>
Standard_EXPORT Standard_Boolean IsFontEntity() const;
//! returns the font code. <br>
Standard_EXPORT Standard_Integer FontCode() const;
//! returns Text Font Definition Entity used to define the font. <br>
Standard_EXPORT Handle_IGESGraph_TextFontDef FontEntity() const;
//! returns slant angle of character in radians. <br>
Standard_EXPORT Standard_Real SlantAngle() const;
//! returns Rotation angle of text block in radians. <br>
Standard_EXPORT Standard_Real RotationAngle() const;
//! returns Mirror flag <br>
//! Mirror flag : 0 = no mirroring. <br>
//! 1 = mirror axis perpendicular to text base line. <br>
//! 2 = mirror axis is text base line. <br>
Standard_EXPORT Standard_Integer MirrorFlag() const;
//! returns Rotate internal text flag. <br>
//! Rotate internal text flag : 0 = text horizontal. <br>
//! 1 = text vertical. <br>
Standard_EXPORT Standard_Integer RotateFlag() const;
//! If IsIncremental() returns False, <br>
//! gets coordinates of lower left corner <br>
//! of first character box. <br>
//! If IsIncremental() returns True, <br>
//! gets increments from X, Y, Z coordinates <br>
//! found in parent entity. <br>
Standard_EXPORT gp_Pnt StartingCorner() const;
//! If IsIncremental() returns False, <br>
//! gets coordinates of lower left corner <br>
//! of first character box. <br>
//! If IsIncremental() returns True, <br>
//! gets increments from X, Y, Z coordinates <br>
//! found in parent entity. <br>
Standard_EXPORT gp_Pnt TransformedStartingCorner() const;
//Standard_EXPORT ~IGESGraph_TextDisplayTemplate();
// Type management
//
Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
//Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
protected:
// Methods PROTECTED
//
// Fields PROTECTED
//
private:
// Methods PRIVATE
//
// Fields PRIVATE
//
Standard_Real theBoxWidth;
Standard_Real theBoxHeight;
Standard_Integer theFontCode;
Handle_IGESGraph_TextFontDef theFontEntity;
Standard_Real theSlantAngle;
Standard_Real theRotationAngle;
Standard_Integer theMirrorFlag;
Standard_Integer theRotateFlag;
gp_XYZ theCorner;
};
// other Inline functions and methods (like "C++: function call" methods)
//
#endif
|