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
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _IGESDefs_AttributeDef_HeaderFile
#define _IGESDefs_AttributeDef_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_IGESDefs_AttributeDef.hxx>
#include <Handle_TCollection_HAsciiString.hxx>
#include <Standard_Integer.hxx>
#include <Handle_TColStd_HArray1OfInteger.hxx>
#include <Handle_TColStd_HArray1OfTransient.hxx>
#include <Handle_IGESDefs_HArray1OfHArray1OfTextDisplayTemplate.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Boolean.hxx>
#include <Handle_IGESGraph_TextDisplayTemplate.hxx>
#include <Handle_Standard_Transient.hxx>
#include <Standard_Real.hxx>
#include <Handle_IGESData_IGESEntity.hxx>
class TCollection_HAsciiString;
class TColStd_HArray1OfInteger;
class TColStd_HArray1OfTransient;
class IGESDefs_HArray1OfHArray1OfTextDisplayTemplate;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class Standard_NullObject;
class IGESGraph_TextDisplayTemplate;
class Standard_Transient;
class IGESData_IGESEntity;
//! defines IGES Attribute Table Definition Entity,
//! Type <322> Form [0, 1, 2] in package IGESDefs.
//! This is class is used to support the concept of well
//! defined collection of attributes, whether it is a table
//! or a single row of attributes.
class IGESDefs_AttributeDef : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESDefs_AttributeDef();
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Standard_Integer aListType, const Handle(TColStd_HArray1OfInteger)& attrTypes, const Handle(TColStd_HArray1OfInteger)& attrValueDataTypes, const Handle(TColStd_HArray1OfInteger)& attrValueCounts, const Handle(TColStd_HArray1OfTransient)& attrValues, const Handle(IGESDefs_HArray1OfHArray1OfTextDisplayTemplate)& attrValuePointers) ;
//! Returns True if a Table Name is defined
Standard_EXPORT Standard_Boolean HasTableName() const;
//! returns the Attribute Table name, or comment
//! (default = null, no name : seeHasTableName)
Standard_EXPORT Handle(TCollection_HAsciiString) TableName() const;
//! returns the Attribute List Type
Standard_EXPORT Standard_Integer ListType() const;
//! returns the Number of Attributes
Standard_EXPORT Standard_Integer NbAttributes() const;
//! returns the num'th Attribute Type
//! raises exception if num <= 0 or num > NbAttributes()
Standard_EXPORT Standard_Integer AttributeType (const Standard_Integer num) const;
//! returns the num'th Attribute value data type
//! raises exception if num <= 0 or num > NbAttributes()
Standard_EXPORT Standard_Integer AttributeValueDataType (const Standard_Integer num) const;
//! returns the num'th Attribute value count
//! raises exception if num <= 0 or num > NbAttributes()
Standard_EXPORT Standard_Integer AttributeValueCount (const Standard_Integer num) const;
//! returns false if Values are defined (i.e. for Form = 1 or 2)
Standard_EXPORT Standard_Boolean HasValues() const;
//! returns false if TextDisplays are defined (i.e. for Form = 2)
Standard_EXPORT Standard_Boolean HasTextDisplay() const;
Standard_EXPORT Handle(IGESGraph_TextDisplayTemplate) AttributeTextDisplay (const Standard_Integer AttrNum, const Standard_Integer PointerNum) const;
//! Returns the List of Attributes <AttrNum>, as a Transient.
//! Its effective Type depends of the Type of Attribute :
//! HArray1OfInteger for Integer, Logical(0-1),
//! HArray1OfReal for Real, HArray1OfHSaciiString for String,
//! HArray1OfIGESEntity for Entity (Pointer)
//! See methods AttributeAs... for an accurate access
Standard_EXPORT Handle(Standard_Transient) AttributeList (const Standard_Integer AttrNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as an Integer
//! Error if Indices out of Range, or no Value defined, or not an Integer
Standard_EXPORT Standard_Integer AttributeAsInteger (const Standard_Integer AttrNum, const Standard_Integer ValueNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as a Real
//! Error if Indices out of Range, or no Value defined, or not a Real
Standard_EXPORT Standard_Real AttributeAsReal (const Standard_Integer AttrNum, const Standard_Integer ValueNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as an Integer
Standard_EXPORT Handle(TCollection_HAsciiString) AttributeAsString (const Standard_Integer AttrNum, const Standard_Integer ValueNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as an Entity
//! Error if Indices out of Range, or no Value defined, or not a Entity
Standard_EXPORT Handle(IGESData_IGESEntity) AttributeAsEntity (const Standard_Integer AttrNum, const Standard_Integer ValueNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as a Boolean
//! Error if Indices out of Range, or no Value defined, or not a Logical
Standard_EXPORT Standard_Boolean AttributeAsLogical (const Standard_Integer AttrNum, const Standard_Integer ValueNum) const;
DEFINE_STANDARD_RTTI(IGESDefs_AttributeDef)
protected:
private:
Handle(TCollection_HAsciiString) theName;
Standard_Integer theListType;
Handle(TColStd_HArray1OfInteger) theAttrTypes;
Handle(TColStd_HArray1OfInteger) theAttrValueDataTypes;
Handle(TColStd_HArray1OfInteger) theAttrValueCounts;
Handle(TColStd_HArray1OfTransient) theAttrValues;
Handle(IGESDefs_HArray1OfHArray1OfTextDisplayTemplate) theAttrValuePointers;
};
#endif // _IGESDefs_AttributeDef_HeaderFile
|