VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfModelManager Library API Changes

Table of Contents

This document describes the public API changes in the vrfModelManager library between VR-Forces 5.2 and 5.3.

It covers the following public header:

Changes that are internal to an implementation or limited to comments are not listed.

Breaking Changes

DtVrfModelManager::fillInModelInformationFor gained a parameter

The protected virtual fillInModelInformationFor now also fills in subsystem damage hit zone information. A HitZoneInformation& out-parameter was inserted after the ArticulatedParts& parameter, ahead of the existing defaulted parameters:

// 5.2
virtual void fillInModelInformationFor(const DtFilename& original, ArticulatedParts& partInfo,
const DtVector& positionOffset = DtVector::zero(), const DtTaitBryan& orientationOffset = DtTaitBryan(),
const DtFilename& source = DtFilename(), bool cacheIfMissing = true);
// 5.3
virtual void fillInModelInformationFor(const DtFilename& original, ArticulatedParts& partInfo,
HitZoneInformation& hitZones,
const DtVector& positionOffset = DtVector::zero(), const DtTaitBryan& orientationOffset = DtTaitBryan(),
const DtFilename& source = DtFilename(), bool cacheIfMissing = true);

This is a source-breaking change for any class that derives from DtVrfModelManager and overrides this method. The override must be updated to the new signature; an override that keeps the old parameter list will no longer bind to the base declaration. Call sites must supply a HitZoneInformation object, which may be discarded if hit zone data is not needed.

Additions

DtVrfModelSubSystemDamageHitZone

A new struct describes a single subsystem damage hit zone in body coordinates:

{
DtVector offset;
DtVector dimensions;
double boundingRadius;
};

DtVrfModelManager::HitZoneInformation

A public typedef maps a hit zone index to its description:

typedef std::map<int, DtVrfModelSubSystemDamageHitZone> HitZoneInformation;

DtVrfModelManager::hitZoneInformationFor

Two public virtual query methods return the hit zones for a model. They parallel the existing articulatedPartsFor overloads:

virtual HitZoneInformation hitZoneInformationFor(const DtEntityType&);
virtual HitZoneInformation hitZoneInformationFor(const DtFilename&,
const DtVector& positionOffset = DtVector::zero(),
const DtTaitBryan& orientationOffset = DtTaitBryan(),
const DtFilename& source = DtFilename(), bool cacheIfMissing = true);

DtVrfModelManager::subSystemDamageHitZoneInformationFor

A protected virtual method extracts hit zone information from a loaded model. Derived classes may override it to change how hit zones are derived:

virtual HitZoneInformation subSystemDamageHitZoneInformationFor(
const DtVector& positionOffset = DtVector::zero(),
const DtTaitBryan& orientationOffset = DtTaitBryan()) const;

New include

vrfModelManager.h now includes vrvCore/DtModelSemanticsMapper.h. No action is required, but the additional transitive include may affect translation units that define conflicting symbols.

Summary of Header Changes

Header Breaking Additions
vrfModelManager.h fillInModelInformationFor gained a HitZoneInformation& parameter DtVrfModelSubSystemDamageHitZone, HitZoneInformation typedef, hitZoneInformationFor overloads, subSystemDamageHitZoneInformationFor

Return to VR-Forces 5.3 API Migration Guide.

[Home]


Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)