The Property class represents the property of the following entities:
Properties are created with SceneItem::AddProperty.
using namespace XSI; Application app; Model root = app.GetActiveSceneRoot(); Null myNull; root.AddNull( L"", myNull ); Property myProp; myNull.AddProperty(L"Custom_parameter_list", false, L"MyCustomParam", myProp); app.LogMessage( L"Null's custom property name: " + myProp.GetFullName() );
#include <xsi_property.h>
Public Member Functions |
|
Property () | |
~Property () | |
Property (const CRef &in_ref) | |
Property (const Property &in_obj) | |
bool | IsA (siClassID in_ClassID) const |
siClassID | GetClassID () const |
Property & | operator= (const Property &in_obj) |
Property & | operator= (const CRef &in_ref) |
bool | GetSingleton () const |
bool | GetBranch () const |
CStatus | PutBranch (bool in_bState) |
Property | ( | ) |
Default constructor.
~Property | ( | ) |
Default destructor.
bool IsA | ( | siClassID | in_ClassID | ) | const [virtual] |
Returns true if a given class type is compatible with this API class.
in_ClassID | class type. |
Reimplemented from ProjectItem.
Reimplemented in ClusterProperty, Constraint, CustomProperty, EnvelopeWeight, Joint, Kinematics, Material, Override, ParticleType, SceneRenderProperty, ShapeKey, StaticKinematicState, TimeControl, UserDataBlob, UserDataMap, and UVProperty.
siClassID GetClassID | ( | ) | const [virtual] |
Returns the type of the API class.
Reimplemented from ProjectItem.
Reimplemented in ClusterProperty, Constraint, CustomProperty, EnvelopeWeight, Joint, Kinematics, Material, Override, ParticleType, SceneRenderProperty, ShapeKey, StaticKinematicState, TimeControl, UserDataBlob, UserDataMap, and UVProperty.
Creates an object from another object. The newly created object is set to empty if the input object is not compatible.
in_obj | constant class object. |
Creates an object from a reference object. The newly created object is set to empty if the input reference object is not compatible.
in_ref | constant class object. |
Reimplemented from ProjectItem.
Reimplemented in ClusterProperty, Constraint, CustomProperty, EnvelopeWeight, Joint, Kinematics, Material, Override, ParticleType, SceneRenderProperty, ShapeKey, StaticKinematicState, TimeControl, UserDataBlob, UserDataMap, and UVProperty.
bool GetSingleton | ( | ) | const |
Returns true if only one object of this type is allowed on its parent.
bool GetBranch | ( | ) | const |
Returns true if a property is applied to the branch of its parent.
CStatus PutBranch | ( | bool | in_bState | ) |
Sets the property branch state.
in_bState | Branch state |