#include <precompile-preview.hh>
Inherits CPrecompile.

Public Member Functions | |
| virtual TPrecompile | getType () const |
| CPrecompilePreview (CParameterPreview *APreview, CParameterObjectPosition *AObjectPosition, CParameterCreation *AObjectParameters, CParameterPolylinePosition *APolylinePosition) | |
| CPrecompilePreview (const CPrecompilePreview &) | |
| CPrecompile * | copy () const |
| virtual | ~CPrecompilePreview () |
| void | setParameter (CParameter *AParameter) |
| CParameter * | getParameter () const |
| void | setPreview (CParameterPreview *APreview) |
| void | setPosition (CParameterObjectPosition *APosition) |
| void | setCreation (CParameterCreation *ACreation) |
| void | setPolylinePosition (CParameterPolylinePosition *APolylinePosition) |
| void | setCurrentMode (TMode AMode) |
Protected Member Functions | |
| virtual void | drawModel () |
| void | drawPolyline () |
| void | drawPolygon () |
| void | drawMesh () |
| void | drawSphere () |
| void | drawCylinder () |
| void | drawPyramid () |
| void | drawTorus () |
| void | drawMesh1 (const CTransformationMatrix &AMatrix, const CVertex &AOrigin, const CVertex &AVector, int ASx) |
| void | drawMesh2 (const CTransformationMatrix &AMatrix, const CVertex &AOrigin, const CVertex &AVectorX, int ASx, const CVertex &AVectorY, int ASy) |
| void | drawMesh3 (const CTransformationMatrix &AMatrix, const CVertex &AOrigin, const CVertex &AVectorX, int ASx, const CVertex &AVectorY, int ASy, const CVertex &AVectorZ, int ASz) |
Private Attributes | |
| CParameterPreview * | FParameterPreview |
| CParameterObjectPosition * | FParameterPosition |
| CParameterCreation * | FParameterCreation |
| CParameterPolylinePosition * | FParameterPolylinePosition |
| TMode | FCurrentMode |
Definition at line 46 of file precompile-preview.hh.
| CPrecompilePreview::CPrecompilePreview | ( | CParameterPreview * | APreview, | |
| CParameterObjectPosition * | AObjectPosition, | |||
| CParameterCreation * | AObjectParameters, | |||
| CParameterPolylinePosition * | APolylinePosition | |||
| ) |
Constructeur
| APreview | les paramètres de dessin (couleur...) | |
| AObjectPosition | les paramètres de position d'objets | |
| AObjectParameters | les paramètres de création d'objets | |
| APolylineParameter | les paramètres de position polyline |
Definition at line 36 of file precompile-preview.cc.
| CPrecompilePreview::CPrecompilePreview | ( | const CPrecompilePreview & | APrecompile | ) |
Definition at line 57 of file precompile-preview.cc.
| CPrecompilePreview::~CPrecompilePreview | ( | ) | [virtual] |
| CPrecompile * CPrecompilePreview::copy | ( | ) | const [virtual] |
Equivalent d'un constructeur par recopie, mais en méthode virtuelle pour le polymorphisme.
Implements CPrecompile.
Definition at line 85 of file precompile-preview.cc.
| void CPrecompilePreview::drawCylinder | ( | ) | [protected] |
Definition at line 173 of file precompile-preview.cc.
| void CPrecompilePreview::drawMesh | ( | ) | [protected] |
Definition at line 279 of file precompile-preview.cc.
| void CPrecompilePreview::drawMesh1 | ( | const CTransformationMatrix & | AMatrix, | |
| const CVertex & | AOrigin, | |||
| const CVertex & | AVector, | |||
| int | ASx | |||
| ) | [protected] |
| void CPrecompilePreview::drawMesh2 | ( | const CTransformationMatrix & | AMatrix, | |
| const CVertex & | AOrigin, | |||
| const CVertex & | AVectorX, | |||
| int | ASx, | |||
| const CVertex & | AVectorY, | |||
| int | ASy | |||
| ) | [protected] |
| void CPrecompilePreview::drawMesh3 | ( | const CTransformationMatrix & | AMatrix, | |
| const CVertex & | AOrigin, | |||
| const CVertex & | AVectorX, | |||
| int | ASx, | |||
| const CVertex & | AVectorY, | |||
| int | ASy, | |||
| const CVertex & | AVectorZ, | |||
| int | ASz | |||
| ) | [protected] |
drawMesh2
Affichage d'un cube maillé en dimension 3.
Definition at line 825 of file precompile-preview.cc.
| void CPrecompilePreview::drawModel | ( | ) | [protected, virtual] |
Cette méthode affiche l'objet en cours de création.
Implements CPrecompile.
Definition at line 159 of file precompile-preview.cc.
| void CPrecompilePreview::drawPolygon | ( | ) | [protected] |
Definition at line 462 of file precompile-preview.cc.
| void CPrecompilePreview::drawPolyline | ( | ) | [protected] |
Definition at line 511 of file precompile-preview.cc.
| void CPrecompilePreview::drawPyramid | ( | ) | [protected] |
Definition at line 533 of file precompile-preview.cc.
| void CPrecompilePreview::drawSphere | ( | ) | [protected] |
Definition at line 622 of file precompile-preview.cc.
| void CPrecompilePreview::drawTorus | ( | ) | [protected] |
Definition at line 691 of file precompile-preview.cc.
| CParameter * CPrecompilePreview::getParameter | ( | ) | const [virtual] |
getParameter
Cette méthode retourne le paramètre précompile associé à ce précompile,
Implements CPrecompile.
Definition at line 107 of file precompile-preview.cc.
| TPrecompile CPrecompilePreview::getType | ( | ) | const [virtual] |
Cette méthode retourne le type du precompile.
Implements CPrecompile.
Definition at line 147 of file precompile-preview.cc.
| void CPrecompilePreview::setCreation | ( | CParameterCreation * | ACreation | ) |
Modifie le paramètre PARAMETER_CREATION associé au précompile.
Definition at line 128 of file precompile-preview.cc.
| void CPrecompilePreview::setCurrentMode | ( | TMode | AMode | ) |
Definition at line 150 of file precompile-preview.cc.
| void CPrecompilePreview::setParameter | ( | CParameter * | AParameter | ) | [virtual] |
Modifie le paramètre de type AParameter->getType() si c'est un paramètre connu de ce précompile, sinon ne fait rien.
Implements CPrecompile.
Definition at line 88 of file precompile-preview.cc.
| void CPrecompilePreview::setPolylinePosition | ( | CParameterPolylinePosition * | APolylinePosition | ) |
Modifie le paramètre PARAMETER_POLYLINE_POSITION associé au précompile.
Definition at line 137 of file precompile-preview.cc.
| void CPrecompilePreview::setPosition | ( | CParameterObjectPosition * | APosition | ) |
Modifie le paramètre PARAMETER_OBJECT_POSITION associé au précompile.
Definition at line 119 of file precompile-preview.cc.
| void CPrecompilePreview::setPreview | ( | CParameterPreview * | APreview | ) |
Modifie le paramètre PARAMETER_PREVIEW associé au précompile.
Definition at line 110 of file precompile-preview.cc.
Definition at line 151 of file precompile-preview.hh.
Definition at line 152 of file precompile-preview.hh.
Definition at line 150 of file precompile-preview.hh.
1.5.8