MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / Attach

Method Attach

GTE/Applications/TrackObject.cpp:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void TrackObject::Attach(std::shared_ptr<Spatial> const& object)
70{
71 if (mValid && object)
72 {
73 auto node = std::dynamic_pointer_cast<Node>(mRoot);
74 if (node)
75 {
76 node->AttachChild(object);
77 }
78 }
79}
80
81void TrackObject::Detach(std::shared_ptr<Spatial> const& object)
82{

Callers 15

CreatePointsMethod · 0.80
CreateConeMeshMethod · 0.80
CreateSceneMethod · 0.80
CreatePointsMethod · 0.80
CreateTorusMeshMethod · 0.80
CreateSceneMethod · 0.80
CreateEighthSphereMethod · 0.80
CreateHalfSphereMethod · 0.80
CreateFullSphereMethod · 0.80
CreateSceneMethod · 0.80
OnPostcreateMeshMethod · 0.80
CreateSceneMethod · 0.80

Calls 1

AttachChildMethod · 0.80

Tested by

no test coverage detected