Provides an interface to set of textures. More...
#include <cadex/ModelData_TextureSet.hxx>
Classes | |
class | TextureIterator |
Iterator over layers this element belongs to. More... | |
Public Types | |
typedef cadex::internal::ModelData_TextureSetImpl | ImplType |
Public Types inherited from cadex::ModelData_BaseObject | |
typedef int | IdType |
Defines a type identifier. | |
Public Member Functions | |
ModelData_TextureSet () | |
Constructor. | |
ModelData_TextureSet (initialized) | |
ModelData_TextureSet (ImplType *theImpl) | |
bool | IsEmpty () const |
size_t | NumberOfTextures () const |
bool | Add (const ModelData_Texture &theTexture) |
bool | Remove (const ModelData_Texture &theTexture) |
bool | Contains (const ModelData_Texture &theTexture) |
void | Accept (ModelData_TextureVisitor &theVisitor) const |
Public Member Functions inherited from cadex::ModelData_BaseObject | |
ModelData_BaseObject () | |
Constructor. | |
IdType | TypeId () const |
Returns an object type id. | |
template<typename T > | |
bool | IsOfType () const |
Returns true if the object has a type T. | |
void | SetName (const Base_UTF16String &theName) |
Sets an object name. | |
Base_UTF16String | Name () const |
void | SetUuid (const Base_Uuid &theUuid) |
Base_Uuid | Uuid () const |
void | Nullify () |
Resets reference to implementation object. | |
bool | IsNull () const |
Returns true if the object is nullified. | |
operator bool () const | |
Casts the object to the bool type. | |
internal::ModelData_BaseObjectImpl * | Impl () const |
Return a handle to backend (reserved for internal use). | |
Static Public Member Functions | |
static IdType | GetTypeId () |
Additional Inherited Members | |
Protected Member Functions inherited from cadex::ModelData_BaseObject | |
ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl) | |
Constructor (reserved for internal use). | |
ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl, const Base_UTF16String &theName) | |
Constructor (reserved for internal use). | |
template<typename T > | |
T * | GetOrCreateImpl () |
Reserved for internal use. | |
Provides an interface to set of textures.
cadex::ModelData_TextureSet::ModelData_TextureSet | ( | ) |
Constructor.
Create empty object.
bool cadex::ModelData_TextureSet::Add | ( | const ModelData_Texture & | theTexture | ) |
Adds texture to the texture set. Returns false if theTexture is already existed in the set. Otherwise returns true.
bool cadex::ModelData_TextureSet::Contains | ( | const ModelData_Texture & | theTexture | ) |
Returns true if texture set contains theTexture. Otherwise returns false.
bool cadex::ModelData_TextureSet::IsEmpty | ( | ) | const |
Returns true is no textures added into texture set
size_t cadex::ModelData_TextureSet::NumberOfTextures | ( | ) | const |
Returns number of added textures. Returns 0 if IsNull()
bool cadex::ModelData_TextureSet::Remove | ( | const ModelData_Texture & | theTexture | ) |
Removes texture from the texture set. Returns true on success. Otherwise returns false.