Rumba C++ SDK
GraphProperties.h
Go to the documentation of this file.
1 /*
2 
3  *
4  ***
5  *****
6  ********************* Mercenaries Engineering SARL
7  ***************** Copyright (C) 2018
8  *************
9  ********* http://www.mercenaries-engineering.com
10  ***********
11  **** ****
12  ** **
13 
14 */
15 #pragma once
16 
17 #include "Value.h"
18 
19 namespace maquina
20 {
21 
24 {
25 public:
26 
27  GraphProperties(const Imath::V2f& pos=Imath::V2f(0.f), float radius=16.f, uint32_t flags=0);
28 
30  GraphProperties(const Value &v);
31 
33  const Imath::V2f& pos() const;
34 
36  float radius() const;
37 
39  uint32_t flags() const;
40 
42  void set_pos(const Imath::V2f& pos);
43 
45  void set_radius(float radius);
46 
48  void set_flags(const uint32_t flags);
49 
52 
54  GraphProperties(std::shared_ptr<Impl> impl) { _impl=impl; }
55 };
56 
57 }
The graph properties of a node, its graph position, its radius, its graph flags.
Definition: GraphProperties.h:23
static const GraphProperties default_value
The default value.
Definition: GraphProperties.h:51
This version of the SDK is unstable, i-e, it may change with no warning.
Definition: AddCurveAction.h:20
#define MAQUINA_EXPORT
Definition: Export.h:31
Definition: ImathVec.h:61
Base class of all Rumba values.
Definition: Value.h:34