Commit c5247e89 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

More file moving

parent 69d9f5f2
......@@ -11,7 +11,7 @@
* --------------------------------------------------------------------------------------------
*/
#include "impl.h"
#include "core.h"
IVAInterface* VACore::CreateCoreInstance( const CVAStruct& oArgs, std::ostream* pOutputStream )
{
......@@ -711,231 +711,6 @@ CVAStruct CVACoreImpl::GetFileList( const bool bRecursive, const std::string& sF
return oFileList;
}
int CVACoreImpl::CreateDirectivityFromParameters( const CVAStruct& oParams, const std::string& sName )
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
int iDirID = m_pDirectivityManager->CreateDirectivity( oParams, sName );
assert( iDirID != -1 );
CVAEvent ev;
ev.iEventType = CVAEvent::DIRECTIVITY_LOADED;
ev.pSender = this;
ev.iObjectID = iDirID;
m_pEventManager->BroadcastEvent( ev );
VA_INFO( "Core", "Directivity successfully created, assigned identifier " << iDirID );
return iDirID;
}
VA_RETHROW;
}
bool CVACoreImpl::DeleteDirectivity( const int iDirID )
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
bool bSuccess = m_pDirectivityManager->DeleteDirectivity( iDirID );
//assert( bSuccess );
// Ereignis generieren, wenn Operation erfolgreich
CVAEvent ev;
ev.iEventType = CVAEvent::DIRECTIVITY_DELETED;
ev.pSender = this;
ev.iObjectID = iDirID;
m_pEventManager->BroadcastEvent( ev );
VA_INFO( "Core", "FreeDirectivity successful, freed directivity " << iDirID );
return bSuccess;
} VA_RETHROW;
}
CVADirectivityInfo CVACoreImpl::GetDirectivityInfo( int iDirID ) const {
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY{
return m_pDirectivityManager->GetDirectivityInfo( iDirID );
} VA_RETHROW;
}
void CVACoreImpl::GetDirectivityInfos( std::vector<CVADirectivityInfo>& vdiDest ) const
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
m_pDirectivityManager->GetDirectivityInfos( vdiDest );
}
VA_RETHROW;
}
void CVACoreImpl::SetDirectivityName( const int iID, const std::string& sName )
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
VA_EXCEPT_NOT_IMPLEMENTED_NEXT_VERSION;
//m_pDirectivityManager->SetName( iID, sName );
}
VA_RETHROW;
}
std::string CVACoreImpl::GetDirectivityName( const int iID ) const
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
CVADirectivityInfo oInfo = m_pDirectivityManager->GetDirectivityInfo( iID );
return oInfo.sName;
}
VA_RETHROW;
}
void CVACoreImpl::SetDirectivityParameters( const int iID, const CVAStruct& oParams )
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
VA_EXCEPT_NOT_IMPLEMENTED_NEXT_VERSION;
//m_pDirectivityManager->SetParameters( iID, oParams );
}
VA_RETHROW;
}
CVAStruct CVACoreImpl::GetDirectivityParameters( const int iID, const CVAStruct& ) const
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
CVADirectivityInfo oInfo = m_pDirectivityManager->GetDirectivityInfo( iID );
return oInfo.oParams;
// @todo
//return m_pDirectivityManager->GetDirectivityParameters( iID, oParams );
}
VA_RETHROW;
}
int CVACoreImpl::CreateAcousticMaterial( const CVAAcousticMaterial& oMaterial, const std::string& sName )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
int CVACoreImpl::CreateAcousticMaterialFromParameters( const CVAStruct& oParams, const std::string& sName )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
bool CVACoreImpl::DeleteAcousticMaterial( const int iID )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
CVAAcousticMaterial CVACoreImpl::GetAcousticMaterialInfo( const int iID ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::GetAcousticMaterialInfos( std::vector< CVAAcousticMaterial >& voDest ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::SetAcousticMaterialName( const int iID, const std::string& sName )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
std::string CVACoreImpl::GetAcousticMaterialName( const int iID ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::SetAcousticMaterialParameters( const int iID, const CVAStruct& oParams )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
CVAStruct CVACoreImpl::GetAcousticMaterialParameters( const int iID, const CVAStruct& oParams ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
int CVACoreImpl::CreateGeometryMesh( const CVAGeometryMesh& oMesh, const std::string& sName )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
int CVACoreImpl::CreateGeometryMeshFromParameters( const CVAStruct& oParams, const std::string& sName )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
bool CVACoreImpl::DeleteGeometryMesh( const int iID )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
CVAGeometryMesh CVACoreImpl::GetGeometryMesh( const int iID ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::GetGeometryMeshIDs( std::vector< int >& viIDs ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::SetGeometryMeshName( const int iID, const std::string& sName )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
std::string CVACoreImpl::GetGeometryMeshName( const int iID ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::SetGeometryMeshParameters( const int iID, const CVAStruct& oParams )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
CVAStruct CVACoreImpl::GetGeometryMeshParameters( const int iID, const CVAStruct& oParams ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::SetGeometryMeshEnabled( const int iID, const bool bEnabled )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
bool CVACoreImpl::GetGeometryMeshEnabled( const int iID ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
std::string CVACoreImpl::CreateSignalSourceBufferFromParameters( const CVAStruct& oParams, const std::string& sName )
{
VA_NO_REENTRANCE;
......
/*
* --------------------------------------------------------------------------------------------
*
* VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org
* VVV VVV AAA Licensed under the Apache License, Version 2.0
* VVV VVV AAA
* VVV VVV AAA Copyright 2015-2018
* VVVVVV AAA Institute of Technical Acoustics (ITA)
* VVVV AAA RWTH Aachen University
*
* --------------------------------------------------------------------------------------------
*/
#include "core.h"
int CVACoreImpl::CreateDirectivityFromParameters( const CVAStruct& oParams, const std::string& sName )
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
int iDirID = m_pDirectivityManager->CreateDirectivity( oParams, sName );
assert( iDirID != -1 );
CVAEvent ev;
ev.iEventType = CVAEvent::DIRECTIVITY_LOADED;
ev.pSender = this;
ev.iObjectID = iDirID;
m_pEventManager->BroadcastEvent( ev );
VA_INFO( "Core", "Directivity successfully created, assigned identifier " << iDirID );
return iDirID;
}
VA_RETHROW;
}
bool CVACoreImpl::DeleteDirectivity( const int iDirID )
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
bool bSuccess = m_pDirectivityManager->DeleteDirectivity( iDirID );
//assert( bSuccess );
// Ereignis generieren, wenn Operation erfolgreich
CVAEvent ev;
ev.iEventType = CVAEvent::DIRECTIVITY_DELETED;
ev.pSender = this;
ev.iObjectID = iDirID;
m_pEventManager->BroadcastEvent( ev );
VA_INFO( "Core", "FreeDirectivity successful, freed directivity " << iDirID );
return bSuccess;
} VA_RETHROW;
}
CVADirectivityInfo CVACoreImpl::GetDirectivityInfo( int iDirID ) const {
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY{
return m_pDirectivityManager->GetDirectivityInfo( iDirID );
} VA_RETHROW;
}
void CVACoreImpl::GetDirectivityInfos( std::vector<CVADirectivityInfo>& vdiDest ) const
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
m_pDirectivityManager->GetDirectivityInfos( vdiDest );
}
VA_RETHROW;
}
void CVACoreImpl::SetDirectivityName( const int iID, const std::string& sName )
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
VA_EXCEPT_NOT_IMPLEMENTED_NEXT_VERSION;
//m_pDirectivityManager->SetName( iID, sName );
}
VA_RETHROW;
}
std::string CVACoreImpl::GetDirectivityName( const int iID ) const
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
CVADirectivityInfo oInfo = m_pDirectivityManager->GetDirectivityInfo( iID );
return oInfo.sName;
}
VA_RETHROW;
}
void CVACoreImpl::SetDirectivityParameters( const int iID, const CVAStruct& oParams )
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
VA_EXCEPT_NOT_IMPLEMENTED_NEXT_VERSION;
//m_pDirectivityManager->SetParameters( iID, oParams );
}
VA_RETHROW;
}
CVAStruct CVACoreImpl::GetDirectivityParameters( const int iID, const CVAStruct& ) const
{
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
VA_TRY
{
CVADirectivityInfo oInfo = m_pDirectivityManager->GetDirectivityInfo( iID );
return oInfo.oParams;
// @todo
//return m_pDirectivityManager->GetDirectivityParameters( iID, oParams );
}
VA_RETHROW;
}
/*
* --------------------------------------------------------------------------------------------
*
* VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org
* VVV VVV AAA Licensed under the Apache License, Version 2.0
* VVV VVV AAA
* VVV VVV AAA Copyright 2015-2018
* VVVVVV AAA Institute of Technical Acoustics (ITA)
* VVVV AAA RWTH Aachen University
*
* --------------------------------------------------------------------------------------------
*/
#include "core.h"
int CVACoreImpl::CreateGeometryMesh( const CVAGeometryMesh& oMesh, const std::string& sName )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
int CVACoreImpl::CreateGeometryMeshFromParameters( const CVAStruct& oParams, const std::string& sName )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
bool CVACoreImpl::DeleteGeometryMesh( const int iID )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
CVAGeometryMesh CVACoreImpl::GetGeometryMesh( const int iID ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::GetGeometryMeshIDs( std::vector< int >& viIDs ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::SetGeometryMeshName( const int iID, const std::string& sName )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
std::string CVACoreImpl::GetGeometryMeshName( const int iID ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::SetGeometryMeshParameters( const int iID, const CVAStruct& oParams )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
CVAStruct CVACoreImpl::GetGeometryMeshParameters( const int iID, const CVAStruct& oParams ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::SetGeometryMeshEnabled( const int iID, const bool bEnabled )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
bool CVACoreImpl::GetGeometryMeshEnabled( const int iID ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
......@@ -11,7 +11,7 @@
* --------------------------------------------------------------------------------------------
*/
#include "impl.h"
#include "core.h"
void CVACoreImpl::Initialize()
{
......
/*
* --------------------------------------------------------------------------------------------
*
* VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org
* VVV VVV AAA Licensed under the Apache License, Version 2.0
* VVV VVV AAA
* VVV VVV AAA Copyright 2015-2018
* VVVVVV AAA Institute of Technical Acoustics (ITA)
* VVVV AAA RWTH Aachen University
*
* --------------------------------------------------------------------------------------------
*/
#include "core.h"
int CVACoreImpl::CreateAcousticMaterial( const CVAAcousticMaterial& oMaterial, const std::string& sName )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
int CVACoreImpl::CreateAcousticMaterialFromParameters( const CVAStruct& oParams, const std::string& sName )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
bool CVACoreImpl::DeleteAcousticMaterial( const int iID )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
CVAAcousticMaterial CVACoreImpl::GetAcousticMaterialInfo( const int iID ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::GetAcousticMaterialInfos( std::vector< CVAAcousticMaterial >& voDest ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::SetAcousticMaterialName( const int iID, const std::string& sName )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
std::string CVACoreImpl::GetAcousticMaterialName( const int iID ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
void CVACoreImpl::SetAcousticMaterialParameters( const int iID, const CVAStruct& oParams )
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
CVAStruct CVACoreImpl::GetAcousticMaterialParameters( const int iID, const CVAStruct& oParams ) const
{
VA_EXCEPT_NOT_IMPLEMENTED_FUTURE_VERSION;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment