SUBDIRS(lib)
SUBDIRS(appli)
SUBDIRS(bbtk)
+SUBDIRS(data)
//interfMainPanel* pannew = interfMainPanel::getInstance(frame1, eventHandler, s+"/Icons");
- bbSetOutputWidget( frame );
+ bbSetOutputWidget( frame1 );
--- /dev/null
+
+SET(INPUT_DATA_DIR ${PROJECT_SOURCE_DIR}/data)
+
+IF(WIN32)
+ SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/Debug/data)
+ELSE(WIN32)
+ SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/data)
+ENDIF(WIN32)
+
+FILE(GLOB CONFIGURE_DATA_FILES *.*)
+
+CREA_CPDIR(${INPUT_DATA_DIR} ${OUTPUT_DATA_DIR})
--- /dev/null
+#automatic concepts specification
+numConcepts=1
+
+#concept1
+concept1.name=Axe
+concept1.size=15
--- /dev/null
+ObjectType = Image
+NDims = 3
+BinaryData = True
+BinaryDataByteOrderMSB = False
+DimSize = 127 147 187
+HeaderSize = 0
+ElementSpacing = 1 1 1
+Position = 0 0 0
+TransformMatrix = 1 0 0 0 1 0 0 0 1
+Offset = 0 0 0
+CenterOfRotation = 0 0 0
+ElementNumberOfChannels = 1
+ElementType = MET_USHORT
+ElementDataFile = hola.raw
--- /dev/null
+#dimension specification
+numConcepts=4
+
+#concept1
+concept1.name=Time
+concept1.size=20
+
+#concept2
+concept2.name=Patients
+concept2.size=80
+
+#concept3
+concept3.name=Doctors
+concept3.size=10
+
+#concept4
+concept4.name=Researcher
+concept4.size=12
--- /dev/null
+
+#Objects specification1
+numObjects=1
+
+#object 1
+object1.name=Source Image 1
+
+#instants of the object 1
+object1.numInstants=6
+object1.instant1=1 1 1
+object1.instant2=1 2 1
+object1.instant3=1 1 2
+object1.instant4=1 2 2
+object1.instant5=2 2 2
+object1.instant6=2 1 2
+
+#Recordar que el environment no hace ninguna validacion si se dan instantes invalidos se agregan de todos modos.
--- /dev/null
+#automatic concepts specification
+numConcepts=2
+
+#concept1
+concept1.name=Axe
+concept1.size=15
+
+#concept2
+concept2.name=Axe Depth
+concept2.size=300
--- /dev/null
+#automatic concepts specification
+numConcepts=2
+
+#concept1
+concept1.name=Axe
+concept1.size=15
+
+#concept2
+concept2.name=Axe Depth
+concept2.size=300
else
{
dataConcept = _instantPanel->getLastConceptData();
- if( dataConcept->getName().compare( _theViewPanel->getVerticalConceptName() ) )
+ if( dataConcept->getName().compare( _theViewPanel->getVerticalConceptName() ) == 0)
{
_theViewPanel->setActualVertical( dataConcept->getActualValue());
//_theViewPanel->setVerticalConcept( dataConcept->getName(), dataConcept->getMinShowedValue()/*dataConcept->getMinValue()*/, /*dataConcept->getMaxValue()*/ dataConcept->getMaxShowedValue(), dataConcept->getMinShowedValue(), dataConcept->getMaxShowedValue(), dataConcept->getActualValue());
}
- else if( dataConcept->getName().compare( _theViewPanel->getHorizontalConceptName() ) || _instantPanel->getIfConceptCheckedAt( dataConcept->getName(), 0 ) )
+ else if( dataConcept->getName().compare( _theViewPanel->getHorizontalConceptName() ) == 0|| _instantPanel->getIfConceptCheckedAt( dataConcept->getName(), 0 ) )
{
_theViewPanel->setHorizontalConcept( dataConcept->getName(), dataConcept->getMinShowedValue()/*dataConcept->getMinValue()*/, /*dataConcept->getMaxValue()*/ dataConcept->getMaxShowedValue(), dataConcept->getMinShowedValue(), dataConcept->getMaxShowedValue(), dataConcept->getActualValue());
}
_instantPanel = theInstantChooserPanel;
_instantPanel->setWxEventHandler( this );
- Connect( _instantPanel->GetId(), wxINSTANT_CHOOSER_CHANGE, (wxObjectEventFunction) (wxCommandEventFunction) &wxContourEventHandler::onChangeInstant );
+ //Connect( _instantPanel->GetId(), wxINSTANT_CHOOSER_CHANGE, (wxObjectEventFunction) (wxCommandEventFunction) &wxContourEventHandler::onChangeInstant );
std::vector<int> vect;
_instantPanel->getInstant( vect );
#include "wxInstantChooserPanel.h"
#include "wxContourMainFrame.h"
+//Test JCP 13-10-08
+#include "wxContourEventHandler.h"
+//Test JCP 13-10-08
+
//----------------------------------------------------------------------------------------------------------------
// Class implementation
//----------------------------------------------------------------------------------------------------------------
// Sending the event of wxINSTANT_CHOOSER_CHANGE
//-------------------------------------------------
wxCommandEvent newevent(wxINSTANT_CHOOSER_CHANGE,GetId());
- _eventHandler->ProcessEvent(newevent);
+ //this->onChangeInstant(newevent);
+ ((wxContourEventHandler*)_eventHandler)->onChangeInstant(newevent);
+ //_eventHandler->ProcessEvent(newevent);
}
+
+ void wxInstantChooserPanel :: onChangeInstant( wxCommandEvent& event ){
+
+ }
+
//------------------------------------------------------------------------------------------------------------
// Methods for sending events
//------------------------------------------------------------------------------------------------------------
bool getIfConceptCheckedAt( std::string theConceptName, int atChecksPosition );
+ void onChangeInstant( wxCommandEvent& event );
+
private:
//------------------------------------------------------------------------------------------------------------
// Private methods