wxInstantChooserPanel Class Reference

#include <wxInstantChooserPanel.h>

Collaboration diagram for wxInstantChooserPanel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxInstantChooserPanel (wxWindow *parent, std::string title, bool theOrientation, bool resolutionALL=false, std::string configurationElem="", std::string groupConfig="")
 wxInstantChooserPanel (wxWindow *parent, wxWindowID id, std::string title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, bool theOrientation=true, std::string configurationElem="", std::string groupConfig="")
 ~wxInstantChooserPanel ()
void addConcept (std::string aConceptName, int minV, int maxV, int actualV)
void setWxEventHandler (wxEvtHandler *theEventHandler)
void onResolutionSlider (wxScrollEvent &event)
void onCheckBoxClicked (wxCommandEvent &event)
void onConceptRelease (wxCommandEvent &event)
ConceptDataWrapgetLastConceptData ()
void setInstant (std::vector< int > choiceInstant)
void setInstant (std::map< std::string, int > *_actualInstant)
void getInstant (std::vector< int > &choiceInstant)
void getInstantData (std::map< std::string, int > &choiceInstantData)
std::map< std::string, int > * getInstantData ()
void setResolutionRangeWithLasUpdate ()
void refreshConceptLabels ()
void setConfiguration (std::string aConfiguration)
std::string getConfiguration ()
void setResolutionOverAll (bool condition)
bool getIfResolutionOverAll ()
void setConceptValue (std::string theConceptName, int theValue)
int getConceptValue (std::string theConceptName)
ConceptDataWrapgetConceptDataOf (std::string theConceptName)
bool getIfConceptCheckedAt (std::string theConceptName, int atChecksPosition)
void onChangeInstant (wxCommandEvent &event)
void addConcepts (std::vector< std::string > conceptNameVect, std::vector< int > conceptSizeVect)

Private Member Functions

void initializeResolutionSlider ()
void changeResolutionAtConceptControl (wxConceptControl *theConceptToUpdate)
void setVerticalMaxSelectedNums (std::string groupMaxVertNums)

Private Attributes

std::vector< wxConceptControl * > * _concepts
wxConceptControl_lastConceptUpdated
wxSlider * _resolutionSlider
wxFlexGridSizer * _outSizer
bool _orientation
bool _resolutionOverALL
std::map< std::string, int > * _actualInstant
std::vector< int > _verticalMaxSelected
wxEvtHandler * _eventHandler
std::string _configuration


Detailed Description

file wxInstantChooserPanel.h

Definition at line 45 of file wxInstantChooserPanel.h.


Constructor & Destructor Documentation

wxInstantChooserPanel::wxInstantChooserPanel ( wxWindow *  parent,
std::string  title,
bool  theOrientation,
bool  resolutionALL = false,
std::string  configurationElem = "",
std::string  groupConfig = "" 
)

Definition at line 31 of file wxInstantChooserPanel.cxx.

References onCheckBoxClicked().

00032         :wxPanel(parent, -1, wxPoint(20,20), wxDefaultSize, wxTAB_TRAVERSAL)
00033         {
00034                 _lastConceptUpdated = NULL;             
00035                 _concepts = new std::vector<wxConceptControl*>();
00036                 _resolutionOverALL = resolutionALL;
00037                 _configuration = configurationElem;
00038                 //--- groupConfig -> format: ("## ## # ## "), #:any positive integer number, : space needed between the numbers and at the end of the string.
00039                 setVerticalMaxSelectedNums( groupConfig );
00040                 
00041                 //_configuration = "CCCc";
00042                 //setVerticalMaxSelectedNums( "1 2 3 3 ");//groupConfig );
00043 
00044                 SetSize(300,300);
00045                 _outSizer = new wxFlexGridSizer ( 1, 10, 10);
00046                 _orientation = theOrientation;
00047                 initializeResolutionSlider();
00048                 _actualInstant=new std::map<std::string,int>();
00049                 
00050                 wxFlexGridSizer * resolutionSizer = new wxFlexGridSizer( 3,1,10,10 );
00051                 resolutionSizer->AddSpacer(10);
00052                 resolutionSizer->Add( _resolutionSlider, 1, wxEXPAND | wxGROW );
00053                 resolutionSizer->AddSpacer(10);
00054                 
00055                 wxFlexGridSizer * sizer = new wxFlexGridSizer( 1,2,10,10 );
00056                 sizer->Add( _outSizer, 1, wxEXPAND| wxGROW );
00057                 sizer->Add( resolutionSizer, 1, wxEXPAND | wxGROW );
00058                 SetSizer( sizer );
00059                 Connect( wxID_ANY,  wxEVT_COMMAND_CHECKBOX_CLICKED, (wxObjectEventFunction) &wxInstantChooserPanel:: onCheckBoxClicked );               
00060 
00061         }

