Ejemplo n.º 1
0
 static
 void Apply( DImage& image, const Convolution& convolution )
 {
    DoApply( image, convolution );
    if ( convolution.IsHighPassFilter() )
       HighPassRescaleFloatImage( image, convolution );
 }
Ejemplo n.º 2
0
EyeConfig::EyeConfig (eyes *parent) 
:pEyes(parent)
{
  setupUi(this);
  
  connect (cancelBut,SIGNAL(clicked()),this,SLOT(DoCancel()));
  connect (okBut,SIGNAL(clicked()),this,SLOT(DoOk()));
  connect (applyBut, SIGNAL(clicked()),this,SLOT(DoApply()));
  connect (quitBut, SIGNAL(clicked()),this,SLOT(quit()));
  
  
  connect (versionButton, SIGNAL(clicked()),
            this,SLOT(DoShowVersion()));
  connect (authorButton, SIGNAL(clicked()),
            this,SLOT(DoLinkAuthor()));
  
  connect (eyesCheck, SIGNAL(stateChanged(int)),
             this,SLOT(DoCheckEyes(int)));
  connect (arrowCheck, SIGNAL(stateChanged(int)),
             this,SLOT(DoCheckArrow(int)));
  connect (bubbleCheck, SIGNAL(stateChanged(int)),
             this,SLOT(DoCheckBubble(int)));
  connect (frameCheck, SIGNAL(stateChanged(int)),
            this,SLOT(DoCheckFrame(int)));
}
Ejemplo n.º 3
0
BOOL CHHMRConfig2::OnWizardFinish() 
{
	//This is only called in the temporary ISO
//	ASSERT(m_bCollectingParametersForNewISO);

	((CHHMRModParam*)m_pPS->GetPage(0))->DoApply();
	DoApply();
	return CPropertyPage::OnWizardFinish();
}
Ejemplo n.º 4
0
void CMCAModParam::OnModparamsApply() 
{
	if(m_pPS)
		m_pPS->SetToClose(0);

	DoApply();
	m_bChange = false;
	m_pApplyButton->EnableWindow(FALSE);
}
Ejemplo n.º 5
0
void Apply( ImageActor actor, const std::string& maskImage )
{
  Vector2 maskSize = Image::GetImageSize( maskImage );

  const float leftRight = (maskSize.width  - 1.0f) * 0.5f;
  const float topBottom = (maskSize.height - 1.0f) * 0.5f;

  DoApply( actor, maskImage, maskSize, Vector4( leftRight, topBottom, leftRight, topBottom ) );
}
Ejemplo n.º 6
0
void CHHMRConfig2::OnHHMRConfig2Apply() 
{
	if(m_pPS)m_pPS->SetToClose(0);

	if (m_pParent->Validate())
	{
		((CHHMRModParam*)m_pPS->GetPage(0))->DoApply();
		DoApply();
	}
}
Ejemplo n.º 7
0
void CEventModParam::OnModparamsApply() 
{
	//for all the comm device must exist
	if (m_pPS) 
		m_pPS->SetToClose(0);
	//disable first so user can't click on it multiple times
	m_pApplyButton->EnableWindow(FALSE);
	DoApply();
	m_bChange = false;
}
Ejemplo n.º 8
0
BOOL CEventModParam::OnWizardFinish() 
{
//	ASSERT(m_bCollectingParametersForNewISO);

	//Put the name of the instrument in the ini file
	WritePrivateProfileString(
		INSTRUMENTS,m_pParent->m_pName,EVENT_DISCOVERY_TYPE,m_pParent->m_szIniFile);
	//Put the parameters for the instrument into the INI file
	DoApply();  //This does the validate

	return CPropertyPage::OnWizardFinish();
}
Ejemplo n.º 9
0
BOOL CMCAModParam::OnWizardFinish() 
{
//	ASSERT(m_bCollectingParametersForNewISO);

	//Put the name of the instrument in the ini file
	WritePrivateProfileString(
		INSTRUMENTS,m_pParent->m_pName,MCA_DISCOVERY_TYPE,m_pParent->m_szIniFile);

	DoApply();
	((CMCAConfig2*)m_pPS->GetPage(1))->DoApply();

	return CPropertyPage::OnWizardFinish();
}
Ejemplo n.º 10
0
 template <class P> static
 void Apply( GenericImage<P>& image, const Convolution& convolution )
 {
    if ( convolution.IsHighPassFilter() )
    {
       if ( P::BitsPerSample() < 32 )
          HighPassIntegerImage( image, convolution, reinterpret_cast<Image*>( 0 ) );
       else
          HighPassIntegerImage( image, convolution, reinterpret_cast<DImage*>( 0 ) );
    }
    else
       DoApply( image, convolution );
 }
Ejemplo n.º 11
0
void CJSRModParam::OnModparamsApply() 
{
	if (m_pPS)m_pPS->SetToClose(0);

	if (m_pParent->Validate()) 
	{
		DoApply();
		//tell the graphic window to update params
		char szTemp[_MAX_PATH];
		strcpy(szTemp,m_pParent->m_pName);
		strcat(szTemp," Watcher");
		CWnd * pcWnd = FindWindow(NULL,szTemp);
		if (pcWnd)
			pcWnd->PostMessage(UPDATE_MESSAGE,1,0);
		m_bChange = false;
		m_pApplyButton->EnableWindow(FALSE);
	}
}
Ejemplo n.º 12
0
void CHHMRConfig2::OnHHMRCameraApply()
{
	if (m_pPS)m_pPS->SetToClose(0);

	//if we are not doing initial configuration continue
	if (!m_bCollectingParametersForNewISO)
	{
		//do security
		if (m_pParent->Validate())
		{
			if (m_pCameraApplyButton)
				m_pCameraApplyButton->EnableWindow(false);
			//GetDlgItem(IDC_HHMRCONFIG_CAMERAAPPLY)->EnableWindow(false);
			//save stuff to ini file
			DoApply();
			//save stuff to MIC itself
			m_pPS->SetCamera();
			//update parallel port stuff
		}
	}
}
Ejemplo n.º 13
0
void 
EyeConfig::DoOk ()
{
  DoApply();
  CloseWin();
}
Ejemplo n.º 14
0
void Apply( ImageActor actor, const std::string& maskImage, const Vector4& maskBorder )
{
  Vector2 maskSize = Image::GetImageSize( maskImage );

  DoApply( actor, maskImage, maskSize, maskBorder );
}
Ejemplo n.º 15
0
void SettingsDialog::OnApply(wxCommandEvent& event)
{
	DoApply();
}
Ejemplo n.º 16
0
void SettingsDialog::OnOK(wxCommandEvent& event)
{
	if (DoApply())
		event.Skip();
}