#include <hps.h>
Public Member Functions | |
TextureOptionsKit () | |
The default constructor creates an empty TextureOptionsKit object. More... | |
TextureOptionsKit (TextureOptionsKit const &in_kit) | |
The copy constructor creates a new TextureOptionsKit object that contains the same settings as the source TextureOptionsKit. More... | |
TextureOptionsKit (TextureOptionsKit &&in_that) | |
The move constructor creates a TextureOptionsKit by transferring the underlying impl of the rvalue reference to this TextureOptionsKit thereby avoiding a copy and allocation. More... | |
TextureOptionsKit & | operator= (TextureOptionsKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this TextureOptionsKit thereby avoiding a copy. More... | |
virtual | ~TextureOptionsKit () |
HPS::Type | ObjectType () const |
void | Set (TextureOptionsKit const &in_kit) |
Copies the source TextureOptionsKit into this TextureOptionsKit. More... | |
void | Show (TextureOptionsKit &out_kit) const |
Copies this TextureOptionsKit into the given TextureOptionsKit. More... | |
TextureOptionsKit & | operator= (TextureOptionsKit const &in_kit) |
Copies the source TextureOptionsKit into this TextureOptionsKit. More... | |
bool | Empty () const |
Indicates whether this TextureOptionsKit has any values set on it. More... | |
bool | Equals (TextureOptionsKit const &in_kit) const |
Check if the source TextureOptionsKit is equivalent to this TextureOptionsKit. More... | |
bool | operator== (TextureOptionsKit const &in_kit) const |
Check if the source TextureOptionsKit is equivalent to this TextureOptionsKit. More... | |
bool | operator!= (TextureOptionsKit const &in_kit) const |
Check if the source TextureOptionsKit is not equivalent to this TextureOptionsKit. More... | |
TextureOptionsKit & | SetDecal (bool in_state) |
Sets whether the texture should act as a decal, i.e., whether diffuse colors will be allowed through transparent portions of a diffuse texture. More... | |
TextureOptionsKit & | SetDownSampling (bool in_state) |
Sets whether the texture should be down-sampled. More... | |
TextureOptionsKit & | SetModulation (bool in_state) |
Sets whether the texture should be modulated with materials from layers below it. More... | |
TextureOptionsKit & | SetParameterOffset (size_t in_offset) |
Sets the parameter offset for the texture, i.e., the offset into the texture parameter list to use at each vertex to locate the parameters for the texture. More... | |
TextureOptionsKit & | SetParameterizationSource (Material::Texture::Parameterization in_source) |
Sets the parameterization source for the texture. More... | |
TextureOptionsKit & | SetTiling (Material::Texture::Tiling in_tiling) |
Sets how the texture will be tiled for parameters outside the range [0, 1]. More... | |
TextureOptionsKit & | SetInterpolationFilter (Material::Texture::Interpolation in_filter) |
Sets the interpolation filter to use for the texture. More... | |
TextureOptionsKit & | SetDecimationFilter (Material::Texture::Decimation in_filter) |
Sets the decimation filter to use for the texture. More... | |
TextureOptionsKit & | SetTransformMatrix (MatrixKit const &in_transform) |
Sets the transform matrix to use for the texture. More... | |
TextureOptionsKit & | UnsetDecal () |
Removes whether the texture should act as a decal. More... | |
TextureOptionsKit & | UnsetDownSampling () |
Removes whether to down-sample the texture. More... | |
TextureOptionsKit & | UnsetModulation () |
Removes whether the texture should modulate with materials from layers below it. More... | |
TextureOptionsKit & | UnsetParameterOffset () |
Removes the parameter offset for the texture. More... | |
TextureOptionsKit & | UnsetParameterizationSource () |
Removes the parameter source for the texture. More... | |
TextureOptionsKit & | UnsetTiling () |
Removes how the texture will be tiled for parameters outside the range [0, 1]. More... | |
TextureOptionsKit & | UnsetInterpolationFilter () |
Removes the interpolation filter for the texture. More... | |
TextureOptionsKit & | UnsetDecimationFilter () |
Removes the decimation filter for the texture. More... | |
TextureOptionsKit & | UnsetTransformMatrix () |
Removes the transform matrix for the texture. More... | |
TextureOptionsKit & | UnsetEverything () |
Removes all settings from this TextureOptionsKit. More... | |
bool | ShowDecal (bool &out_state) const |
Shows whether the texture should act as a decal. More... | |
bool | ShowDownSampling (bool &out_state) const |
Shows whether the texture should be down-sampled. More... | |
bool | ShowModulation (bool &out_state) const |
Shows whether the texture should be modulated with materials from layers below it. More... | |
bool | ShowParameterOffset (size_t &out_offset) const |
Shows the parameter offset for the texture. More... | |
bool | ShowParameterizationSource (Material::Texture::Parameterization &out_source) const |
Shows the parameterization source for the texture. More... | |
bool | ShowTiling (Material::Texture::Tiling &out_tiling) const |
Shows how the texture will be tiled for parameters outside the range [0, 1]. More... | |
bool | ShowInterpolationFilter (Material::Texture::Interpolation &out_filter) const |
Shows the interpolation filter for the texture. More... | |
bool | ShowDecimationFilter (Material::Texture::Decimation &out_filter) const |
Shows the decimation filter for the texture. More... | |
bool | ShowTransformMatrix (MatrixKit &out_transform) const |
Shows the transform matrix for the texture. 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 TextureOptionsKit | GetDefault () |
Creates a TextureOptionsKit 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::TextureOptionsKit |
The TextureOptionsKit class is a user space object. It is used for setting texture options when defining textures or cube maps. Calling HPS::TextureOptionsKit::GetDefault() will return an options kit with values found in this table.
HPS::TextureOptionsKit::TextureOptionsKit | ( | ) |
The default constructor creates an empty TextureOptionsKit object.
HPS::TextureOptionsKit::TextureOptionsKit | ( | TextureOptionsKit const & | in_kit | ) |
The copy constructor creates a new TextureOptionsKit object that contains the same settings as the source TextureOptionsKit.
in_kit | The source TextureOptionsKit to copy. |
HPS::TextureOptionsKit::TextureOptionsKit | ( | TextureOptionsKit && | in_that | ) |
The move constructor creates a TextureOptionsKit by transferring the underlying impl of the rvalue reference to this TextureOptionsKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a TextureOptionsKit to take the impl from. |
|
virtual |
|
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 TextureOptionsKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::TextureOptionsKit::Equals | ( | TextureOptionsKit const & | in_kit | ) | const |
Check if the source TextureOptionsKit is equivalent to this TextureOptionsKit.
in_kit | The source TextureOptionsKit to compare to this TextureOptionsKit. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a TextureOptionsKit 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::TextureOptionsKit::operator!= | ( | TextureOptionsKit const & | in_kit | ) | const |
Check if the source TextureOptionsKit is not equivalent to this TextureOptionsKit.
in_kit | The source TextureOptionsKit to compare to this TextureOptionsKit. |
TextureOptionsKit& HPS::TextureOptionsKit::operator= | ( | TextureOptionsKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this TextureOptionsKit thereby avoiding a copy.
in_that | An rvalue reference to a TextureOptionsKit to take the impl from. |
TextureOptionsKit& HPS::TextureOptionsKit::operator= | ( | TextureOptionsKit const & | in_kit | ) |
Copies the source TextureOptionsKit into this TextureOptionsKit.
in_kit | The source TextureOptionsKit to copy. |
bool HPS::TextureOptionsKit::operator== | ( | TextureOptionsKit const & | in_kit | ) | const |
Check if the source TextureOptionsKit is equivalent to this TextureOptionsKit.
in_kit | The source TextureOptionsKit to compare to this TextureOptionsKit. |
|
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::TextureOptionsKit::Set | ( | TextureOptionsKit const & | in_kit | ) |
Copies the source TextureOptionsKit into this TextureOptionsKit.
in_kit | The source TextureOptionsKit to copy. |
TextureOptionsKit& HPS::TextureOptionsKit::SetDecal | ( | bool | in_state | ) |
Sets whether the texture should act as a decal, i.e., whether diffuse colors will be allowed through transparent portions of a diffuse texture.
This only affects a diffuse texture on layer 0.
in_state | Whether the texture should act as a decal. |
TextureOptionsKit& HPS::TextureOptionsKit::SetDecimationFilter | ( | Material::Texture::Decimation | in_filter | ) |
Sets the decimation filter to use for the texture.
in_filter | The decimation filter to use for the texture. |
TextureOptionsKit& HPS::TextureOptionsKit::SetDownSampling | ( | bool | in_state | ) |
Sets whether the texture should be down-sampled.
in_state | Whether the texture should be down-sampled. |
TextureOptionsKit& HPS::TextureOptionsKit::SetInterpolationFilter | ( | Material::Texture::Interpolation | in_filter | ) |
Sets the interpolation filter to use for the texture.
in_filter | The interpolation filter to use for the texture. |
TextureOptionsKit& HPS::TextureOptionsKit::SetModulation | ( | bool | in_state | ) |
Sets whether the texture should be modulated with materials from layers below it.
This only applies to diffuse textures.
in_state | Whether the texture should be modulated with materials from layers below it. |
TextureOptionsKit& HPS::TextureOptionsKit::SetParameterizationSource | ( | Material::Texture::Parameterization | in_source | ) |
Sets the parameterization source for the texture.
in_source | The parameterization source for the texture. |
TextureOptionsKit& HPS::TextureOptionsKit::SetParameterOffset | ( | size_t | in_offset | ) |
Sets the parameter offset for the texture, i.e., the offset into the texture parameter list to use at each vertex to locate the parameters for the texture.
in_offset | The parameter offset for the texture. |
TextureOptionsKit& HPS::TextureOptionsKit::SetTiling | ( | Material::Texture::Tiling | in_tiling | ) |
Sets how the texture will be tiled for parameters outside the range [0, 1].
in_tiling | How the texture will be tiled for parameters outside the range [0, 1]. |
TextureOptionsKit& HPS::TextureOptionsKit::SetTransformMatrix | ( | MatrixKit const & | in_transform | ) |
Sets the transform matrix to use for the texture.
in_transform | The transform matrix to use for the texture. |
void HPS::TextureOptionsKit::Show | ( | TextureOptionsKit & | out_kit | ) | const |
Copies this TextureOptionsKit into the given TextureOptionsKit.
out_kit | The TextureOptionsKit to populate with the contents of this TextureOptionsKit. |
bool HPS::TextureOptionsKit::ShowDecal | ( | bool & | out_state | ) | const |
Shows whether the texture should act as a decal.
out_state | Whether the texture should act as a decal. |
bool HPS::TextureOptionsKit::ShowDecimationFilter | ( | Material::Texture::Decimation & | out_filter | ) | const |
Shows the decimation filter for the texture.
out_filter | The decimation filter for the texture. |
bool HPS::TextureOptionsKit::ShowDownSampling | ( | bool & | out_state | ) | const |
Shows whether the texture should be down-sampled.
out_state | Whether the texture should be down-sampled. |
bool HPS::TextureOptionsKit::ShowInterpolationFilter | ( | Material::Texture::Interpolation & | out_filter | ) | const |
Shows the interpolation filter for the texture.
out_filter | The interpolation filter for the texture. |
bool HPS::TextureOptionsKit::ShowModulation | ( | bool & | out_state | ) | const |
Shows whether the texture should be modulated with materials from layers below it.
out_state | Whether the texture should be be modulated with materials from layers below it. |
bool HPS::TextureOptionsKit::ShowParameterizationSource | ( | Material::Texture::Parameterization & | out_source | ) | const |
Shows the parameterization source for the texture.
out_source | The parametererization source for the texture. |
bool HPS::TextureOptionsKit::ShowParameterOffset | ( | size_t & | out_offset | ) | const |
Shows the parameter offset for the texture.
out_offset | The parameter offset for the texture. |
bool HPS::TextureOptionsKit::ShowTiling | ( | Material::Texture::Tiling & | out_tiling | ) | const |
Shows how the texture will be tiled for parameters outside the range [0, 1].
out_tiling | How the texture will be tiled for parameters outside the range [0, 1]. |
bool HPS::TextureOptionsKit::ShowTransformMatrix | ( | MatrixKit & | out_transform | ) | const |
Shows the transform matrix for the texture.
out_transform | The transform matrix for the texture. |
|
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.
TextureOptionsKit& HPS::TextureOptionsKit::UnsetDecal | ( | ) |
Removes whether the texture should act as a decal.
TextureOptionsKit& HPS::TextureOptionsKit::UnsetDecimationFilter | ( | ) |
Removes the decimation filter for the texture.
TextureOptionsKit& HPS::TextureOptionsKit::UnsetDownSampling | ( | ) |
Removes whether to down-sample the texture.
TextureOptionsKit& HPS::TextureOptionsKit::UnsetEverything | ( | ) |
Removes all settings from this TextureOptionsKit.
TextureOptionsKit& HPS::TextureOptionsKit::UnsetInterpolationFilter | ( | ) |
Removes the interpolation filter for the texture.
TextureOptionsKit& HPS::TextureOptionsKit::UnsetModulation | ( | ) |
Removes whether the texture should modulate with materials from layers below it.
TextureOptionsKit& HPS::TextureOptionsKit::UnsetParameterizationSource | ( | ) |
Removes the parameter source for the texture.
TextureOptionsKit& HPS::TextureOptionsKit::UnsetParameterOffset | ( | ) |
Removes the parameter offset for the texture.
TextureOptionsKit& HPS::TextureOptionsKit::UnsetTiling | ( | ) |
Removes how the texture will be tiled for parameters outside the range [0, 1].
TextureOptionsKit& HPS::TextureOptionsKit::UnsetTransformMatrix | ( | ) |
Removes the transform matrix for the texture.
|
static |