Here is the call graph for this function:

wxInstantChooserPanel::wxInstantChooserPanel ( wxWindow *  parent,
wxWindowID  id,
std::string  title,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
bool  theOrientation = true,
std::string  configurationElem = "",
std::string  groupConfig = "" 
)

Definition at line 63 of file wxInstantChooserPanel.cxx.

References _actualInstant, _concepts, _configuration, _lastConceptUpdated, _orientation, _outSizer, _resolutionOverALL, _resolutionSlider, initializeResolutionSlider(), onCheckBoxClicked(), and setVerticalMaxSelectedNums().

00064                 :wxPanel(parent, id ,pos, size) 
00065         {
00066                 _lastConceptUpdated = NULL;             
00067                 _concepts = new std::vector<wxConceptControl*>();
00068                 _resolutionOverALL = false;
00069                 _configuration = configurationElem;
00070                 //--- groupConfig -> format: ("## ## # ## "), #:any positive integer number, : space needed between the numbers and at the end of the string.
00071                 setVerticalMaxSelectedNums( groupConfig );
00072                 
00073                 SetSize(size);
00074                 _outSizer = new wxFlexGridSizer ( 1, 10, 10);
00075                 _orientation = theOrientation;
00076                 initializeResolutionSlider();
00077                 _actualInstant=new std::map<std::string,int>();
00078                 wxFlexGridSizer * sizer = new wxFlexGridSizer( 1,2,10,10 );
00079                 sizer->Add( _outSizer, 1, wxEXPAND| wxGROW );
00080                 sizer->Add( _resolutionSlider, 1, wxEXPAND | wxGROW );
00081                 SetSizer( sizer );
00082                 Connect( wxID_ANY,  wxEVT_COMMAND_CHECKBOX_CLICKED, (wxObjectEventFunction) &wxInstantChooserPanel:: onCheckBoxClicked );               
00083         }

Here is the call graph for this function:

wxInstantChooserPanel::~wxInstantChooserPanel (  ) 

Definition at line 85 of file wxInstantChooserPanel.cxx.

References _actualInstant, _concepts, and _verticalMaxSelected.

00086         {
00087                 int size,i;
00088                 //deleting the _concepts
00089                 if(_concepts!=NULL)
00090                 {
00091                         size=_concepts->size();
00092                         for(i=0; i< size ; i++)
00093                                 {
00094                                         delete (*_concepts)[i];
00095                                 }
00096                         _concepts->clear();
00097                 }
00098                 _verticalMaxSelected.clear();
00099                 //deleting the actual instant
00100                 _actualInstant->clear();
00101         }


Member Function Documentation

void wxInstantChooserPanel::addConcept ( std::string  aConceptName,
int  minV,
int  maxV,
int  actualV 
)

Adds a concept to the instant managment. PRE: The concept doesn't exists in the included _concepts.

Parameters:
aConceptName 
minV 
maxV 
actualV Adds a concept to the instant managment. PRE: The concept doesn't exists in the included _concepts->
aConceptName 
minV 
maxV 
actualV 

Definition at line 114 of file wxInstantChooserPanel.cxx.

References _concepts, _configuration, _lastConceptUpdated, _orientation, _outSizer, and onConceptRelease().

