|
TrueReality
v0.1.1912
|
A sky box class that creates an object that is always positioned around the camera. This class can load any geometry, box or dome... More...
#include <SkyBoxNode.h>


Public Types | |
| using | BaseClass = osg::Transform |
Public Member Functions | |
| SkyBoxNode () | |
| Adds an easy and swappable access to the base class. More... | |
| virtual bool | computeLocalToWorldMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const override |
| Calculates the local to world matrix. More... | |
| virtual bool | computeWorldToLocalMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const override |
| Calculates the world to local matrix. More... | |
| bool | LoadFile (std::string fileName) |
| Loads a geometry file. More... | |
Protected Member Functions | |
| ~SkyBoxNode () | |
| Destructor. More... | |
Protected Attributes | |
| trBase::SmrtPtr< osg::Node > | mNode = nullptr |
A sky box class that creates an object that is always positioned around the camera. This class can load any geometry, box or dome...
Definition at line 44 of file SkyBoxNode.h.
| using trCore::SceneObjects::SkyBoxNode::BaseClass = osg::Transform |
Definition at line 48 of file SkyBoxNode.h.
| trCore::SceneObjects::SkyBoxNode::SkyBoxNode | ( | ) |
Adds an easy and swappable access to the base class.
Default constructor.
Definition at line 31 of file SkyBoxNode.cpp.
|
protected |
Destructor.
Definition at line 85 of file SkyBoxNode.cpp.
|
overridevirtual |
Calculates the local to world matrix.
| [in,out] | matrix | The matrix. |
| [in,out] | nv | If non-null, the nv. |
Definition at line 40 of file SkyBoxNode.cpp.
|
overridevirtual |
Calculates the world to local matrix.
| [in,out] | matrix | The matrix. |
| [in,out] | nv | If non-null, the nv. |
Definition at line 55 of file SkyBoxNode.cpp.
| bool trCore::SceneObjects::SkyBoxNode::LoadFile | ( | std::string | fileName | ) |
Loads a geometry file.
Path and file name should be passed in
| fileName | Filename of the file. |
Definition at line 70 of file SkyBoxNode.cpp.
References mNode, and trBase::SmrtPtr< T >::Valid().

|
protected |
Definition at line 94 of file SkyBoxNode.h.
Referenced by LoadFile().