Skip to content
Snippets Groups Projects
Commit c719e52e authored by Shon Ferguson's avatar Shon Ferguson
Browse files

Added GetRef functions to NiAVObject and NiObjectNET.

parent 26402dda
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,10 @@ void NiAVObject::FixLinks( const vector<NiObjectRef> & objects, list<uint> & lin
NI_A_V_OBJECT_FIXLINKS
}
list<NiObjectRef> NiAVObject::GetRefs() const {
NI_A_V_OBJECT_GETREFS
}
/*!
* This is a conveniance function that allows you to retrieve the full 4x4 matrix transform of a node. It accesses the "Rotation," "Translation," and "Scale" attributes and builds a complete 4x4 transformation matrix from them.
* \return A 4x4 transformation matrix built from the node's transform attributes.
......
......@@ -34,6 +34,7 @@ public:
virtual void Write( ostream& out, map<NiObjectRef,uint> link_map, unsigned int version, unsigned int user_version ) const;
virtual string asString( bool verbose = false ) const;
virtual void FixLinks( const vector<NiObjectRef> & objects, list<uint> & link_stack, unsigned int version, unsigned int user_version );
virtual list<NiObjectRef> GetRefs() const;
//TODO: list of NiProperty pointers. Need functions to add/remove.
//TODO: Bounding Box. What to do with newer files that have a link? Wrap this in a function and translate?
......
......@@ -28,6 +28,10 @@ void NiObjectNET::FixLinks( const vector<NiObjectRef> & objects, list<uint> & li
NI_OBJECT_N_E_T_FIXLINKS
}
list<NiObjectRef> NiObjectNET::GetRefs() const {
NI_OBJECT_N_E_T_GETREFS
}
string NiObjectNET::GetName() {
return name;
}
......
......@@ -34,7 +34,8 @@ public:
*/
virtual string GetIDString();
virtual void FixLinks( const vector<NiObjectRef> & objects, list<uint> & link_stack, unsigned int version, unsigned int user_version );
virtual list<NiObjectRef> GetRefs() const;
string GetName();
void SetName( string & new_name );
//TODO: pointer to extra data type... find out what that is. AExtraData right now. Need functions to add/remove.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment