#include <MathOrSystem.h>
Inheritance diagram for mcMathOrSystemHelpers:
Definition at line 53 of file MathOrSystem.h.
Public Member Functions | |
mcMathOrSystemHelpers () | |
virtual | ~mcMathOrSystemHelpers () |
mcMathAndSystem & | data_GetSys (int n) |
const mcMathAndSystem & | data_GetSys (int n) const |
mcMathAndSystem & | data_GetLastSys () |
const mcMathAndSystem & | data_GetLastSys () const |
void | data_AddSys (mcMathAndSystem *toadd) |
void | data_AddLineToNewAndSystem (mcMathLine *toadd) |
void | data_AddLineToLastAndSystem (mcMathLine *toadd) |
int | data_GetLineCount () const |
Returns the total count of the lines contained into all our mcMathAndSystems. | |
wxString | data_GetDescString () const |
Returns a string with the description (ie, classification) of the current math data. | |
void | data_SetFilter (const mcFilter *p, int n=-1) |
Sets the filter associated with all the elements of the array. | |
mcMathAndSystem & | gui_GetFocusSys () |
const mcMathAndSystem & | gui_GetFocusSys () const |
mcMathLine & | gui_GetFocusLine () |
const mcMathLine & | gui_GetFocusLine () const |
void | gui_AddEmptyLineToNewAndSystem () |
void | gui_AddEmptyLineToLastAndSystem () |
void | gui_DrawSystemSymbols (wxDC &dc, int x, int y, long flags) const |
Draws the connector symbols of this system *without* drawing the elements contained. | |
void | gui_RecalcSymbolSize () |
Recalculates the size of one of the connectors (they must have all the same size for mcMathSystem algorithms) and puts the result into the mgui_szSymbol variable. | |
mcElement | gui_GetSelection () const |
Returns a pointer to the portion of mathsystem currently selected; NULL if there are no parts selected. | |
virtual int | gui_GetActiveElemID () const |
Returns the ID of the element which was marked as active in the last bitmap update. | |
bool | gui_isIDChanged () const |
Returns TRUE if the last call to #data_UpdateBmp() set as active element (the element under mouse cursor) an element which is different from the element which was active before that call. | |
void | math_AndMerge (const mcMathOrSystem &, const mcMathOrSystem &) |
Merges the two given mcMathOrSystems and puts the result in *this. | |
void | math_OrMerge (const mcMathOrSystem &, const mcMathOrSystem &) |
mcMathSystemType | math_GetMathSystemType () const |
Returns the type of this math system as a mcMathOrSystemType enumeration value. | |
wxString | io_GetInlinedExprOfLogicalOperator () const |
bool | io_ImportToken (const wxString &str, wxString *perr) |
Static Public Attributes | |
static bool | sgui_bHorizOrientation = TRUE |
static bool | sgui_bDrawOrLabels = FALSE |
static int | sgui_nSpaceAboveBelow = 5 |
static int | sgui_nSpaceLeftRight = 5 |
static int | sgui_nSpaceBetween = 10 |
Protected Member Functions | |
void | data_Delete (int n) |
Removes the n-th line of the array. | |
mcAbstractItem * | data_GetCopyOf (int n) const |
Returns a copy of the n-th line of the array. | |
virtual bool | gui_DrawHorizontally () const |
Returns TRUE if the elements of the array should be oriented horizontally. | |
virtual bool | gui_DrawVertically () const |
virtual int | gui_GetSpaceAboveBelow () const |
virtual int | gui_GetSpaceLeftRight () const |
virtual int | gui_GetSpaceBetween () const |
Private Member Functions | |
mcDEFINE_REFERENCE_DATA (mcMathOrSystem, mcET_MATHORSYSTEM) |
|
Definition at line 58 of file MathOrSystem.h. References mcElementHelpers::data_Init(). |
|
Definition at line 59 of file MathOrSystem.h. References mcAbstractArray::data_Clear(). |
|
Definition at line 132 of file MathOrSystem.cpp. References mcMathAndSystem::data_AddLine(), data_AddLineToNewAndSystem(), mcMathSystemHelpers::data_GetCount(), and data_GetLastSys(). Referenced by gui_AddEmptyLineToLastAndSystem(). |
|
Definition at line 140 of file MathOrSystem.cpp. References mcMathAndSystem::data_AddLine(), and data_AddSys(). Referenced by data_AddLineToLastAndSystem(), and gui_AddEmptyLineToNewAndSystem(). |
|
Definition at line 92 of file MathOrSystem.h. References mcAbstractArray::data_Add(). Referenced by data_AddLineToNewAndSystem(). |
|
Removes the n-th line of the array.
Implements mcAbstractArray. Definition at line 109 of file MathOrSystem.cpp. References mcAbstractArray::data_GetItem(). |
|
Returns a copy of the n-th line of the array.
Reimplemented from mcAbstractArray. Definition at line 112 of file MathOrSystem.cpp. References data_GetSys(), and mcAbstractItem. |
|
Returns a string with the description (ie, classification) of the current math data.
Definition at line 115 of file MathOrSystem.cpp. References data_GetLineCount(), mcMathSystemType::io_GetDescString(), mcMathType::io_GetDescString(), math_GetMathSystemType(), and mcMathSystemHelpers::math_GetMathType(). |
|
Definition at line 89 of file MathOrSystem.h. References mcMathSystemHelpers::data_GetLast(). |
|
Definition at line 87 of file MathOrSystem.h. References mcMathSystemHelpers::data_GetLast(). Referenced by data_AddLineToLastAndSystem(). |
|
Returns the total count of the lines contained into all our mcMathAndSystems.
Definition at line 122 of file MathOrSystem.cpp. References mcMathSystem::data_GetCount(), mcMathSystemHelpers::data_GetCount(), and data_GetSys(). Referenced by data_GetDescString(). |
|
Definition at line 85 of file MathOrSystem.h. References mcMathSystemHelpers::data_GetConstChild(). |
|
Definition at line 83 of file MathOrSystem.h. References mcElementHelpers::data_GetChild(). Referenced by data_GetCopyOf(), data_GetLineCount(), data_SetFilter(), gui_GetActiveElemID(), gui_isIDChanged(), and math_GetMathSystemType(). |
|
Sets the filter associated with all the elements of the array. See mcFilter and mcPolynomial for more info.
Definition at line 149 of file MathOrSystem.cpp. References mcMathSystemHelpers::data_GetCount(), data_GetSys(), and mcMathAndSystem::data_SetFilter(). |
|
Definition at line 251 of file MathOrSystem.cpp. References data_AddLineToLastAndSystem(), mcMathMng::data_GetLeftMem(), and mcPolynomial::gui_AddNewEmptyMonomial(). |
|
Definition at line 259 of file MathOrSystem.cpp. References data_AddLineToNewAndSystem(), mcMathMng::data_GetLeftMem(), and mcPolynomial::gui_AddNewEmptyMonomial(). |
|
Returns TRUE if the elements of the array should be oriented horizontally.
Implements mcMathSystemHelpers. Definition at line 127 of file MathOrSystem.h. |
|
Draws the connector symbols of this system *without* drawing the elements contained.
Implements mcMathSystemHelpers. Definition at line 181 of file MathOrSystem.cpp. References mcMathSystemHelpers::data_GetCount(), mcMathSystemHelpers::gui_GetXOfSymbol(), mcMathSystemHelpers::gui_GetYOfSymbol(), mcElementHelpers::gui_SelectStyle(), and sgui_bDrawOrLabels. |
|
Implements mcMathSystemHelpers. Definition at line 128 of file MathOrSystem.h. |
|
Returns the ID of the element which was marked as active in the last bitmap update.
Definition at line 194 of file MathOrSystem.cpp. References data_GetSys(), mcMathAndSystem::gui_GetActiveElemID(), and mcDRW_NOACTIVEELEM. |
|
Definition at line 242 of file MathOrSystem.cpp. References mcMathAndSystem::gui_GetFocusLine(), gui_GetFocusSys(), mcEmptyElement, and mcEmptyLine. |
|
Definition at line 233 of file MathOrSystem.cpp. References mcMathAndSystem::gui_GetFocusLine(), gui_GetFocusSys(), mcEmptyElement, and mcEmptyLine. |
|
Definition at line 138 of file MathOrSystem.h. References mcMathSystemHelpers::gui_GetFocus(). |
|
Definition at line 136 of file MathOrSystem.h. References mcMathSystemHelpers::gui_GetFocus(). Referenced by gui_GetFocusLine(). |
|
Returns a pointer to the portion of mathsystem currently selected; NULL if there are no parts selected.
Reimplemented from mcElementHelpers. Definition at line 202 of file MathOrSystem.cpp. References mcMathSystemHelpers::data_Get(), mcMathSystemHelpers::data_GetCount(), mcElementHelpers::gui_isSelected(), and mcEmptySystem. |
|
Implements mcMathSystemHelpers. Definition at line 130 of file MathOrSystem.h. |
|
Implements mcMathSystemHelpers. Definition at line 132 of file MathOrSystem.h. |
|
Implements mcMathSystemHelpers. Definition at line 131 of file MathOrSystem.h. |
|
Returns TRUE if the last call to #data_UpdateBmp() set as active element (the element under mouse cursor) an element which is different from the element which was active before that call.
Definition at line 219 of file MathOrSystem.cpp. References data_GetSys(), and mcMathAndSystem::gui_isIDChanged(). |
|
Recalculates the size of one of the connectors (they must have all the same size for mcMathSystem algorithms) and puts the result into the mgui_szSymbol variable.
Implements mcMathSystemHelpers. Definition at line 170 of file MathOrSystem.cpp. References mcElementHelpers::gui_GetSizeOf(), mcElementHelpers::gui_SelectStyle(), and sgui_bDrawOrLabels. |
|
Implements mcMathSystemHelpers. Definition at line 189 of file MathOrSystem.h. |
|
Implements mcMathSystemHelpers. Definition at line 275 of file MathOrSystem.cpp. References mcAbstractArray::data_Add(), mcMathSystemHelpers::data_GetLast(), and mcMathSystemHelpers::io_ImportInlinedExpr(). |
|
Merges the two given mcMathOrSystems and puts the result in *this.
Definition at line 292 of file MathOrSystem.cpp. References mcAbstractArray::data_Add(), mcAbstractArray::data_Clear(), mcMathAndSystem::math_Merge(), mcMATHLOG, and mcTXT. |
|
Returns the type of this math system as a mcMathOrSystemType enumeration value.
Implements mcMathSystemHelpers. Definition at line 325 of file MathOrSystem.cpp. References mcMathSystemHelpers::data_GetCount(), data_GetSys(), mcMathSystemType::math_CombineWith(), mcMSTL1_EQUATIONS, and mcMSTL1_NOT_RECOGNIZED. Referenced by data_GetDescString(). |
|
Definition at line 310 of file MathOrSystem.cpp. References mcAbstractArray::data_Add(), mcAbstractArray::data_Clear(), mcMathSystemHelpers::data_DeepCopy(), mcMATHLOG, and mcTXT. |
|
|
|
Definition at line 59 of file MathOrSystem.cpp. Referenced by gui_DrawSystemSymbols(), and gui_RecalcSymbolSize(). |
|
Definition at line 58 of file MathOrSystem.cpp. |
|
Definition at line 55 of file MathOrSystem.cpp. |
|
Definition at line 57 of file MathOrSystem.cpp. |
|
Definition at line 56 of file MathOrSystem.cpp. |
[ Top ] |