42 const std::string& name()
const;
48 bool has_geometry()
const;
53 bool has_attribute(
const StringView& attribute)
const;
93 std::shared_ptr<Impl> _value;
100 const Shape geometry()
const;
103 std::shared_ptr<SceneConst> child(
104 const std::string& path
149 public std::iterator<
150 std::forward_iterator_tag,
151 SceneConst, std::ptrdiff_t, SceneConst, SceneConst >
166 bool visible()
const;
169 std::string path()
const;
172 bool has_attribute(
const StringView& attribute)
const;
189 Traversal(
const std::shared_ptr<Impl>& value,
bool children_only,
bool shapes_only )
190 : _value{ value }, _children_only(children_only), _shapes_only(shapes_only)
192 Iterator begin()
const;
193 Iterator end()
const;
198 std::shared_ptr<Impl> _value;
204 Traversal read_children(
bool children_only =
false,
bool shapes_only =
false)
const;
210 SceneConst(std::shared_ptr<Impl> impl) { _impl=impl; }
217 Scene(
const StringView& name =
"",
const gsl::span<SceneConst>& children = gsl::span<SceneConst>());
220 void set_name(
const char*);
226 void set_geometry(
const Shape& geometry);
229 void remove_geometry();
240 const std::string& path
248 void prune_empty_nodes();
257 public std::iterator<
258 std::forward_iterator_tag,
259 Scene, std::ptrdiff_t, Scene, Scene >
277 bool visible()
const;
281 std::string path()
const;
284 bool has_attribute(
const StringView& attribute)
const;
300 Traversal(
const std::shared_ptr<Impl>& value,
bool children_only,
bool shapes_only )
301 : _value{ value }, _children_only(children_only), _shapes_only(shapes_only)
303 Iterator begin()
const;
304 Iterator end()
const;
309 std::shared_ptr<Impl> _value;
315 Traversal write_children(
bool children_only =
false,
bool shapes_only =
false);
318 Scene(std::shared_ptr<Impl> impl) { _impl=impl; }
A Node children iterator.
Definition: Scene.h:148
MAQUINA_EXPORT Node reference(Node &root, const std::wstring &filepath, const std::string &reference_root_name="")
Reference the content of a file into the project.
Definition: ImathFrame.h:43
A Node children iterator.
Definition: Scene.h:114
A mutable scene node value.
Definition: Scene.h:214
Buffer< T > duplicate(const BufferConst< T > &a)
Definition: Buffer.h:161
A value with geometrical attributes. Base of all shape values.
Definition: Shape.h:26
This version of the SDK is unstable, i-e, it may change with no warning.
Definition: AddCurveAction.h:20
A Node children iterator.
Definition: Scene.h:67
A Node children iterator.
Definition: Scene.h:256
A scene iterator.
Definition: Scene.h:252
#define MAQUINA_EXPORT
Definition: Export.h:31
A scene iterator.
Definition: Scene.h:144
static const SceneConst default_value
The default value.
Definition: Scene.h:207
An node's attribute iteration.
Definition: Scene.h:63
An attribute iteration on a traversal node.
Definition: Scene.h:110
An immutable scene node value.
Definition: Scene.h:35
bool operator!=(const C *str, const StringViewBase< C, STDS > &sv) noexcept
Definition: StringView.h:305
bool operator==(const C *str, const StringViewBase< C, STDS > &sv) noexcept
Definition: StringView.h:273
Color4< T > operator*(S a, const Color4< T > &v)
Definition: ImathColor.h:727
Base class of all Rumba values.
Definition: Value.h:34