![]() |
An open-source, flexible 3D physical simulation framework
|
#include <gui_helper_functions.h>
Public Member Functions | |
GuiHelper (interfaces::GraphicsManagerInterface *gi) | |
mars::utils::Vector | getExtend (osg::Node *oGroup) |
void | initGraphics () |
virtual std::vector< double > | getMeshSize (const std::string &filename) |
virtual void | getPhysicsFromMesh (mars::interfaces::NodeData *node) |
virtual void | readPixelData (mars::interfaces::terrainStruct *terrain) |
![]() | |
virtual | ~LoadMeshInterface () |
![]() | |
virtual | ~LoadHeightmapInterface () |
Static Public Member Functions | |
static void | clearStates (osg::ref_ptr< osg::Node > node) |
static mars::interfaces::snmesh | convertOsgNodeToSnMesh (osg::Node *node, double scaleX, double scaleY, double scaleZ, double pivotX, double pivotY, double pivotZ) |
converts the mesh of an osgNode to the snmesh struct More... | |
static osg::ref_ptr< osg::Node > | readNodeFromFile (std::string fileName) |
static osg::ref_ptr< osg::Node > | readBobjFromFile (const std::string &filename) |
static osg::ref_ptr< osg::Texture2D > | loadTexture (std::string filename) |
static osg::ref_ptr< osg::Image > | loadImage (std::string filename) |
Private Member Functions | |
void | getPhysicsFromNode (mars::interfaces::NodeData *node, osg::ref_ptr< osg::Node > completeNode) |
Private Attributes | |
osg::Geometry * | my_geo |
osg::ref_ptr< osg::Vec3Array > | my_v3 |
interfaces::GraphicsManagerInterface * | gi |
mars::interfaces::GraphicData | gs |
Static Private Attributes | |
static std::vector< nodeFileStruct > | nodeFiles |
static std::vector< textureFileStruct > | textureFiles |
static std::vector< imageFileStruct > | imageFiles |
Definition at line 99 of file gui_helper_functions.h.
mars::graphics::GuiHelper::GuiHelper | ( | interfaces::GraphicsManagerInterface * | gi | ) |
Definition at line 135 of file gui_helper_functions.cpp.
|
static |
Definition at line 149 of file gui_helper_functions.cpp.
|
static |
converts the mesh of an osgNode to the snmesh struct
Definition at line 163 of file gui_helper_functions.cpp.
Vector mars::graphics::GuiHelper::getExtend | ( | osg::Node * | oGroup | ) |
Definition at line 232 of file gui_helper_functions.cpp.
|
virtual |
Implements mars::interfaces::LoadMeshInterface.
Definition at line 248 of file gui_helper_functions.cpp.
|
virtual |
Implements mars::interfaces::LoadMeshInterface.
Definition at line 263 of file gui_helper_functions.cpp.
|
private |
Definition at line 272 of file gui_helper_functions.cpp.
void mars::graphics::GuiHelper::initGraphics | ( | ) |
|
static |
Definition at line 661 of file gui_helper_functions.cpp.
|
static |
Definition at line 637 of file gui_helper_functions.cpp.
|
static |
Definition at line 393 of file gui_helper_functions.cpp.
|
static |
Definition at line 378 of file gui_helper_functions.cpp.
|
virtual |
Implements mars::interfaces::LoadHeightmapInterface.
Definition at line 557 of file gui_helper_functions.cpp.
|
private |
Definition at line 132 of file gui_helper_functions.h.
|
private |
Definition at line 135 of file gui_helper_functions.h.
|
staticprivate |
Definition at line 140 of file gui_helper_functions.h.
|
private |
Definition at line 130 of file gui_helper_functions.h.
|
private |
Definition at line 131 of file gui_helper_functions.h.
|
staticprivate |
Definition at line 136 of file gui_helper_functions.h.
|
staticprivate |
Definition at line 138 of file gui_helper_functions.h.