1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0033397: Data Exchange - Implementing support for the Animation storage

Implement basis structure.
Filled basic animation structures.
This commit is contained in:
dpasukhi
2023-05-25 00:11:53 +01:00
committed by oan
parent 0a15182153
commit 20e7e98e18
28 changed files with 1369 additions and 4 deletions

View File

@@ -0,0 +1,46 @@
// Copyright (c) 2023 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include "XCAFAnimObjects_CustomOperation.hxx"
//=======================================================================
//function : XCAFAnimObjects_CustomOperation
//purpose :
//=======================================================================
XCAFAnimObjects_CustomOperation::XCAFAnimObjects_CustomOperation(const int theObjectSize,
const TCollection_AsciiString& theCustomTypeName,
const NCollection_Array1<char>& thePresentation) :
XCAFAnimObjects_Operation(false),
myObjectSize(theObjectSize),
myTypeName(theCustomTypeName),
myPresentation(1, 1, thePresentation.Lower(), thePresentation.Upper())
{
for (int anInd = thePresentation.Lower(); anInd <= thePresentation.Upper(); anInd++)
{
myPresentation.SetValue(1, anInd, thePresentation.Value(anInd));
}
}
//=======================================================================
//function : XCAFAnimObjects_CustomOperation
//purpose :
//=======================================================================
XCAFAnimObjects_CustomOperation::XCAFAnimObjects_CustomOperation(const int theObjectSize,
const TCollection_AsciiString& theCustomTypeName,
const NCollection_Array2<char>& thePresentation,
const NCollection_Array1<double>& theTimeStamps) :
XCAFAnimObjects_Operation(theTimeStamps),
myObjectSize(theObjectSize),
myTypeName(theCustomTypeName),
myPresentation(thePresentation)
{}