MatOCAD Logo

Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

PnlGraphFrame Class Reference

Bidimensional graph container. More...

#include <PnlGraphFrame.h>

Inherits TBasePanel.

Inheritance diagram for PnlGraphFrame:

Inheritance graph
[legend]
Collaboration diagram for PnlGraphFrame:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void OnSize (wxSizeEvent &event)
 Process the size event to resize and move the contained widgets.
 PnlGraphFrame (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=_T("panel"), gestione *gpannello=-1)
 Constructor.
int GetMinWidth ()
 Return the minimus width that the panel can assume.
int GetMinHeight ()
 Return the minimus height that the panel can assume.
void WxdeleteClick (wxCommandEvent &event)
 Destroy this panel.
void PointerMoved (wxMouseEvent &event)
 Notify the satus bar change to PnlFoglio.
void OnGraphLClick (wxMouseEvent &event, int i)
 Select the panel.
void OnGraphRClick (wxMouseEvent &event)
 Select the panel.
void CheckOptions ()
 Check if PnlGraph options are correct to show/hide it.
void TxtValueChanged (ValueChangedEvent &event)
 Change the current value of a dimension of PnlGraph.

Public Attributes

PnlGraph * Grafico
 PnlGraph where function are shown.

Private Attributes

TxtValue * TxtYMax
 TxtValue to change the graph limits.
TxtValue * TxtYMin
TxtValue * TxtXMax
TxtValue * TxtXMin

Detailed Description

Bidimensional graph container.

PnlGraphFrame contains an instance of PnlGraph this can be inserted in PnlFoglio, moved and resized It Inherits TBasePanel

Definition at line 34 of file PnlGraphFrame.h.


Constructor & Destructor Documentation

PnlGraphFrame::PnlGraphFrame (  wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = _T("panel"),
gestione *  gpannello = -1
) 
 

Constructor.

Definition at line 34 of file PnlGraphFrame.cpp.

References deltax_2D, and deltay_2D.


Member Function Documentation

void PnlGraphFrame::CheckOptions (   ) 
 

Check if PnlGraph options are correct to show/hide it.

Definition at line 69 of file PnlGraphFrame.cpp.

References Grafico, PnlGraph::options, TxtXMax, TxtXMin, TxtYMax, TxtYMin, OpzGrafico::xmax, OpzGrafico::xmin, OpzGrafico::ymax, and OpzGrafico::ymin.

Referenced by TxtValueChanged().

int PnlGraphFrame::GetMinHeight (   ) 
 

Return the minimus height that the panel can assume.

Defined virtual in the TBasePanel

Returns:
the minimus height that the panel can assume

Definition at line 62 of file PnlGraphFrame.cpp.

int PnlGraphFrame::GetMinWidth (   ) 
 

Return the minimus width that the panel can assume.

Defined virtual in the TBasePanel

Returns:
the minimus width that the panel can assume

Definition at line 57 of file PnlGraphFrame.cpp.

void PnlGraphFrame::OnGraphLClick (  wxMouseEvent &  event,
int  i
) 
 

Select the panel.

Definition at line 161 of file PnlGraphFrame.cpp.

References TBasePanel::ImpostaBordi().

void PnlGraphFrame::OnGraphRClick (  wxMouseEvent &  event  ) 
 

Select the panel.

Definition at line 169 of file PnlGraphFrame.cpp.

References TBasePanel::ImpostaBordi().

void PnlGraphFrame::OnSize (  wxSizeEvent &  event  ) 
 

Process the size event to resize and move the contained widgets.

Reimplemented from wxResizeableControl.

Definition at line 121 of file PnlGraphFrame.cpp.

References deltax_2D, deltay_2D, Grafico, TxtXMax, TxtXMin, and TxtYMin.

void PnlGraphFrame::PointerMoved (  wxMouseEvent &  event  ) 
 

Notify the satus bar change to PnlFoglio.

Definition at line 144 of file PnlGraphFrame.cpp.

References PnlGraph::calculate_ascissa(), PnlGraph::calculate_ordinata(), EVT_GRAPH_INFO, Grafico, GraphInfoEvent::strobject, GraphInfoEvent::strposx, and GraphInfoEvent::strposy.

void PnlGraphFrame::TxtValueChanged (  ValueChangedEvent &  event  ) 
 

Change the current value of a dimension of PnlGraph.

Definition at line 177 of file PnlGraphFrame.cpp.

References CheckOptions(), ValueChangedEvent::GetValue(), Grafico, ValueChangedEvent::IsValid(), PnlGraph::options, OpzGrafico::xmax, OpzGrafico::xmin, OpzGrafico::ymax, and OpzGrafico::ymin.

void PnlGraphFrame::WxdeleteClick (  wxCommandEvent &  event  ) 
 

Destroy this panel.

Destroy the current wxPanel, remove it from the widget list and destroy all his childs

Definition at line 134 of file PnlGraphFrame.cpp.

References TBasePanel::Elimina().


Member Data Documentation

PnlGraph* PnlGraphFrame::Grafico
 

PnlGraph where function are shown.

Definition at line 47 of file PnlGraphFrame.h.

Referenced by MainFrm::BtnModificaClick(), CheckOptions(), PnlObjTree::FillFunction(), OnSize(), PointerMoved(), and TxtValueChanged().

TxtValue * PnlGraphFrame::TxtXMax [private]
 

Definition at line 42 of file PnlGraphFrame.h.

Referenced by CheckOptions(), and OnSize().

TxtValue * PnlGraphFrame::TxtXMin [private]
 

Definition at line 42 of file PnlGraphFrame.h.

Referenced by CheckOptions(), and OnSize().

TxtValue* PnlGraphFrame::TxtYMax [private]
 

TxtValue to change the graph limits.

Definition at line 42 of file PnlGraphFrame.h.

Referenced by CheckOptions().

TxtValue * PnlGraphFrame::TxtYMin [private]
 

Definition at line 42 of file PnlGraphFrame.h.

Referenced by CheckOptions(), and OnSize().


The documentation for this class was generated from the following files:

 

SourceForge Logo