Referenced by addConcepts().

00115         {
00116                 wxConceptControl * nwConcept = new wxConceptControl(this, _orientation, minV, maxV, actualV, aConceptName, _configuration);
00117                 _concepts->push_back( nwConcept );
00118                 _lastConceptUpdated = nwConcept;
00119                 _outSizer->Add(nwConcept, wxEXPAND);
00120                 Connect(nwConcept->GetId(), wxEVT_CONCEPT_RELEASE, (wxObjectEventFunction) (wxCommandEventFunction)  &wxInstantChooserPanel::onConceptRelease );
00121         }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxInstantChooserPanel::addConcepts ( std::vector< std::string >  conceptNameVect,
std::vector< int >  conceptSizeVect 
)

Definition at line 489 of file wxInstantChooserPanel.cxx.

References addConcept().

Referenced by wxContourMainFrame::setVectImages().

00489                                                                                                                   {
00490                 int i=0;
00491                 int max = conceptNameVect.size();                       
00492                 for( ; i<max; i++)
00493                 {
00494                         if( conceptNameVect[i].compare("Axe Depth") == 0 )
00495                         {
00496                                 addConcept( conceptNameVect[i], 0, conceptSizeVect[i], 1);                                      
00497                         } else {
00498                                 addConcept( conceptNameVect[i], 1, conceptSizeVect[i], 1);
00499                         } // if
00500                 }
00501         }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxInstantChooserPanel::changeResolutionAtConceptControl ( wxConceptControl theConceptToUpdate  )  [private]

Definition at line 386 of file wxInstantChooserPanel.cxx.

References _resolutionSlider, wxConceptControl::getActualValue(), wxConceptControl::getMaxValue(), wxConceptControl::getMinValue(), and wxConceptControl::setRange().

Referenced by onResolutionSlider().

00387         {
00388                 int value = theConceptToUpdate->getActualValue();
00389                 int min = theConceptToUpdate->getMinValue();
00390                 int max = theConceptToUpdate->getMaxValue();
00391                 int delta = (int) (pow((double) 2, _resolutionSlider->GetValue() ));
00392                 int minTmp   = value - delta/2;
00393                 int maxTmp   = value + delta/2;
00394                 if (minTmp<min)
00395                 {
00396                         minTmp = min;   
00397                 }
00398                 if (maxTmp>max)
00399                 {
00400                         maxTmp = max;
00401                 }                       
00402                 theConceptToUpdate->setRange( minTmp,maxTmp );
00403         }

Here is the call graph for this function:

Here is the caller graph for this function:

ConceptDataWrap * wxInstantChooserPanel::getConceptDataOf ( std::string  theConceptName  ) 

Definition at line 455 of file wxInstantChooserPanel.cxx.

References _concepts.

Referenced by wxContourMainFrame::setVectImages(), and wxContourMainFrame::updateInstantImageData().

00456         {
00457                 ConceptDataWrap * conceptData = new ConceptDataWrap();
00458 
00459                 int i, size = _concepts->size();
00460                 int value = -1;
00461                 for ( i=0; i<size && value==-1; i++ )
00462                 {       
00463                         if( (*_concepts)[i]->getName().compare( theConceptName ) == 0 )
00464                         {               
00465                                 conceptData -> fillData( (*_concepts)[i]->getName(), (*_concepts)[i]->getMinValue(), (*_concepts)[i]->getMaxValue(), (*_concepts)[i]->getMinShowedValue(), (*_concepts)[i]->getMaxShowedValue(), (*_concepts)[i]->getActualValue());                    
00466                         }
00467                 }
00468                 return conceptData;
00469         }

Here is the caller graph for this function:

int wxInstantChooserPanel::getConceptValue ( std::string  theConceptName  ) 

Definition at line 441 of file wxInstantChooserPanel.cxx.

References _concepts.

