sciGraphics::CameraFactory Class Reference

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

Inheritance diagram for sciGraphics::CameraFactory:

Inheritance graph
[legend]
Collaboration diagram for sciGraphics::CameraFactory:

Collaboration graph
[legend]

Public Member Functions

Cameracreate (void)
virtual void update (void)

Detailed Description

Definition at line 24 of file CameraFactory.h.


Member Function Documentation

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

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 }

Here is the call graph for this function:

Here is the caller graph for this function:


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

Generated on Tue Sep 9 18:35:29 2008 for Scilab [trunk] by  doxygen 1.5.5