From 012a51f9f6773fa5bdefef5eb9477f8a95b7832e Mon Sep 17 00:00:00 2001 From: Shon Ferguson <shonferg@users.sourceforge.net> Date: Sat, 5 May 2007 18:17:12 +0000 Subject: [PATCH] More documentation. I believe all the public functions should now be documented. --- include/obj/ABoneLODController.h | 26 +++++++--- include/obj/APSysCtlr.h | 8 ++- include/obj/NiControllerManager.h | 49 ++++++++++++++++--- include/obj/NiGeomMorpherController.h | 24 ++++++++- include/obj/NiKeyframeController.h | 11 ++++- include/obj/NiLightColorController.h | 24 ++++++--- .../obj/NiMultiTargetTransformController.h | 10 +++- include/obj/NiPSysEmitterCtlr.h | 24 ++++++--- include/obj/NiParticleSystemController.h | 1 + include/obj/NiPathController.h | 24 ++++++++- include/obj/NiSingleInterpolatorController.h | 10 +++- include/obj/NiTimeController.h | 45 +++++++++++++++++ include/obj/NiUVController.h | 12 ++++- src/obj/ABoneLODController.cpp | 4 +- src/obj/NiControllerManager.cpp | 6 +-- src/obj/NiGeomMorpherController.cpp | 2 +- src/obj/NiKeyframeController.cpp | 2 +- src/obj/NiLightColorController.cpp | 4 +- src/obj/NiPSysEmitterCtlr.cpp | 4 +- src/obj/NiPathController.cpp | 4 +- src/obj/NiSingleInterpolatorController.cpp | 2 +- src/obj/NiUVController.cpp | 2 +- 22 files changed, 244 insertions(+), 54 deletions(-) diff --git a/include/obj/ABoneLODController.h b/include/obj/ABoneLODController.h index 6175d21d..d23e6147 100644 --- a/include/obj/ABoneLODController.h +++ b/include/obj/ABoneLODController.h @@ -38,37 +38,47 @@ public: /*! * Returns the number of node groups (each group a sequence of bones). + * \return The number of node groups. */ NIFLIB_API int GetNodeGroupCount() const; /*! * Returns a specific node group (each group a sequence of bones). + * \param[in] index The index of the node group to return the data for. This must be >= 0 and < the result of ABoneLODController::GetNodeGroupCount. + * \return The specified node group. */ NIFLIB_API vector<Ref<NiNode> > GetNodeGroup( int index ) const; /*! - * Add a single node to the specified group. The Group list will expand if necessary. + * Adds a single node to the specified group. The group list will expand if necessary. + * \param[in] index The index of the node group to add a node to. This must be >= 0 and < the result of ABoneLODController::GetNodeGroupCount. + * \param[in] node The node to add to the group. */ - NIFLIB_API void AddNodeToGroup( int index, Ref<NiNode> node ); + NIFLIB_API void AddNodeToGroup( int index, NiNode * node ); /*! - * Remove a single node from the specified group. + * Remove a single node from the specified node group. + * \param[in] index The index of the node group to remove a node from. This must be >= 0 and < the result of ABoneLODController::GetNodeGroupCount. + * \param[in] node The node remove from the group. */ - NIFLIB_API void RemoveNodeFromGroup( int index, Ref<NiNode> node ); + NIFLIB_API void RemoveNodeFromGroup( int index, NiNode * node ); /*! - * Assign an entire node group. + * Assigns an entire node group, replacing any nodes that were in the group before. + * \param[in] index The index of the node group to assign a list of nodes to. This must be >= 0 and < the result of ABoneLODController::GetNodeGroupCount. + * \param[in] group The list of nodes to assign to the specified node group. */ - NIFLIB_API void SetNodeGroup( int index, const vector<Ref<NiNode> >& group ); + NIFLIB_API void SetNodeGroup( int index, const vector<Ref<NiNode> > & group ); /*! - * Remove an entire node group. + * Removes an entire node group. This will cause the indices of any subsequent node groups to shift. + * \param[in] index The index of the node group to remove. This must be >= 0 and < the result of ABoneLODController::GetNodeGroupCount. */ NIFLIB_API void RemoveNodeGroup( int index ); /*! - * Clear all node groups. + * Clears all node groups. */ NIFLIB_API void ClearNodeGroups(); diff --git a/include/obj/APSysCtlr.h b/include/obj/APSysCtlr.h index d52061f4..d525d806 100644 --- a/include/obj/APSysCtlr.h +++ b/include/obj/APSysCtlr.h @@ -34,9 +34,15 @@ public: NIFLIB_HIDDEN virtual list<NiObjectRef> GetRefs() const; /*! - * Refers to modifier object by its name? + * Retrives the modifier name. This seems to refer to the modifier object by its name. + * \return The modifier name. */ NIFLIB_API string GetModifierName() const; + + /*! + * Sets the modifier name. This seems to refer to the modifier object by its name. + * \param[in] value The new modifier name. + */ NIFLIB_API void SetModifierName( string value ); protected: diff --git a/include/obj/NiControllerManager.h b/include/obj/NiControllerManager.h index e2948967..1ad41d2a 100644 --- a/include/obj/NiControllerManager.h +++ b/include/obj/NiControllerManager.h @@ -40,25 +40,58 @@ public: NIFLIB_HIDDEN virtual list<NiObjectRef> GetRefs() const; /*! - * Designates whether animation sequences are cumulative? + * Used to determine whether or not the animation sequences are cumulative. + * \return True if animation sequences are cumulative, false otherwise. */ NIFLIB_API bool GetCumulative() const; + + /*! + * Used to set whether or not the animation sequences are cumulative. + * \param[in] value True if animation sequences are to be cumulative, false otherwise. + */ NIFLIB_API void SetCumulative( bool value ); /*! - * Refers to a list of NiControllerSequence object. + * Retrives the list of controller sequences that this controller manager references. + * \return The controller sequences. + */ + NIFLIB_API vector< Ref<NiControllerSequence> > GetControllerSequences() const; + + /*! + * Sets the list of controller sequences that this controller manager references. + * \param[in] value The new controller sequences. + */ + NIFLIB_API void SetControllerSequences( const vector< Ref<NiControllerSequence> > & value ); + + + /*! + * Adds a new controller sequence to this controller manager. + * \param[in] obj The new controller sequence to add. + */ + NIFLIB_API void AddSequence( NiControllerSequence * obj ); + + /*! + * Removes a single controller sequence from this controller manager. + * \param[in] obj The controller sequence to remove. + */ + NIFLIB_API void RemoveSequence( NiControllerSequence * obj ); + + /*! + * Removes all controller sequences from this controller manager. */ - NIFLIB_API vector<Ref<NiControllerSequence > > GetControllerSequences() const; - NIFLIB_API void SetControllerSequences( const vector<Ref<NiControllerSequence > >& value ); - NIFLIB_API void AddSequence( Ref<NiControllerSequence > & obj ); - NIFLIB_API void RemoveSequence( Ref<NiControllerSequence > obj ); NIFLIB_API void ClearSequences(); /*! - * Refers to a NiDefaultAVObjectPalette. + * Retrives the oject pallete object used by this controller manager. + * \return The object pallete. */ NIFLIB_API Ref<NiDefaultAVObjectPalette > GetObjectPalette() const; - NIFLIB_API void SetObjectPalette( Ref<NiDefaultAVObjectPalette > value ); + + /*! + * Sets the object pallete object used by this controller manager. + * \param[in] value The new object pallete. + */ + NIFLIB_API void SetObjectPalette( NiDefaultAVObjectPalette * value ); protected: NI_CONTROLLER_MANAGER_MEMBERS diff --git a/include/obj/NiGeomMorpherController.h b/include/obj/NiGeomMorpherController.h index 2d83d57f..acb93350 100644 --- a/include/obj/NiGeomMorpherController.h +++ b/include/obj/NiGeomMorpherController.h @@ -39,12 +39,32 @@ public: NIFLIB_HIDDEN virtual void FixLinks( const map<unsigned int,NiObjectRef> & objects, list<unsigned int> & link_stack, const NifInfo & info ); NIFLIB_HIDDEN virtual list<NiObjectRef> GetRefs() const; - //TODO: lots of unknown data in this object + //TODO: Lots of unknown data in this object + + /*! + * Retrives a list of the interpolators used by this controller. + * \return The interpolators. + */ NIFLIB_API vector< Ref<NiInterpolator> > GetInterpolators() const; + + /*! + * Sets the list of the interpolators used by this controller. + * \param[in] n The new interpolators. + */ NIFLIB_API void SetInterpolators( const vector< Ref<NiInterpolator> > & n ); + /*! + * Retrives the morph data used by this controller. + * \return The morph data. + */ NIFLIB_API Ref<NiMorphData> GetData() const; - NIFLIB_API void SetData( const Ref<NiMorphData> & n ); + + /*! + * Sets the morph data used by this controller. + * \param[in] n The new morph data. + */ + NIFLIB_API void SetData( NiMorphData * n ); + protected: NI_GEOM_MORPHER_CONTROLLER_MEMBERS private: diff --git a/include/obj/NiKeyframeController.h b/include/obj/NiKeyframeController.h index c740f886..ac1799f5 100644 --- a/include/obj/NiKeyframeController.h +++ b/include/obj/NiKeyframeController.h @@ -39,8 +39,17 @@ public: NIFLIB_HIDDEN virtual void FixLinks( const map<unsigned int,NiObjectRef> & objects, list<unsigned int> & link_stack, const NifInfo & info ); NIFLIB_HIDDEN virtual list<NiObjectRef> GetRefs() const; + /*! + * Retrives the keyframe data used by this controller. + * \return The keyframe data. + */ NIFLIB_API Ref<NiKeyframeData> GetData() const; - NIFLIB_API void SetData( const Ref<NiKeyframeData> & n ); + + /*! + * Sets the keyframe data used by this controller. + * \param[in] n The new morph data. + */ + NIFLIB_API void SetData( NiKeyframeData * n ); protected: NI_KEYFRAME_CONTROLLER_MEMBERS diff --git a/include/obj/NiLightColorController.h b/include/obj/NiLightColorController.h index 78e2e7f2..291a09d7 100644 --- a/include/obj/NiLightColorController.h +++ b/include/obj/NiLightColorController.h @@ -40,16 +40,28 @@ public: NIFLIB_HIDDEN virtual list<NiObjectRef> GetRefs() const; /*! - * Link to NiPosData + * Retrives the pos data used by this controller. + * \return The pos data. */ - NIFLIB_API Ref<NiPosData > GetData() const; - NIFLIB_API void SetData( Ref<NiPosData > value ); + NIFLIB_API Ref<NiPosData> GetData() const; /*! - * Link to NiPoint3Interpolator. + * Sets the pos data used by this controller. + * \param[in] value The new pos data. */ - NIFLIB_API Ref<NiPoint3Interpolator > GetInterpolator() const; - NIFLIB_API void SetInterpolator( Ref<NiPoint3Interpolator > value ); + NIFLIB_API void SetData( NiPosData * value ); + + /*! + * Retrives the interpolator used by this controller. + * \return The interpolator. + */ + NIFLIB_API Ref<NiPoint3Interpolator> GetInterpolator() const; + + /*! + * Sets the interpolator used by this controller. + * \param[in] value The new interpolator. + */ + NIFLIB_API void SetInterpolator( NiPoint3Interpolator * value ); protected: NI_LIGHT_COLOR_CONTROLLER_MEMBERS diff --git a/include/obj/NiMultiTargetTransformController.h b/include/obj/NiMultiTargetTransformController.h index 24de3b67..0fdf032e 100644 --- a/include/obj/NiMultiTargetTransformController.h +++ b/include/obj/NiMultiTargetTransformController.h @@ -37,10 +37,16 @@ public: NIFLIB_HIDDEN virtual list<NiObjectRef> GetRefs() const; /*! - * NiNode Targets to be controlled. + * Retrives a list of the extra NiNode targets to be controlled. + * \return The NiNode targets to be controlled. */ NIFLIB_API vector<Ref<NiNode> > GetExtraTargets() const; - NIFLIB_API void SetExtraTargets( const vector< Ref<NiNode> >& value ); + + /*! + * Sets the list of the extra NiNode targets to be controlled. + * \param[in] value The new NiNode targets to be controlled. + */ + NIFLIB_API void SetExtraTargets( const vector< Ref<NiNode> > & value ); protected: NI_MULTI_TARGET_TRANSFORM_CONTROLLER_MEMBERS diff --git a/include/obj/NiPSysEmitterCtlr.h b/include/obj/NiPSysEmitterCtlr.h index f232faec..5260804f 100644 --- a/include/obj/NiPSysEmitterCtlr.h +++ b/include/obj/NiPSysEmitterCtlr.h @@ -40,16 +40,28 @@ public: NIFLIB_HIDDEN virtual list<NiObjectRef> GetRefs() const; /*! - * This controller's data + * Retrives the data object used by this controller. + * \return The data object. */ - NIFLIB_API Ref<NiPSysEmitterCtlrData > GetData() const; - NIFLIB_API void SetData( Ref<NiPSysEmitterCtlrData > value ); + NIFLIB_API Ref<NiPSysEmitterCtlrData> GetData() const; /*! - * Links to a bool interpolator. Controls emitter's visibility status? + * Sets the data object used by this controller. + * \param[in] value The new data object. */ - NIFLIB_API Ref<NiInterpolator > GetVisibilityInterpolator() const; - NIFLIB_API void SetVisibilityInterpolator( Ref<NiInterpolator > value ); + NIFLIB_API void SetData( NiPSysEmitterCtlrData * value ); + + /*! + * Retrives the visibility interpolator used by this controller. + * \return The visibility interpolator. + */ + NIFLIB_API Ref<NiInterpolator> GetVisibilityInterpolator() const; + + /*! + * Sets the visibility interpolator used by this controller. + * \param[in] value The new visibility interpolator. + */ + NIFLIB_API void SetVisibilityInterpolator( NiInterpolator * value ); protected: NI_P_SYS_EMITTER_CTLR_MEMBERS diff --git a/include/obj/NiParticleSystemController.h b/include/obj/NiParticleSystemController.h index 1045db99..6afa7644 100644 --- a/include/obj/NiParticleSystemController.h +++ b/include/obj/NiParticleSystemController.h @@ -42,6 +42,7 @@ public: NIFLIB_HIDDEN virtual list<NiObjectRef> GetRefs() const; //TODO: This controller is not a priority and it has a lot of unknown data. + protected: NI_PARTICLE_SYSTEM_CONTROLLER_MEMBERS private: diff --git a/include/obj/NiPathController.h b/include/obj/NiPathController.h index 6c66a5d6..776f8d7f 100644 --- a/include/obj/NiPathController.h +++ b/include/obj/NiPathController.h @@ -40,11 +40,31 @@ public: NIFLIB_HIDDEN virtual list<NiObjectRef> GetRefs() const; //TODO: This class has a lot of unknown data + + /*! + * Retrives the float data used by this controller. + * \return The float data. + */ NIFLIB_API Ref<NiFloatData> GetFloatData() const; - NIFLIB_API void SetFloatData( const Ref<NiFloatData> & n ); + /*! + * Sets the float data used by this controller. + * \param[in] n The new float data. + */ + NIFLIB_API void SetFloatData( NiFloatData * n ); + + /*! + * Retrives the pos data used by this controller. + * \return The pos data. + */ NIFLIB_API Ref<NiPosData> GetPosData() const; - NIFLIB_API void SetPosData( const Ref<NiPosData> & n ); + + /*! + * Sets the pos data used by this controller. + * \param[in] n The new pos data. + */ + NIFLIB_API void SetPosData( NiPosData * n ); + protected: NI_PATH_CONTROLLER_MEMBERS private: diff --git a/include/obj/NiSingleInterpolatorController.h b/include/obj/NiSingleInterpolatorController.h index 47c6f7b7..1e1e440e 100644 --- a/include/obj/NiSingleInterpolatorController.h +++ b/include/obj/NiSingleInterpolatorController.h @@ -40,10 +40,16 @@ public: NIFLIB_HIDDEN virtual list<NiObjectRef> GetRefs() const; /*! - * Link to interpolator. + * Retrives the interpolator used by this controller. + * \return The interpolator. */ NIFLIB_API Ref<NiInterpolator > GetInterpolator() const; - NIFLIB_API void SetInterpolator( Ref<NiInterpolator > value ); + + /*! + * Sets the interpolator used by this controller. + * \param[in] value The new interpolator. + */ + NIFLIB_API void SetInterpolator( NiInterpolator * value ); protected: NI_SINGLE_INTERPOLATOR_CONTROLLER_MEMBERS diff --git a/include/obj/NiTimeController.h b/include/obj/NiTimeController.h index feed93d5..55ed84e0 100644 --- a/include/obj/NiTimeController.h +++ b/include/obj/NiTimeController.h @@ -63,19 +63,64 @@ public: */ NIFLIB_API Ref<NiObjectNET> GetTarget(); + /*! + * Can be used to get the data stored in the flags field for this object. It is usually better to call more specific flag-toggle functions if they are availiable. + * \return The flag data. + */ NIFLIB_API unsigned short GetFlags() const; + + /*! + * Can be used to set the data stored in the flags field for this object. It is usually better to call more specific flag-toggle functions if they are availiable. + * \param[in] n The new flag data. Will overwrite any existing flag data. + */ NIFLIB_API void SetFlags( unsigned short n ); + /*! + * Gets the frequency value of this controller. This is used to map the time indices stored in the controller to seconds. The value is multiplied by the application time to arrive at the controller time, so the default value of 1.0 means that the times in the controller are already in seconds. + * \return The frequency. + */ NIFLIB_API float GetFrequency() const; + + /*! + * Sets the frequency value of this controller. This is used to map the time indices stored in the controller to seconds. The value is multiplied by the application time to arrive at the controller time, so the default value of 1.0 means that the times in the controller are already in seconds. Calling this function with a new value will not cause any changes to the data stored in the controller. + * \param[in] n The new frequency. + */ NIFLIB_API void SetFrequency( float n ); + /*! + * Gets the phase value of this controller. This is used to map the time indices stored in the controller to seconds. The value is is added to the result of the multiplication of application time by frequency to arrive at the controller time, so the default value of 0.0 means that there is no phase shift in the time indices. + * \return The phase. + */ NIFLIB_API float GetPhase() const; + + /*! + * Sets the phase value of this controller. This is used to map the time indices stored in the controller to seconds. The value is is added to the result of the multiplication of application time by frequency to arrive at the controller time, so the default value of 0.0 means that there is no phase shift in the time indices. Calling this function with a new value will not cause any changes to the data stored in the controller. + * \param[in] n The new phase. + */ NIFLIB_API void SetPhase( float n ); + /*! + * Retrieves the time index where this controller begins to take affect. If the animation type is set to wrap or cycle, the animation will not occur only between these time intervals but will be mapped to the right spot between them. This value is in controller time, i.e. phase and frequency are applied to transform it to application time. + * \return The start time for the controller animation. + */ NIFLIB_API float GetStartTime() const; + + /*! + * Sets the time index where this controller begins to take affect. If the animation type is set to wrap or cycle, the animation will not occur only between these time intervals but will be mapped to the right spot between them. This value is in controller time, i.e. phase and frequency are applied to transform it to application time. + * \param[in] n The new start time for the controller animation. + */ NIFLIB_API void SetStartTime( float n ); + /*! + * Retrieves the time index where this controller stops taking affect. If the animation type is set to wrap or cycle, the animation will not occur only between these time intervals but will be mapped to the right spot between them. This value is in controller time, i.e. phase and frequency are applied to transform it to application time. + * \return The end time for the controller animation. + */ NIFLIB_API float GetStopTime() const; + + /*! + * Sets the time index where this controller stops taking affect. If the animation type is set to wrap or cycle, the animation will not occur only between these time intervals but will be mapped to the right spot between them. This value is in controller time, i.e. phase and frequency are applied to transform it to application time. + * \param[in] n The new end time for the controller animation. + */ NIFLIB_API void SetStopTime( float n ); protected: NI_TIME_CONTROLLER_MEMBERS diff --git a/include/obj/NiUVController.h b/include/obj/NiUVController.h index 4d5c55d1..8d4a8a33 100644 --- a/include/obj/NiUVController.h +++ b/include/obj/NiUVController.h @@ -39,8 +39,18 @@ public: NIFLIB_HIDDEN virtual list<NiObjectRef> GetRefs() const; //TODO: This class has an unknown member + + /*! + * Retrives the UV data used by this controller. + * \return The UV data. + */ NIFLIB_API Ref<NiUVData> GetData() const; - NIFLIB_API void SetData( const Ref<NiUVData> & n ); + + /*! + * Sets the UV data used by this controller. + * \param[in] n The new UV data. + */ + NIFLIB_API void SetData( NiUVData * n ); protected: NI_U_V_CONTROLLER_MEMBERS diff --git a/src/obj/ABoneLODController.cpp b/src/obj/ABoneLODController.cpp index 609d6e91..21379ee1 100644 --- a/src/obj/ABoneLODController.cpp +++ b/src/obj/ABoneLODController.cpp @@ -56,7 +56,7 @@ vector<Ref<NiNode> > ABoneLODController::GetNodeGroup( int index ) const { return value; } -void ABoneLODController::AddNodeToGroup( int index, Ref<NiNode> node ) { +void ABoneLODController::AddNodeToGroup( int index, NiNode * node ) { while (index >= int(nodeGroups.size())) nodeGroups.insert(nodeGroups.end(), NodeGroup() ); numNodeGroups2 = nodeGroups.size(); @@ -67,7 +67,7 @@ void ABoneLODController::AddNodeToGroup( int index, Ref<NiNode> node ) { nodes.push_back(node); } -void ABoneLODController::RemoveNodeFromGroup( int index, Ref<NiNode> node ) { +void ABoneLODController::RemoveNodeFromGroup( int index, NiNode * node ) { if (index < 0 || index >= int(nodeGroups.size()) ) { throw runtime_error("Invalid index referenced."); } diff --git a/src/obj/NiControllerManager.cpp b/src/obj/NiControllerManager.cpp index 57dbf33f..31b02bbf 100644 --- a/src/obj/NiControllerManager.cpp +++ b/src/obj/NiControllerManager.cpp @@ -58,7 +58,7 @@ void NiControllerManager::SetControllerSequences( const vector<Ref<NiControllerS } } -void NiControllerManager::AddSequence( Ref<NiControllerSequence > & obj ) { +void NiControllerManager::AddSequence( NiControllerSequence * obj ) { vector<NiControllerSequenceRef>::iterator begin = controllerSequences.begin(); vector<NiControllerSequenceRef>::iterator end = controllerSequences.end(); vector<NiControllerSequenceRef>::iterator it = std::find(begin, end, obj); @@ -68,7 +68,7 @@ void NiControllerManager::AddSequence( Ref<NiControllerSequence > & obj ) { } } -void NiControllerManager::RemoveSequence( Ref<NiControllerSequence > obj ) { +void NiControllerManager::RemoveSequence( NiControllerSequence * obj ) { vector<NiControllerSequenceRef>::iterator begin = controllerSequences.begin(); vector<NiControllerSequenceRef>::iterator end = controllerSequences.end(); vector<NiControllerSequenceRef>::iterator it = std::find(begin, end, obj); @@ -90,7 +90,7 @@ Ref<NiDefaultAVObjectPalette > NiControllerManager::GetObjectPalette() const { return objectPalette; } -void NiControllerManager::SetObjectPalette( Ref<NiDefaultAVObjectPalette > value ) { +void NiControllerManager::SetObjectPalette( NiDefaultAVObjectPalette * value ) { objectPalette = value; } diff --git a/src/obj/NiGeomMorpherController.cpp b/src/obj/NiGeomMorpherController.cpp index 0c3ae6d7..49b75502 100644 --- a/src/obj/NiGeomMorpherController.cpp +++ b/src/obj/NiGeomMorpherController.cpp @@ -50,7 +50,7 @@ Ref<NiMorphData> NiGeomMorpherController::GetData() const { return data; } -void NiGeomMorpherController::SetData( const Ref<NiMorphData> & n ) { +void NiGeomMorpherController::SetData( NiMorphData * n ) { data = n; } diff --git a/src/obj/NiKeyframeController.cpp b/src/obj/NiKeyframeController.cpp index c2327e2b..bff3f4c2 100644 --- a/src/obj/NiKeyframeController.cpp +++ b/src/obj/NiKeyframeController.cpp @@ -40,7 +40,7 @@ Ref<NiKeyframeData> NiKeyframeController::GetData() const { return data; } -void NiKeyframeController::SetData( const Ref<NiKeyframeData> & n ) { +void NiKeyframeController::SetData( NiKeyframeData * n ) { data = n; } diff --git a/src/obj/NiLightColorController.cpp b/src/obj/NiLightColorController.cpp index d208509c..f2c49b7c 100644 --- a/src/obj/NiLightColorController.cpp +++ b/src/obj/NiLightColorController.cpp @@ -41,7 +41,7 @@ Ref<NiPosData > NiLightColorController::GetData() const { return data; } -void NiLightColorController::SetData( Ref<NiPosData > value ) { +void NiLightColorController::SetData( NiPosData * value ) { data = value; } @@ -49,7 +49,7 @@ Ref<NiPoint3Interpolator > NiLightColorController::GetInterpolator() const { return interpolator; } -void NiLightColorController::SetInterpolator( Ref<NiPoint3Interpolator > value ) { +void NiLightColorController::SetInterpolator( NiPoint3Interpolator * value ) { interpolator = value; } diff --git a/src/obj/NiPSysEmitterCtlr.cpp b/src/obj/NiPSysEmitterCtlr.cpp index 69af8a4c..1267d9a2 100644 --- a/src/obj/NiPSysEmitterCtlr.cpp +++ b/src/obj/NiPSysEmitterCtlr.cpp @@ -41,7 +41,7 @@ Ref<NiPSysEmitterCtlrData > NiPSysEmitterCtlr::GetData() const { return data; } -void NiPSysEmitterCtlr::SetData( Ref<NiPSysEmitterCtlrData > value ) { +void NiPSysEmitterCtlr::SetData( NiPSysEmitterCtlrData * value ) { data = value; } @@ -49,7 +49,7 @@ Ref<NiInterpolator > NiPSysEmitterCtlr::GetVisibilityInterpolator() const { return visibilityInterpolator; } -void NiPSysEmitterCtlr::SetVisibilityInterpolator( Ref<NiInterpolator > value ) { +void NiPSysEmitterCtlr::SetVisibilityInterpolator( NiInterpolator * value ) { visibilityInterpolator = value; } diff --git a/src/obj/NiPathController.cpp b/src/obj/NiPathController.cpp index 1aa726a3..ad24c919 100644 --- a/src/obj/NiPathController.cpp +++ b/src/obj/NiPathController.cpp @@ -41,7 +41,7 @@ Ref<NiFloatData> NiPathController::GetFloatData() const { return floatData; } -void NiPathController::SetFloatData( const Ref<NiFloatData> & n ) { +void NiPathController::SetFloatData( NiFloatData * n ) { floatData = n; } @@ -49,7 +49,7 @@ Ref<NiPosData> NiPathController::GetPosData() const { return posData; } -void NiPathController::SetPosData( const Ref<NiPosData> & n ) { +void NiPathController::SetPosData( NiPosData * n ) { posData = n; } diff --git a/src/obj/NiSingleInterpolatorController.cpp b/src/obj/NiSingleInterpolatorController.cpp index 95a9a1dc..9d8baffb 100644 --- a/src/obj/NiSingleInterpolatorController.cpp +++ b/src/obj/NiSingleInterpolatorController.cpp @@ -40,7 +40,7 @@ Ref<NiInterpolator > NiSingleInterpolatorController::GetInterpolator() const { return interpolator; } -void NiSingleInterpolatorController::SetInterpolator( Ref<NiInterpolator > value ) { +void NiSingleInterpolatorController::SetInterpolator( NiInterpolator * value ) { interpolator = value; } diff --git a/src/obj/NiUVController.cpp b/src/obj/NiUVController.cpp index ae89f5e4..d9d1df80 100644 --- a/src/obj/NiUVController.cpp +++ b/src/obj/NiUVController.cpp @@ -40,7 +40,7 @@ Ref<NiUVData> NiUVController::GetData() const { return data; } -void NiUVController::SetData( const Ref<NiUVData> & n ) { +void NiUVController::SetData( NiUVData * n ) { data = n; } -- GitLab