Replaced tabs with spaces
This commit is contained in:
parent
2937268d53
commit
5e0b3dacc6
@ -36,11 +36,11 @@ class OSG_EXPORT LOD : public Group
|
||||
{
|
||||
public :
|
||||
|
||||
/** Default constructor
|
||||
* The default constructor sets
|
||||
* - the center mode to USE_BOUNDING_SPHERE,
|
||||
* - the radius to a value smaller than zero and
|
||||
* - the range mode to DISTANCE_FROM_EYE_POINT. */
|
||||
/** Default constructor
|
||||
* The default constructor sets
|
||||
* - the center mode to USE_BOUNDING_SPHERE,
|
||||
* - the radius to a value smaller than zero and
|
||||
* - the range mode to DISTANCE_FROM_EYE_POINT. */
|
||||
LOD();
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy.*/
|
||||
@ -67,7 +67,7 @@ class OSG_EXPORT LOD : public Group
|
||||
typedef std::vector<MinMaxPair> RangeList;
|
||||
|
||||
/** Modes which control how the center of object should be determined when computing which child is active.
|
||||
* Furthermore it determines how the bounding sphere is calculated. */
|
||||
* Furthermore it determines how the bounding sphere is calculated. */
|
||||
enum CenterMode
|
||||
{
|
||||
USE_BOUNDING_SPHERE_CENTER, ///< Uses the bounding sphere's center as the center of object and the geometrical bounding sphere of the node's children
|
||||
@ -82,10 +82,10 @@ class OSG_EXPORT LOD : public Group
|
||||
CenterMode getCenterMode() const { return _centerMode; }
|
||||
|
||||
/** Sets the object-space point which defines the center of the osg::LOD.
|
||||
* center is affected by any transforms in the hierarchy above the osg::LOD.
|
||||
* @note This method also changes the center mode to USER_DEFINED_CENTER
|
||||
* if the current center mode does not use a user defined center!
|
||||
* @sa setRadius */
|
||||
* center is affected by any transforms in the hierarchy above the osg::LOD.
|
||||
* @note This method also changes the center mode to USER_DEFINED_CENTER
|
||||
* if the current center mode does not use a user defined center!
|
||||
* @sa setRadius */
|
||||
inline void setCenter(const vec_type& center) { if (_centerMode!=UNION_OF_BOUNDING_SPHERE_AND_USER_DEFINED) { _centerMode=USER_DEFINED_CENTER; } _userDefinedCenter = center; }
|
||||
|
||||
/** return the LOD center point. */
|
||||
@ -94,9 +94,9 @@ class OSG_EXPORT LOD : public Group
|
||||
|
||||
/** Set the object-space reference radius of the volume enclosed by the LOD.
|
||||
* @param radius Radius must be larger or equal to zero. If the radius is smaller than zero the geometrical bounding sphere
|
||||
* of the node's children is used as the LOD's bounding sphere regardless of the center mode setting.
|
||||
* @remark The radius is only used to calculate the bounding sphere.
|
||||
* @sa setCenter */
|
||||
* of the node's children is used as the LOD's bounding sphere regardless of the center mode setting.
|
||||
* @remark The radius is only used to calculate the bounding sphere.
|
||||
* @sa setCenter */
|
||||
inline void setRadius(value_type radius) { _radius = radius; }
|
||||
|
||||
/** Get the object-space radius of the volume enclosed by the LOD.*/
|
||||
|
@ -24,18 +24,18 @@ class OSG_EXPORT PagedLOD : public LOD
|
||||
{
|
||||
public :
|
||||
|
||||
/** Default constructor
|
||||
* The default constructor sets
|
||||
* - the center mode to USER_DEFINED_CENTER and
|
||||
* - enables the paging of external children.
|
||||
* @warning The center mode setting of the default constructor differs
|
||||
* from the setting of LOD's default constructor! Therefore,
|
||||
* the PagedLOD and LOD nodes may show different behaviour with
|
||||
* their default settings when using them with the same subgraph.
|
||||
* This is a result of the differences in determining the node's center.
|
||||
* @note Though the bounding spheres of both nodes with their default settings
|
||||
* will not differ if they have same subgraph.
|
||||
* @sa LOD::setCenter, LOD::setRadius */
|
||||
/** Default constructor
|
||||
* The default constructor sets
|
||||
* - the center mode to USER_DEFINED_CENTER and
|
||||
* - enables the paging of external children.
|
||||
* @warning The center mode setting of the default constructor differs
|
||||
* from the setting of LOD's default constructor! Therefore,
|
||||
* the PagedLOD and LOD nodes may show different behaviour with
|
||||
* their default settings when using them with the same subgraph.
|
||||
* This is a result of the differences in determining the node's center.
|
||||
* @note Though the bounding spheres of both nodes with their default settings
|
||||
* will not differ if they have same subgraph.
|
||||
* @sa LOD::setCenter, LOD::setRadius */
|
||||
PagedLOD();
|
||||
|
||||
/** Copy constructor using CopyOp to manage deep vs shallow copy.*/
|
||||
|
Loading…
Reference in New Issue
Block a user