iCub-main
Public Member Functions | Protected Attributes | List of all members
iCub::skinDynLib::iCubSkin Class Reference

Class that collects a set of skinParts. More...

#include <iCubSkin.h>

Public Member Functions

 iCubSkin ()
 Default constructor. More...
 
 iCubSkin (const std::string &_from)
 Constructor that configures the class with an .ini file. More...
 
 iCubSkin (const std::string &_from, const std::string &_context)
 Constructor that configures the class with an .ini file. More...
 
bool configureSkinFromFile (const std::string &_from="skinManAll.ini", const std::string &_context="skinGui")
 Configures the class with an .ini file. More...
 
void print (int verbosity=0)
 Print Method. More...
 

Protected Attributes

std::vector< skinPartskin
 

Detailed Description

Class that collects a set of skinParts.

It consists of a std::vector of skinPart(s), and a number of methods for loading and populating these taxels from files.

Definition at line 50 of file iCubSkin.h.

Constructor & Destructor Documentation

◆ iCubSkin() [1/3]

iCubSkin::iCubSkin ( )

Default constructor.

Definition at line 8 of file iCubSkin.cpp.

◆ iCubSkin() [2/3]

iCubSkin::iCubSkin ( const std::string &  _from)

Constructor that configures the class with an .ini file.

The context used will be the default one, i.e. 'skinGui'

Parameters
_fromthe name of the file (default skinManAll.ini)

Definition at line 13 of file iCubSkin.cpp.

◆ iCubSkin() [3/3]

iCubSkin::iCubSkin ( const std::string &  _from,
const std::string &  _context 
)

Constructor that configures the class with an .ini file.

Parameters
_fromthe name of the file (default skinManAll.ini)
_contextthe context to load the file from (default skinGui)

Definition at line 18 of file iCubSkin.cpp.

Member Function Documentation

◆ configureSkinFromFile()

bool iCubSkin::configureSkinFromFile ( const std::string &  _from = "skinManAll.ini",
const std::string &  _context = "skinGui" 
)

Configures the class with an .ini file.

Parameters
_fromthe name of the file (default skinManAll.ini)
_contextthe context to load the file from (default skinGui)
Returns
true/false in case of success/failure

Definition at line 23 of file iCubSkin.cpp.

◆ print()

void iCubSkin::print ( int  verbosity = 0)

Print Method.

Definition at line 91 of file iCubSkin.cpp.

Member Data Documentation

◆ skin

std::vector<skinPart> iCub::skinDynLib::iCubSkin::skin
protected

Definition at line 53 of file iCubSkin.h.


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