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


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

| void sciGraphics::ArcFillDrawerJoGL::redrawArc | ( | void | ) | [virtual] |
Recreate display list from precomputed data.
Implements sciGraphics::DrawArcStrategy.
Definition at line 63 of file ArcFillDrawerJoGL.cpp.
References getFillDrawerJavaMapper(), and sciGraphics::ArcFillDrawerJavaMapper::redrawArc().
00064 { 00065 getFillDrawerJavaMapper()->redrawArc(); 00066 }

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

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


1.5.5