wxMaracasSurfaceRenderingPanel Class Reference

#include <wxMaracasSurfaceRenderingPanel.h>

Inheritance diagram for wxMaracasSurfaceRenderingPanel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 wxMaracasSurfaceRenderingPanel (wxWindow *parent, int propid, bool _isComplexBox, int _panID)
virtual void createPanel ()
virtual void addControl (wxWindow *win)
virtual void addControl (wxSizer *sizer)
virtual void onActionButtonPressedHide (wxCommandEvent &event)
virtual void createControls ()=0
int getPropId ()
int getPanId ()
bool isComplex ()

Protected Attributes

int _propid
bool isComplexBox
int panID

Private Attributes

wxBoxSizer * sizercontrols
bool show

Detailed Description

Definition at line 6 of file wxMaracasSurfaceRenderingPanel.h.


Constructor & Destructor Documentation

wxMaracasSurfaceRenderingPanel::wxMaracasSurfaceRenderingPanel ( wxWindow *  parent,
int  propid,
bool  _isComplexBox,
int  _panID 
) [inline]

Definition at line 8 of file wxMaracasSurfaceRenderingPanel.h.

References _propid, createPanel(), isComplexBox, and panID.

00009                 : wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize){
00010                         createPanel();
00011                         isComplexBox = _isComplexBox;
00012                         panID = _panID;
00013                         _propid = propid;
00014         }       

Here is the call graph for this function:


Member Function Documentation

virtual void wxMaracasSurfaceRenderingPanel::addControl ( wxSizer *  sizer  )  [inline, virtual]

Adds a new control to the panel (sizer, radiob, etc)

Definition at line 53 of file wxMaracasSurfaceRenderingPanel.h.

References sizercontrols.

00053                                                {
00054                 if(sizercontrols!=NULL){
00055                         sizercontrols->Add(sizer, wxGROW);
00056                 }
00057         }

virtual void wxMaracasSurfaceRenderingPanel::addControl ( wxWindow *  win  )  [inline, virtual]

Adds a new control to the panel (sizer, radiob, etc)

Definition at line 44 of file wxMaracasSurfaceRenderingPanel.h.

References sizercontrols.

Referenced by wxMaracasSurfaceRenderingProp3DMHD::createControls(), and wxMaracasSurfaceRenderingProp3D::createControls().

00044                                               {
00045                 if(sizercontrols!=NULL){
00046                         sizercontrols->Add(win, wxGROW);
00047                 }
00048         }

Here is the caller graph for this function:

virtual void wxMaracasSurfaceRenderingPanel::createControls (  )  [pure virtual]

The user must implement this function to remove the panel from the The user must implement this function to add the necessary controls to the panel

Implemented in wxMaracasSurfaceRenderingProp3D.

virtual void wxMaracasSurfaceRenderingPanel::createPanel (  )  [inline, virtual]

Definition at line 16 of file wxMaracasSurfaceRenderingPanel.h.

References show, and sizercontrols.

Referenced by wxMaracasSurfaceRenderingPanel().

00016                                   {
00017                 show = false;
00018         /*wxBoxSizer* sizerButtons = new wxBoxSizer(wxVERTICAL);
00019 
00020                 wxButton* b = new wxButton(this, -1, wxString(_T("-")), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT, 
00021                                                                 wxDefaultValidator, wxString(_T("-"))); 
00022                 Connect(b->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction)&wxMaracasSurfaceRenderingPanel::onActionButtonPressedHide);
00023                 wxButton* b1 = new wxButton(this, -1, wxString(_T("-")), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT, 
00024                                                                 wxDefaultValidator, wxString(_T("x"))); 
00025                 Connect(b1->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction)&wxMaracasSurfaceRenderingPanel::onActionButtonPressedEliminate);
00026 
00027                 sizerButtons->Add(b, wxFIXED_MINSIZE);
00028                 sizerButtons->Add(b1, wxFIXED_MINSIZE);*/
00029 
00030                 sizercontrols = new wxBoxSizer(wxVERTICAL);
00031 
00032                 wxBoxSizer* sizerpanel = new wxBoxSizer(wxHORIZONTAL);
00033 
00034                 //sizerpanel->Add(sizerButtons,wxGROW);
00035                 sizerpanel->Add(sizercontrols,wxGROW);
00036         
00037                 this->SetSizer(sizerpanel, true);               
00038                 this->SetAutoLayout( true );
00039         }

Here is the caller graph for this function:

int wxMaracasSurfaceRenderingPanel::getPanId (  )  [inline]

Returns the papnel id

Definition at line 93 of file wxMaracasSurfaceRenderingPanel.h.

References panID.

Referenced by wxMaracasSurfaceRenderingProp3D::onColorChange(), wxMaracasSurfaceRenderingProp3DMHD::onIsoValueRelease(), wxMaracasSurfaceRenderingProp3D::onOpacityRelease(), and wxMaracasSurfaceRenderingProp3D::onViewImage().

00093                       {
00094                 return panID;
00095         }

Here is the caller graph for this function:

int wxMaracasSurfaceRenderingPanel::getPropId (  )  [inline]
bool wxMaracasSurfaceRenderingPanel::isComplex (  )  [inline]
virtual void wxMaracasSurfaceRenderingPanel::onActionButtonPressedHide ( wxCommandEvent &  event  )  [inline, virtual]

Hides or show the controls in the panel

Definition at line 62 of file wxMaracasSurfaceRenderingPanel.h.

References show, and sizercontrols.

00062                                                                        {
00063                 wxList list = sizercontrols->GetChildren();             
00064                 int i;
00065                 for(i=0; i<(int)list.size();i++){
00066                         sizercontrols->Show(i,show);
00067                 }
00068                 show = !show;
00069                 sizercontrols->Layout();
00070                 this->Layout();
00071         }


Member Data Documentation

Definition at line 112 of file wxMaracasSurfaceRenderingPanel.h.

Referenced by getPanId(), and wxMaracasSurfaceRenderingPanel().

Definition at line 106 of file wxMaracasSurfaceRenderingPanel.h.

Referenced by createPanel(), and onActionButtonPressedHide().


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

Generated on 20 Oct 2010 for creaMaracasVisu_lib by  doxygen 1.6.1