HDK
|
#include <STY_Subject.h>
Protected Member Functions | |
STY_TargetMatchStatus | matchesPathHelper (const UT_StringRef &path, const STY_TargetHandle &target, char separator) const |
Helper for handling path requirement. More... | |
Protected Member Functions inherited from UT_IntrusiveRefCounter< STY_Subject > | |
SYS_FORCE_INLINE | ~UT_IntrusiveRefCounter () |
Destructor: Only derived classes can destruct this. More... | |
Describes the entity subjected to stylilng, ie, entity whose properties can be overriden by style sheets (eg, a specific primitive in the whole scene, whose material diffuse color is being overriden from blue to red). Subjects matching a given target may be asked to provide pre binding data associated with the target. Also, subject may optionally provide additional style sheet, which contains overrides that are intended to itself (self-targeted entries) or that are intended for subject's children (non self-target entries), if subjects are structured hierarchically (eg, in the case of packed primitives).
Definition at line 30 of file STY_Subject.h.
|
inlinevirtual |
Definition at line 34 of file STY_Subject.h.
|
virtual |
Returns a source object that can provide data for the given data name. Eg, style subject representing a primitive can provide primitive attribute data.
Reimplemented in GSTY_SubjectPoint, GSTY_SubjectPrim, STY_SubjectSelf, and GU_AgentSubjectShape.
|
virtual |
Returns the style sheet that should be applied to this subject and its children. This style sheet is applied after this subject is used to filter out non-matching styles. The children of this subject are the top level targets for these styles. Returns an empty string, if no style sheet is provided.
Reimplemented in GSTY_SubjectPoint, GSTY_SubjectPrim, GSTY_SubjectGeoObject, and STY_SubjectSelf.
|
virtual |
Returns the style sheet that should be applied to this subject. This style sheet is applied before this subject is used to filter out non-matching styles. This subject is the top level target for these styles. Returns an empty string, if no style sheet is provided.
Reimplemented in GSTY_SubjectPoint, GSTY_SubjectPrim, and STY_SubjectSelf.
|
virtual |
Returns the location where the above subject-specific style sheet comes from. For example the name of the object, prim number, etc. Returns a default value of "Unknown Subject Source".
Reimplemented in GSTY_SubjectPoint, GSTY_SubjectPrim, and GSTY_SubjectGeoObject.
|
protected |
Helper for handling path requirement.
|
pure virtual |
Returns the information wheter the subject matches the given target.
Implemented in GSTY_SubjectPoint, GSTY_SubjectPrim, STY_SubjectSelf, GSTY_SubjectGeoObject, and GU_AgentSubjectShape.