2023-08-16 00:20:26 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2010-10-06 11:02:44 +00:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup collada
|
2011-02-21 08:38:53 +00:00
|
|
|
*/
|
|
|
|
|
|
2010-10-06 11:02:44 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "COLLADASWNode.h"
|
|
|
|
|
|
|
|
|
|
#include "DNA_object_types.h"
|
|
|
|
|
|
2020-03-19 09:33:03 +01:00
|
|
|
#include "collada.h"
|
2010-10-06 11:02:44 +00:00
|
|
|
#include "collada_internal.h"
|
2017-03-23 12:45:40 +01:00
|
|
|
#include "collada_utils.h"
|
2010-10-06 11:02:44 +00:00
|
|
|
|
2017-03-23 12:45:40 +01:00
|
|
|
class TransformWriter {
|
2010-10-06 11:02:44 +00:00
|
|
|
protected:
|
2019-05-27 15:02:11 +02:00
|
|
|
void add_joint_transform(COLLADASW::Node &node,
|
2019-05-28 16:11:49 +10:00
|
|
|
float mat[4][4],
|
|
|
|
|
float parent_mat[4][4],
|
|
|
|
|
BCExportSettings &export_settings,
|
|
|
|
|
bool has_restmat);
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2019-05-23 12:17:17 +02:00
|
|
|
void add_node_transform_ob(COLLADASW::Node &node, Object *ob, BCExportSettings &export_settings);
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2019-05-27 15:34:05 +02:00
|
|
|
void add_node_transform_identity(COLLADASW::Node &node, BCExportSettings &export_settings);
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2010-10-06 11:02:44 +00:00
|
|
|
private:
|
2020-07-13 11:27:09 +02:00
|
|
|
void add_transform(COLLADASW::Node &node,
|
|
|
|
|
const float loc[3],
|
|
|
|
|
const float rot[3],
|
|
|
|
|
const float scale[3]);
|
2010-10-06 11:02:44 +00:00
|
|
|
};
|