-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
b871a51 DSPPlugin: improve README with images 5502d42 Improve default data to not plot 871c072 WarnOnCreate: update usage of deprecated syntax 49db2f9 AudioPlayer: prefer default output device for audio b6c7e92 New plugin : Digital Signal Processing plugin Acked-by: Kitware Robot <[email protected]> Merge-request: !6065
- Loading branch information
Showing
40 changed files
with
3,811 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
set(sources) | ||
set(interfaces) | ||
set(uifiles) | ||
|
||
option(PARAVIEW_PLUGIN_dsp_enable_audio_player "Enable building the Audio Player Dock. Requires Qt Multimedia." OFF) | ||
mark_as_advanced(PARAVIEW_PLUGIN_dsp_enable_audio_player) | ||
|
||
if (PARAVIEW_USE_QT AND PARAVIEW_PLUGIN_dsp_enable_audio_player) | ||
find_package(Qt5 REQUIRED Widgets OPTIONAL_COMPONENTS Multimedia) | ||
|
||
if (NOT TARGET Qt5::Multimedia) | ||
message(FATAL_ERROR | ||
"Component 'Qt5::Multimedia' required for the DSP plugin not found. Use " | ||
"PARAVIEW_PLUGIN_dsp_enable_audio_player to disable the audio player if necessary, or install 'Qt5::Multimedia'") | ||
endif() | ||
|
||
list(APPEND sources | ||
pqAudioPlayer.cxx | ||
pqAudioPlayer.h) | ||
|
||
paraview_plugin_add_dock_window( | ||
CLASS_NAME pqAudioPlayer | ||
DOCK_AREA Right | ||
INTERFACES dock_interfaces | ||
SOURCES dock_sources) | ||
|
||
list(APPEND interfaces | ||
${dock_interfaces}) | ||
list(APPEND sources | ||
${dock_sources}) | ||
list(APPEND uifiles pqAudioPlayer.ui) | ||
endif() | ||
|
||
paraview_add_plugin(DigitalSignalProcessing | ||
VERSION "1.0" | ||
UI_FILES ${uifiles} | ||
UI_INTERFACES ${interfaces} | ||
SOURCES ${sources} | ||
REQUIRED_ON_CLIENT | ||
REQUIRED_ON_SERVER | ||
MODULES | ||
DigitalSignalProcessing::DSPFiltersPlugin | ||
MODULE_FILES | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Filters/vtk.module") | ||
|
||
if (PARAVIEW_USE_QT AND PARAVIEW_PLUGIN_dsp_enable_audio_player) | ||
target_link_libraries(DigitalSignalProcessing | ||
PRIVATE | ||
Qt5::Widgets | ||
Qt5::Multimedia) | ||
|
||
target_compile_definitions(DigitalSignalProcessing PRIVATE QT_NO_KEYWORDS) | ||
endif() | ||
|
||
if (BUILD_TESTING AND BUILD_SHARED_LIBS) | ||
add_subdirectory(Testing) | ||
endif() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
set(MODULE_CLASSES | ||
vtkMeanPowerSpectralDensity | ||
vtkMergeReduceTableBlocks | ||
vtkProjectSpectrumMagnitude | ||
vtkSoundQuantitiesCalculator | ||
vtkSpectrogramFilter | ||
) | ||
|
||
set(MODULE_HEADERS | ||
vtkAccousticUtilities.h | ||
) | ||
|
||
vtk_module_add_module(DigitalSignalProcessing::DSPFiltersPlugin | ||
FORCE_STATIC # build static library, to avoid confusion when loading | ||
CLASSES ${MODULE_CLASSES} | ||
HEADERS ${MODULE_HEADERS} | ||
) | ||
|
||
paraview_add_server_manager_xmls( | ||
XMLS DSPFilters.xml) |
Oops, something went wrong.