Classes
Namespaces
Includes
Included by
Source
/*
* Copyright 2018-2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
*
* Restricted Rights Legend
*
* Use, duplication, or disclosure of this
* software and its documentation by the
* Government is subject to restrictions as
* set forth in subdivision [(b)(3)(ii)] of
* the Rights in Technical Data and Computer
* Software clause at 52.227-7013.
*/
#ifndef __INCLUDED_GLTF_GLTFNODE__
#define __INCLUDED_GLTF_GLTFNODE__
#include "GLTFCommon.h"
#include "GLTFObject.h"
namespace ANSYS { namespace AVZ { namespace GLTFWriter {
class GLTF;
class Camera;
class Legend;
class Light;
class Mesh;
class Image;
class Node : public Object
{
protected:
virtual ~Node() {}
public:
static GLTFWRITERSPEC Node *CreateMesh(GLTF *gltf,
const char *name = 0,
bool visible = true,
const double *matrix = 0
);
static GLTFWRITERSPEC Node *CreateCamera(GLTF *gltf,
Camera *camera,
const char *name = 0,
const double *matrix = 0
);
static GLTFWRITERSPEC Node *CreateLegend(GLTF *gltf,
Legend *legend,
const char *name = 0,
bool visible = true
);
static GLTFWRITERSPEC Node *CreateLight(GLTF *gltf
);
static GLTFWRITERSPEC Node* CreateProxyImage(GLTF* gltf,
Image* image,
const char* name = 0
);
GLTFWRITERSPEC virtual bool AppendChild(Node *node
) = 0;
GLTFWRITERSPEC virtual unsigned int NumChildren() const = 0;
GLTFWRITERSPEC virtual bool AppendMesh(Mesh *mesh
) = 0;
GLTFWRITERSPEC virtual unsigned int NumMeshes() const = 0;
GLTFWRITERSPEC virtual bool AppendLight(Light *light
) = 0;
};
} } }
#endif