HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GSTY_SubjectPrim Class Reference

Represents a primitive whose material properties are being overiden. More...

#include <GSTY_SubjectPrim.h>

+ Inheritance diagram for GSTY_SubjectPrim:

Public Member Functions

 GSTY_SubjectPrim (const GEO_Primitive *prim, int numeric_prim_group_offset, int numeric_point_group_offset, GSTY_SubjectPrimGroup *subject_group, const GA_ROHandleS &detail_attrib, const GA_ROHandleS &prim_attrib)
 
 GSTY_SubjectPrim (const GEO_Primitive *prim, GSTY_SubjectPrimGroup *subject_group)
 
STY_TargetMatchStatus matchesStyleTarget (const STY_TargetHandle &target) const override
 Base class overrides. More...
 
STY_BindingDataSourceHandle getOverrideBindingDataSource (const UT_StringHolder &data_name) const override
 
STY_StyleSheetHandle getPreFilterStyleSheet () const override
 
STY_StyleSheetHandle getPostFilterStyleSheet () const override
 
UT_StringHolder getSourceLocation () const override
 
const GEO_PrimitivegetPrimitive () const
 
- Public Member Functions inherited from STY_Subject
virtual ~STY_Subject ()
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< STY_Subject >
SYS_FORCE_INLINE UT_IntrusiveRefCounter () noexcept
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &) noexcept
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const noexcept
 Return current counter. More...
 
SYS_FORCE_INLINE bool conditionalAddRef () noexcept
 

Static Public Member Functions

static bool hasStyleAttrib (const GEO_Detail &gdp)
 

Additional Inherited Members

- Protected Member Functions inherited from STY_SubjectNamed
bool matchesNameHelper (const char *name) const
 
bool matchesFullPathHelper (STY_TargetMatchStatus &match, const STY_TargetHandle &target) const
 
- Protected Member Functions inherited from STY_Subject
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...
 

Detailed Description

Represents a primitive whose material properties are being overiden.

Definition at line 23 of file GSTY_SubjectPrim.h.

Constructor & Destructor Documentation

GSTY_SubjectPrim::GSTY_SubjectPrim ( const GEO_Primitive prim,
int  numeric_prim_group_offset,
int  numeric_point_group_offset,
GSTY_SubjectPrimGroup subject_group,
const GA_ROHandleS detail_attrib,
const GA_ROHandleS prim_attrib 
)
GSTY_SubjectPrim::GSTY_SubjectPrim ( const GEO_Primitive prim,
GSTY_SubjectPrimGroup subject_group 
)

Member Function Documentation

STY_BindingDataSourceHandle GSTY_SubjectPrim::getOverrideBindingDataSource ( const UT_StringHolder data_name) const
overridevirtual

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 from STY_Subject.

STY_StyleSheetHandle GSTY_SubjectPrim::getPostFilterStyleSheet ( ) const
overridevirtual

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 from STY_Subject.

STY_StyleSheetHandle GSTY_SubjectPrim::getPreFilterStyleSheet ( ) const
overridevirtual

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 from STY_Subject.

const GEO_Primitive& GSTY_SubjectPrim::getPrimitive ( ) const
UT_StringHolder GSTY_SubjectPrim::getSourceLocation ( ) const
overridevirtual

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 from STY_Subject.

static bool GSTY_SubjectPrim::hasStyleAttrib ( const GEO_Detail gdp)
static

Returns true if the provided detail has any attributes that may contribute style information to this subject.

STY_TargetMatchStatus GSTY_SubjectPrim::matchesStyleTarget ( const STY_TargetHandle target) const
overridevirtual

Base class overrides.

Implements STY_Subject.


The documentation for this class was generated from the following file: