#include <Thumbnail.h>
Public Member Functions | |
void | setFileName (const char *) |
void | setSize (int) |
void | setViewer (View3DInventorViewer *) |
Thumbnail (int s=128) | |
~Thumbnail () | |
I/O of the document | |
unsigned int | getMemSize (void) const |
This method is used to get the size of objects It is not meant to have the exact size, it is more or less an estimation which runs fast! Is it two bytes or a GB? | |
void | Restore (Base::XMLReader &reader) |
This method is used to restore properties from an XML document. | |
void | RestoreDocFile (Base::Reader &reader) |
This method is used to restore large amounts of data from a binary file. | |
void | Save (Base::Writer &writer) const |
This method is used to save properties or very small amounts of data to an XML document. | |
void | SaveDocFile (Base::Writer &writer) const |
This method is used to save large amounts of data to a binary file. |
Definition at line 33 of file Thumbnail.h.
Thumbnail::Thumbnail | ( | int | s = 128 |
) |
Definition at line 42 of file Thumbnail.cpp.
Thumbnail::~Thumbnail | ( | ) |
Definition at line 46 of file Thumbnail.cpp.
unsigned int Thumbnail::getMemSize | ( | void | ) | const [virtual] |
This method is used to get the size of objects It is not meant to have the exact size, it is more or less an estimation which runs fast! Is it two bytes or a GB?
Implements Base::Persistence.
Definition at line 65 of file Thumbnail.cpp.
void Thumbnail::Restore | ( | Base::XMLReader & | reader | ) | [virtual] |
This method is used to restore properties from an XML document.
Implements Base::Persistence.
Definition at line 77 of file Thumbnail.cpp.
void Thumbnail::RestoreDocFile | ( | Base::Reader & | reader | ) | [virtual] |
This method is used to restore large amounts of data from a binary file.
Reimplemented from Base::Persistence.
Definition at line 112 of file Thumbnail.cpp.
void Thumbnail::Save | ( | Base::Writer & | writer | ) | const [virtual] |
This method is used to save properties or very small amounts of data to an XML document.
Implements Base::Persistence.
Definition at line 70 of file Thumbnail.cpp.
References Base::Writer::addFile(), and Base::Writer::isForceXML().
Referenced by Gui::Document::Save().
void Thumbnail::SaveDocFile | ( | Base::Writer & | writer | ) | const [virtual] |
This method is used to save large amounts of data to a binary file.
Reimplemented from Base::Persistence.
Definition at line 82 of file Thumbnail.cpp.
References Gui::BitmapFactory(), Gui::BitmapFactoryInst::BottomRight, buffer, App::Application::Config(), Gui::View3DInventorViewer::Current, App::GetApplication(), Gui::BitmapFactoryInst::merge(), Gui::BitmapFactoryInst::pixmap(), px, Gui::View3DInventorViewer::savePicture(), and Base::Writer::Stream().
void Thumbnail::setFileName | ( | const char * | fn | ) |
Definition at line 60 of file Thumbnail.cpp.
Referenced by Gui::Document::Save().
void Thumbnail::setSize | ( | int | s | ) |
Definition at line 55 of file Thumbnail.cpp.
Referenced by Gui::Document::Save().
void Thumbnail::setViewer | ( | View3DInventorViewer * | v | ) |
Definition at line 50 of file Thumbnail.cpp.
Referenced by Gui::Document::Save().