Privacy
An open-source, flexible 3D physical simulation framework
mars::plugins::PythonMars::PythonMars Class Reference

#include <PythonMars.h>

Public Member Functions

 PythonMars (lib_manager::LibManager *theManager)
 
 ~PythonMars ()
 
int getLibVersion () const
 
const std::string getLibName () const
 
 CREATE_MODULE_INFO ()
 
void init ()
 
void reset ()
 
void update (mars::interfaces::sReal time_ms)
 
void interpreteMap (configmaps::ConfigItem &map)
 
void interpreteGuiMaps ()
 
virtual void receiveData (const data_broker::DataInfo &info, const data_broker::DataPackage &package, int callbackParam)
 The DataBroker will call this method to notify the receiver of whenever the condition for which the receiver registered occur. More...
 
virtual void cfgUpdateProperty (cfg_manager::cfgPropertyStruct _property)
 
void menuAction (int action, bool checked=false)
 Called whenever a menu item is selected. More...
 
- Public Member Functions inherited from mars::interfaces::MarsPluginTemplateGUI
 MarsPluginTemplateGUI (lib_manager::LibManager *theManager, std::string libName)
 
 ~MarsPluginTemplateGUI ()
 
- Public Member Functions inherited from lib_manager::LibInterface
 LibInterface (LibManager *theManager)
 
virtual ~LibInterface (void)
 
ModuleInfo getModuleInfo () const
 
virtual void newLibLoaded (const std::string &libName)
 
virtual void createModuleInfo (void)
 
- Public Member Functions inherited from mars::interfaces::PluginInterface
 PluginInterface (ControlCenter *control)
 
virtual ~PluginInterface (void)
 
virtual void handleError (void)
 
virtual void getSomeData (void *data)
 
- Public Member Functions inherited from mars::data_broker::ReceiverInterface
 ReceiverInterface ()
 
virtual ~ReceiverInterface ()
 
- Public Member Functions inherited from mars::main_gui::MenuInterface
virtual ~MenuInterface ()
 
- Public Member Functions inherited from mars::cfg_manager::CFGClient
 CFGClient ()
 
virtual ~CFGClient ()
 
virtual void cfgParamCreated (cfgParamId _id)
 
virtual void cfgParamRemoved (cfgParamId _id)
 

Private Attributes

cfg_manager::cfgPropertyStruct example
 
utils::Mutex gpMutex
 
utils::Mutex mutex
 
utils::Mutex guiMapMutex
 
utils::Mutex mutexPoints
 
utils::Mutex mutexCamera
 
shared_ptr< Moduleplugin
 
std::map< std::string, unsigned long > motorMap
 
configmaps::ConfigItem requestMap
 
bool pythonException
 
std::map< std::string, PointStructpoints
 
std::map< std::string, LineStructlines
 
std::map< std::string, CameraStructcameras
 
osg_material_manager::OsgMaterialManagermaterialManager
 
osg_points::PointsFactorypf
 
osg_lines::LinesFactorylf
 
bool updateGraphics
 
bool nextStep
 
configmaps::ConfigItem iMap
 
double updateTime
 
std::vector< configmaps::ConfigMapguiMaps
 

Additional Inherited Members

- Protected Attributes inherited from mars::interfaces::MarsPluginTemplateGUI
std::string configPath
 
std::string resourcesPath
 
main_gui::GuiInterfacegui
 
- Protected Attributes inherited from lib_manager::LibInterface
LibManagerlibManager
 
ModuleInfo moduleInfo
 
- Protected Attributes inherited from mars::interfaces::PluginInterface
ControlCentercontrol
 

Detailed Description

Definition at line 75 of file PythonMars.h.

Constructor & Destructor Documentation

◆ PythonMars()

mars::plugins::PythonMars::PythonMars::PythonMars ( lib_manager::LibManager theManager)

Definition at line 52 of file PythonMars.cpp.

◆ ~PythonMars()

mars::plugins::PythonMars::PythonMars::~PythonMars ( )

Definition at line 60 of file PythonMars.cpp.

Member Function Documentation

◆ cfgUpdateProperty()

void mars::plugins::PythonMars::PythonMars::cfgUpdateProperty ( cfg_manager::cfgPropertyStruct  _property)
virtual

Reimplemented from mars::cfg_manager::CFGClient.

Definition at line 557 of file PythonMars.cpp.

◆ CREATE_MODULE_INFO()

mars::plugins::PythonMars::PythonMars::CREATE_MODULE_INFO ( )

◆ getLibName()

const std::string mars::plugins::PythonMars::PythonMars::getLibName ( ) const
inlinevirtual

Implements lib_manager::LibInterface.

Definition at line 88 of file PythonMars.h.

◆ getLibVersion()

int mars::plugins::PythonMars::PythonMars::getLibVersion ( ) const
inlinevirtual

Implements lib_manager::LibInterface.

Definition at line 86 of file PythonMars.h.

◆ init()

void mars::plugins::PythonMars::PythonMars::init ( void  )
virtual

Implements mars::interfaces::PluginInterface.

Definition at line 64 of file PythonMars.cpp.

◆ interpreteGuiMaps()

