(Node) Added name getter/setter
Former-commit-id: 56ec0721abfba836a12c8a2de7f7c909f58a6c37
This commit is contained in:
parent
2686fe86a0
commit
636b9d3f50
|
|
@ -31,6 +31,7 @@ class NAZARA_API NzNode
|
||||||
NzVector3f GetInitialPosition() const;
|
NzVector3f GetInitialPosition() const;
|
||||||
NzQuaternionf GetInitialRotation() const;
|
NzQuaternionf GetInitialRotation() const;
|
||||||
NzVector3f GetInitialScale() const;
|
NzVector3f GetInitialScale() const;
|
||||||
|
const NzString& GetName() const;
|
||||||
virtual nzNodeType GetNodeType() const;
|
virtual nzNodeType GetNodeType() const;
|
||||||
const NzNode* GetParent() const;
|
const NzNode* GetParent() const;
|
||||||
NzVector3f GetPosition(nzCoordSys coordSys = nzCoordSys_Global) const;
|
NzVector3f GetPosition(nzCoordSys coordSys = nzCoordSys_Global) const;
|
||||||
|
|
@ -60,6 +61,7 @@ class NAZARA_API NzNode
|
||||||
void SetInitialScale(float scaleX, float scaleY, float scaleZ);
|
void SetInitialScale(float scaleX, float scaleY, float scaleZ);
|
||||||
void SetInitialPosition(const NzVector3f& translation);
|
void SetInitialPosition(const NzVector3f& translation);
|
||||||
void SetInitialPosition(float translationX, float translationXY, float translationZ);
|
void SetInitialPosition(float translationX, float translationXY, float translationZ);
|
||||||
|
void SetName(const NzString& name);
|
||||||
void SetParent(const NzNode* node = nullptr, bool keepDerived = false);
|
void SetParent(const NzNode* node = nullptr, bool keepDerived = false);
|
||||||
void SetParent(const NzNode& node, bool keepDerived = false);
|
void SetParent(const NzNode& node, bool keepDerived = false);
|
||||||
void SetPosition(const NzVector3f& translation, nzCoordSys coordSys = nzCoordSys_Local);
|
void SetPosition(const NzVector3f& translation, nzCoordSys coordSys = nzCoordSys_Local);
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,11 @@ NzVector3f NzNode::GetInitialScale() const
|
||||||
return m_initialScale;
|
return m_initialScale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const NzString& NzNode::GetName() const
|
||||||
|
{
|
||||||
|
return m_name;
|
||||||
|
}
|
||||||
|
|
||||||
nzNodeType NzNode::GetNodeType() const
|
nzNodeType NzNode::GetNodeType() const
|
||||||
{
|
{
|
||||||
return nzNodeType_Default;
|
return nzNodeType_Default;
|
||||||
|
|
@ -344,6 +349,11 @@ void NzNode::SetInitialScale(float scaleX, float scaleY, float scaleZ)
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NzNode::SetName(const NzString& name)
|
||||||
|
{
|
||||||
|
m_name = name;
|
||||||
|
}
|
||||||
|
|
||||||
void NzNode::SetParent(const NzNode* node, bool keepDerived)
|
void NzNode::SetParent(const NzNode* node, bool keepDerived)
|
||||||
{
|
{
|
||||||
if (m_parent == node)
|
if (m_parent == node)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue