#include </home/scilab/compilation_chain/sci_checkOut/scilab/modules/renderer/src/cpp/subwinDrawing/CameraFactory.h>


Public Member Functions | |
| Camera * | create (void) |
| virtual void | update (void) |
Definition at line 24 of file CameraFactory.h.
| Camera * sciGraphics::CameraFactory::create | ( | void | ) | [virtual] |
Create a new drawer from the drawed object.
Reimplemented from sciGraphics::DrawableObjectFactory.
Definition at line 22 of file CameraFactory.cpp.
References sciGraphics::CameraBridgeFactory::create(), sciGraphics::DrawableObjectFactory::m_pDrawed, res, sciGraphics::CameraBridgeFactory::setCorrespondingCamera(), and sciGraphics::DrawableObject::setDrawableImp().
Referenced by sciGraphics::DrawableSubwinFactory::create().
00023 { 00024 CameraBridgeFactory bf ; 00025 Camera * res = new Camera(m_pDrawed) ; 00026 00027 bf.setCorrespondingCamera( res ) ; 00028 00029 res->setDrawableImp( bf.create() ) ; 00030 00031 return res; 00032 00033 }


| void sciGraphics::CameraFactory::update | ( | void | ) | [virtual] |
Update the drawer of the drawed object. To be used when an object was deeply modified and to avoid to create it again completely.
Reimplemented from sciGraphics::DrawableObjectFactory.
Definition at line 35 of file CameraFactory.cpp.
References sciGraphics::DrawableSubwin::getCamera(), sciGraphics::getSubwinDrawer(), sciGraphics::DrawableObjectFactory::m_pDrawed, sciGraphics::CameraBridgeFactory::setCorrespondingCamera(), and sciGraphics::CameraBridgeFactory::update().
Referenced by sciGraphics::DrawableSubwinFactory::update().
00036 { 00037 // replace the camera bridge 00038 00039 // camera to update 00040 Camera * cam = getSubwinDrawer(m_pDrawed)->getCamera(); 00041 CameraBridgeFactory bf ; 00042 bf.setCorrespondingCamera( cam ) ; 00043 bf.update(); 00044 }


1.5.5