AGX Dynamics
2.38.0.2
Loading...
Searching...
No Matches
agxOSG/Node.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2024. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
#pragma once
18
19
#include <
agxOSG/export.h
>
20
21
#include <
agx/PushDisableWarnings.h
>
// Disabling warnings. Include agx/PopDisableWarnings.h below!
22
#include <osg/Group>
23
#include <osg/MatrixTransform>
24
#include <osg/Texture2D>
25
#include <
agxOSG/SceneDecorator.h
>
26
#include <
agx/PopDisableWarnings.h
>
// End of disabled warnings.
27
#include <
agx/Vec3.h
>
28
#include <
agx/AffineMatrix4x4.h
>
29
30
31
32
namespace
agxOSG
33
{
34
35
class
AGXOSG_EXPORT
Texture2D
:
public
agx::Referenced
{
36
public
:
37
Texture2D
(osg::Texture2D *texture) : m_texture(texture) {}
38
39
operator
osg::Texture2D* () {
return
m_texture.get(); }
40
operator
const
osg::Texture2D* ()
const
{
return
m_texture.get(); }
41
42
osg::Texture2D *
getTexture
() {
return
m_texture.get(); }
43
44
protected
:
45
virtual
~Texture2D
() {}
46
47
osg::ref_ptr<osg::Texture2D>
m_texture
;
48
};
49
50
51
class
GeometryNode
;
52
53
54
55
56
class
AGXOSG_EXPORT
Transform
:
public
osg::MatrixTransform
57
{
58
public
:
59
Transform
();
60
void
setName
(
const
std::string& name );
61
bool
addChild
( osg::Node *child );
62
bool
addChild
(
agxOSG::GeometryNode
*child );
63
void
setMatrix
(
const
agx::AffineMatrix4x4
& m);
64
void
setScale
(
const
agx::Vec3
& scale );
65
protected
:
66
virtual
~Transform
();
67
68
};
69
}
AffineMatrix4x4.h
PopDisableWarnings.h
PushDisableWarnings.h
SceneDecorator.h
export.h
AGXOSG_EXPORT
#define AGXOSG_EXPORT
Vec3.h
agxOSG::GeometryNode
A node that can be associated with a collision geometry so that the transformation of this node is up...
Definition
GeometryNode.h:42
agxOSG::Texture2D
Definition
agxOSG/Node.h:35
agxOSG::Texture2D::Texture2D
Texture2D(osg::Texture2D *texture)
Definition
agxOSG/Node.h:37
agxOSG::Texture2D::m_texture
osg::ref_ptr< osg::Texture2D > m_texture
Definition
agxOSG/Node.h:47
agxOSG::Texture2D::~Texture2D
virtual ~Texture2D()
Definition
agxOSG/Node.h:45
agxOSG::Texture2D::getTexture
osg::Texture2D * getTexture()
Definition
agxOSG/Node.h:42
agxOSG::Transform
Definition
agxOSG/Node.h:57
agxOSG::Transform::Transform
Transform()
agxOSG::Transform::addChild
bool addChild(osg::Node *child)
agxOSG::Transform::setName
void setName(const std::string &name)
agxOSG::Transform::setMatrix
void setMatrix(const agx::AffineMatrix4x4 &m)
agxOSG::Transform::addChild
bool addChild(agxOSG::GeometryNode *child)
agxOSG::Transform::setScale
void setScale(const agx::Vec3 &scale)
agxOSG::Transform::~Transform
virtual ~Transform()
agx::AffineMatrix4x4T< Real >
agx::Referenced
Base class providing referencing counted objects.
Definition
Referenced.h:120
agx::Vec3T< Real >
agxOSG
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
include
agxOSG
Node.h
Generated on Sun Sep 1 2024 11:24:47 for AGX Dynamics by
1.9.8