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

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

#include <GSTY_SubjectPoint.h>

+ Inheritance diagram for GSTY_SubjectPoint:

Public Member Functions

 GSTY_SubjectPoint (const GEO_Detail &gdp, GA_Offset offset, int numeric_point_group_offset, GSTY_SubjectPointGroup *subject_group, const GA_ROHandleS &detail_attrib, const GA_ROHandleS &point_attrib)
 
 GSTY_SubjectPoint (const GEO_Detail &gdp, GA_Offset offset)
 
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_DetailgetGdp () const
 
GA_Offset getOffset () 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_SubjectPoint.h.

Constructor & Destructor Documentation

GSTY_SubjectPoint::GSTY_SubjectPoint ( const GEO_Detail gdp,
GA_Offset  offset,
int  numeric_point_group_offset,
GSTY_SubjectPointGroup subject_group,
const GA_ROHandleS detail_attrib,
const GA_ROHandleS point_attrib 
)
GSTY_SubjectPoint::GSTY_SubjectPoint ( const GEO_Detail gdp,
GA_Offset  offset 
)

Member Function Documentation

const GEO_Detail& GSTY_SubjectPoint::getGdp ( ) const
GA_Offset GSTY_SubjectPoint::getOffset ( ) const
STY_BindingDataSourceHandle GSTY_SubjectPoint::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_SubjectPoint::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_SubjectPoint::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.

UT_StringHolder GSTY_SubjectPoint::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_SubjectPoint::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_SubjectPoint::matchesStyleTarget ( const STY_TargetHandle target) const
overridevirtual

Base class overrides.

Implements STY_Subject.


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