feature/test #9
31
libs/xassets/xphysgeominfo.cpp
Normal file
31
libs/xassets/xphysgeominfo.cpp
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#include "xphysgeominfo.h"
|
||||||
|
|
||||||
|
XPhysGeomInfo::XPhysGeomInfo()
|
||||||
|
: XAsset()
|
||||||
|
, mBrush(new XBrushWrapper())
|
||||||
|
, mType(0)
|
||||||
|
, mOrientation()
|
||||||
|
, mOffset()
|
||||||
|
, mHalfLengths()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
XPhysGeomInfo::~XPhysGeomInfo()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void XPhysGeomInfo::ParseData(QDataStream *aStream)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void XPhysGeomInfo::Clear()
|
||||||
|
{
|
||||||
|
mBrush = new XBrushWrapper();
|
||||||
|
mType = 0;
|
||||||
|
mOrientation = QVector<QVector3D>();
|
||||||
|
mOffset = QVector3D();
|
||||||
|
mHalfLengths = QVector3D();
|
||||||
|
}
|
||||||
24
libs/xassets/xphysgeominfo.h
Normal file
24
libs/xassets/xphysgeominfo.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#ifndef XPHYSGEOMINFO_H
|
||||||
|
#define XPHYSGEOMINFO_H
|
||||||
|
|
||||||
|
#include "xasset.h"
|
||||||
|
#include "xbrushwrapper.h"
|
||||||
|
|
||||||
|
class XPhysGeomInfo : public XAsset
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
XPhysGeomInfo();
|
||||||
|
~XPhysGeomInfo();
|
||||||
|
|
||||||
|
virtual void ParseData(QDataStream* aStream) override;
|
||||||
|
virtual void Clear() override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
XBrushWrapper *mBrush;
|
||||||
|
int mType;
|
||||||
|
QVector<QVector3D> mOrientation;
|
||||||
|
QVector3D mOffset;
|
||||||
|
QVector3D mHalfLengths;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // XPHYSGEOMINFO_H
|
||||||
Loading…
x
Reference in New Issue
Block a user