Choreonoid  1.8
Protected Member Functions | Protected Attributes | List of all members
cnoid::BodyItemFileIoBase Class Referenceabstract

#include <BodyItemFileIO.h>

Inheritance diagram for cnoid::BodyItemFileIoBase:
cnoid::ItemFileIoBase< BodyItem > cnoid::ItemFileIO cnoid::Referenced cnoid::BodyItemBodyFileIO

Protected Member Functions

 BodyItemFileIoBase (const char *format, int api)
 
 ~BodyItemFileIoBase ()
 
virtual QWidget * getOptionPanelForSaving (BodyItem *item) override
 
virtual void createOptionPanelForSaving ()=0
 
void addExtModelFileModeCombo (QBoxLayout *box)
 
void addTransformIntegrationCheck (QBoxLayout *box)
 
- Protected Member Functions inherited from cnoid::ItemFileIO
 ItemFileIO (const std::string &format, int api)
 
 ItemFileIO (const ItemFileIO &org)
 
 ItemFileIO ()
 
void copyFrom (const ItemFileIO &org)
 
void setApi (int apiSet)
 
void setCaption (const std::string &caption)
 
void setFileTypeCaption (const std::string &caption)
 
void setExtension (const std::string &extension)
 
void setExtensions (const std::vector< std::string > &extensions)
 
void setInterfaceLevel (InterfaceLevel level)
 
std::ostream & os ()
 
void putWarning (const std::string &message)
 
void putError (const std::string &message)
 
void setActuallyLoadedItem (Item *item)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Protected Attributes

QVBoxLayout * optionVBox
 
QComboBox * extModelFileModeCombo
 
QCheckBox * transformIntegrationCheck
 

Additional Inherited Members

- Public Types inherited from cnoid::ItemFileIO
enum  API {
  Load = 1 << 0, Options = 1 << 1, OptionPanelForLoading = 1 << 2, Save = 1 << 3,
  OptionPanelForSaving = 1 << 4
}
 
enum  InterfaceLevel { Standard, Conversion, Internal }
 
enum  InvocationType { Direct, Dialog, DragAndDrop }
 
- Public Member Functions inherited from cnoid::ItemFileIoBase< BodyItem >
 ItemFileIoBase (const std::string &format, int api)
 
virtual ItemcreateItem () override
 
virtual bool load (Item *item, const std::string &filename) override final
 
virtual bool load (BodyItem *, const std::string &)
 
virtual bool save (Item *item, const std::string &filename) override final
 
virtual bool save (BodyItem *, const std::string &)
 
virtual QWidget * getOptionPanelForSaving (Item *item) override final
 
- Public Member Functions inherited from cnoid::ItemFileIO
 ~ItemFileIO ()
 
bool isFormat (const std::string &format) const
 
int api () const
 
bool hasApi (int api) const
 
const std::string & caption () const
 
const std::string & fileTypeCaption () const
 
void addFormatAlias (const std::string &format)
 
void addFormatIdAlias (const std::string &format)
 
void setExtensionFunction (std::function< std::string()> func)
 
std::vector< std::string > extensions () const
 
int interfaceLevel () const
 
void setCurrentInvocationType (int type)
 
ItemloadItem (const std::string &filename, Item *parentItem=nullptr, bool doAddition=true, Item *nextItem=nullptr, const Mapping *options=nullptr)
 
bool loadItem (Item *item, const std::string &filename, Item *parentItem=nullptr, bool doAddition=true, Item *nextItem=nullptr, const Mapping *options=nullptr)
 
bool saveItem (Item *item, const std::string &filename, const Mapping *options=nullptr)
 
virtual void resetOptions ()
 
virtual void storeOptions (Mapping *options)
 
virtual bool restoreOptions (const Mapping *options)
 
virtual QWidget * getOptionPanelForLoading ()
 
virtual void fetchOptionPanelForLoading ()
 
virtual void fetchOptionPanelForSaving ()
 
ItemparentItem ()
 
int currentInvocationType () const
 
bool isRegisteredForSingletonItem () const
 
ItemfindSingletonItemInstance () const
 
void setItemClassInfo (Referenced *info)
 
const ReferenceditemClassInfo () const
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 
- Static Public Member Functions inherited from cnoid::ItemFileIO
static std::vector< std::string > separateExtensions (const std::string &multiExtString)
 

Constructor & Destructor Documentation

◆ BodyItemFileIoBase()

BodyItemFileIoBase::BodyItemFileIoBase ( const char *  format,
int  api 
)
protected

◆ ~BodyItemFileIoBase()

BodyItemFileIoBase::~BodyItemFileIoBase ( )
protected

Member Function Documentation

◆ addExtModelFileModeCombo()

void BodyItemFileIoBase::addExtModelFileModeCombo ( QBoxLayout *  box)
protected

◆ addTransformIntegrationCheck()

void BodyItemFileIoBase::addTransformIntegrationCheck ( QBoxLayout *  box)
protected

◆ createOptionPanelForSaving()

virtual void cnoid::BodyItemFileIoBase::createOptionPanelForSaving ( )
protectedpure virtual

Implemented in cnoid::BodyItemBodyFileIO.

◆ getOptionPanelForSaving()

QWidget * BodyItemFileIoBase::getOptionPanelForSaving ( BodyItem item)
overrideprotectedvirtual

Reimplemented from cnoid::ItemFileIoBase< BodyItem >.

Member Data Documentation

◆ extModelFileModeCombo

QComboBox* cnoid::BodyItemFileIoBase::extModelFileModeCombo
protected

◆ optionVBox

QVBoxLayout* cnoid::BodyItemFileIoBase::optionVBox
protected

◆ transformIntegrationCheck

QCheckBox* cnoid::BodyItemFileIoBase::transformIntegrationCheck
protected

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