sciGraphics::BackTrihedronDrawerJoGL Class Reference

#include </home/scilab/compilation_chain/sci_checkOut/scilab/modules/renderer/src/cpp/subwinDrawing/BackTrihedronDrawerJoGL.hxx>

Inheritance diagram for sciGraphics::BackTrihedronDrawerJoGL:

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

Collaboration graph
[legend]

Public Member Functions

 BackTrihedronDrawerJoGL (DrawableSubwin *subwin)
virtual ~BackTrihedronDrawerJoGL (void)
virtual void drawAxesBox (int concealedCornerIndex)

Protected Member Functions

BackTrihedronDrawerJavaMappergetBackTrihedronDrawerJavaMapper (void)

Detailed Description

Definition at line 24 of file BackTrihedronDrawerJoGL.hxx.


Constructor & Destructor Documentation

sciGraphics::BackTrihedronDrawerJoGL::BackTrihedronDrawerJoGL ( DrawableSubwin subwin  ) 

Definition at line 26 of file BackTrihedronDrawerJoGL.cpp.

References sciGraphics::DrawableObjectJoGL::setJavaMapper().

00027   : DrawAxesBoxStrategy(), DrawableObjectJoGL(subwin)
00028 {
00029   setJavaMapper(new BackTrihedronDrawerJavaMapper());
00030 }

Here is the call graph for this function:

sciGraphics::BackTrihedronDrawerJoGL::~BackTrihedronDrawerJoGL ( void   )  [virtual]

Definition at line 32 of file BackTrihedronDrawerJoGL.cpp.

00033 {
00034   
00035 }


Member Function Documentation

void sciGraphics::BackTrihedronDrawerJoGL::drawAxesBox ( int  concealedCornerIndex  )  [virtual]

Main funtion which actually draw the box.

Parameters:
concealedCornerIndex index of the concealed corner

Implements sciGraphics::DrawAxesBoxStrategy.

Definition at line 37 of file BackTrihedronDrawerJoGL.cpp.

References sciGraphics::BackTrihedronDrawerJavaMapper::drawBox(), sciGraphics::DrawableObjectJoGL::endDrawing(), getBackTrihedronDrawerJavaMapper(), sciGraphics::DrawableObject::getDrawedObject(), sciGraphics::DrawableObjectJoGL::initializeDrawing(), sciGraphics::DrawableObjectJoGL::m_pDrawer, pSUBWIN_FEATURE, sciGetLineWidth(), sciGetRealDataBounds(), and sciGraphics::BackTrihedronDrawerJavaMapper::setBoxParameters().

00038 {
00039   sciPointObj * pSubwin = m_pDrawer->getDrawedObject();
00040   initializeDrawing();
00041 
00042   getBackTrihedronDrawerJavaMapper()->setBoxParameters(pSUBWIN_FEATURE(pSubwin)->axes.hiddenAxisColor,
00043                                                        (float) sciGetLineWidth(pSubwin));
00044 
00045   // get displayed bounds
00046   double bounds[6];
00047   sciGetRealDataBounds(pSubwin, bounds);
00048   getBackTrihedronDrawerJavaMapper()->drawBox(bounds[0], bounds[1], bounds[2],
00049                                               bounds[3], bounds[4], bounds[5],
00050                                               concealedCornerIndex);
00051   endDrawing();
00052 }

Here is the call graph for this function:

BackTrihedronDrawerJavaMapper * sciGraphics::BackTrihedronDrawerJoGL::getBackTrihedronDrawerJavaMapper ( void   )  [protected]

Get the object performing mapping with Java class.

Definition at line 54 of file BackTrihedronDrawerJoGL.cpp.

References sciGraphics::DrawableObjectJoGL::getJavaMapper().

Referenced by drawAxesBox().

00055 {
00056   return dynamic_cast<BackTrihedronDrawerJavaMapper *>(getJavaMapper());
00057 }

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:16 2008 for Scilab [trunk] by  doxygen 1.5.5