g2o
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
g2o::BaseWorldObject Class Reference

#include <simulator.h>

Inheritance diagram for g2o::BaseWorldObject:
Inheritance graph
[legend]
Collaboration diagram for g2o::BaseWorldObject:
Collaboration graph
[legend]

Public Member Functions

 BaseWorldObject (World *world_=0)
 
virtual ~BaseWorldObject ()
 
void setWorld (World *world_)
 
Worldworld () const
 
OptimizableGraphgraph ()
 
OptimizableGraph::Vertexvertex ()
 
virtual void setVertex (OptimizableGraph::Vertex *vertex_)
 

Protected Attributes

OptimizableGraph_graph
 
OptimizableGraph::Vertex_vertex
 
World_world
 

Detailed Description

Definition at line 44 of file simulator.h.

Constructor & Destructor Documentation

◆ BaseWorldObject()

g2o::BaseWorldObject::BaseWorldObject ( World world_ = 0)
inline

Definition at line 46 of file simulator.h.

46 {
47 _world = world_;
48 _vertex = 0;
49 }
OptimizableGraph::Vertex * _vertex
Definition simulator.h:59

◆ ~BaseWorldObject()

g2o::BaseWorldObject::~BaseWorldObject ( )
virtual

Definition at line 35 of file simulator.cpp.

35{}

Member Function Documentation

◆ graph()

OptimizableGraph * g2o::BaseWorldObject::graph ( )

Definition at line 36 of file simulator.cpp.

36 {
37 if (_world) return _world->graph();
38 return 0;
39}
OptimizableGraph * graph()
Definition simulator.h:110

References _world, and g2o::World::graph().

◆ setVertex()

void g2o::BaseWorldObject::setVertex ( OptimizableGraph::Vertex vertex_)
virtual

Reimplemented in g2o::WorldObject< VertexType_ >.

Definition at line 41 of file simulator.cpp.

41 {
42 _vertex = vertex_;
43}

References _vertex.

◆ setWorld()

void g2o::BaseWorldObject::setWorld ( World world_)
inline

Definition at line 51 of file simulator.h.

51{ _world = world_; }

◆ vertex()

OptimizableGraph::Vertex * g2o::BaseWorldObject::vertex ( )
inline

Definition at line 54 of file simulator.h.

54{ return _vertex; }

Referenced by g2o::World::addWorldObject().

◆ world()

World * g2o::BaseWorldObject::world ( ) const
inline

Definition at line 52 of file simulator.h.

52{ return _world; }

Member Data Documentation

◆ _graph

OptimizableGraph* g2o::BaseWorldObject::_graph
protected

Definition at line 58 of file simulator.h.

◆ _vertex

OptimizableGraph::Vertex* g2o::BaseWorldObject::_vertex
protected

◆ _world

World* g2o::BaseWorldObject::_world
protected

Definition at line 60 of file simulator.h.

Referenced by graph().


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