SOFA API  f4c584b2
Open source framework for multi-physics simuation
sofa::simulation::Colors Namespace Reference

Classes

class  DeprecatedColor
 

Enumerations

enum  COLORID {
  NODE , OBJECT , CONTEXT , BMODEL ,
  CMODEL , MMODEL , PROJECTIVECONSTRAINTSET , CONSTRAINTSET ,
  IFFIELD , FFIELD , SOLVER , COLLISION ,
  MMAPPING , MAPPING , MASS , TOPOLOGY ,
  VMODEL , LOADER , CONFIGURATIONSETTING , ALLCOLORS
}
 

Functions

bool hasColor (const std::string &className)
 
bool hasColor (const sofa::Index &id)
 
const chargetColor (const std::string &className)
 
const chargetColor (const sofa::Index id)
 
sofa::Index registerColor (const std::string &hexColor)
 
sofa::Index registerColor (const std::string &className, const std::string &hexColor)
 

Variables

DeprecatedColor COLOR {}
 

Enumeration Type Documentation

◆ COLORID

Enumerator
NODE 
OBJECT 
CONTEXT 
BMODEL 
CMODEL 
MMODEL 
PROJECTIVECONSTRAINTSET 
CONSTRAINTSET 
IFFIELD 
FFIELD 
SOLVER 
COLLISION 
MMAPPING 
MAPPING 
MASS 
TOPOLOGY 
VMODEL 
LOADER 
CONFIGURATIONSETTING 
ALLCOLORS 

Function Documentation

◆ getColor() [1/2]

SOFA_SIMULATION_CORE_API const char * sofa::simulation::Colors::getColor ( const sofa::Index  id)

◆ getColor() [2/2]

SOFA_SIMULATION_CORE_API const char * sofa::simulation::Colors::getColor ( const std::string &  className)

◆ hasColor() [1/2]

SOFA_SIMULATION_CORE_API bool sofa::simulation::Colors::hasColor ( const sofa::Index &  id)

◆ hasColor() [2/2]

SOFA_SIMULATION_CORE_API bool sofa::simulation::Colors::hasColor ( const std::string &  className)

◆ registerColor() [1/2]

SOFA_SIMULATION_CORE_API sofa::Index sofa::simulation::Colors::registerColor ( const std::string &  className,
const std::string &  hexColor 
)

◆ registerColor() [2/2]

SOFA_SIMULATION_CORE_API sofa::Index sofa::simulation::Colors::registerColor ( const std::string &  hexColor)

Variable Documentation

◆ COLOR

SOFA_SIMULATION_CORE_API DeprecatedColor sofa::simulation::Colors::COLOR {}