g4tools  5.4.0
Public Member Functions | List of all members
tools::sg::style_color Class Reference
Inheritance diagram for tools::sg::style_color:
Inheritance graph
[legend]
Collaboration diagram for tools::sg::style_color:
Collaboration graph
[legend]

Public Member Functions

 style_color ()
 
 style_color (const std::string &a_name, const colorf &a_color)
 
 style_color (const std::string &a_name, float a_r, float a_g, float a_b)
 
virtual ~style_color ()
 
 style_color (const style_color &a_from)
 
style_coloroperator= (const style_color &a_from)
 
void set_name (const std::string &a_name)
 
void set_value (float a_r, float a_g, float a_b, float a_a)
 

Detailed Description

Definition at line 17 of file style_color.

Constructor & Destructor Documentation

◆ style_color() [1/4]

tools::sg::style_color::style_color ( )
inline

Definition at line 23 of file style_color.

23  :parent("",colorf()) {
24 #ifdef TOOLS_MEM
25  mem::increment(s_class().c_str());
26 #endif
27  }

◆ style_color() [2/4]

tools::sg::style_color::style_color ( const std::string &  a_name,
const colorf a_color 
)
inline

Definition at line 28 of file style_color.

28  :parent(a_name,a_color) {
29 #ifdef TOOLS_MEM
30  mem::increment(s_class().c_str());
31 #endif
32  }

◆ style_color() [3/4]

tools::sg::style_color::style_color ( const std::string &  a_name,
float  a_r,
float  a_g,
float  a_b 
)
inline

Definition at line 33 of file style_color.

33  :parent(a_name,colorf(a_r,a_g,a_b)) {
34 #ifdef TOOLS_MEM
35  mem::increment(s_class().c_str());
36 #endif
37  }

◆ ~style_color()

virtual tools::sg::style_color::~style_color ( )
inlinevirtual

Definition at line 38 of file style_color.

38  {
39 #ifdef TOOLS_MEM
40  mem::decrement(s_class().c_str());
41 #endif
42  }

◆ style_color() [4/4]

tools::sg::style_color::style_color ( const style_color a_from)
inline

Definition at line 44 of file style_color.

44  :parent(a_from.first,a_from.second) {
45 #ifdef TOOLS_MEM
46  mem::increment(s_class().c_str());
47 #endif
48  }

Member Function Documentation

◆ operator=()

style_color& tools::sg::style_color::operator= ( const style_color a_from)
inline

Definition at line 49 of file style_color.

49  {
50  first = a_from.first;
51  second = a_from.second;
52  return *this;
53  }

◆ set_name()

void tools::sg::style_color::set_name ( const std::string &  a_name)
inline

Definition at line 55 of file style_color.

55 {first = a_name;}

◆ set_value()

void tools::sg::style_color::set_value ( float  a_r,
float  a_g,
float  a_b,
float  a_a 
)
inline

Definition at line 56 of file style_color.

56 {second.set_value(a_r,a_g,a_b,a_a);}

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