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

#include <skinPart.h>

+ Inheritance diagram for iCub::skinDynLib::skinPartBase:

Public Member Functions

 skinPartBase ()
 Constructor. More...
 
 skinPartBase (const skinPartBase &_spb)
 Copy constructor. More...
 
virtual skinPartBaseoperator= (const skinPartBase &_sp)
 Copy Operator. More...
 
void setName (const std::string &_name)
 Sets the name of the class. More...
 
std::string getName ()
 Gets the name of the class. More...
 
void setSize (int _size)
 Sets the size of the class. More...
 
int getSize ()
 Gets the size of the class. More...
 
void setVersion (const std::string &_version)
 Sets the version ("V1" / "V2" / "V2.1") More...
 
std::string getVersion ()
 Gets the version. More...
 
virtual bool setTaxelPosesFromFile (const std::string &_filePath, const std::string &_spatial_sampling="default")
 Populates the skinPartBase by reading from a file. More...
 
virtual void print (int verbosity=0)
 Print Method. More...
 
virtual std::string toString (int precision=0)
 toString Method More...
 

Public Attributes

std::string name
 
int size
 
std::string version
 
std::recursive_mutex recursive_mtx
 

Detailed Description

Definition at line 51 of file skinPart.h.

Constructor & Destructor Documentation

◆ skinPartBase() [1/2]

skinPartBase::skinPartBase ( )

Constructor.

Definition at line 9 of file skinPart.cpp.

◆ skinPartBase() [2/2]

skinPartBase::skinPartBase ( const skinPartBase _spb)

Copy constructor.

Parameters
_spbis the skinPart to copy from

Definition at line 11 of file skinPart.cpp.

Member Function Documentation

◆ getName()

std::string skinPartBase::getName ( )

Gets the name of the class.

Returns
string containing the name of the class

Definition at line 35 of file skinPart.cpp.

◆ getSize()

int skinPartBase::getSize ( )

Gets the size of the class.

Returns
int containing the size of the class

Definition at line 45 of file skinPart.cpp.

◆ getVersion()

std::string skinPartBase::getVersion ( )

Gets the version.

Returns
string containing the version

Definition at line 55 of file skinPart.cpp.

◆ operator=()

skinPartBase & skinPartBase::operator= ( const skinPartBase _sp)
virtual

Copy Operator.

Parameters
_spbis the skinPart to copy from

Definition at line 16 of file skinPart.cpp.

◆ print()

void skinPartBase::print ( int  verbosity = 0)
virtual

Print Method.

Parameters
verbosityis the verbosity level

Reimplemented in iCub::skinDynLib::skinPart.

Definition at line 61 of file skinPart.cpp.

◆ setName()

void skinPartBase::setName ( const std::string &  _name)

Sets the name of the class.

Parameters
_namenew name of the class

Definition at line 30 of file skinPart.cpp.

◆ setSize()

void skinPartBase::setSize ( int  _size)

Sets the size of the class.

Parameters
_sizenew size of the class

Definition at line 40 of file skinPart.cpp.

◆ setTaxelPosesFromFile()

virtual bool iCub::skinDynLib::skinPartBase::setTaxelPosesFromFile ( const std::string &  _filePath,
const std::string &  _spatial_sampling = "default" 
)
inlinevirtual

Populates the skinPartBase by reading from a file.

Parameters
_filePathis the full absolute path of the file
Returns
true/false in case of success/failure

Reimplemented in iCub::skinDynLib::skinPart.

Definition at line 123 of file skinPart.h.

◆ setVersion()

void skinPartBase::setVersion ( const std::string &  _version)

Sets the version ("V1" / "V2" / "V2.1")

Parameters
_version

Definition at line 50 of file skinPart.cpp.

◆ toString()

std::string skinPartBase::toString ( int  precision = 0)
virtual

toString Method

Parameters
verbosityis the verbosity level

Reimplemented in iCub::skinDynLib::skinPart.

Definition at line 69 of file skinPart.cpp.

Member Data Documentation

◆ name

std::string iCub::skinDynLib::skinPartBase::name

Definition at line 54 of file skinPart.h.

◆ recursive_mtx

std::recursive_mutex iCub::skinDynLib::skinPartBase::recursive_mtx

Definition at line 63 of file skinPart.h.

◆ size

int iCub::skinDynLib::skinPartBase::size

Definition at line 55 of file skinPart.h.

◆ version

std::string iCub::skinDynLib::skinPartBase::version

Definition at line 60 of file skinPart.h.


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