#include <ViewProviderImagePlane.h>
Public Member Functions | |
void | attach (App::DocumentObject *pcObject) |
Attaches the document object to this view provider. | |
std::vector< std::string > | getDisplayModes () const |
Return a list of all possible modes. | |
virtual Base::Type | getTypeId (void) const |
void | setDisplayMode (const char *ModeName) |
set the display mode | |
void | updateData (const App::Property *) |
Gets called if some of the property hade bin changed. | |
ViewProviderImagePlane () | |
constructor. | |
~ViewProviderImagePlane () | |
destructor. | |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Protected Member Functions | |
virtual const App::PropertyData & | getPropertyData (void) const |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (void) |
Protected Attributes | |
SoCoordinate3 * | pcCoords |
SoTexture2 * | texture |
Definition at line 38 of file ViewProviderImagePlane.h.
ViewProviderImagePlane::ViewProviderImagePlane | ( | ) |
ViewProviderImagePlane::~ViewProviderImagePlane | ( | ) |
destructor.
Definition at line 68 of file ViewProviderImagePlane.cpp.
void ViewProviderImagePlane::attach | ( | App::DocumentObject * | pcObject | ) | [virtual] |
Attaches the document object to this view provider.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 74 of file ViewProviderImagePlane.cpp.
References Gui::ViewProvider::addDisplayMaskMode(), pcCoords, and texture.
void * ImageGui::ViewProviderImagePlane::create | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 57 of file ViewProviderImagePlane.cpp.
Base::Type ImageGui::ViewProviderImagePlane::getClassTypeId | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 57 of file ViewProviderImagePlane.cpp.
std::vector< std::string > ViewProviderImagePlane::getDisplayModes | ( | void | ) | const [virtual] |
Return a list of all possible modes.
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 114 of file ViewProviderImagePlane.cpp.
const App::PropertyData & ImageGui::ViewProviderImagePlane::getPropertyData | ( | void | ) | const [protected, virtual] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 57 of file ViewProviderImagePlane.cpp.
const App::PropertyData * ImageGui::ViewProviderImagePlane::getPropertyDataPtr | ( | void | ) | [static, protected] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 57 of file ViewProviderImagePlane.cpp.
Base::Type ImageGui::ViewProviderImagePlane::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 57 of file ViewProviderImagePlane.cpp.
void ImageGui::ViewProviderImagePlane::init | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 57 of file ViewProviderImagePlane.cpp.
Referenced by initImageGui().
void ViewProviderImagePlane::setDisplayMode | ( | const char * | ModeName | ) | [virtual] |
set the display mode
If you add new viewing modes in getDisplayModes() then you need to reimplement also seDisplaytMode() to handle these new modes by setting the appropriate display mode.
Reimplemented from Gui::ViewProvider.
Definition at line 107 of file ViewProviderImagePlane.cpp.
References Gui::ViewProvider::setDisplayMaskMode().
void ViewProviderImagePlane::updateData | ( | const App::Property * | ) | [virtual] |
Gets called if some of the property hade bin changed.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 133 of file ViewProviderImagePlane.cpp.
References Gui::BitmapFactory(), Gui::BitmapFactoryInst::convert(), App::PropertyFileIncluded::getValue(), App::PropertyFloat::getValue(), Image::ImagePlane::ImageFile, pcCoords, Gui::ViewProviderDocumentObject::pcObject, texture, Image::ImagePlane::XSize, and Image::ImagePlane::YSize.
SoCoordinate3* ImageGui::ViewProviderImagePlane::pcCoords [protected] |
Definition at line 58 of file ViewProviderImagePlane.h.
Referenced by attach(), updateData(), and ~ViewProviderImagePlane().
SoTexture2* ImageGui::ViewProviderImagePlane::texture [protected] |
Definition at line 59 of file ViewProviderImagePlane.h.
Referenced by attach(), updateData(), and ~ViewProviderImagePlane().