20#include <vrfobjparam/modelSetEntry.h>
98 virtual DtModelSetEntry*
clone()
override;
106 virtual std::vector<std::string>
roles();
117 virtual void addRole(
const std::string& role,
const std::string& rolePath,
bool unlisted =
false);
124 const std::string& role,
const std::string& roleParameter,
const std::string& paramValue);
134 virtual void readFromEnvironment(DtEnvironmentSP e, DtEnvValueSP objectNode,
bool keepCurrentData =
false)
override;
145 DtEnvValueSP objectNode,
146 std::vector<DtString>* vec =
nullptr,
147 DtModelSetEntry* mse =
nullptr)
const override;
160 const DtString& name =
"model-set-entry", DtReaderWriterRegistry*
const parentRegistry =
nullptr);
171 DtEnvironmentSP e, DtEnvValueSP node, std::map<std::string, std::string>& parameterOverrides);
187 virtual std::string
markupPath(
const std::string& path)
const;
virtual DtModelSetEntry * clone() override
Creates a copy of this model set entry.
virtual DtVreModelSetEntry & operator=(const DtModelSetEntry &orig) override
Assignment operator for base model set entries.
virtual std::string markupPath(const std::string &path) const
Marks up a path with variables for XML storage.
DtVreModelSetEntry(const DtVreModelSetEntry &orig, DtReaderWriterRegistry *const parentRegistry=NULL)
Copy constructor.
virtual std::string resolvePath(const std::string &path) const
Resolves path variables in a string.
virtual const DtEntityRoleDescriptor * findRoleDescriptor(const std::string &role)
Finds a role descriptor by name.
virtual ~DtVreModelSetEntry() override
Virtual destructor.
virtual std::vector< std::string > roles()
Gets the list of available roles for this entity.
virtual void addRole(const std::string &role, const std::string &rolePath, bool unlisted=false)
Adds a new role to the entity.
std::string myFilename
Cache of the filename used to create this entry.
Definition vreModelSetEntry.h:198
DtVreModelSetEntry()
Default constructor.
DtVreModelSetEntry(const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL)
Named constructor with optional registry.
virtual void writeToEnvironment(DtEnvironmentSP e, DtEnvValueSP objectNode, std::vector< DtString > *vec=nullptr, DtModelSetEntry *mse=nullptr) const override
Writes entry contents to the specified environment.
virtual void getParameterOverrides(DtEnvironmentSP e, DtEnvValueSP node, std::map< std::string, std::string > ¶meterOverrides)
Gets parameter overrides from an environment node.
virtual std::string filename() const
Gets the filename associated with this entry.
virtual DtVreModelSetEntry & operator=(const DtVreModelSetEntry &orig)
Assignment operator for VR-Engage model set entries.
virtual void readFromEnvironment(DtEnvironmentSP e, DtEnvValueSP objectNode, bool keepCurrentData=false) override
Loads model set entry information from the specified environment.
std::map< std::string, DtEntityRoleDescriptor > myRoleDescriptors
Map of role names to role descriptors.
Definition vreModelSetEntry.h:193
static DtModelSetEntry * Create(const DtString &name="model-set-entry", DtReaderWriterRegistry *const parentRegistry=nullptr)
Factory method for creating model set entry instances.
virtual bool engageControllable() const
Checks if this entity can be controlled in VR-Engage.
virtual void addRoleParameter(const std::string &role, const std::string &roleParameter, const std::string ¶mValue)
Adds a parameter to an existing role.
Defines data structures for entity role configurations.
Defines export macros for the VREngage Utility library.
#define UTIL_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
static bool DtDefaultUnlistedValue
Default value for the unlisted attribute of roles.
Definition vreModelSetEntry.h:52
static const char * DtDefaultDisplayLayout
Default display layout name for entity roles.
Definition vreModelSetEntry.h:46
Definition vreModelSetEntry.h:23
static const char * EngageParameterOverrideTag
XML tag for parameter override element.
Definition vreModelSetEntry.h:35
static const char * EngageRoleUnlistedTag
XML tag for unlisted role attribute.
Definition vreModelSetEntry.h:31
static const char * EngageRoleTag
XML tag for individual VR-Engage role.
Definition vreModelSetEntry.h:27
static const char * EngageRolesTag
XML tag for VR-Engage roles container.
Definition vreModelSetEntry.h:25
static const char * EngageDisplayConfigurationTag
XML tag for display configuration element.
Definition vreModelSetEntry.h:37
static const char * EngageRoleDefaultDisplayConfigTag
XML tag for default display layout attribute.
Definition vreModelSetEntry.h:33
static const char * EngageRoleSlotNameTag
XML tag for role slot name attribute.
Definition vreModelSetEntry.h:29
Descriptor for an entity role.
Definition entityRoleDescriptorStructs.h:46
Extends model set entries with VR-Engage specific role data.