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

#include <STY_ResultsFilter.h>

+ Inheritance diagram for STY_MaterialResultsFilter:

Public Member Functions

 STY_MaterialResultsFilter ()
bool acceptsFurtherOverrides (const STY_Style &style) const override
- Public Member Functions inherited from STY_ResultsFilter
 STY_ResultsFilter (const char *category_mask=nullptr)
virtual ~STY_ResultsFilter ()
virtual bool acceptsCategory (const UT_StringHolder &category_name) const
 Returns true if the filter allows the overrides from the given category. More...

Additional Inherited Members

- Protected Member Functions inherited from UT_NonCopyableNS::UT_NonCopyable
 UT_NonCopyable ()=default
 ~UT_NonCopyable ()=default
 UT_NonCopyable (const UT_NonCopyable &)=delete
UT_NonCopyableoperator= (const UT_NonCopyable &)=delete

Detailed Description

This predefined filter eliminates all results of lower precedence if it detects a result setting the current material. This is because lower precedence results are most likely directed at the lower precedence material assignment, and so should only affect that material, not the newly assigned material.

Definition at line 55 of file STY_ResultsFilter.h.

Constructor & Destructor Documentation

STY_MaterialResultsFilter::STY_MaterialResultsFilter ( )

Definition at line 58 of file STY_ResultsFilter.h.

Member Function Documentation

bool STY_MaterialResultsFilter::acceptsFurtherOverrides ( const STY_Style style) const

Returns true if the filter allows the overrides from style sheet entries of lower precedence level than the given style entry. Usually the overrides from all matching entries are allowed, but sometimes an entery may block any further overrides, eg, if an style contains 'material' override, andy lower level overrides for 'materialParameters' need to be disregarded, since they were intended for the old material.

Reimplemented from STY_ResultsFilter.

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