Privacy
An open-source, flexible 3D physical simulation framework
VizPlugin Class Reference

#include <VizPlugin.h>

Public Member Functions

 VizPlugin (lib_manager::LibManager *theManager)
 
 ~VizPlugin (void)
 
int getLibVersion () const
 
const std::string getLibName () const
 
void receiveData (const mars::data_broker::DataInfo &info, const mars::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...
 
void cfgUpdateProperty (mars::cfg_manager::cfgPropertyStruct _property)
 
void preGraphicsUpdate ()
 
- 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::GraphicsUpdateInterface
 GraphicsUpdateInterface (void)
 
virtual ~GraphicsUpdateInterface (void)
 
virtual void postGraphicsUpdate (void)
 
- Public Member Functions inherited from mars::data_broker::ReceiverInterface
 ReceiverInterface ()
 
virtual ~ReceiverInterface ()
 
- Public Member Functions inherited from mars::cfg_manager::CFGClient
 CFGClient ()
 
virtual ~CFGClient ()
 
virtual void cfgParamCreated (cfgParamId _id)
 
virtual void cfgParamRemoved (cfgParamId _id)
 

Private Attributes

mars::interfaces::GraphicsManagerInterfacegraphics
 
mars::viz::Vizviz
 
mars::cfg_manager::CFGManagerInterfacecfg
 
mars::cfg_manager::cfgPropertyStruct vizProp
 
osg_text::TextFactoryInterfacetextFactory
 
osg_text::TextInterfacetext
 
char cText [255]
 
bool updateText
 

Additional Inherited Members

- Protected Attributes inherited from lib_manager::LibInterface
LibManagerlibManager
 
ModuleInfo moduleInfo
 

Detailed Description

Definition at line 35 of file VizPlugin.h.

Constructor & Destructor Documentation

◆ VizPlugin()

VizPlugin::VizPlugin ( lib_manager::LibManager theManager)

Definition at line 35 of file VizPlugin.cpp.

◆ ~VizPlugin()

VizPlugin::~VizPlugin ( void  )

Definition at line 79 of file VizPlugin.cpp.

Member Function Documentation

◆ cfgUpdateProperty()

void VizPlugin::cfgUpdateProperty ( mars::cfg_manager::cfgPropertyStruct  _property)
virtual

Reimplemented from mars::cfg_manager::CFGClient.

Definition at line 109 of file VizPlugin.cpp.

◆ getLibName()

const std::string VizPlugin::getLibName ( ) const
inlinevirtual

Implements lib_manager::LibInterface.

Definition at line 46 of file VizPlugin.h.

◆ getLibVersion()

int VizPlugin::getLibVersion ( ) const
inlinevirtual

Implements lib_manager::LibInterface.

Definition at line 45 of file VizPlugin.h.

◆ preGraphicsUpdate()

void VizPlugin::preGraphicsUpdate ( void  )
virtual

Reimplemented from mars::interfaces::GraphicsUpdateInterface.

Definition at line 84 of file VizPlugin.cpp.

◆ receiveData()

void VizPlugin::receiveData ( const mars::data_broker::DataInfo info,
const mars::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 101 of file VizPlugin.cpp.

Member Data Documentation

◆ cfg

mars::cfg_manager::CFGManagerInterface* VizPlugin::cfg
private

Definition at line 62 of file VizPlugin.h.

◆ cText

char VizPlugin::cText[255]
private

Definition at line 67 of file VizPlugin.h.

◆ graphics

mars::interfaces::GraphicsManagerInterface* VizPlugin::graphics
private

Definition at line 60 of file VizPlugin.h.

◆ text

osg_text::TextInterface* VizPlugin::text
private

Definition at line 66 of file VizPlugin.h.

◆ textFactory

osg_text::TextFactoryInterface* VizPlugin::textFactory
private

Definition at line 65 of file VizPlugin.h.

◆ updateText

bool VizPlugin::updateText
private

Definition at line 68 of file VizPlugin.h.

◆ viz

mars::viz::Viz* VizPlugin::viz
private

Definition at line 61 of file VizPlugin.h.

◆ vizProp

mars::cfg_manager::cfgPropertyStruct VizPlugin::vizProp
private

Definition at line 63 of file VizPlugin.h.


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