61class CORE_EXPORT QgsGltfUtils
79 static bool accessorToMapCoordinates(
const tinygltf::Model &model,
84 const QMatrix4x4 *nodeTransform,
86 QVector<double> &vx, QVector<double> &vy, QVector<double> &vz );
91 enum class ResourceType
103 static ResourceType imageResourceType(
const tinygltf::Model &model,
int index );
113 static QImage extractEmbeddedImage(
const tinygltf::Model &model,
int index );
123 static QString linkedImagePath(
const tinygltf::Model &model,
int index );
130 static std::unique_ptr<QMatrix4x4> parseNodeTransform(
const tinygltf::Node &node );
142 static bool loadImageDataWithQImage(
143 tinygltf::Image *image,
const int image_idx, std::string *err,
144 std::string *warn,
int req_width,
int req_height,
145 const unsigned char *bytes,
int size,
void *user_data );
150 static bool extractTextureCoordinates(
const tinygltf::Model &model,
int accessorIndex,
151 QVector<float> &x, QVector<float> &y );
158 static bool loadGltfModel(
const QByteArray &data, tinygltf::Model &model, QString *errors, QString *warnings );
A simple 4x4 matrix implementation useful for transformation in 3D space.
Class for storage of 3D vectors similar to QVector3D, with the difference that it uses double precisi...