Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
rviz::ViewManager Class Reference

#include <view_manager.h>

List of all members.

Public Slots

void copyCurrentToList ()
 Make a copy of the current ViewController and add it to the end of the list of saved views.
void setCurrentViewControllerType (const QString &new_class_id)
 Create a new view controller of the given type and set it up to mimic and replace the previous current view.

Signals

void configChanged ()
void currentChanged ()
 Emitted just after the current view controller changes.

Public Member Functions

void add (ViewController *view, int index=-1)
ViewControllercopy (ViewController *source)
 Return a copy of source, made by saving source to a Config and instantiating and loading a new one from that.
ViewControllercreate (const QString &type)
ViewControllergetCurrent () const
 Return the current ViewController in use for the main RenderWindow.
PluginlibFactory
< ViewController > * 
getFactory () const
int getNumViews () const
PropertyTreeModelgetPropertyModel ()
RenderPanelgetRenderPanel () const
 Return the 3D view widget managed by this ViewManager.
ViewControllergetViewAt (int index) const
void initialize ()
void load (const Config &config)
void save (Config config) const
void setCurrentFrom (ViewController *view_to_copy)
 Make a copy of view_to_copy and install that as the new current ViewController.
void setRenderPanel (RenderPanel *render_panel)
 Set the 3D view widget whose view will be controlled by ViewController instances from by this ViewManager.
ViewControllertake (ViewController *view)
 Remove the given ViewController from the list and return it. If it is not in the list, NULL is returned and nothing changes.
ViewControllertakeAt (int index)
 Remove the ViewController at the given index from the list and return it. If the index is not valid, NULL is returned and nothing changes.
void update (float wall_dt, float ros_dt)
 ViewManager (DisplayContext *context)
 ~ViewManager ()

Private Slots

void onCurrentDestroyed (QObject *obj)

Private Member Functions

void setCurrent (ViewController *new_current, bool mimic_view)
 Set new_current as current.

Private Attributes

DisplayContextcontext_
ViewControllercurrent_
PluginlibFactory
< ViewController > * 
factory_
PropertyTreeModelproperty_model_
RenderPanelrender_panel_
ViewControllerContainerroot_property_

Detailed Description

Definition at line 52 of file view_manager.h.


Constructor & Destructor Documentation

Definition at line 46 of file view_manager.cpp.

Definition at line 58 of file view_manager.cpp.


Member Function Documentation

void rviz::ViewManager::add ( ViewController view,
int  index = -1 
)

Definition at line 189 of file view_manager.cpp.

Return a copy of source, made by saving source to a Config and instantiating and loading a new one from that.

Definition at line 261 of file view_manager.cpp.

Make a copy of the current ViewController and add it to the end of the list of saved views.

Definition at line 156 of file view_manager.cpp.

ViewController * rviz::ViewManager::create ( const QString &  type)

Definition at line 77 of file view_manager.cpp.

Emitted just after the current view controller changes.

Return the current ViewController in use for the main RenderWindow.

Definition at line 90 of file view_manager.cpp.

Definition at line 97 of file view_manager.h.

Definition at line 176 of file view_manager.cpp.

Definition at line 85 of file view_manager.h.

Return the 3D view widget managed by this ViewManager.

Definition at line 104 of file view_manager.h.

Definition at line 167 of file view_manager.cpp.

Definition at line 64 of file view_manager.cpp.

void rviz::ViewManager::load ( const Config config)

Definition at line 223 of file view_manager.cpp.

void rviz::ViewManager::onCurrentDestroyed ( QObject *  obj) [private, slot]

Definition at line 112 of file view_manager.cpp.

void rviz::ViewManager::save ( Config  config) const

Definition at line 250 of file view_manager.cpp.

void rviz::ViewManager::setCurrent ( ViewController new_current,
bool  mimic_view 
) [private]

Set new_current as current.

Parameters:
mimic_viewIf true, call new_current->mimic( previous ), if false call new_current->transitionFrom( previous ).

This calls mimic() or transitionFrom() on the new controller, deletes the previous controller (if one existed), and tells the RenderPanel about the new controller.

Definition at line 120 of file view_manager.cpp.

Make a copy of view_to_copy and install that as the new current ViewController.

Definition at line 95 of file view_manager.cpp.

void rviz::ViewManager::setCurrentViewControllerType ( const QString &  new_class_id) [slot]

Create a new view controller of the given type and set it up to mimic and replace the previous current view.

Definition at line 151 of file view_manager.cpp.

Set the 3D view widget whose view will be controlled by ViewController instances from by this ViewManager.

Definition at line 272 of file view_manager.cpp.

Remove the given ViewController from the list and return it. If it is not in the list, NULL is returned and nothing changes.

Definition at line 202 of file view_manager.cpp.

Remove the ViewController at the given index from the list and return it. If the index is not valid, NULL is returned and nothing changes.

Definition at line 214 of file view_manager.cpp.

void rviz::ViewManager::update ( float  wall_dt,
float  ros_dt 
)

Definition at line 69 of file view_manager.cpp.


Member Data Documentation

Definition at line 133 of file view_manager.h.

Definition at line 137 of file view_manager.h.

Definition at line 136 of file view_manager.h.

Definition at line 135 of file view_manager.h.

Definition at line 138 of file view_manager.h.

Definition at line 134 of file view_manager.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Tue Oct 3 2017 03:19:32