Choreonoid  1.8
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
cnoid::ViewManager Class Reference

#include <ViewManager.h>

Classes

class  Factory
 
class  FactoryBase
 
class  ViewStateInfo
 

Public Types

enum  InstantiationFlags {
  Single = 0, Multiple = 1, Default = 2, SINGLE_OPTIONAL = Single,
  SINGLE_DEFAULT = Single | Default, MULTI_OPTIONAL = Multiple, MULTI_DEFAULT = Multiple | Default
}
 

Public Member Functions

 ViewManager (ExtensionManager *ext)
 
 ~ViewManager ()
 
template<class ViewType >
ViewManagerregisterClass (const std::string &className, const std::string &defaultInstanceName, int instantiationFlags=Single)
 
ViewManagerregisterClassAlias (const std::string &alias, const std::string &orgClassName)
 
void deleteView (View *view)
 

Static Public Member Functions

static void initializeClass (ExtensionManager *ext)
 
static ViewClassviewClass (const std::type_info &view_type_info)
 
static ViewgetOrCreateView (const std::string &moduleName, const std::string &className)
 
static ViewgetOrCreateView (const std::string &moduleName, const std::string &className, const std::string &instanceName)
 
static std::vector< View * > allViews ()
 
static std::vector< View * > activeViews ()
 
template<class ViewType >
static ViewType * getOrCreateView (bool doMountCreatedView=false)
 
template<class ViewType >
static ViewType * getOrCreateView (const std::string &instanceName, bool doMountCreatedView=false)
 
template<class ViewType >
static ViewType * findView ()
 
template<class ViewType >
static ViewType * findView (const std::string &instanceName)
 
static bool isPrimalInstance (View *view)
 
static bool storeViewStates (ArchivePtr archive, const std::string &key)
 
static bool restoreViews (ArchivePtr archive, const std::string &key, ViewStateInfo &out_viewStateInfo, const std::set< std::string > &optionalPlugins)
 
static bool restoreViewStates (ViewStateInfo &info)
 
static SignalProxy< void(View *view)> sigViewCreated ()
 
static SignalProxy< void(View *view)> sigViewActivated ()
 
static SignalProxy< void(View *view)> sigViewDeactivated ()
 
static SignalProxy< void(View *view)> sigViewRemoved ()
 

Member Enumeration Documentation

◆ InstantiationFlags

Enumerator
Single 
Multiple 
Default 
SINGLE_OPTIONAL 
SINGLE_DEFAULT 
MULTI_OPTIONAL 
MULTI_DEFAULT 

Constructor & Destructor Documentation

◆ ViewManager()

ViewManager::ViewManager ( ExtensionManager ext)

◆ ~ViewManager()

ViewManager::~ViewManager ( )

Member Function Documentation

◆ activeViews()

std::vector< View * > ViewManager::activeViews ( )
static

◆ allViews()

std::vector< View * > ViewManager::allViews ( )
static

◆ deleteView()

void ViewManager::deleteView ( View view)

◆ findView() [1/2]

template<class ViewType >
static ViewType* cnoid::ViewManager::findView ( )
inlinestatic

◆ findView() [2/2]

template<class ViewType >
static ViewType* cnoid::ViewManager::findView ( const std::string &  instanceName)
inlinestatic

◆ getOrCreateView() [1/4]

template<class ViewType >
static ViewType* cnoid::ViewManager::getOrCreateView ( bool  doMountCreatedView = false)
inlinestatic

◆ getOrCreateView() [2/4]

template<class ViewType >
static ViewType* cnoid::ViewManager::getOrCreateView ( const std::string &  instanceName,
bool  doMountCreatedView = false 
)
inlinestatic

◆ getOrCreateView() [3/4]

View * ViewManager::getOrCreateView ( const std::string &  moduleName,
const std::string &  className 
)
static

◆ getOrCreateView() [4/4]

View * ViewManager::getOrCreateView ( const std::string &  moduleName,
const std::string &  className,
const std::string &  instanceName 
)
static

◆ initializeClass()

void ViewManager::initializeClass ( ExtensionManager ext)
static

◆ isPrimalInstance()

bool ViewManager::isPrimalInstance ( View view)
static

◆ registerClass()

template<class ViewType >
ViewManager& cnoid::ViewManager::registerClass ( const std::string &  className,
const std::string &  defaultInstanceName,
int  instantiationFlags = Single 
)
inline

◆ registerClassAlias()

ViewManager & ViewManager::registerClassAlias ( const std::string &  alias,
const std::string &  orgClassName 
)

◆ restoreViews()

bool ViewManager::restoreViews ( ArchivePtr  archive,
const std::string &  key,
ViewManager::ViewStateInfo out_viewStateInfo,
const std::set< std::string > &  optionalPlugins 
)
static

◆ restoreViewStates()

bool ViewManager::restoreViewStates ( ViewStateInfo info)
static

◆ sigViewActivated()

SignalProxy< void(View *view)> ViewManager::sigViewActivated ( )
static

◆ sigViewCreated()

SignalProxy< void(View *view)> ViewManager::sigViewCreated ( )
static

◆ sigViewDeactivated()

SignalProxy< void(View *view)> ViewManager::sigViewDeactivated ( )
static

◆ sigViewRemoved()

SignalProxy< void(View *view)> ViewManager::sigViewRemoved ( )
static

◆ storeViewStates()

bool ViewManager::storeViewStates ( ArchivePtr  archive,
const std::string &  key 
)
static

◆ viewClass()

ViewClass * ViewManager::viewClass ( const std::type_info &  view_type_info)
static

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