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

Public Member Functions

virtual const desc_fieldsnode_desc_fields () const
 
virtual void render (render_action &a_action)
 
 blend ()
 
virtual ~blend ()
 
 blend (const blend &a_from)
 
blendoperator= (const blend &a_from)
 
- Public Member Functions inherited from tools::sg::node
virtual void * cast (const std::string &a_class) const
 
virtual const std::string & s_cls () const =0
 
virtual nodecopy () const =0
 
virtual unsigned int cls_version () const
 
virtual void pick (pick_action &)
 
virtual void bbox (bbox_action &)
 
virtual void search (search_action &a_action)
 
virtual void get_matrix (get_matrix_action &a_action)
 
virtual bool write (write_action &a_action)
 
virtual void event (event_action &)
 
virtual bool read (read_action &a_action)
 
virtual void is_visible (visible_action &)
 
virtual void protocol_one_fields (std::vector< field * > &a_fields) const
 
virtual bool draw_in_frame_buffer () const
 
virtual bool touched ()
 
virtual void reset_touched ()
 
 node ()
 
virtual ~node ()
 
void touch ()
 
fieldfield_from_desc (const field_desc &a_desc) const
 
void dump_field_descs (std::ostream &a_out) const
 
fieldfind_field_by_name (const std::string &a_name) const
 

Public Attributes

sf< bool > on
 

Additional Inherited Members

- Protected Member Functions inherited from tools::sg::node
 node (const node &)
 
nodeoperator= (const node &)
 
void add_field (field *a_field)
 
bool write_fields (write_action &a_action)
 
bool read_fields (read_action &a_action)
 
field_desc::offset_t field_offset (const field *a_field) const
 
fieldfind_field (const field_desc &a_rdesc) const
 
void check_fields (std::ostream &a_out) const
 

Detailed Description

Definition at line 16 of file blend.

Constructor & Destructor Documentation

◆ blend() [1/2]

tools::sg::blend::blend ( )
inline

Definition at line 39 of file blend.

40  :parent()
41  ,on(false)
42  {
43  add_fields();
44  }

◆ ~blend()

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

Definition at line 45 of file blend.

45 {}

◆ blend() [2/2]

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

Definition at line 47 of file blend.

48  :parent(a_from)
49  ,on(a_from.on)
50  {
51  add_fields();
52  }

Member Function Documentation

◆ node_desc_fields()

virtual const desc_fields& tools::sg::blend::node_desc_fields ( ) const
inlinevirtual

Reimplemented from tools::sg::node.

Definition at line 21 of file blend.

21  {
23  static const desc_fields s_v(parent::node_desc_fields(),1, //WARNING : take care of count.
25  );
26  return s_v;
27  }

◆ operator=()

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

Definition at line 53 of file blend.

53  {
54  parent::operator=(a_from);
55  on = a_from.on;
56  return *this;
57  }

◆ render()

virtual void tools::sg::blend::render ( render_action a_action)
inlinevirtual

Reimplemented from tools::sg::node.

Definition at line 33 of file blend.

33  {
34  state& state = a_action.state();
35  state.m_GL_BLEND = on.value();
36  a_action.set_blend(state.m_GL_BLEND);
37  }

Member Data Documentation

◆ on

sf<bool> tools::sg::blend::on

Definition at line 19 of file blend.


The documentation for this class was generated from the following file:
tools::sg::blend::on
sf< bool > on
Definition: blend:19
tools::sg::blend
Definition: blend:16
TOOLS_FIELD_DESC_NODE_CLASS
#define TOOLS_FIELD_DESC_NODE_CLASS(a__class)
Definition: field:68
tools::sg::bsf::value
T & value()
Definition: bsf:98
TOOLS_ARG_FIELD_DESC
#define TOOLS_ARG_FIELD_DESC(a__field)
Definition: field:71