void mars::plugins::PythonMars::PythonMars::interpreteGuiMaps ( )

Definition at line 229 of file PythonMars.cpp.

◆ interpreteMap()

void mars::plugins::PythonMars::PythonMars::interpreteMap ( configmaps::ConfigItem map)

Definition at line 108 of file PythonMars.cpp.

◆ menuAction()

void mars::plugins::PythonMars::PythonMars::menuAction ( int  action,
bool  checked = false 
)
virtual

Called whenever a menu item is selected.

Parameters
actionThe action that is passed to the GuiInterface via addGenericMenuAction function.
checkedIndicates if the menu/menu item is checked or not.

Implements mars::main_gui::MenuInterface.

Definition at line 564 of file PythonMars.cpp.

◆ receiveData()

void mars::plugins::PythonMars::PythonMars::receiveData ( const data_broker::DataInfo info,
const data_broker::DataPackage dataPackage,
int  callbackParam 
)
virtual

The DataBroker will call this method to notify the receiver of whenever the condition for which the receiver registered occur.

Parameters
infoInformation about the DataPackage.
dataPackageThe DataPackage containing all the data.
callbackParamThe int the receiver passed during registration. The default (the receiver didn't provide a callbackParam) is 0. This can be used to easily distinguish different registrations.

Implements mars::data_broker::ReceiverInterface.

Definition at line 551 of file PythonMars.cpp.

◆ reset()

void mars::plugins::PythonMars::PythonMars::reset ( void  )
virtual

Implements mars::interfaces::PluginInterface.

Definition at line 385 of file PythonMars.cpp.

◆ update()

void mars::plugins::PythonMars::PythonMars::update ( mars::interfaces::sReal  time_ms)
virtual

Implements mars::interfaces::PluginInterface.

Definition at line 390 of file PythonMars.cpp.

Member Data Documentation

◆ cameras

std::map<std::string, CameraStruct> mars::plugins::PythonMars::PythonMars::cameras
private

Definition at line 122 of file PythonMars.h.

◆ example

cfg_manager::cfgPropertyStruct mars::plugins::PythonMars::PythonMars::example
private

Definition at line 113 of file PythonMars.h.

◆ gpMutex

utils::Mutex mars::plugins::PythonMars::PythonMars::gpMutex
private

Definition at line 115 of file PythonMars.h.

◆ guiMapMutex

utils::Mutex mars::plugins::PythonMars::PythonMars::guiMapMutex
private

Definition at line 115 of file PythonMars.h.

◆ guiMaps

std::vector<configmaps::ConfigMap> mars::plugins::PythonMars::PythonMars::guiMaps
private

Definition at line 129 of file PythonMars.h.

◆ iMap

configmaps::ConfigItem mars::plugins::PythonMars::PythonMars::iMap
private

Definition at line 127 of file PythonMars.h.

◆ lf

osg_lines::LinesFactory* mars::plugins::PythonMars::PythonMars::lf
private

Definition at line 125 of file PythonMars.h.

◆ lines

std::map<std::string, LineStruct> mars::plugins::PythonMars::PythonMars::lines
private

Definition at line 121 of file PythonMars.h.

◆ materialManager

osg_material_manager::OsgMaterialManager* mars::plugins::PythonMars::PythonMars::materialManager
private

Definition at line 123 of file PythonMars.h.

◆ motorMap

std::map<std::string, unsigned long> mars::plugins::PythonMars::PythonMars::motorMap
private

Definition at line 117 of file PythonMars.h.

◆ mutex

utils::Mutex mars::plugins::PythonMars::PythonMars::mutex
private

Definition at line 115 of file PythonMars.h.

◆ mutexCamera

utils::Mutex mars::plugins::PythonMars::PythonMars::mutexCamera
private

Definition at line 115 of file PythonMars.h.

◆ mutexPoints

utils::Mutex mars::plugins::PythonMars::PythonMars::mutexPoints
private

Definition at line 115 of file PythonMars.h.

◆ nextStep

bool mars::plugins::PythonMars::PythonMars::nextStep
private

Definition at line 126 of file PythonMars.h.

◆ pf

osg_points::PointsFactory* mars::plugins::PythonMars::PythonMars::pf
private

Definition at line 124 of file PythonMars.h.

◆ plugin

shared_ptr<Module> mars::plugins::PythonMars::PythonMars::plugin
private

Definition at line 116 of file PythonMars.h.

◆ points

std::map<std::string, PointStruct> mars::plugins::PythonMars::PythonMars::points
private

Definition at line 120 of file PythonMars.h.

◆ pythonException

bool mars::plugins::PythonMars::PythonMars::pythonException
private

Definition at line 119 of file PythonMars.h.

◆ requestMap

configmaps::ConfigItem mars::plugins::PythonMars::PythonMars::requestMap
private

Definition at line 118 of file PythonMars.h.

◆ updateGraphics

bool mars::plugins::PythonMars::PythonMars::updateGraphics
private

Definition at line 126 of file PythonMars.h.

◆ updateTime

double mars::plugins::PythonMars::PythonMars::updateTime
private

Definition at line 128 of file PythonMars.h.


The documentation for this class was generated from the following files: