dtHLAGM::DDMUtil Class Reference

#include <ddmutil.h>

List of all members.

Public Member Functions

unsigned long MapAppSpaceValue (unsigned spaceNumber)

Static Public Member Functions

static unsigned long MapEnumerated (unsigned value, unsigned min, unsigned max)
 Maps an enumerated value into the MIN_EXTENT MAX_EXTENT range given the known min and max.
static unsigned long MapPartitioned (double value, const std::vector< double > partitionValues)
 Maps to a value in the MIN_EXTENT/MAX_EXTENT range where value would match a set of precomputed valid values.
static unsigned long MapLinear (double value, double min, double max)
 Maps a double value linearly in the MIN_EXTENT/MAX_EXTENT range using the passed in min and max value.

Static Public Attributes

static const unsigned long HLAGM_MIN_EXTENT = RTI::Region::getMinExtent()
static const unsigned long HLAGM_MAX_EXTENT = RTI::Region::getMaxExtent()
static const std::string DDM_SPACE_LABEL
static const std::string DDM_SUBSPACE_EXTENT_LABEL
static const std::string DDM_FIRST_EXTENT_LABEL
static const std::string DDM_SECOND_EXTENT_LABEL


Member Function Documentation

unsigned long dtHLAGM::DDMUtil::MapEnumerated ( unsigned  value,
unsigned  min,
unsigned  max 
) [static]

Maps an enumerated value into the MIN_EXTENT MAX_EXTENT range given the known min and max.

Parameters:
value the value to map
min the minimum enumerated value.
max the maximum enumerated value.

unsigned long dtHLAGM::DDMUtil::MapPartitioned ( double  value,
const std::vector< double >  partitionValues 
) [static]

Maps to a value in the MIN_EXTENT/MAX_EXTENT range where value would match a set of precomputed valid values.

The partitionValues vector should contain a list of evenly incrementing values.

Parameters:
value the value to map
partitionValues a vector of evenly incrementing values that define the list of partitions.

unsigned long dtHLAGM::DDMUtil::MapLinear ( double  value,
double  min,
double  max 
) [static]

Maps a double value linearly in the MIN_EXTENT/MAX_EXTENT range using the passed in min and max value.

The value parameter will be clamped between min and max.

Parameters:
value the value to map. It will be clamped between min and max.
min the minimum value, it should be less than max.
max the maximum value, it should be greater than min.

unsigned long dtHLAGM::DDMUtil::MapAppSpaceValue ( unsigned  spaceNumber  ) 


Member Data Documentation

const unsigned long dtHLAGM::DDMUtil::HLAGM_MIN_EXTENT = RTI::Region::getMinExtent() [static]

const unsigned long dtHLAGM::DDMUtil::HLAGM_MAX_EXTENT = RTI::Region::getMaxExtent() [static]

const std::string dtHLAGM::DDMUtil::DDM_SPACE_LABEL [static]

const std::string dtHLAGM::DDMUtil::DDM_SUBSPACE_EXTENT_LABEL [static]

const std::string dtHLAGM::DDMUtil::DDM_FIRST_EXTENT_LABEL [static]

const std::string dtHLAGM::DDMUtil::DDM_SECOND_EXTENT_LABEL [static]


http://www.delta3d.org
2.0.0 generated 14 Feb 2008