diff --git a/include/obj/ABoneLODController.h b/include/obj/ABoneLODController.h index 6175d21dd924dcc3c69ead1a828dee4cf5f60a29..d23e61478ad146559a557cf3752451c5819eb61a 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 d52061f4f4ccddfb564178ea3145d112f7a4d73e..d525d806cdca87b57a86558250839821bc360c9d 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 e2948967e839a534eccd94528502cc9e7a425cd5..1ad41d2a518c6fcd88bafee451310b19844daa98 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 2d83d57f88675499768d9b902134f5d1fc42bf9e..acb9335052449230f91ee84a202eaea7e9ab1159 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 c740f88628531485034c3cd5dad3b9be76cf02c5..ac1799f527a46bee2094d7865736f98f886a0375 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 78e2e7f26c7c13749c6ca88fb6a41db3fae6bc6c..291a09d7e5f55a9ea61ca5209fc757bc72324df2 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 24de3b679729232002c2c75713cc729bec7383ee..0fdf032e4c18bf132d5433619c3cb728bc5bef83 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 f232faec5098b88bbe6de0a96c047ac484167f59..5260804f77b98cc434837184a456716c20fc932e 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 1045db99e68cf58f60ba91323c77c96b535178f1..6afa764418f06aeedcaa56dddd4f0f9e3024c435 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 6c66a5d6705ba3673a6c5761ba6e0140a2ca7c3a..776f8d7f7f8b376be4233f33d0d8c2b7181b6725 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 47c6f7b7283c812598be95dfe938a0ad0070e2fd..1e1e440e8ee220d6e7f8b235d819c71875436e86 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 feed93d53de069db6ce58de9ecf25f1962ac4ebb..55ed84e04d0d52f9a02025d410625041c1b284a9 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 4d5c55d125d72c0c58c3fe98c5ccaa723bbc8691..8d4a8a3313eb92a49d6a1612685fda4064e6ac43 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 609d6e91a0a39e26730bc7d4eae2d1a73f8b7921..21379ee1f2a94e59c6df6158971b65182c1bb2d9 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 57dbf33fb50de21ca9a111c23a6ec99760516196..31b02bbf36a322c32607b77c6db371d3c99a4649 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 0c3ae6d7c5198560745579513f168e01e88fbfad..49b7550229c7f3f10d8b0ca1957cb50555d2a877 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 c2327e2bb7f2531c1ba54182029c63be4746b513..bff3f4c2ef58cf84fd525e4ed1cd258bc7d2f1ff 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 d208509c64bce0e0dd0a2fcfdb8d026d9346eded..f2c49b7c165d8971006a6565d2baf647e36015ff 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 69af8a4ccb3c9219963ffaba67017fc6fbf03927..1267d9a21ae7d19d2fa5d78830cbe0741dbe3c2d 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 1aa726a31dbd248015f1392b199c314341aa4137..ad24c91983dc5b6ab8e10391c5a70a495c5d5412 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 95a9a1dcf039be2320f231f8f853457fbf120710..9d8baffb3461a2fc02cdd2f5a259cf19680d14bb 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 ae89f5e48b524baf4dd547c1af996ca83e5765c9..d9d1df80abadf54b213c6b7010d2dded962bfb93 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; }