Example #1
0
void XFunctions::ReadConfigurationValues() 
{
// Read parameter from stored configuration
   bool   bValue;
   double dValue;
   AFSampleCount lValue;
   
   wxString path;
   path.Printf(wxT("/Aurora/XFunctions/FftSize"));
   if(m_pAuroraCfg->Read(path, &lValue))  SetFFTLength(lValue);
   path.Printf(wxT("/Aurora/XFunctions/WindowType"));
   if(m_pAuroraCfg->Read(path, &lValue))  SetWindowType(int(lValue));
   
   path.Printf(wxT("/Aurora/XFunctions/XFunctionType"));
   if(m_pAuroraCfg->Read(path, &lValue))  SetXFunctionType(int(lValue));
   
   path.Printf(wxT("/Aurora/XFunctions/ProbeFreeField"));
   if(m_pAuroraCfg->Read(path, &bValue))  SetProbeFreeField(bValue);
   path.Printf(wxT("/Aurora/XFunctions/ProbeRigidTerminated"));
   if(m_pAuroraCfg->Read(path, &bValue))  SetProbeRigidTerminated(bValue);
   path.Printf(wxT("/Aurora/XFunctions/SoundSpeed"));
   if(m_pAuroraCfg->Read(path, &dValue))  SetSoundSpeed(dValue);
   path.Printf(wxT("/Aurora/XFunctions/ProbeMicDistance"));
   if(m_pAuroraCfg->Read(path, &dValue))  SetProbeDistance(dValue);
   path.Printf(wxT("/Aurora/XFunctions/ProbeMaxFreq"));
   if(m_pAuroraCfg->Read(path, &dValue))  SetProbeMaxFreq(dValue);

   path.Printf(wxT("/Aurora/XFunctions/FollowingFilter"));
   if(m_pAuroraCfg->Read(path, &bValue))  SetFollowingFilter(bValue);
   path.Printf(wxT("/Aurora/XFunctions/FollowingBandwidth"));
   if(m_pAuroraCfg->Read(path, &dValue))  SetFollowingBandwidth(dValue);
   
   path.Printf(wxT("/Aurora/XFunctions/Normalize"));
   if(m_pAuroraCfg->Read(path, &bValue))  SetNormalize(bValue);
   path.Printf(wxT("/Aurora/XFunctions/ShiftToHalfWindow"));
   if(m_pAuroraCfg->Read(path, &bValue))  SetShiftToHalfWindow(bValue);
   path.Printf(wxT("/Aurora/XFunctions/CoherenceWeighting"));
   if(m_pAuroraCfg->Read(path, &bValue))  SetCoherenceWeighting(bValue);
   path.Printf(wxT("/Aurora/XFunctions/HilbertTransform"));
   if(m_pAuroraCfg->Read(path, &bValue))  SetHilbertTransform(bValue);
   path.Printf(wxT("/Aurora/XFunctions/TimeReversal"));
   if(m_pAuroraCfg->Read(path, &bValue))  SetTimeReversal(bValue);
   path.Printf(wxT("/Aurora/XFunctions/SaveMultispectrum"));
   if(m_pAuroraCfg->Read(path, &bValue))  SetSaveMultispectrum(bValue);
   path.Printf(wxT("/Aurora/XFunctions/DiracPulse"));
   if(m_pAuroraCfg->Read(path, &bValue))  SetDiracPulse(bValue);
   
   path.Printf(wxT("/Aurora/XFunctions/TriggerLevel"));
   if(m_pAuroraCfg->Read(path, &dValue))  SetTriggerLevel(dValue);
}
Example #2
0
CItem_ScrollWin::CItem_ScrollWin( CIFControlNode *pParentControl ) : CIFWindow( pParentControl )
{
	
	for( int i = 0; i < NUM_IT_ITEM_SCROLLWIN; i ++ )
		m_textCtl[i] = new CIFText( this );

	m_bgMessage = new CIFControl( this );

	m_OkBtn = new CIFButtonCtl( this );
	m_cancelBtn = new CIFButtonCtl( this );

	Enable( false ,NULL,-1,0);

	
	g_ifMng->AddFocus( this );
	SetWindowType( IF_ITEM_SCROLL_WINDOW_TYPE );

	Init();
}
Example #3
0
CIFEventCraftWin::CIFEventCraftWin( CIFControlNode *pParentControl ) : CIFWindow( pParentControl )
{
	int i;

	
	for(i = 0; i < NUM_IT_EVENT_CRAFT_WIN; i ++ )
		m_textCtl[i] = new CIFText( this );
	
	
	m_titleBar = new CIFControl( this );
	m_titleBarBottom = new CIFControl( this );
	
	
	for(i=0;i< MAX_EVENT_CRAFT_ITEM;i++)
	{
		m_ifcItem[i] = new CIFControl( this );
	}

	
	m_progressWin = new CIFControl( this );
	m_progressBar = new CIFBarCtl( this );
	m_progressAni = new CIFControl( this );

	
	m_okBtn = new CIFButtonCtl( this );
	m_cancelBtn = new CIFButtonCtl( this );

	
	m_ResultWin = new CIFControl( this );

	m_craftingFlag = false;
	m_craftCurrentTime = 0.0f;
	m_craftMaxTime = 1.0f;

	m_nSelectEventCraftIndex=-1;

	Enable( false );

	
	g_ifMng->AddFocus( this );
	SetWindowType( IF_EVENT_CRAFT_WINDOW_TYPE );
}