BlankMat 0.1.0
Free open-source 3D texture creation application
Loading...
Searching...
No Matches
ISelectable Class Reference

Interface for all items that can be selected to be viewed in the inspector. More...

Inheritance diagram for ISelectable:
Collaboration diagram for ISelectable:

Public Member Functions

virtual SelectableType GetSelectableType ()
 Returns the type of the selectable.
 
 ISelectable (SelectableType type=SelectableType::NONE)
 Sets the type of the selectable.
 
- Public Member Functions inherited from INameable
virtual void Rename (const std::string &newName, bool includeScope=true)
 Renames the object, setting the scope to be the scoped part of the name.
 
virtual void SetName (const std::string &name)
 Sets the name of the object. Note: Does not set the scope variable. If renaming based on raw input, use Rename() instead to set the scope.
 
virtual void SetScope (const std::string &scope)
 Sets the scope of the object.
 
std::string GetUnscopedName ()
 Returns the unscoped name of the object.
 
std::string GetScope ()
 Returns the scope of the object.
 
std::string GetScopedName ()
 Returns the scoped name of the object.
 
void InitName (const std::string &name, const std::string &scope="")
 Initializes the nameable object with the given name and scope.
 
 INameable ()
 Creates a default nameable object without name or scope.
 

Protected Attributes

SelectableType mSelectableType = SelectableType::NONE
 Type of the selectable.
 
- Protected Attributes inherited from INameable
std::string mName = ""
 Name of the object.
 
std::string mScope = ""
 Scope of the object.
 

Detailed Description

Interface for all items that can be selected to be viewed in the inspector.

Constructor & Destructor Documentation

◆ ISelectable()

ISelectable::ISelectable ( SelectableType  type = SelectableType::NONE)
inlineexplicit

Sets the type of the selectable.

Parameters
typeType of selectable

Member Function Documentation

◆ GetSelectableType()

virtual SelectableType ISelectable::GetSelectableType ( )
inlinevirtual

Returns the type of the selectable.

Returns
Type of the selectable

Member Data Documentation

◆ mSelectableType

SelectableType ISelectable::mSelectableType = SelectableType::NONE
protected

Type of the selectable.