Momentum Scripting v1
Loading...
Searching...
No Matches
SceneNode.h
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material without having a written signed agreement with Algoryx Simulation AB.
9
10Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
11from using this software, unless otherwise stated in written agreements with
12Algoryx Simulation AB.
13*/
14#ifndef MOMENTUM_SCENENODE_H
15#define MOMENTUM_SCENENODE_H
16
17#include "momentum_namespace.h"
18#include "momentum_export.h"
19#include "macros.h"
20#include "Vec4.h"
21
23namespace osg
24{
25 class Node;
26}
28
29namespace MOMENTUM_NAMESPACE
30{
35 class MOMENTUM_EXPORT SceneNode
36 {
37 public:
39#ifndef SWIG
40 SceneNode(osg::Node* node);
41
42
46 SceneNode();
47
51 osg::Node* getNode() const;
52#endif
53
55 virtual ~SceneNode();
57
61 Vec4 getColor() const;
62
63 // friend class declaration
64 friend class SceneGraph;
65
66 private:
67 osg::Node* m_node;
68 };
69
70 V1_DECLARE_CONTAINER_TYPE(SceneNode);
71} // namespace momentum
72
73
74#endif
The SceneGraph class provides an interface for managing and rendering graphical objects within a scen...
Definition: SceneGraph.h:46
A container class to access scene nodes after they are created via the SceneGraph API.
Definition: SceneNode.h:36
Vec4 getColor() const
Inspect the current diffuse color stored on the underlying OSG node.
A 4 dimensional vector and contains basic arithmetic.
Definition: Vec4.h:33
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29