#include <TDataStd_UAttribute.hxx>
#include <TDF_ListIteratorOfLabelList.hxx>
-// tag of the child of my label that contains information about the operator
-static const int TAG_OPERATOR = 1;
-
-// tag of the child of my label that contains information transformation points
-static const int TAG_TRSF_POINTS = 2;
-
static const Standard_GUID GUID_MUST_BE_UPDATED("80f2bb81-3873-4631-8ddd-940d2119f000");
IMPLEMENT_STANDARD_HANDLE(HYDROData_Image, HYDROData_Object)
const QPointF& thePointCOut)
{
Handle(TDataStd_RealArray) anArray;
- if (!myLab.FindChild(TAG_TRSF_POINTS).FindAttribute(TDataStd_RealArray::GetID(), anArray)) {
- anArray = TDataStd_RealArray::Set(myLab.FindChild(TAG_TRSF_POINTS), 1, 12);
+ if (!myLab.FindChild(DataTag_TrsfPoints).FindAttribute(TDataStd_RealArray::GetID(), anArray)) {
+ anArray = TDataStd_RealArray::Set(myLab.FindChild(DataTag_TrsfPoints), 1, 12);
}
anArray->SetValue(1, thePointAIn.x());
anArray->SetValue(2, thePointAIn.y());
QPointF& thePointCOut)
{
Handle(TDataStd_RealArray) anArray;
- if (myLab.FindChild(TAG_TRSF_POINTS).FindAttribute(TDataStd_RealArray::GetID(), anArray)) {
+ if (myLab.FindChild(DataTag_TrsfPoints).FindAttribute(TDataStd_RealArray::GetID(), anArray)) {
thePointAIn = QPointF( anArray->Value(1), anArray->Value(2) ).toPoint();
thePointBIn = QPointF( anArray->Value(3), anArray->Value(4) ).toPoint();
thePointCIn = QPointF( anArray->Value(5), anArray->Value(6) ).toPoint();
void HYDROData_Image::SetOperatorName(const QString theOpName)
{
- TDataStd_Name::Set(myLab.FindChild(TAG_OPERATOR),
+ TDataStd_Name::Set(myLab.FindChild(DataTag_Operator),
TCollection_ExtendedString(theOpName.toLatin1().constData()));
}
QString HYDROData_Image::OperatorName()
{
Handle(TDataStd_Name) aName;
- if (myLab.FindChild(TAG_OPERATOR).
+ if (myLab.FindChild(DataTag_Operator).
FindAttribute(TDataStd_Name::GetID(), aName)) {
TCollection_AsciiString aStr(aName->Get());
return QString(aStr.ToCString());
void HYDROData_Image::SetArgs(const QByteArray& theArgs)
{
- SaveByteArray(TAG_OPERATOR, theArgs.constData(), theArgs.length());
+ SaveByteArray(DataTag_Operator, theArgs.constData(), theArgs.length());
}
QByteArray HYDROData_Image::Args()
{
int aLen = 0;
- const char* aData = ByteArray(TAG_OPERATOR, aLen);
+ const char* aData = ByteArray(DataTag_Operator, aLen);
if (!aLen)
return QByteArray();
return QByteArray(aData, aLen);