The HPS::TransparencyKit class is a user space object, useful for carrying a group of attribute settings related to transparency. More...
#include <hps.h>
Public Member Functions | |
TransparencyKit () | |
Initializes an empty kit. More... | |
TransparencyKit (TransparencyKit const &in_kit) | |
The copy constructor creates a new TransparencyKit object that contains the same settings as the source object. More... | |
TransparencyKit (TransparencyKit &&in_that) | |
The move constructor creates a TransparencyKit by transferring the underlying impl of the rvalue reference to this TransparencyKit thereby avoiding a copy and allocation. More... | |
TransparencyKit & | operator= (TransparencyKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this TransparencyKit thereby avoiding a copy. More... | |
virtual | ~TransparencyKit () |
Destroy this kit. More... | |
HPS::Type | ObjectType () const |
void | Set (TransparencyKit const &in_kit) |
Copies all settings from the source TransparencyKit into this object. More... | |
void | Show (TransparencyKit &out_kit) const |
Copies all settings from this TransparencyKit into the given TransparencyKit. More... | |
TransparencyKit & | operator= (TransparencyKit const &in_kit) |
Copies the source TransparencyKit into this object. More... | |
bool | Empty () const |
Indicates whether this object has any values set on it. More... | |
bool | Equals (TransparencyKit const &in_kit) const |
Check if the source TransparencyKit is equivalent to this object. More... | |
bool | operator== (TransparencyKit const &in_kit) const |
Check if the source TransparencyKit is equivalent to this object. More... | |
bool | operator!= (TransparencyKit const &in_kit) const |
Check if the source TransparencyKit is not equivalent to this object. More... | |
TransparencyKit & | SetMethod (Transparency::Method in_style) |
Sets the method to use when blending transparent geometry. More... | |
TransparencyKit & | SetAlgorithm (Transparency::Algorithm in_algorithm) |
Sets the algorithm to use when calculating transparency. More... | |
TransparencyKit & | SetDepthPeelingLayers (unsigned int in_layers) |
Sets the number of layers to use when performing depth peeling. More... | |
TransparencyKit & | SetDepthPeelingPreference (Transparency::Preference in_preference) |
Specifies whether quality or performance should be favored when performing depth peeling. More... | |
TransparencyKit & | SetDepthPeelingMinimumArea (float in_area, Transparency::AreaUnits in_units) |
Sets the amount of the screen a layer needs to occupy in order to process another layer when performing depth peeling. More... | |
TransparencyKit & | SetDepthWriting (bool in_state) |
Controls whether transparent geometry should write into the Z-buffer. More... | |
TransparencyKit & | UnsetMethod () |
Removes the transparency method setting. More... | |
TransparencyKit & | UnsetAlgorithm () |
Removes the transparency algorithm setting. More... | |
TransparencyKit & | UnsetDepthPeelingLayers () |
Removes the depth peeling layers setting. More... | |
TransparencyKit & | UnsetDepthPeelingMinimumArea () |
Removes the depth peeling minimum area setting. More... | |
TransparencyKit & | UnsetDepthWriting () |
Removes the depth writing setting. More... | |
TransparencyKit & | UnsetDepthPeelingPreference () |
Removes the depth peeling preference setting. More... | |
TransparencyKit & | UnsetEverything () |
Removes all settings from this object. More... | |
bool | ShowMethod (Transparency::Method &out_style) const |
Shows the method to use when blending transparent geometry. More... | |
bool | ShowAlgorithm (Transparency::Algorithm &out_algorithm) const |
Shows the algorithm to use when calculating transparency. More... | |
bool | ShowDepthPeelingLayers (unsigned int &out_layers) const |
Shows the number of layers to use when performing depth peeling. More... | |
bool | ShowDepthPeelingMinimumArea (float &out_area, Transparency::AreaUnits &out_units) const |
Shows the amount of the screen a layer needs to occupy in order to process another layer when performing depth peeling. More... | |
bool | ShowDepthWriting (bool &out_state) const |
Shows whether transparent geometry should write into the Z-buffer. More... | |
bool | ShowDepthPeelingPreference (Transparency::Preference &out_preference) const |
Shows the depth peeling performance setting. More... | |
virtual HPS::Type | Type () const |
This function returns the true type of the underlying object. More... | |
virtual void | Reset () |
Resets this object to its initial, uninitialized state. More... | |
bool | HasType (HPS::Type in_mask) const |
This function indicates whether this Object has the given Type mask. More... | |
intptr_t | GetClassID () const |
Returns a unique identifier that is shared by all objects of the same class. More... | |
intptr_t | GetInstanceID () const |
Returns an identifier that can be used to identify which instance of a class an object is. More... | |
Static Public Member Functions | |
static TransparencyKit | GetDefault () |
Creates a TransparencyKit which contains the default settings. More... | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::TransparencyKit |
The HPS::TransparencyKit class is a user space object, useful for carrying a group of attribute settings related to transparency.
Calling HPS::TransparencyKit::GetDefault() will return a kit with values found in this table.
HPS::TransparencyKit::TransparencyKit | ( | ) |
Initializes an empty kit.
HPS::TransparencyKit::TransparencyKit | ( | TransparencyKit const & | in_kit | ) |
The copy constructor creates a new TransparencyKit object that contains the same settings as the source object.
in_kit | The source object to copy. |
HPS::TransparencyKit::TransparencyKit | ( | TransparencyKit && | in_that | ) |
The move constructor creates a TransparencyKit by transferring the underlying impl of the rvalue reference to this TransparencyKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a TransparencyKit to take the impl from. |
|
virtual |
Destroy this kit.
|
inlinestaticinherited |
Unique identifier for this class.
Note: this method uses construction of static objects. If used in a constructor, it should be used in the body not the initializer list.
|
virtual |
Indicates whether this object has any values set on it.
Reimplemented from HPS::Object.
bool HPS::TransparencyKit::Equals | ( | TransparencyKit const & | in_kit | ) | const |
Check if the source TransparencyKit is equivalent to this object.
in_kit | The source TransparencyKit to compare to this object. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a TransparencyKit which contains the default settings.
The returned object will not necessarily have values set for every option, but it will have settings for those options where it is reasonable to have a default.
|
inherited |
Returns an identifier that can be used to identify which instance of a class an object is.
Different keys and controls will return the same value if they are backed by the same database resource.
|
inherited |
|
inlinevirtual |
bool HPS::TransparencyKit::operator!= | ( | TransparencyKit const & | in_kit | ) | const |
Check if the source TransparencyKit is not equivalent to this object.
in_kit | The source TransparencyKit to compare to this object. |
TransparencyKit& HPS::TransparencyKit::operator= | ( | TransparencyKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this TransparencyKit thereby avoiding a copy.
in_that | An rvalue reference to an TransparencyKit to take the impl from. |
TransparencyKit& HPS::TransparencyKit::operator= | ( | TransparencyKit const & | in_kit | ) |
Copies the source TransparencyKit into this object.
in_kit | The source TransparencyKit to copy. |
bool HPS::TransparencyKit::operator== | ( | TransparencyKit const & | in_kit | ) | const |
Check if the source TransparencyKit is equivalent to this object.
in_kit | The source TransparencyKit to compare to this object. |
|
virtualinherited |
Resets this object to its initial, uninitialized state.
Reimplemented in HPS::EventHandler, HPS::EventDispatcher, HPS::World, HPS::HighlightSearchResults, HPS::HighlightSearchResultsIterator, HPS::SelectionResults, HPS::SelectionResultsIterator, HPS::FontSearchResults, HPS::FontSearchResultsIterator, HPS::SearchResults, and HPS::SearchResultsIterator.
void HPS::TransparencyKit::Set | ( | TransparencyKit const & | in_kit | ) |
Copies all settings from the source TransparencyKit into this object.
in_kit | The source TransparencyKit to copy. |
TransparencyKit& HPS::TransparencyKit::SetAlgorithm | ( | Transparency::Algorithm | in_algorithm | ) |
Sets the algorithm to use when calculating transparency.
in_algorithm | The algorithm to use. |
TransparencyKit& HPS::TransparencyKit::SetDepthPeelingLayers | ( | unsigned int | in_layers | ) |
Sets the number of layers to use when performing depth peeling.
Ignored in other transparency methods.
in_layers | The number of layers to use when performing depth peeling. |
TransparencyKit& HPS::TransparencyKit::SetDepthPeelingMinimumArea | ( | float | in_area, |
Transparency::AreaUnits | in_units | ||
) |
Sets the amount of the screen a layer needs to occupy in order to process another layer when performing depth peeling.
Ignored in other transparency methods.
in_area | The amount of the screen a layer needs to occupy in order to process another layer. |
in_units | The units of the minimum area. |
TransparencyKit& HPS::TransparencyKit::SetDepthPeelingPreference | ( | Transparency::Preference | in_preference | ) |
Specifies whether quality or performance should be favored when performing depth peeling.
Ignored in other transparency methods.
in_perference | The desired preference setting. |
TransparencyKit& HPS::TransparencyKit::SetDepthWriting | ( | bool | in_state | ) |
Controls whether transparent geometry should write into the Z-buffer.
Applies only when the transparency algorithm is NoSorting, ZSortNicest, or ZSortFastest.
in_state | Whether transparent geometry should write into the Z-buffer. |
TransparencyKit& HPS::TransparencyKit::SetMethod | ( | Transparency::Method | in_style | ) |
Sets the method to use when blending transparent geometry.
in_style | The method to use when blending transparent geometry. |
void HPS::TransparencyKit::Show | ( | TransparencyKit & | out_kit | ) | const |
Copies all settings from this TransparencyKit into the given TransparencyKit.
out_kit | The TransparencyKit to populate with the contents of this object. |
bool HPS::TransparencyKit::ShowAlgorithm | ( | Transparency::Algorithm & | out_algorithm | ) | const |
Shows the algorithm to use when calculating transparency.
out_algorithm | The algorithm to use. |
bool HPS::TransparencyKit::ShowDepthPeelingLayers | ( | unsigned int & | out_layers | ) | const |
Shows the number of layers to use when performing depth peeling.
out_layers | The number of layers to use when performing depth peeling. |
bool HPS::TransparencyKit::ShowDepthPeelingMinimumArea | ( | float & | out_area, |
Transparency::AreaUnits & | out_units | ||
) | const |
Shows the amount of the screen a layer needs to occupy in order to process another layer when performing depth peeling.
out_area | The amount of the screen a layer needs to occupy in order to process another layer. |
out_units | The units of the minimum area. |
bool HPS::TransparencyKit::ShowDepthPeelingPreference | ( | Transparency::Preference & | out_preference | ) | const |
Shows the depth peeling performance setting.
out_preference | Whether quality or performance should be favored when performing depth peeling. |
bool HPS::TransparencyKit::ShowDepthWriting | ( | bool & | out_state | ) | const |
Shows whether transparent geometry should write into the Z-buffer.
out_state | Whether transparent geometry should write into the Z-buffer. |
bool HPS::TransparencyKit::ShowMethod | ( | Transparency::Method & | out_style | ) | const |
Shows the method to use when blending transparent geometry.
out_style | The method to use when blending transparent geometry. |
|
inlinevirtualinherited |
This function returns the true type of the underlying object.
This function is useful for finding the type of smart pointer objects that have been cast to more generic types.
Reimplemented from HPS::Object.
TransparencyKit& HPS::TransparencyKit::UnsetAlgorithm | ( | ) |
Removes the transparency algorithm setting.
TransparencyKit& HPS::TransparencyKit::UnsetDepthPeelingLayers | ( | ) |
Removes the depth peeling layers setting.
TransparencyKit& HPS::TransparencyKit::UnsetDepthPeelingMinimumArea | ( | ) |
Removes the depth peeling minimum area setting.
TransparencyKit& HPS::TransparencyKit::UnsetDepthPeelingPreference | ( | ) |
Removes the depth peeling preference setting.
TransparencyKit& HPS::TransparencyKit::UnsetDepthWriting | ( | ) |
Removes the depth writing setting.
TransparencyKit& HPS::TransparencyKit::UnsetEverything | ( | ) |
Removes all settings from this object.
TransparencyKit& HPS::TransparencyKit::UnsetMethod | ( | ) |
Removes the transparency method setting.
|
static |