00442         {
00443                 int i, size = _concepts->size();
00444                 int value = -1;
00445                 for ( i=0; i<size && value==-1; i++ )
00446                 {       
00447                         if( (*_concepts)[i]->getName().compare( theConceptName ) == 0 )
00448                         {
00449                                 value = (*_concepts)[i]->getActualValue(  );
00450                         }
00451                 }
00452                 return value;
00453         }

std::string wxInstantChooserPanel::getConfiguration (  ) 

Definition at line 364 of file wxInstantChooserPanel.cxx.

References _configuration.

00365         {
00366                 return _configuration;
00367         }

bool wxInstantChooserPanel::getIfConceptCheckedAt ( std::string  theConceptName,
int  atChecksPosition 
)

Definition at line 471 of file wxInstantChooserPanel.cxx.

References _concepts.

Referenced by wxContourMainFrame::getIfConceptCheckedAt(), wxContourMainFrame::onChangeInstantInstantPanel(), and onConceptRelease().

00472         {
00473                 bool isChecked = false;
00474 
00475                 int i,size = _concepts->size();
00476 //              wxConceptControl * aConcept = NULL;                     
00477                 for ( i=0; i<size && !isChecked; i++ )
00478                 {       
00479                         if( (*_concepts)[i]->getName().compare( theConceptName ) == 0 )
00480                         {               
00481                                 isChecked = (*_concepts)[i]->getIfChecked( atChecksPosition );
00482                         }
00483                 }
00484 
00485                 return isChecked;
00486         }

Here is the caller graph for this function:

bool wxInstantChooserPanel::getIfResolutionOverAll (  ) 

Definition at line 374 of file wxInstantChooserPanel.cxx.

References _resolutionOverALL.

00375         {
00376                 return _resolutionOverALL;
00377         }

void wxInstantChooserPanel::getInstant ( std::vector< int > &  choiceInstant  ) 

std::map< std::string, int > * wxInstantChooserPanel::getInstantData (  ) 

Definition at line 315 of file wxInstantChooserPanel.cxx.

References _actualInstant, _concepts, wxConceptControl::getActualValue(), and wxConceptControl::getName().

00316         {
00317                 int size,i=0;   
00318                 wxConceptControl* concepti;
00319                 if(_concepts!=NULL)
00320                 {
00321                         bool isEmpty=_actualInstant->empty();
00322                         if(!isEmpty) _actualInstant->clear();
00323                         size=_concepts->size();
00324                         while( i< size )
00325                         {
00326                                 concepti=(*_concepts)[i];
00327                                 _actualInstant->insert(std::pair<std::string,int>(concepti->getName(),concepti->getActualValue()));
00328                                 i++;
00329                         }
00330                 }
00331                 return _actualInstant;          
00332         }

Here is the call graph for this function:

void wxInstantChooserPanel::getInstantData ( std::map< std::string, int > &  choiceInstantData  ) 

Definition at line 334 of file wxInstantChooserPanel.cxx.

References _concepts.

00335         {
00336                 int i = 0,size;
00337                 size=_concepts->size();
00338                 while(i< size)
00339                 {
00340                         choiceInstantData.insert(std::pair < std::string, int> ((*_concepts)[i]->getName(), (*_concepts)[i]->getActualValue()));
00341                         i++;
00342                 }
00343         }

ConceptDataWrap * wxInstantChooserPanel::getLastConceptData (  ) 

void wxInstantChooserPanel::initializeResolutionSlider (  )  [private]

Definition at line 380 of file wxInstantChooserPanel.cxx.

References _resolutionSlider, and onResolutionSlider().

Referenced by wxInstantChooserPanel().

00381         {       
00382                 _resolutionSlider = new wxSlider(this , -1,5,1,8,wxDefaultPosition, wxSize(25,45), wxSL_LEFT | wxSL_AUTOTICKS  );               
00383                 Connect( _resolutionSlider->GetId(), wxEVT_COMMAND_SLIDER_UPDATED, wxScrollEventHandler(wxInstantChooserPanel::onResolutionSlider));//(wxObjectEventFunction) &wxInstantChooserPanel::onResolutionSlider ); 
00384         }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxInstantChooserPanel::onChangeInstant ( wxCommandEvent &  event  ) 

Definition at line 238 of file wxInstantChooserPanel.cxx.

00238                                                                             {
00239                 
00240         }

void wxInstantChooserPanel::onCheckBoxClicked ( wxCommandEvent &  event  ) 

Definition at line 164 of file wxInstantChooserPanel.cxx.

References _concepts, wxConceptControl::clearCheckAt(), wxConceptControl::getIfChecked(), and wxConceptControl::getNumCheckBox().

Referenced by wxInstantChooserPanel().

00165         {
00166                 /*int groupID = (int)event.GetClientData();
00167                 wxConceptControl * eventConcept = (wxConceptControl *)event.GetEventObject();
00168                 if ( eventConcept->getIfChecked( groupID ) )
00169                 {
00170                         int i,size = _concepts->size();
00171                         wxConceptControl * aConcept = NULL;
00172                         int accum = 0;          
00173                         for( i=0; i<size; i++)
00174                         {
00175                                 accum+= (*_concepts)[i]->getIfChecked( groupID ) ? 1 :0;
00176                         }               
00177                         for( i=0; i<size && _verticalMaxSelected[groupID] < accum; i++)
00178                         {
00179                                 aConcept = (*_concepts)[i]; 
00180                                 if( aConcept!= eventConcept )
00181                                 {
00182                                         if( aConcept->getIfChecked( groupID ) )
00183                                         {       
00184                                                 aConcept->clearCheckAt( groupID );
00185                                                 accum--;
00186                                         }                                       
00187                                 }
00188                         }                                       
00189                 }*/
00190 
00191                 int groupID = *(int*)event.GetClientData();
00192                 wxConceptControl * eventConcept = (wxConceptControl *)event.GetEventObject();
00193                 if ( eventConcept->getIfChecked( groupID ) )
00194                 {
00195                         int size = _concepts->size();
00196                         wxConceptControl * aConcept = NULL;
00197 //                      int accum = 0;
00198 
00199                         for(int i = 0; i < eventConcept->getNumCheckBox();i++){
00200                                 if(i!=groupID){
00201                                         eventConcept->clearCheckAt(i);
00202                                 }
00203                         }
00204                         for(int i=0; i<size; i++)
00205                         {
00206                                 aConcept = (*_concepts)[i]; 
00207                                 if( aConcept!= eventConcept )
00208                                 {
00209                                         if( aConcept->getIfChecked( groupID ) )
00210                                         {       
00211                                                 aConcept->clearCheckAt( groupID );
00212                                         }                                       
00213                                 }
00214                         }                       
00215                 }
00216         }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxInstantChooserPanel::onConceptRelease ( wxCommandEvent &  event  ) 

Definition at line 219 of file wxInstantChooserPanel.cxx.

References _lastConceptUpdated, ConceptDataWrap::getActualValue(), getIfConceptCheckedAt(), wxContourMainFrame::getInstance(), getInstant(), getLastConceptData(), ConceptDataWrap::getMaxShowedValue(), ConceptDataWrap::getMinShowedValue(), ConceptDataWrap::getName(), and wxContourMainFrame::onChangeInstantInstantPanel().

Referenced by addConcept().

00220         {
00221                 _lastConceptUpdated = (wxConceptControl*) event.GetEventObject();
00222 
00223                 std::vector<int> theInstant;
00224         getInstant( theInstant );
00225                 //-------------------------------------------------
00226                 //  Sending the event of wxINSTANT_CHOOSER_CHANGE
00227                 //-------------------------------------------------
00228                 wxCommandEvent newevent(wxINSTANT_CHOOSER_CHANGE,GetId());  
00229                 //this->onChangeInstant(newevent);
00230                 ConceptDataWrap * dataConcept = getLastConceptData(); 
00231                 if(getIfConceptCheckedAt( dataConcept->getName(), 0 )){
00232                         wxContourMainFrame::getInstance()->onChangeInstantInstantPanel(dataConcept->getName(), dataConcept->getActualValue(), dataConcept->getMinShowedValue(), dataConcept->getMaxShowedValue());
00233                 }
00234                 //((wxContourEventHandler*)_eventHandler)->onChangeInstant(newevent);
00235                 //_eventHandler->ProcessEvent(newevent);
00236         }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxInstantChooserPanel::onResolutionSlider ( wxScrollEvent &  event  ) 

