renamed to ChildNode instead of SubNode
This commit is contained in:
@@ -5,21 +5,6 @@ namespace hgl
|
||||
{
|
||||
namespace graph
|
||||
{
|
||||
template<typename T> class ObjectAllocator
|
||||
{
|
||||
|
||||
template<typename OBJECT,typename ID,typename NAME> class IDNameObjectMap
|
||||
{
|
||||
ObjectList<OBJECT> obj_list;
|
||||
|
||||
Map<ID,OBJECT *> obj_map_by_id;
|
||||
Map<NAME,OBJECT *> obj_map_by_name;
|
||||
|
||||
public:
|
||||
|
||||
virtual ~IDNameObjectMap()=default;
|
||||
};//class NodeManager;
|
||||
|
||||
/**
|
||||
* 场景管理器<Br>
|
||||
* 管理一个场景中的所有资源与场景节点
|
||||
|
@@ -32,14 +32,14 @@ namespace hgl
|
||||
|
||||
protected:
|
||||
|
||||
ObjectList<SceneNode> SubNode; ///<子节点
|
||||
ObjectList<SceneNode> ChildNode; ///<子节点
|
||||
|
||||
public:
|
||||
|
||||
const SceneNodeID & GetNodeID ()const { return NodeID; } ///<取得节点ID
|
||||
const SceneNodeName & GetNodeName ()const { return NodeName; } ///<取得节点名称
|
||||
|
||||
const ObjectList<SceneNode> &GetSubNode()const { return SubNode; } ///<取得子节点列表
|
||||
const ObjectList<SceneNode> &GetChildNode()const { return ChildNode; } ///<取得子节点列表
|
||||
|
||||
public:
|
||||
|
||||
@@ -62,14 +62,14 @@ namespace hgl
|
||||
BoundingBox.SetZero();
|
||||
LocalBoundingBox.SetZero();
|
||||
|
||||
SubNode.Clear();
|
||||
ChildNode.Clear();
|
||||
render_obj=nullptr;
|
||||
}
|
||||
|
||||
const bool IsEmpty()const
|
||||
{
|
||||
if(render_obj)return(false);
|
||||
if(SubNode.GetCount())return(false);
|
||||
if(ChildNode.GetCount())return(false);
|
||||
|
||||
return(true);
|
||||
}
|
||||
@@ -82,7 +82,7 @@ namespace hgl
|
||||
if(!sn)
|
||||
return(nullptr);
|
||||
|
||||
SubNode.Add(sn);
|
||||
ChildNode.Add(sn);
|
||||
return sn;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user