}
// RaC 09-09 ---------------------
+// RaC 10-09 ---------------------
+void interfMainPanel::onCreateContourPolygon( )
+{
+ wxContourMainFrame::getInstance()->showAxis(false);
+ wxContourMainFrame::getInstance()->onCreateContourPolygon();
+}
+// RaC 10-09 ---------------------
+
void interfMainPanel::onCreateContoursBullEye(wxPanel* panBull)
{
wxContourMainFrame::getInstance()->showAxis(false);
void onCreateContourSpline( );
void onCreateContourRectangle( );
void onCreateContourCircle( );
- void onCreateContourLine( );
-
+ void onCreateContourLine( );
// RaC 09-09 ---------------------
void onCreateContourPoints( );
// RaC 09-09 ---------------------
+
+ // RaC 10-09 ---------------------
+ void onCreateContourPolygon( );
+ // RaC 10-09 ---------------------
void onCreateContoursBullEye(wxPanel* panBull);
/////////////////////////////////
int sizex = 80;
int sizey = 80;
- flexsizer = new wxFlexGridSizer(2,vpath.size(),2,2);
+ //RaC 11-09
+ //This constructor function as well but it is neccessary to change vpath.size() by 6
+ //flexsizer = new wxFlexGridSizer(2,vpath.size(),2,2);
+ flexsizer = new wxFlexGridSizer(6);
this->SetSizer(flexsizer, true);
this->SetAutoLayout( true );
hand.push_back(this);
// RaC 09-09 ---------------------
+ // RaC 10-09 ---------------------
+ path.push_back(datadir + "/Polygon.png");
+ nom.push_back("Create Polygon");
+ funct.push_back((wxObjectEventFunction) &interfNewContourMenu::onCreateContourPolygon);
+ hand.push_back(this);
+ // RaC 10-09 ---------------------
+
this->addButtons(path, nom);
this->setVectorFunction(funct);
}
// RaC 09-09 ---------------------
+// RaC 10-09 ---------------------
+void interfNewContourMenu::onCreateContourPolygon( wxCommandEvent& event ){
+ interfMainPanel::getInstance()->onCreateContourPolygon();
+}
+// RaC 10-09 ---------------------
+
/**
** This method is in charge of capturing the event when the button is clicked
**/
- void onCreateContourLine( wxCommandEvent& event );
-
+ void onCreateContourLine( wxCommandEvent& event );
/**
** This method is in charge of capturing the event when the button is clicked
**/
void onCreateContourPoints( wxCommandEvent& event );
+ /**
+ ** This method is in charge of capturing the event when the button is clicked
+ ** RaC - Creates a new Polygon contour
+ **/
+ void onCreateContourPolygon( wxCommandEvent& event );
};
}
// RaC 09-09 --------------------------------------
+// RaC 10-09 --------------------------------------
+void wxContourMainFrame::onCreateContourPolygon( ){
+ //JCP 20-10-08 Undo redo implementation
+ saveState();
+ //JCP 20-10-08 Undo redo implementation
+ createContour( 10 );
+}
+// RaC 10-09 --------------------------------------
+
//------------------------------------------------------------------------------------------------------------
void wxContourMainFrame :: onCreateContourBullEye(wxPanel* panel )
void onCreateContourCircle( );
void onCreateContourLine( );
void onCreateContourPoints( );
+ void onCreateContourPolygon( );
void onCreateContourBullEye(wxPanel* pan);
/////////////////////////////////
void onDeleteContour();
manContourControl = new manualLineControler();
manViewerContour = new manualViewLine();
}
+
+ //Points
if (typeContour==7)
{
manContourControl = new manualContourControler();
manViewerContour = new manualViewPoints();
}
+ //Polygon
+ if (typeContour==10)
+ {
+ manContourControl = new manualContourControler();
+ manViewerContour = new manualViewContour();
+ }
+
_lastInteraction = insertWrap( theKeyName, manContourControl, manViewerContour );
manModelContour = new manualBaseModel();
}
+ // polygon
+ if (typeContour==10)
+ {
+ manModelContour = new manualContourModelPolygon();
+ }
+
return manModelContour;
}
#include "manualContourModelCircle.h"
#include "manualContourModelLine.h"
#include "manualContourModelRoi.h"
+#include "manualContourModelPolygon.h"
#include <vtkImageChangeInformation.h>