|
World Manager
C4Properties.h
class PropertyEvery property that can be attached to a scene graph node is a subclass of theProperty class.
Definition
Member Functions
Constructor
Parameters
Description
The Property class is a generic container for any kind of special information that can be attached to a scene graph node. An application may define its own custom properties, and they become visible in the World Editor.A custom property type is usually defined by creating a subclass of the Property class. For the property type to be visible in the World Editor, it is also necessary to construct an associated PropertyReg object. Although a subclass is normally created for custom property types, using the base class alone is allowed if the property does not need to carry any information beyond its type. (It may be sufficient for the application to simply detect that a particular type of property exists for a node.) In this case, the custom property type still needs to be registered using the PropertyReg template, but the classType template parameter may simply be Property.A custom property can expose its data to the World Editor by implementing the functions of the Configurable base class.
Base Classes
See Also
Node::GetFirstProperty
Node::GetProperty
Node::AddProperty
PropertyReg
|