< Home

< Table of Contents

REFERENCE MANUAL

TextureDefinition Class Reference

#include <hps.h>

Inheritance diagram for TextureDefinition:
Definition Object

Public Member Functions

Type ObjectType () const
 
TextureDefinitionoperator= (TextureDefinition const &in_that)
 
TextureDefinitionoperator= (TextureDefinition &&in_that)
 
void SetOptions (TextureOptionsKit const &in_options)
 
void SetSource (ImageDefinition const &in_source)
 
void ShowOptions (TextureOptionsKit &out_options) const
 
void ShowSource (ImageDefinition &out_source) const
 
 TextureDefinition ()
 
 TextureDefinition (Definition const &in_that)
 
 TextureDefinition (TextureDefinition const &in_that)
 
 TextureDefinition (TextureDefinition &&in_that)
 
- Public Member Functions inherited from Definition
virtual void Assign (Definition const &in_that)
 
 Definition ()
 
 Definition (Definition const &in_that)
 
 Definition (Definition &&in_that)
 
bool Equals (Definition const &in_that) const
 
UTF8 Name () const
 
bool operator!= (Definition const &in_that) const
 
Definitionoperator= (Definition const &in_that)
 
Definitionoperator= (Definition &&in_that)
 
bool operator== (Definition const &in_that) const
 
PortfolioKey Owner () const
 
void Undefine ()
 
- Public Member Functions inherited from Object
virtual bool Empty () const
 
intptr_t GetClassID () const
 
intptr_t GetInstanceID () const
 
bool HasType (Type in_mask) const
 
 Object (Object &&in_that)
 
Objectoperator= (Object const &other_object)
 
Objectoperator= (Object &&in_that)
 
virtual void Reset ()
 
Type Type () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
template<typename T >
static intptr_t ClassID ()
 

Detailed Description

The TextureDefinition class is a smart pointer to a database object. It is a handler to a texture defined within a portfolio.

Constructor & Destructor Documentation

TextureDefinition::TextureDefinition ( )

The default constructor creates an uninitialized TextureDefinition object. The Type() function will return Type::None.

TextureDefinition::TextureDefinition ( Definition const &  in_that)

This constructor creates a TextureDefinition object that shares the underlying smart-pointer of the source Definition. The copy will only be successful if the source definition is really an upcast of a texture definition. Otherwise the copy will fail and the resulting TextureDefinition will be invalid.

Parameters
in_thatThe source Definition to copy.
TextureDefinition::TextureDefinition ( TextureDefinition const &  in_that)

The copy constructor creates an TextureDefinition object that shares the underlying smart-pointer of the source TextureDefinition.

Parameters
in_thatThe source TextureDefinition to copy.
TextureDefinition::TextureDefinition ( TextureDefinition &&  in_that)

The move constructor creates a TextureDefinition by transferring the underlying impl of the rvalue reference to this TextureDefinition thereby avoiding a copy and allocation.

Parameters
in_thatAn rvalue reference to a TextureDefinition to take the impl from.

Member Function Documentation

Type TextureDefinition::ObjectType ( ) const
inlinevirtual

This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.

Returns
The declared type of the object in question, which may differ from the true, underlying type.

Reimplemented from Definition.

TextureDefinition& TextureDefinition::operator= ( TextureDefinition const &  in_that)

Associate this TextureDefinition with the same underlying impl as the source TextureDefinition.

Parameters
in_thatThe source TextureDefinition for the assignment.
Returns
A reference to this TextureDefinition.
TextureDefinition& TextureDefinition::operator= ( TextureDefinition &&  in_that)

The move assignment operator transfers the underlying impl of the rvalue reference to this TextureDefinition thereby avoiding a copy.

Parameters
in_thatAn rvalue reference to a TextureDefinition to take the impl from.
Returns
A reference to this TextureDefinition.
void TextureDefinition::SetOptions ( TextureOptionsKit const &  in_options)

Redefine the texture options for this TextureDefinition.

Parameters
in_optionsThe new texture options for this TextureDefinition.
void TextureDefinition::SetSource ( ImageDefinition const &  in_source)

Redefine the image for this TextureDefinition.

Parameters
in_sourceThe new image for this TextureDefinition.
void TextureDefinition::ShowOptions ( TextureOptionsKit out_options) const

Show the texture options for this TextureDefinition.

Parameters
out_optionsThe texture options for this TextureDefinition.
void TextureDefinition::ShowSource ( ImageDefinition out_source) const

Show the image for this TextureDefinition.

Parameters
out_sourceThe image for this TextureDefinition.

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