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


Public Member Functions | |
| DrawableObjectJoGL (DrawableObject *drawer) | |
| virtual | ~DrawableObjectJoGL (void) |
| virtual void | initializeDrawing (void) |
| virtual void | endDrawing (void) |
| virtual void | initializeShowing (void) |
| virtual void | endShowing (void) |
| virtual void | translate (const double translation[3]) |
| virtual void | endTranslate (void) |
| virtual void | show (void) |
| DrawableObject * | getDrawer (void) |
| void | setJavaMapper (DrawableObjectJavaMapper *javaMapper) |
Protected Member Functions | |
| DrawableObjectJavaMapper * | getJavaMapper (void) |
| virtual void | destroy (void) |
Protected Attributes | |
| DrawableObject * | m_pDrawer |
| DrawableObjectJavaMapper * | m_pJavaMapper |
Definition at line 23 of file DrawableObjectJoGL.h.
| sciGraphics::DrawableObjectJoGL::DrawableObjectJoGL | ( | DrawableObject * | drawer | ) |
Constructor
| className | name of the Java class which implements the routines |
Definition at line 24 of file DrawableObjectJoGL.cpp.
References m_pDrawer, m_pJavaMapper, and NULL.
00025 { 00026 m_pDrawer = drawer ; 00027 m_pJavaMapper = NULL; 00028 }
| sciGraphics::DrawableObjectJoGL::~DrawableObjectJoGL | ( | void | ) | [virtual] |
Delete the Java instance used to implement the class
Definition at line 30 of file DrawableObjectJoGL.cpp.
References destroy().
00031 { 00032 destroy() ; 00033 }

| void sciGraphics::DrawableObjectJoGL::initializeDrawing | ( | void | ) | [virtual] |
Initialize the context for drawing (incl starting recording display list)
Implements sciGraphics::DrawableObjectBridge.
Reimplemented in sciGraphics::AxesTicksDrawerJoGL, sciGraphics::DrawableSubwinJoGL, sciGraphics::GridDrawerJoGL, and sciGraphics::TicksDrawerJoGL.
Definition at line 35 of file DrawableObjectJoGL.cpp.
References getDrawer(), getJavaMapper(), sciGraphics::DrawableObjectJavaMapper::initializeDrawing(), sciGetNum(), sciGetParentFigure(), and sciGraphics::DrawableObjectJavaMapper::setFigureIndex().
Referenced by sciGraphics::ArcLineDrawerJoGL::drawArc(), sciGraphics::ArcFillDrawerJoGL::drawArc(), sciGraphics::SubwinBackgroundDrawerJoGL::drawAxesBox(), sciGraphics::HalfBoxDrawerJoGL::drawAxesBox(), sciGraphics::FullBoxDrawerJoGL::drawAxesBox(), sciGraphics::BackTrihedronDrawerJoGL::drawAxesBox(), sciGraphics::FecLineDrawerJoGL::drawFec(), sciGraphics::FecFacetDrawerJoGL::drawFec(), sciGraphics::PolylineMarkDrawerJoGL::drawPolyline(), sciGraphics::PolylineLineDrawerJoGL::drawPolyline(), sciGraphics::PolylineInterpColorDrawerJoGL::drawPolyline(), sciGraphics::PolylineFillDrawerJoGL::drawPolyline(), sciGraphics::PolylineBarDrawerJoGL::drawPolyline(), sciGraphics::PolylineArrowDrawerJoGL::drawPolyline(), sciGraphics::RectangleMarkDrawerJoGL::drawRectangle(), sciGraphics::RectangleLineDrawerJoGL::drawRectangle(), sciGraphics::RectangleFillDrawerJoGL::drawRectangle(), sciGraphics::SegsMarkDrawerJoGL::drawSegs(), sciGraphics::SegsLineDrawerJoGL::drawSegs(), sciGraphics::SegsArrowDrawerJoGL::drawSegs(), sciGraphics::SurfaceMarkDrawerJoGL::drawSurface(), sciGraphics::SurfaceLineDrawerJoGL::drawSurface(), sciGraphics::SurfaceFacetDrawerJoGL::drawSurface(), sciGraphics::TextContentDrawerJoGL::drawTextContent(), sciGraphics::TicksDrawerJoGL::initializeDrawing(), sciGraphics::GridDrawerJoGL::initializeDrawing(), sciGraphics::DrawableSubwinJoGL::initializeDrawing(), sciGraphics::GridDrawerJoGL::initializeShowing(), sciGraphics::PolylineMarkDrawerJoGL::redrawPolyline(), sciGraphics::PolylineArrowDrawerJoGL::redrawPolyline(), sciGraphics::RectangleMarkDrawerJoGL::redrawRectangle(), sciGraphics::SegsMarkDrawerJoGL::redrawSegs(), sciGraphics::SegsArrowDrawerJoGL::redrawSegs(), sciGraphics::SurfaceMarkDrawerJoGL::redrawSurface(), and sciGraphics::TextContentDrawerJoGL::redrawTextContent().
00036 { 00037 getJavaMapper()->setFigureIndex(sciGetNum(sciGetParentFigure(getDrawer()->getDrawedObject()))); 00038 getJavaMapper()->initializeDrawing(sciGetNum(sciGetParentFigure(getDrawer()->getDrawedObject())) ); 00039 }


| void sciGraphics::DrawableObjectJoGL::endDrawing | ( | void | ) | [virtual] |
Close drawing session (incl stop recording display list)
Implements sciGraphics::DrawableObjectBridge.
Reimplemented in sciGraphics::GridDrawerJoGL.
Definition at line 41 of file DrawableObjectJoGL.cpp.
References sciGraphics::DrawableObjectJavaMapper::endDrawing(), and getJavaMapper().
Referenced by sciGraphics::ArcLineDrawerJoGL::drawArc(), sciGraphics::ArcFillDrawerJoGL::drawArc(), sciGraphics::SubwinBackgroundDrawerJoGL::drawAxesBox(), sciGraphics::HalfBoxDrawerJoGL::drawAxesBox(), sciGraphics::FullBoxDrawerJoGL::drawAxesBox(), sciGraphics::BackTrihedronDrawerJoGL::drawAxesBox(), sciGraphics::FecLineDrawerJoGL::drawFec(), sciGraphics::FecFacetDrawerJoGL::drawFec(), sciGraphics::PolylineMarkDrawerJoGL::drawPolyline(), sciGraphics::PolylineLineDrawerJoGL::drawPolyline(), sciGraphics::PolylineInterpColorDrawerJoGL::drawPolyline(), sciGraphics::PolylineFillDrawerJoGL::drawPolyline(), sciGraphics::PolylineBarDrawerJoGL::drawPolyline(), sciGraphics::PolylineArrowDrawerJoGL::drawPolyline(), sciGraphics::RectangleMarkDrawerJoGL::drawRectangle(), sciGraphics::RectangleLineDrawerJoGL::drawRectangle(), sciGraphics::RectangleFillDrawerJoGL::drawRectangle(), sciGraphics::SegsMarkDrawerJoGL::drawSegs(), sciGraphics::SegsLineDrawerJoGL::drawSegs(), sciGraphics::SegsArrowDrawerJoGL::drawSegs(), sciGraphics::SurfaceMarkDrawerJoGL::drawSurface(), sciGraphics::SurfaceLineDrawerJoGL::drawSurface(), sciGraphics::SurfaceFacetDrawerJoGL::drawSurface(), sciGraphics::TextContentDrawerJoGL::drawTextContent(), sciGraphics::GridDrawerJoGL::endDrawing(), sciGraphics::GridDrawerJoGL::endShowing(), sciGraphics::PolylineMarkDrawerJoGL::redrawPolyline(), sciGraphics::PolylineArrowDrawerJoGL::redrawPolyline(), sciGraphics::RectangleMarkDrawerJoGL::redrawRectangle(), sciGraphics::SegsMarkDrawerJoGL::redrawSegs(), sciGraphics::SegsArrowDrawerJoGL::redrawSegs(), sciGraphics::SurfaceMarkDrawerJoGL::redrawSurface(), and sciGraphics::TextContentDrawerJoGL::redrawTextContent().
00042 { 00043 getJavaMapper()->endDrawing(); 00044 }


| void sciGraphics::DrawableObjectJoGL::initializeShowing | ( | void | ) | [virtual] |
Initialize the context for showing (ie displaying recorded object)
Implements sciGraphics::DrawableObjectBridge.
Reimplemented in sciGraphics::GridDrawerJoGL.
Definition at line 46 of file DrawableObjectJoGL.cpp.
| void sciGraphics::DrawableObjectJoGL::endShowing | ( | void | ) | [virtual] |
Close showing session
Implements sciGraphics::DrawableObjectBridge.
Reimplemented in sciGraphics::GridDrawerJoGL.
Definition at line 51 of file DrawableObjectJoGL.cpp.
| void sciGraphics::DrawableObjectJoGL::translate | ( | const double | translation[3] | ) | [virtual] |
Translate the object with the record move in camera coordinates
Implements sciGraphics::DrawableObjectBridge.
Definition at line 56 of file DrawableObjectJoGL.cpp.
References getJavaMapper(), and sciGraphics::DrawableObjectJavaMapper::translate().
00057 { 00058 getJavaMapper()->translate(translation); 00059 }

| void sciGraphics::DrawableObjectJoGL::endTranslate | ( | void | ) | [virtual] |
Translate the object with the record move in camera coordinates
Implements sciGraphics::DrawableObjectBridge.
Definition at line 61 of file DrawableObjectJoGL.cpp.
References sciGraphics::DrawableObjectJavaMapper::endTranslate(), and getJavaMapper().
00062 { 00063 getJavaMapper()->endTranslate(); 00064 }

| void sciGraphics::DrawableObjectJoGL::show | ( | void | ) | [virtual] |
Call the display list of an object
Implements sciGraphics::DrawableObjectBridge.
Reimplemented in sciGraphics::RectangleFillDrawerJoGL, sciGraphics::RectangleLineDrawerJoGL, sciGraphics::RectangleMarkDrawerJoGL, and sciGraphics::CameraJoGL.
Definition at line 66 of file DrawableObjectJoGL.cpp.
References getDrawer(), getJavaMapper(), sciGetNum(), sciGetParentFigure(), and sciGraphics::DrawableObjectJavaMapper::show().
Referenced by sciGraphics::CameraJoGL::show(), sciGraphics::RectangleMarkDrawerJoGL::show(), sciGraphics::RectangleLineDrawerJoGL::show(), sciGraphics::RectangleFillDrawerJoGL::show(), sciGraphics::ArcLineDrawerJoGL::showArc(), sciGraphics::ArcFillDrawerJoGL::showArc(), sciGraphics::FecLineDrawerJoGL::showFec(), sciGraphics::FecFacetDrawerJoGL::showFec(), sciGraphics::PolylineMarkDrawerJoGL::showPolyline(), sciGraphics::PolylineLineDrawerJoGL::showPolyline(), sciGraphics::PolylineInterpColorDrawerJoGL::showPolyline(), sciGraphics::PolylineFillDrawerJoGL::showPolyline(), sciGraphics::PolylineBarDrawerJoGL::showPolyline(), sciGraphics::PolylineArrowDrawerJoGL::showPolyline(), sciGraphics::SegsMarkDrawerJoGL::showSegs(), sciGraphics::SegsLineDrawerJoGL::showSegs(), sciGraphics::SegsArrowDrawerJoGL::showSegs(), sciGraphics::SurfaceMarkDrawerJoGL::showSurface(), sciGraphics::SurfaceLineDrawerJoGL::showSurface(), sciGraphics::SurfaceFacetDrawerJoGL::showSurface(), and sciGraphics::TextContentDrawerJoGL::showTextContent().
00067 { 00068 getJavaMapper()->show(sciGetNum(sciGetParentFigure(getDrawer()->getDrawedObject()))); 00069 }


| DrawableObject* sciGraphics::DrawableObjectJoGL::getDrawer | ( | void | ) | [inline, virtual] |
To retrieve the data from the drawer, specially the sciPointObj/
Implements sciGraphics::DrawableObjectBridge.
Definition at line 76 of file DrawableObjectJoGL.h.
References m_pDrawer.
Referenced by sciGraphics::FecLineDrawerJoGL::drawFec(), sciGraphics::FecFacetDrawerJoGL::drawFec(), sciGraphics::DrawableArcJoGL::getArcDrawer(), sciGraphics::DrawableAxesJoGL::getAxesDrawer(), sciGraphics::DrawableClippedObjectJoGL::getClippedObjectDrawer(), sciGraphics::FecLineDrawerJoGL::getFecDrawer(), sciGraphics::FecFacetDrawerJoGL::getFecDrawer(), sciGraphics::DrawableFigureJoGL::getFigureDrawer(), sciGraphics::ZGridDrawerJoGL::getGridStyle(), sciGraphics::YGridDrawerJoGL::getGridStyle(), sciGraphics::XGridDrawerJoGL::getGridStyle(), sciGraphics::DrawableRectangleJoGL::getRectangleDrawer(), sciGraphics::DrawableSubwinJoGL::getSubwinDrawer(), sciGraphics::TicksDrawerJoGL::initializeDrawing(), sciGraphics::GridDrawerJoGL::initializeDrawing(), initializeDrawing(), sciGraphics::AxesTicksDrawerJoGL::initializeDrawing(), sciGraphics::CameraBridgeFactory::setStrategies(), and show().
00076 { return m_pDrawer ; }

| void sciGraphics::DrawableObjectJoGL::setJavaMapper | ( | DrawableObjectJavaMapper * | javaMapper | ) |
Set the Java mapper to use
Definition at line 71 of file DrawableObjectJoGL.cpp.
References destroy(), m_pJavaMapper, and NULL.
Referenced by sciGraphics::BackTrihedronDrawerJoGL::BackTrihedronDrawerJoGL(), sciGraphics::CenteredTextDrawerJoGL::CenteredTextDrawerJoGL(), sciGraphics::DrawableTextBridgeFactory::create(), sciGraphics::DrawableSubwinBridgeFactory::create(), sciGraphics::DrawableSegsBridgeFactory::create(), sciGraphics::DrawableRectangleBridgeFactory::create(), sciGraphics::DrawablePolylineBridgeFactory::create(), sciGraphics::DrawableGrayplotBridgeFactory::create(), sciGraphics::DrawableFigureBridgeFactory::create(), sciGraphics::DrawableFecBridgeFactory::create(), sciGraphics::DrawableAxesBridgeFactory::create(), sciGraphics::DrawableArcBridgeFactory::create(), sciGraphics::DrawableSurfaceJoGL::DrawableSurfaceJoGL(), sciGraphics::FecFacetDrawerJoGL::FecFacetDrawerJoGL(), sciGraphics::FecLineDrawerJoGL::FecLineDrawerJoGL(), sciGraphics::FilledTextDrawerJoGL::FilledTextDrawerJoGL(), sciGraphics::FullBoxDrawerJoGL::FullBoxDrawerJoGL(), sciGraphics::GridDrawerJoGL::GridDrawerJoGL(), sciGraphics::HalfBoxDrawerJoGL::HalfBoxDrawerJoGL(), sciGraphics::PolylineArrowDrawerJoGL::PolylineArrowDrawerJoGL(), sciGraphics::PolylineBarDrawerJoGL::PolylineBarDrawerJoGL(), sciGraphics::PolylineFillDrawerJoGL::PolylineFillDrawerJoGL(), sciGraphics::PolylineInterpColorDrawerJoGL::PolylineInterpColorDrawerJoGL(), sciGraphics::PolylineLineDrawerJoGL::PolylineLineDrawerJoGL(), sciGraphics::PolylineMarkDrawerJoGL::PolylineMarkDrawerJoGL(), sciGraphics::RectangleFillDrawerJoGL::RectangleFillDrawerJoGL(), sciGraphics::RectangleLineDrawerJoGL::RectangleLineDrawerJoGL(), sciGraphics::RectangleMarkDrawerJoGL::RectangleMarkDrawerJoGL(), sciGraphics::SegsArrowDrawerJoGL::SegsArrowDrawerJoGL(), sciGraphics::SegsLineDrawerJoGL::SegsLineDrawerJoGL(), sciGraphics::SegsMarkDrawerJoGL::SegsMarkDrawerJoGL(), sciGraphics::CameraBridgeFactory::setStrategies(), sciGraphics::DrawableArcFactory::setStrategies(), sciGraphics::StandardTextDrawerJoGL::StandardTextDrawerJoGL(), sciGraphics::SubwinBackgroundDrawerJoGL::SubwinBackgroundDrawerJoGL(), sciGraphics::SurfaceFacetDrawerJoGL::SurfaceFacetDrawerJoGL(), sciGraphics::SurfaceLineDrawerJoGL::SurfaceLineDrawerJoGL(), sciGraphics::SurfaceMarkDrawerJoGL::SurfaceMarkDrawerJoGL(), and sciGraphics::TicksDrawerJoGL::TicksDrawerJoGL().
00072 { 00073 if (m_pJavaMapper != NULL) 00074 { 00075 destroy(); 00076 } 00077 m_pJavaMapper = javaMapper; 00078 }


| DrawableObjectJavaMapper* sciGraphics::DrawableObjectJoGL::getJavaMapper | ( | void | ) | [inline, protected] |
Get the object performing mapping with Java class.
Definition at line 88 of file DrawableObjectJoGL.h.
References m_pJavaMapper.
Referenced by destroy(), endDrawing(), endTranslate(), sciGraphics::SegsArrowDrawerJoGL::getArrowDrawerJavaMapper(), sciGraphics::PolylineArrowDrawerJoGL::getArrowDrawerJavaMapper(), sciGraphics::BackTrihedronDrawerJoGL::getBackTrihedronDrawerJavaMapper(), sciGraphics::PolylineBarDrawerJoGL::getBarDrawerJavaMapper(), sciGraphics::CameraJoGL::getCameraJavaMapper(), sciGraphics::CenteredTextDrawerJoGL::getCenteredTextDrawerJavaMapper(), sciGraphics::DrawableClippedObjectJoGL::getClippedJavaMapper(), sciGraphics::SurfaceFacetDrawerJoGL::getFacetDrawerJavaMapper(), sciGraphics::FecFacetDrawerJoGL::getFacetDrawerJavaMapper(), sciGraphics::DrawableFecJoGL::getFecJavaMapper(), sciGraphics::DrawableFigureJoGL::getFigureJavaMapper(), sciGraphics::RectangleFillDrawerJoGL::getFillDrawerJavaMapper(), sciGraphics::PolylineFillDrawerJoGL::getFillDrawerJavaMapper(), sciGraphics::ArcFillDrawerJoGL::getFillDrawerJavaMapper(), sciGraphics::FilledTextDrawerJoGL::getFilledTextDrawerJavaMapper(), sciGraphics::FullBoxDrawerJoGL::getFullBoxDrawerJavaMapper(), sciGraphics::DrawableGrayplotJoGL::getGrayplotJavaMapper(), sciGraphics::GridDrawerJoGL::getGridDrawerJavaMapper(), sciGraphics::HalfBoxDrawerJoGL::getHalfBoxDrawerJavaMapper(), sciGraphics::PolylineInterpColorDrawerJoGL::getInterpColorDrawerJavaMapper(), sciGraphics::SurfaceLineDrawerJoGL::getLineDrawerJavaMapper(), sciGraphics::SegsLineDrawerJoGL::getLineDrawerJavaMapper(), sciGraphics::RectangleLineDrawerJoGL::getLineDrawerJavaMapper(), sciGraphics::PolylineLineDrawerJoGL::getLineDrawerJavaMapper(), sciGraphics::FecLineDrawerJoGL::getLineDrawerJavaMapper(), sciGraphics::ArcLineDrawerJoGL::getLineDrawerJavaMapper(), sciGraphics::SurfaceMarkDrawerJoGL::getMarkDrawerJavaMapper(), sciGraphics::SegsMarkDrawerJoGL::getMarkDrawerJavaMapper(), sciGraphics::RectangleMarkDrawerJoGL::getMarkDrawerJavaMapper(), sciGraphics::PolylineMarkDrawerJoGL::getMarkDrawerJavaMapper(), sciGraphics::DrawablePolylineJoGL::getPolylineJavaMapper(), sciGraphics::DrawableRectangleJoGL::getRectangleJavaMapper(), sciGraphics::DrawableSegsJoGL::getSegsJavaMapper(), sciGraphics::StandardTextDrawerJoGL::getStandardTextDrawerJavaMapper(), sciGraphics::SubwinBackgroundDrawerJoGL::getSubwinBackgroundDrawerJavaMapper(), sciGraphics::DrawableSubwinJoGL::getSubwinJavaMapper(), sciGraphics::DrawableSurfaceJoGL::getSurfaceJavaMapper(), sciGraphics::TextContentDrawerJoGL::getTextContentDrawerJavaMapper(), sciGraphics::DrawableTextJoGL::getTextJavaMapper(), sciGraphics::TicksDrawerJoGL::getTicksDrawerJavaMapper(), initializeDrawing(), show(), and translate().
00088 { return m_pJavaMapper; }
