At times, users may want to replace the dead reckoner or smoother in reflected objects.
The following code demonstrates how this may be done
#include <vector>
{
public:
DtNewDeadReckoner() :
{
DtInfo <<
"Created DtNewDeadReckoner" << std::endl;
}
virtual ~DtNewDeadReckoner() {}
};
{
public:
DtNewSmoother() :
{
DtInfo <<
"Created DtNewSmoother" << std::endl;
}
virtual ~DtNewSmoother() {}
};
std::vector<DtApproximator*> approximators;
{
DtNewDeadReckoner* newDeadReckoner = new DtNewDeadReckoner;
approximators.push_back(newDeadReckoner);
DtNewSmoother* newSmoother = new DtNewSmoother;
approximators.push_back(newSmoother);
}
{
DtNewDeadReckoner* newDeadReckoner = new DtNewDeadReckoner;
DtNewSmoother* newSmoother = new DtNewSmoother;
for (unsigned int index = 0; index < approximators.size(); ++index)
{
}
}