Definition at line 131 of file wxInstantChooserPanel.cxx.

References _concepts, _lastConceptUpdated, _resolutionOverALL, _resolutionSlider, changeResolutionAtConceptControl(), wxConceptControl::getActualValue(), wxConceptControl::getMaxValue(), wxConceptControl::getMinValue(), wxConceptControl::getName(), and wxConceptControl::setRange().

Referenced by initializeResolutionSlider().

00132         {
00133                 std::string lasConcept = _lastConceptUpdated->getName();
00134                 int value = _lastConceptUpdated->getActualValue();
00135                 int min = _lastConceptUpdated->getMinValue();
00136                 int max = _lastConceptUpdated->getMaxValue();
00137                 int delta = (int) (pow((double) 2, _resolutionSlider->GetValue() ));
00138                 int minTmp   = value - delta/2;
00139                 int maxTmp   = value + delta/2;
00140                 if (minTmp<min)
00141                         {
00142                                 minTmp = min;   
00143                         }
00144                 if (maxTmp>max)
00145                         {
00146                                 maxTmp = max;
00147                         }                       
00148                 _lastConceptUpdated->setRange( minTmp,maxTmp );
00149 
00150                 if (! _resolutionOverALL)
00151                 {
00152                         changeResolutionAtConceptControl( _lastConceptUpdated );
00153                 }
00154                 else
00155                 {
00156                         for(int i=0; i< (int)(_concepts->size()); i++)
00157                         {
00158                                 changeResolutionAtConceptControl( (*_concepts)[i] );
00159                         }
00160                 }               
00161 
00162         }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxInstantChooserPanel::refreshConceptLabels (  ) 

Definition at line 354 of file wxInstantChooserPanel.cxx.

00355         {
00356                 
00357         }

void wxInstantChooserPanel::setConceptValue ( std::string  theConceptName,
int  theValue 
)

Definition at line 426 of file wxInstantChooserPanel.cxx.

References _concepts.

Referenced by wxContourMainFrame::onChangeDeep(), wxContourMainFrame::onChangeInstant(), wxContourMainFrame::setConceptValue(), and wxContourMainFrame::setVectImages().

00427         {
00428                 int i, size = _concepts->size();
00429                 bool setted = false;
00430                 for ( i=0; i<size && !setted; i++ )
00431                 {       
00432                         if( (*_concepts)[i]->getName().compare( theConceptName ) == 0 )
00433                         {
00434                                 (*_concepts)[i]->setActualValue( theValue );
00435                                 setted = true;
00436                         }
00437                 }
00438         }

Here is the caller graph for this function:

void wxInstantChooserPanel::setConfiguration ( std::string  aConfiguration  ) 

Definition at line 359 of file wxInstantChooserPanel.cxx.

References _configuration.

00360         {
00361                 _configuration = aConfiguration;
00362         }

void wxInstantChooserPanel::setInstant ( std::map< std::string, int > *  _actualInstant  ) 

Definition at line 294 of file wxInstantChooserPanel.cxx.

References _concepts, wxConceptControl::getName(), and wxConceptControl::setActualValue().

00295         {
00296                 int size,i;
00297                 size=_concepts->size();
00298                 std::map<std::string,int>::iterator iteratorActualInstant;
00299                 wxConceptControl* concepti;
00300                 std::string nameConcepti;
00301                 for(i=0;i<size;i++)
00302                 {
00303                         concepti=(*_concepts)[i];
00304                         nameConcepti=concepti->getName();
00305                         iteratorActualInstant=_actualInstant->find(nameConcepti);
00306                         if(iteratorActualInstant!=_actualInstant->end())
00307                         {
00308                                 int actualValue=iteratorActualInstant->second;
00309                                 concepti->setActualValue(actualValue);
00310                         }
00311                         nameConcepti.clear();
00312                 }
00313         }

