Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // FBXWrapper.h
- #pragma once
- #include "stdafx.h"
- #include <fbxsdk.h>
- #include "FBXWrapper.h"
- #include "FBXUtils.h"
- using namespace System;
- using namespace System::Collections::Generic;
- namespace FBXWrapper {
- public ref class FBXHelper
- {
- public:
- FBXUtils FbxUtils;
- };
- public ref class FBXVector4
- {
- public:
- property double X
- {
- double get()
- {
- return vector->mData[0];
- };
- void set(double f)
- {
- vector->mData[0] = f;
- }
- };
- property double Y
- {
- double get()
- {
- return vector->mData[1];
- };
- void set(double f)
- {
- vector->mData[1] = f;
- }
- };
- property double Z
- {
- double get()
- {
- return vector->mData[3];
- };
- void set(double f)
- {
- vector->mData[3] = f;
- }
- };
- property double W
- {
- double get()
- {
- return vector->mData[3];
- };
- void set(double f)
- {
- vector->mData[3] = f;
- }
- };
- FBXVector4();
- FBXVector4(double x, double y, double z, double w);
- FBXVector4(FbxVector4 v);
- FbxVector4* vector;
- };
- public ref class FBXAMatrix
- {
- public:
- FBXVector4^ getR();
- void SetRow(int Y, FBXVector4^ row);
- FBXAMatrix();
- FbxAMatrix* mat;
- };
- public ref class FBXNode
- {
- public:
- FbxNode* node;
- property List<double>^ LclTranslation
- {
- List<double>^ get()
- {
- List<double>^ result = gcnew List<double>();
- FbxDouble3 tmp = node->LclTranslation.Get();
- result->Add(tmp.mData[0]);
- result->Add(tmp.mData[1]);
- result->Add(tmp.mData[2]);
- return result;
- }
- void set(List<double>^ l)
- {
- FbxDouble3 tmp;
- tmp.mData[0] = l[0];
- tmp.mData[1] = l[1];
- tmp.mData[2] = l[2];
- node->LclTranslation.Set(tmp);
- }
- }
- property List<double>^ LclRotation
- {
- List<double>^ get()
- {
- List<double>^ result = gcnew List<double>();
- FbxDouble3 tmp = node->LclRotation.Get();
- result->Add(tmp.mData[0]);
- result->Add(tmp.mData[1]);
- result->Add(tmp.mData[2]);
- return result;
- }
- void set(List<double>^ l)
- {
- FbxDouble3 tmp;
- tmp.mData[0] = l[0];
- tmp.mData[1] = l[1];
- tmp.mData[2] = l[2];
- node->LclRotation.Set(tmp);
- }
- }
- FBXNode(FbxNode* n);
- FBXNode^ FindChild(String^ name);
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement