#include </home/scilab/compilation_chain/sci_checkOut/scilab/modules/renderer/src/cpp/arcDrawing/ArcLineDrawerJoGL.hxx>


Public Member Functions | |
| ArcLineDrawerJoGL (DrawableArc *arc) | |
| virtual | ~ArcLineDrawerJoGL (void) |
| virtual void | drawArc (void) |
| virtual void | redrawArc (void) |
| virtual void | showArc (void) |
Protected Member Functions | |
| ArcLineDrawerJavaMapper * | getLineDrawerJavaMapper (void) |
Definition at line 26 of file ArcLineDrawerJoGL.hxx.
| sciGraphics::ArcLineDrawerJoGL::ArcLineDrawerJoGL | ( | DrawableArc * | arc | ) |
Definition at line 24 of file ArcLineDrawerJoGL.cpp.
00025 : DrawArcStrategy(arc), DrawableObjectJoGL(arc) 00026 { 00027 00028 }
| sciGraphics::ArcLineDrawerJoGL::~ArcLineDrawerJoGL | ( | void | ) | [virtual] |
| void sciGraphics::ArcLineDrawerJoGL::drawArc | ( | void | ) | [virtual] |
Main algorithm
Implements sciGraphics::DrawArcStrategy.
Definition at line 35 of file ArcLineDrawerJoGL.cpp.
References sciGraphics::ArcLineDrawerJavaMapper::drawArc(), sciGraphics::DrawableObjectJoGL::endDrawing(), sciGraphics::DrawableArc::getArcRepresentation(), sciGraphics::DrawableObject::getDrawedObject(), getLineDrawerJavaMapper(), sciGraphics::DrawableObjectJoGL::initializeDrawing(), sciGraphics::DrawArcStrategy::m_pDrawed, sciGetGraphicContext(), sciGetLineStyle(), sciGetLineWidth(), sciGetUseNurbs(), sciGraphics::ArcLineDrawerJavaMapper::setLineParameters(), sciGraphics::ArcLineDrawerJavaMapper::setUseNurbs(), and TRUE.
00036 { 00037 sciPointObj * pObj = m_pDrawed->getDrawedObject(); 00038 initializeDrawing() ; 00039 00040 // set the line parameters 00041 getLineDrawerJavaMapper()->setLineParameters(sciGetGraphicContext(pObj)->foregroundcolor, 00042 (float)sciGetLineWidth(pObj), 00043 sciGetLineStyle(pObj)); 00044 00045 // get the data of the arc 00046 double center[3]; 00047 double semiMinorAxis[3]; 00048 double semiMajorAxis[3]; 00049 double startAngle; 00050 double endAngle; 00051 00052 m_pDrawed->getArcRepresentation(center, semiMinorAxis, semiMajorAxis, startAngle, endAngle ) ; 00053 00054 getLineDrawerJavaMapper()->setUseNurbs(sciGetUseNurbs(pObj) == TRUE); 00055 00056 // display the rectangle 00057 getLineDrawerJavaMapper()->drawArc(center[0] , center[1] , center[2] , 00058 semiMinorAxis[0], semiMinorAxis[1], semiMinorAxis[2], 00059 semiMajorAxis[0], semiMajorAxis[1], semiMajorAxis[2], 00060 startAngle , endAngle); 00061 endDrawing() ; 00062 }

| void sciGraphics::ArcLineDrawerJoGL::redrawArc | ( | void | ) | [virtual] |
Recreate display list from precomputed data.
Implements sciGraphics::DrawArcStrategy.
Definition at line 64 of file ArcLineDrawerJoGL.cpp.
References getLineDrawerJavaMapper(), and sciGraphics::ArcLineDrawerJavaMapper::redrawArc().
00065 { 00066 getLineDrawerJavaMapper()->redrawArc(); 00067 }

| void sciGraphics::ArcLineDrawerJoGL::showArc | ( | void | ) | [virtual] |
Call the display list of an object
Implements sciGraphics::DrawArcStrategy.
Definition at line 69 of file ArcLineDrawerJoGL.cpp.
References sciGraphics::DrawableObjectJoGL::show().
00070 { 00071 show(); 00072 }

| ArcLineDrawerJavaMapper * sciGraphics::ArcLineDrawerJoGL::getLineDrawerJavaMapper | ( | void | ) | [protected] |
Get the object performing mapping with Java class.
Definition at line 74 of file ArcLineDrawerJoGL.cpp.
References sciGraphics::DrawableObjectJoGL::getJavaMapper().
Referenced by drawArc(), and redrawArc().
00075 { 00076 return dynamic_cast<ArcLineDrawerJavaMapper *>(getJavaMapper()); 00077 }


1.5.5