Adding more rendering module methods

parent b96380dc
......@@ -2805,6 +2805,38 @@ void get_rendering_module_gain( int nlhs, mxArray *plhs[], int nrhs, const mxArr
plhs[ 0 ] = mxCreateDoubleScalar( dGain );
}
REGISTER_PUBLIC_FUNCTION( get_rendering_module_parameters, "Returns the current rendering module parameters", "" );
DECLARE_FUNCTION_REQUIRED_INARG( get_rendering_module_parameters, sModuleID, "string", "Module identifier" );
DECLARE_FUNCTION_REQUIRED_INARG( get_rendering_module_parameters, args, "mstruct", "Requested parameters" );
DECLARE_FUNCTION_OUTARG( get_rendering_module_parameters, params, "mstruct", "Parameters" );
void get_rendering_module_parameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 3 );
ConnectionHandle hHandle = GetConnectionHandle( prhs[ 0 ] );
CVAMatlabConnection* pConnection = g_vpConnections[ hHandle ];
std::string sID = matlabGetString( prhs[ 1 ], "sModuleID" );
CVAStruct oArgs = matlabGetStruct( prhs[ 2 ], "args" );
CVAStruct oRet = pConnection->pCoreInterface->GetRenderingModuleParameters( sID, oArgs );
plhs[ 0 ] = matlabCreateStruct( oRet );
}
REGISTER_PUBLIC_FUNCTION( set_rendering_module_parameters, "Sets rendering module parameters", "" );
DECLARE_FUNCTION_REQUIRED_INARG( set_rendering_module_parameters, sModuleID, "string", "Module identifier" );
DECLARE_FUNCTION_REQUIRED_INARG( set_rendering_module_parameters, params, "mstruct", "Parameters" );
void set_rendering_module_parameters( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 3 );
ConnectionHandle hHandle = GetConnectionHandle( prhs[ 0 ] );
CVAMatlabConnection* pConnection = g_vpConnections[ hHandle ];
std::string sID = matlabGetString( prhs[ 1 ], "sModuleID" );
CVAStruct oParams = matlabGetStruct( prhs[ 2 ], "params" );
pConnection->pCoreInterface->SetRenderingModuleParameters( sID, oParams );
}
REGISTER_PUBLIC_FUNCTION( get_rendering_modules, "Get list of rendering modules", "" );
DECLARE_FUNCTION_OPTIONAL_INARG( get_rendering_modules, bFilterEnabled, "boolean-1x1", "Filter activated (true)", "1" );
DECLARE_FUNCTION_OUTARG( get_rendering_modules, renderers, "cell-array of struct-1x1", "Renderer infos (names, descriptions, etc.)" );
......
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