Skip to content
Snippets Groups Projects
Commit 3b1bb08a authored by wz's avatar wz
Browse files

Changed XML Name of NiLODNode's data ref.

Updated method names to use 'LOD'.
Added documentation comments.
parent 2e43de75
No related branches found
No related tags found
No related merge requests found
......@@ -42,22 +42,34 @@ public:
virtual const Type & GetType() const;
/*!
* Point to calculate distance from for switching?
* Get the point to calculate distance from for switching?
*/
Vector3 GetLodCenter() const;
void SetLodCenter( const Vector3 & value );
Vector3 GetLODCenter() const;
/*!
* The ranges of distance that each level of detail applies in.
* Set the point to calculate distance from for switching?
*/
vector<LODRange > GetLodLevels() const;
void SetLodLevels( const vector<LODRange >& value );
void SetLODCenter( const Vector3 & value );
/*!
* Refers to LOD level information, either distance or screen size based.
* Get the ranges of distance that each level of detail applies in.
*/
Ref<NiLODData > GetRangeData() const;
void SetRangeData( Ref<NiLODData > value );
vector<LODRange > GetLODLevels() const;
/*!
* Set the ranges of distance that each level of detail applies in.
*/
void SetLODLevels( const vector<LODRange >& value );
/*!
* Get the data object that refers to LOD level information
*/
Ref<NiLODData > GetLODLevelData() const;
/*!
* Set the data object that refers to LOD level information
*/
void SetLODLevelData( Ref<NiLODData > value );
protected:
NI_L_O_D_NODE_MEMBERS
......
......@@ -38,16 +38,24 @@ public:
virtual const Type & GetType() const;
/*!
* ?
* Get the point to calculate distance from for switching?
*/
Vector3 GetLodCenter() const;
void SetLodCenter( const Vector3 & value );
Vector3 GetLODCenter() const;
/*!
* The ranges of distance that each level of detail applies in.
* Set the point to calculate distance from for switching?
*/
vector<LODRange > GetLodLevels() const;
void SetLodLevels( const vector<LODRange >& value );
void SetLODCenter( const Vector3 & value );
/*!
* Get the ranges of distance that each level of detail applies in.
*/
vector<LODRange > GetLODLevels() const;
/*!
* Set the ranges of distance that each level of detail applies in.
*/
void SetLODLevels( const vector<LODRange >& value );
protected:
NI_RANGE_L_O_D_DATA_MEMBERS
......
......@@ -34,33 +34,53 @@ public:
virtual const Type & GetType() const;
/*!
* The center of the bounding sphere?
* Get the center of the bounding sphere?
*/
Vector3 GetBoundCenter() const;
void SetBoundCenter( const Vector3 & value );
/*!
* The radius of the bounding sphere?
* Set the center of the bounding sphere?
*/
void SetBoundCenter( const Vector3 & bound_center );
/*!
* Get the radius of the bounding sphere?
*/
float GetBoundRadius() const;
/*!
* Set the radius of the bounding sphere?
*/
void SetBoundRadius( float value );
/*!
* The center of the bounding sphere in world space?
* Get the center of the bounding sphere in world space?
*/
Vector3 GetWorldCenter() const;
/*!
* Set the center of the bounding sphere in world space?
*/
void SetWorldCenter( const Vector3 & value );
/*!
* The radius of the bounding sphere in world space?
* Get the radius of the bounding sphere in world space?
*/
float GetWorldRadius() const;
/*!
* Set the radius of the bounding sphere in world space?
*/
void SetWorldRadius( float value );
/*!
* The LOD levels based on proportion of screen size?
* Get the LOD levels based on proportion of screen size?
*/
vector<float > GetProportionLevels() const;
/*!
* Set the LOD levels based on proportion of screen size?
*/
void SetProportionLevels( const vector<float >& value );
protected:
......
......@@ -37,27 +37,27 @@ const Type & NiLODNode::GetType() const {
return TYPE;
};
Vector3 NiLODNode::GetLodCenter() const {
Vector3 NiLODNode::GetLODCenter() const {
return lodCenter;
}
void NiLODNode::SetLodCenter( const Vector3 & value ) {
void NiLODNode::SetLODCenter( const Vector3 & value ) {
lodCenter = value;
}
vector<LODRange > NiLODNode::GetLodLevels() const {
vector<LODRange > NiLODNode::GetLODLevels() const {
return lodLevels;
}
void NiLODNode::SetLodLevels( const vector<LODRange >& value ) {
void NiLODNode::SetLODLevels( const vector<LODRange >& value ) {
lodLevels = value;
}
Ref<NiLODData > NiLODNode::GetRangeData() const {
Ref<NiLODData > NiLODNode::GetLODLevelData() const {
return rangeData;
}
void NiLODNode::SetRangeData( Ref<NiLODData > value ) {
void NiLODNode::SetLODLevelData( Ref<NiLODData > value ) {
rangeData = value;
}
......@@ -36,19 +36,19 @@ const Type & NiRangeLODData::GetType() const {
return TYPE;
};
Vector3 NiRangeLODData::GetLodCenter() const {
Vector3 NiRangeLODData::GetLODCenter() const {
return lodCenter;
}
void NiRangeLODData::SetLodCenter( const Vector3 & value ) {
void NiRangeLODData::SetLODCenter( const Vector3 & value ) {
lodCenter = value;
}
vector<LODRange > NiRangeLODData::GetLodLevels() const {
vector<LODRange > NiRangeLODData::GetLODLevels() const {
return lodLevels;
}
void NiRangeLODData::SetLodLevels( const vector<LODRange >& value ) {
void NiRangeLODData::SetLODLevels( const vector<LODRange >& value ) {
lodLevels = value;
}
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