Here is the call graph for this function:

void wxInstantChooserPanel::setInstant ( std::vector< int >  choiceInstant  ) 

Definition at line 264 of file wxInstantChooserPanel.cxx.

References _concepts.

00265         {               
00266                 int max = _concepts->size();
00267                 if( (int)(choiceInstant.size()) == max )
00268                 {
00269                         int i = 0;
00270                         while(i< max)
00271                         {
00272                                 (*_concepts)[i]->setActualValue( choiceInstant[i] );
00273                                 i++;
00274                         }
00275                 }
00276         }

void wxInstantChooserPanel::setResolutionOverAll ( bool  condition  ) 

Definition at line 369 of file wxInstantChooserPanel.cxx.

References _resolutionOverALL.

00370         {
00371                 _resolutionOverALL = condition;
00372         }

void wxInstantChooserPanel::setResolutionRangeWithLasUpdate (  ) 

Definition at line 345 of file wxInstantChooserPanel.cxx.

References _lastConceptUpdated, _resolutionSlider, wxConceptControl::getMaxShowedValue(), and wxConceptControl::getMinShowedValue().

00346         {
00347                 int minShow = _lastConceptUpdated->getMinShowedValue();
00348                 int maxShow = _lastConceptUpdated->getMaxShowedValue();
00349                 _resolutionSlider->SetRange( minShow, maxShow );
00350         }

Here is the call graph for this function:

void wxInstantChooserPanel::setVerticalMaxSelectedNums ( std::string  groupMaxVertNums  )  [private]

Definition at line 406 of file wxInstantChooserPanel.cxx.

References _verticalMaxSelected.

Referenced by wxInstantChooserPanel().

00407         {
00408                 int endSub;
00409                 std::string::size_type numberIndex = groupMaxVertNums.find(" ", 0);
00410                 std::string::size_type start = 0;
00411                 while( numberIndex != std::string::npos ) 
00412                 {       
00413             endSub = numberIndex;
00414                         std::string number = groupMaxVertNums.substr( 0, endSub );
00415                         groupMaxVertNums.erase( 0, endSub+1 ); 
00416                         int intReturn = atoi(number.c_str());                   
00417                         if( intReturn>0 )
00418                                 _verticalMaxSelected.push_back(intReturn);      
00419                         else
00420                                 _verticalMaxSelected.push_back( 1 );    
00421                         start += numberIndex;
00422                         numberIndex = groupMaxVertNums.find(" ", endSub);                       
00423                 }                               
00424         }

Here is the caller graph for this function:

void wxInstantChooserPanel::setWxEventHandler ( wxEvtHandler *  theEventHandler  ) 

Definition at line 123 of file wxInstantChooserPanel.cxx.

References _eventHandler.

00124         {
00125                 _eventHandler = theEventHandler;
00126         }


Member Data Documentation

std::map<std::string,int>* wxInstantChooserPanel::_actualInstant [private]

wxEvtHandler* wxInstantChooserPanel::_eventHandler [private]

Definition at line 160 of file wxInstantChooserPanel.h.

Referenced by setWxEventHandler().

Definition at line 152 of file wxInstantChooserPanel.h.

Referenced by addConcept(), and wxInstantChooserPanel().

wxFlexGridSizer* wxInstantChooserPanel::_outSizer [private]

Definition at line 150 of file wxInstantChooserPanel.h.

Referenced by addConcept(), and wxInstantChooserPanel().

std::vector<int> wxInstantChooserPanel::_verticalMaxSelected [private]

Definition at line 158 of file wxInstantChooserPanel.h.

Referenced by setVerticalMaxSelectedNums(), and ~wxInstantChooserPanel().


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

Generated on Wed Jun 27 23:28:35 2012 for creaContours_lib by  doxygen 1.5.7.1