File indexing completed on 2024-11-15 09:47:15
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IGESData_IGESEntity_HeaderFile
0018 #define _IGESData_IGESEntity_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Standard_Integer.hxx>
0024 #include <IGESData_DefSwitch.hxx>
0025 #include <Interface_EntityList.hxx>
0026 #include <Standard_Transient.hxx>
0027 #include <IGESData_DefType.hxx>
0028 #include <IGESData_DefList.hxx>
0029 #include <Standard_CString.hxx>
0030 class TCollection_HAsciiString;
0031 class IGESData_IGESType;
0032 class IGESData_LineFontEntity;
0033 class IGESData_LevelListEntity;
0034 class IGESData_ViewKindEntity;
0035 class IGESData_TransfEntity;
0036 class IGESData_LabelDisplayEntity;
0037 class IGESData_ColorEntity;
0038 class gp_GTrsf;
0039 class Interface_EntityIterator;
0040
0041
0042 class IGESData_IGESEntity;
0043 DEFINE_STANDARD_HANDLE(IGESData_IGESEntity, Standard_Transient)
0044
0045
0046
0047 class IGESData_IGESEntity : public Standard_Transient
0048 {
0049
0050 public:
0051
0052
0053
0054 Standard_EXPORT IGESData_IGESType IGESType() const;
0055
0056
0057 Standard_EXPORT Standard_Integer TypeNumber() const;
0058
0059
0060
0061 Standard_EXPORT Standard_Integer FormNumber() const;
0062
0063
0064
0065
0066
0067
0068
0069 Standard_EXPORT Handle(IGESData_IGESEntity) DirFieldEntity (const Standard_Integer fieldnum) const;
0070
0071
0072
0073 Standard_EXPORT Standard_Boolean HasStructure() const;
0074
0075
0076
0077 Standard_EXPORT Handle(IGESData_IGESEntity) Structure() const;
0078
0079
0080 Standard_EXPORT virtual IGESData_DefType DefLineFont() const;
0081
0082
0083
0084 Standard_EXPORT Standard_Integer RankLineFont() const;
0085
0086
0087
0088 Standard_EXPORT Handle(IGESData_LineFontEntity) LineFont() const;
0089
0090
0091 Standard_EXPORT virtual IGESData_DefList DefLevel() const;
0092
0093
0094
0095 Standard_EXPORT Standard_Integer Level() const;
0096
0097
0098
0099 Standard_EXPORT Handle(IGESData_LevelListEntity) LevelList() const;
0100
0101
0102
0103 Standard_EXPORT virtual IGESData_DefList DefView() const;
0104
0105
0106
0107
0108 Standard_EXPORT Handle(IGESData_ViewKindEntity) View() const;
0109
0110
0111
0112
0113 Standard_EXPORT Handle(IGESData_ViewKindEntity) SingleView() const;
0114
0115
0116
0117
0118 Standard_EXPORT Handle(IGESData_ViewKindEntity) ViewList() const;
0119
0120
0121 Standard_EXPORT Standard_Boolean HasTransf() const;
0122
0123
0124
0125
0126 Standard_EXPORT Handle(IGESData_TransfEntity) Transf() const;
0127
0128
0129 Standard_EXPORT Standard_Boolean HasLabelDisplay() const;
0130
0131
0132
0133 Standard_EXPORT Handle(IGESData_LabelDisplayEntity) LabelDisplay() const;
0134
0135
0136 Standard_EXPORT Standard_Integer BlankStatus() const;
0137
0138
0139 Standard_EXPORT Standard_Integer SubordinateStatus() const;
0140
0141
0142 Standard_EXPORT Standard_Integer UseFlag() const;
0143
0144
0145 Standard_EXPORT Standard_Integer HierarchyStatus() const;
0146
0147
0148 Standard_EXPORT Standard_Integer LineWeightNumber() const;
0149
0150
0151
0152 Standard_EXPORT Standard_Real LineWeight() const;
0153
0154
0155 Standard_EXPORT virtual IGESData_DefType DefColor() const;
0156
0157
0158
0159
0160 Standard_EXPORT Standard_Integer RankColor() const;
0161
0162
0163
0164
0165 Standard_EXPORT Handle(IGESData_ColorEntity) Color() const;
0166
0167
0168
0169
0170
0171
0172 Standard_EXPORT Standard_Boolean CResValues (const Standard_CString res1, const Standard_CString res2) const;
0173
0174
0175
0176 Standard_EXPORT Standard_Boolean HasShortLabel() const;
0177
0178
0179
0180 Standard_EXPORT Handle(TCollection_HAsciiString) ShortLabel() const;
0181
0182
0183
0184 Standard_EXPORT virtual Standard_Boolean HasSubScriptNumber() const;
0185
0186
0187
0188 Standard_EXPORT Standard_Integer SubScriptNumber() const;
0189
0190
0191
0192 Standard_EXPORT void InitDirFieldEntity (const Standard_Integer fieldnum, const Handle(IGESData_IGESEntity)& ent);
0193
0194
0195 Standard_EXPORT void InitTransf (const Handle(IGESData_TransfEntity)& ent);
0196
0197
0198 Standard_EXPORT void InitView (const Handle(IGESData_ViewKindEntity)& ent);
0199
0200
0201
0202 Standard_EXPORT void InitLineFont (const Handle(IGESData_LineFontEntity)& ent, const Standard_Integer rank = 0);
0203
0204
0205
0206 Standard_EXPORT void InitLevel (const Handle(IGESData_LevelListEntity)& ent, const Standard_Integer val = 0);
0207
0208
0209
0210 Standard_EXPORT void InitColor (const Handle(IGESData_ColorEntity)& ent, const Standard_Integer rank = 0);
0211
0212
0213 Standard_EXPORT void InitStatus (const Standard_Integer blank, const Standard_Integer subordinate, const Standard_Integer useflag, const Standard_Integer hierarchy);
0214
0215
0216
0217
0218 Standard_EXPORT void SetLabel (const Handle(TCollection_HAsciiString)& label, const Standard_Integer sub = -1);
0219
0220
0221
0222
0223
0224 Standard_EXPORT void InitMisc (const Handle(IGESData_IGESEntity)& str, const Handle(IGESData_LabelDisplayEntity)& lab, const Standard_Integer weightnum);
0225
0226
0227
0228
0229
0230 Standard_EXPORT Standard_Boolean HasOneParent() const;
0231
0232
0233
0234 Standard_EXPORT Handle(IGESData_IGESEntity) UniqueParent() const;
0235
0236
0237
0238
0239
0240
0241
0242 Standard_EXPORT gp_GTrsf Location() const;
0243
0244
0245
0246 Standard_EXPORT gp_GTrsf VectorLocation() const;
0247
0248
0249
0250
0251
0252 Standard_EXPORT gp_GTrsf CompoundLocation() const;
0253
0254
0255
0256 Standard_EXPORT Standard_Boolean HasName() const;
0257
0258
0259
0260
0261 Standard_EXPORT Handle(TCollection_HAsciiString) NameValue() const;
0262
0263
0264
0265
0266 Standard_EXPORT Standard_Boolean ArePresentAssociativities() const;
0267
0268
0269 Standard_EXPORT Standard_Integer NbAssociativities() const;
0270
0271
0272 Standard_EXPORT Interface_EntityIterator Associativities() const;
0273
0274
0275 Standard_EXPORT Standard_Integer NbTypedAssociativities (const Handle(Standard_Type)& atype) const;
0276
0277
0278
0279 Standard_EXPORT Handle(IGESData_IGESEntity) TypedAssociativity (const Handle(Standard_Type)& atype) const;
0280
0281
0282 Standard_EXPORT void Associate (const Handle(IGESData_IGESEntity)& ent) const;
0283
0284
0285 Standard_EXPORT void Dissociate (const Handle(IGESData_IGESEntity)& ent) const;
0286
0287
0288
0289
0290 Standard_EXPORT Standard_Boolean ArePresentProperties() const;
0291
0292
0293 Standard_EXPORT Standard_Integer NbProperties() const;
0294
0295
0296 Standard_EXPORT Interface_EntityIterator Properties() const;
0297
0298
0299 Standard_EXPORT Standard_Integer NbTypedProperties (const Handle(Standard_Type)& atype) const;
0300
0301
0302
0303 Standard_EXPORT Handle(IGESData_IGESEntity) TypedProperty (const Handle(Standard_Type)& atype, const Standard_Integer anum = 0) const;
0304
0305
0306 Standard_EXPORT void AddProperty (const Handle(IGESData_IGESEntity)& ent);
0307
0308
0309 Standard_EXPORT void RemoveProperty (const Handle(IGESData_IGESEntity)& ent);
0310
0311
0312
0313
0314 Standard_EXPORT void SetLineWeight (const Standard_Real defw, const Standard_Real maxw, const Standard_Integer gradw);
0315
0316
0317 friend class IGESData_ReadWriteModule;
0318 friend class IGESData_GeneralModule;
0319 friend class IGESData_IGESReaderTool;
0320 friend class IGESData_DirChecker;
0321
0322
0323 DEFINE_STANDARD_RTTIEXT(IGESData_IGESEntity,Standard_Transient)
0324
0325 protected:
0326
0327
0328
0329 Standard_EXPORT IGESData_IGESEntity();
0330
0331
0332
0333 Standard_EXPORT void InitTypeAndForm (const Standard_Integer typenum, const Standard_Integer formnum);
0334
0335
0336
0337 Standard_EXPORT void LoadAssociativities (const Interface_EntityList& list);
0338
0339
0340
0341 Standard_EXPORT void LoadProperties (const Interface_EntityList& list);
0342
0343
0344 Standard_EXPORT void ClearProperties();
0345
0346
0347
0348 private:
0349
0350
0351
0352 Standard_EXPORT void Clear();
0353
0354
0355 Standard_EXPORT void AddAssociativity (const Handle(IGESData_IGESEntity)& ent);
0356
0357
0358 Standard_EXPORT void RemoveAssociativity (const Handle(IGESData_IGESEntity)& ent);
0359
0360
0361 Standard_EXPORT void ClearAssociativities();
0362
0363 Standard_Integer theType;
0364 Standard_Integer theForm;
0365 Handle(IGESData_IGESEntity) theStructure;
0366 IGESData_DefSwitch theDefLineFont;
0367 Handle(IGESData_IGESEntity) theLineFont;
0368 Standard_Integer theDefLevel;
0369 Handle(IGESData_IGESEntity) theLevelList;
0370 Handle(IGESData_IGESEntity) theView;
0371 Handle(IGESData_IGESEntity) theTransf;
0372 Handle(IGESData_IGESEntity) theLabDisplay;
0373 Standard_Integer theStatusNum;
0374 Standard_Integer theLWeightNum;
0375 Standard_Real theLWeightVal;
0376 IGESData_DefSwitch theDefColor;
0377 Handle(IGESData_IGESEntity) theColor;
0378 Standard_Character theRes1[9];
0379 Standard_Character theRes2[9];
0380 Handle(TCollection_HAsciiString) theShortLabel;
0381 Standard_Integer theSubScriptN;
0382 Interface_EntityList theAssocs;
0383 Interface_EntityList theProps;
0384
0385
0386 };
0387
0388
0389
0390
0391
0392
0393
0394 #endif