#include <StkMeshNode.h>
|
using | filter_fn = std::function< bool(const MeshNode &)> |
| A filter function used to search through the tree. Return true on nodes that should be returned.
|
|
|
| MeshNode (MeshGraphicsModel *model, const std::string &name="") |
|
void | setName (const std::string &name) |
|
const std::string & | getName () const |
|
void | setTransform (const STK::Matrix4x4f &transform) |
|
const STK::Matrix4x4f & | getTransform () const |
|
const STK::Matrix4x4f & | getGlobalTransform () const |
| The global transform is the combined transform of this node and its parents.
|
|
void | update (const STK::Matrix4x4f &m) |
|
void | addMesh (const std::shared_ptr< Mesh > &mesh) |
|
void | addChild (const std::shared_ptr< MeshNode > &mesh_node) |
|
const auto & | getMeshes () const |
|
auto & | getMeshes () |
|
const auto & | getChildren () const |
|
auto & | getChildren () |
|
std::shared_ptr< MeshNode > | refCopy (STK::MeshGraphicsModel *model, std::map< MeshNode *, std::shared_ptr< MeshNode > > &node_map) |
|
bool | visible () const |
|
void | setVisible (const bool visible) |
|
|
static void | findMeshNodes (const filter_fn &fn, const std::shared_ptr< MeshNode > &root, std::vector< std::shared_ptr< MeshNode > > &nodes) |
|
MeshNode - A transformation node containing one or more meshes.
◆ refCopy()
Copy the node (semi-shallow) The nodes are constructed with the supplied model as parameter. This method makes deep copies of the node itself so that it can have unique transformations. It also copies the meshes, but with references to shared mesh data.
The documentation for this class was generated from the following files:
- Native/SilentToolkit/StkScene/StkMeshNode.h
- Native/SilentToolkit/StkScene/StkMeshNode.cpp