[No changes]
This commit is contained in:
parent
04daaeaf7f
commit
17408d5d4e
48
libs/xassets/xcstaticmodel.cpp
Normal file
48
libs/xassets/xcstaticmodel.cpp
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
#include "xcstaticmodel.h"
|
||||||
|
|
||||||
|
XCStaticModel::XCStaticModel()
|
||||||
|
: XAsset()
|
||||||
|
, mWritable()
|
||||||
|
, mModel(new XModel())
|
||||||
|
, mOrigin()
|
||||||
|
, mInvScaledAxis()
|
||||||
|
, mAbsmin()
|
||||||
|
, mAbsmax()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void XCStaticModel::ParseData(QDataStream *aStream) {
|
||||||
|
if (GetPtr() == -1) {
|
||||||
|
// Parse writable
|
||||||
|
mWritable.ParseData(aStream);
|
||||||
|
|
||||||
|
// We would parse xmodel here, but we're using a placeholder
|
||||||
|
|
||||||
|
*aStream
|
||||||
|
>> mOrigin[0]
|
||||||
|
>> mOrigin[1]
|
||||||
|
>> mOrigin[2];
|
||||||
|
|
||||||
|
// Parse invScaledAxis
|
||||||
|
for (int i = 0; i < 3; ++i) {
|
||||||
|
*aStream
|
||||||
|
>> mInvScaledAxis[i][0]
|
||||||
|
>> mInvScaledAxis[i][1]
|
||||||
|
>> mInvScaledAxis[i][2];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Parse absmin and absmax
|
||||||
|
*aStream
|
||||||
|
>> mAbsmin[0]
|
||||||
|
>> mAbsmin[1]
|
||||||
|
>> mAbsmin[2]
|
||||||
|
>> mAbsmax[0]
|
||||||
|
>> mAbsmax[1]
|
||||||
|
>> mAbsmax[2];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void XCStaticModel::Clear()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user