Gui::Thumbnail Class Reference

#include <Thumbnail.h>

Inheritance diagram for Gui::Thumbnail:
Base::Persistence Base::BaseClass

List of all members.

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.

Detailed Description

Definition at line 33 of file Thumbnail.h.


Constructor & Destructor Documentation

Thumbnail::Thumbnail ( int  s = 128  ) 

Definition at line 42 of file Thumbnail.cpp.

Thumbnail::~Thumbnail (  ) 

Definition at line 46 of file Thumbnail.cpp.


Member Function Documentation

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]
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().


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

Generated on Wed Nov 23 19:02:04 2011 for FreeCAD by  doxygen 1.6.1