Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e090f18
Showing
1,653 changed files
with
276,228 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
style=vtk | ||
indent=spaces=2 | ||
extra-headers=foreach;foreach_iter;foreach_child;QTE_FOREACH_ITER | ||
|
||
break-closing-brackets | ||
keep-one-line-blocks | ||
keep-one-line-statements | ||
|
||
indent-preprocessor | ||
max-instatement-indent=50 | ||
min-conditional-indent=0 | ||
|
||
pad-oper | ||
unpad-paren | ||
pad-header | ||
align-pointer=type |
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,12 @@ | ||
include(${qtExtensions_SOURCE_DIR}/CMake/Modules/UseQtExtensions.cmake) | ||
|
||
# NOTE: We descend into all directories in order to allow them to define | ||
# application-specific options alongside the application (as opposed to having | ||
# to define the options here, where they would be less closely located to the | ||
# code they effect). However, no other processing shall be done unless the | ||
# condition(s) noted after the directory are met. | ||
|
||
add_subdirectory(VpView) # if(VISGUI_ENABLE_VPVIEW) | ||
add_subdirectory(VsPlay) # if(VISGUI_ENABLE_VSPLAY) | ||
add_subdirectory(Viqui) # if(VISGUI_ENABLE_VIQUI) | ||
add_subdirectory(Web) # if(VISGUI_ENABLE_WEB) |
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,21 @@ | ||
/*ckwg +5 | ||
* Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to | ||
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, | ||
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. | ||
*/ | ||
|
||
#ifndef __vqExporter_h | ||
#define __vqExporter_h | ||
|
||
#include <vvQueryResult.h> | ||
|
||
class vqExporter | ||
{ | ||
public: | ||
vqExporter() {} | ||
virtual ~vqExporter() {} | ||
|
||
virtual bool exportResults(const QList<vvQueryResult>& results) = 0; | ||
}; | ||
|
||
#endif // __vqExporter_h |
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,31 @@ | ||
/*ckwg +5 | ||
* Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to | ||
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, | ||
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. | ||
*/ | ||
|
||
#include "vqExporterFactory.h" | ||
|
||
#include "vqVqrExporter.h" | ||
|
||
//----------------------------------------------------------------------------- | ||
QList<vqExporterFactory::Identifier> vqExporterFactory::exporters() | ||
{ | ||
QList<vqExporterFactory::Identifier> list; | ||
list.append(Identifier("file-vqr", "VisGUI Query Results")); | ||
return list; | ||
} | ||
|
||
//----------------------------------------------------------------------------- | ||
vqExporter* vqExporterFactory::createExporter(QString type) | ||
{ | ||
if (type == "file-vqr") | ||
return new vqVqrExporter(); | ||
return 0; | ||
} | ||
|
||
//----------------------------------------------------------------------------- | ||
vqExporter* vqExporterFactory::createNativeFileExporter() | ||
{ | ||
return new vqVqrExporter(); | ||
} |
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,31 @@ | ||
/*ckwg +5 | ||
* Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to | ||
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, | ||
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. | ||
*/ | ||
|
||
#ifndef __vqExporterFactory_h | ||
#define __vqExporterFactory_h | ||
|
||
#include <QList> | ||
#include <QString> | ||
|
||
#include "vqExporter.h" | ||
|
||
class vqExporterFactory | ||
{ | ||
public: | ||
struct Identifier | ||
{ | ||
Identifier(QString id_, QString displayString_) | ||
: id(id_), displayString(displayString_) {} | ||
QString id; | ||
QString displayString; | ||
}; | ||
|
||
static QList<Identifier> exporters(); | ||
static vqExporter* createExporter(QString id); | ||
static vqExporter* createNativeFileExporter(); | ||
}; | ||
|
||
#endif // __vqExporterFactory_h |
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,54 @@ | ||
/*ckwg +5 | ||
* Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to | ||
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, | ||
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. | ||
*/ | ||
|
||
#include <QFile> | ||
#include <QMessageBox> | ||
|
||
#include <vgFileDialog.h> | ||
|
||
#include <vvWriter.h> | ||
|
||
#include "vqVqrExporter.h" | ||
|
||
//----------------------------------------------------------------------------- | ||
bool vqVqrExporter::exportResults(const QList<vvQueryResult>& results) | ||
{ | ||
// Get name of file to which results should be written | ||
QString selectedFilter; | ||
QString fileName = vgFileDialog::getSaveFileName( | ||
0, "Save results...", QString(), | ||
"VisGUI Query Results (*.vqr *.vqrx);;" | ||
"VisGUI Query Results - KST (*.vqr);;" | ||
"VisGUI Query Results - XML (*.vqrx *.xml);;" | ||
"All files (*)", &selectedFilter); | ||
if (fileName.isEmpty()) | ||
return false; | ||
|
||
// Open output file | ||
QFile file(fileName); | ||
if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) | ||
{ | ||
QString msg = "Unable to open file \"%1\" for writing: %2"; | ||
QMessageBox::critical(0, "Error writing file", | ||
msg.arg(fileName).arg(file.errorString())); | ||
return false; | ||
} | ||
|
||
// Choose format from extension | ||
const QString ext = QFileInfo(fileName).suffix(); | ||
const bool saveAsXml = | ||
(ext == "xml" || ext == "vqrx" || selectedFilter.contains("XML")); | ||
vvWriter::Format format = (saveAsXml ? vvWriter::Xml : vvWriter::Kst); | ||
|
||
// Write results | ||
vvWriter writer(file, format); | ||
writer << vvHeader::QueryResults; | ||
foreach (const vvQueryResult& result, results) | ||
writer << result; | ||
|
||
// Done | ||
return true; | ||
} |
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,21 @@ | ||
/*ckwg +5 | ||
* Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to | ||
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, | ||
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. | ||
*/ | ||
|
||
#ifndef __vqVqrExporter_h | ||
#define __vqVqrExporter_h | ||
|
||
#include "vqExporter.h" | ||
|
||
class vqVqrExporter : public vqExporter | ||
{ | ||
public: | ||
vqVqrExporter() {} | ||
~vqVqrExporter() {} | ||
|
||
virtual bool exportResults(const QList<vvQueryResult>& results); | ||
}; | ||
|
||
#endif // __vqVqrExporter_h |
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,192 @@ | ||
project(viqui) | ||
|
||
############################################################################### | ||
|
||
# BEGIN user configurable build options | ||
|
||
if(NOT VISGUI_ENABLE_VIQUI) | ||
# If viqui is disabled, we are only here to declare our options (there are | ||
# none, currently), so leave now | ||
return() | ||
endif() | ||
|
||
# END user configurable build options | ||
|
||
############################################################################### | ||
|
||
# BEGIN core libraries and includes | ||
|
||
if(QtTesting_FOUND) | ||
include_directories(${qtTestingSupport_SOURCE_DIR}) | ||
add_definitions(-DENABLE_QTTESTING) | ||
set(QT_TESTING_SUPPORT_LIBRARIES qtTestingSupport ${QtTesting_LIBRARIES}) | ||
endif() | ||
|
||
# Use the include path and library for Qt that is used by VTK. | ||
include_directories(SYSTEM | ||
${KML_INCLUDE_DIRS} | ||
${QtTesting_INCLUDE_DIRS} | ||
${VTK_INCLUDE_DIRS} | ||
${GeographicLib_INCLUDE_DIRS} | ||
${PROJ4_INCLUDE_DIR} | ||
) | ||
|
||
include_directories( | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
|
||
set(vgSdkTargets | ||
vvVtkWidgets | ||
qtExtensions | ||
qtVgCommon | ||
qtVgWidgets | ||
vgVtkVideo | ||
vtkVgCore | ||
vtkVgSceneGraph | ||
vtkVgModelView | ||
vtkVgQtUtil | ||
vgVideo | ||
vvIO | ||
vvWidgets | ||
) | ||
|
||
vg_include_library_sdk_directories(${vgSdkTargets}) | ||
|
||
# Configure file here | ||
include(vqVersion.cmake) | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vqVersion.h.in | ||
${CMAKE_CURRENT_BINARY_DIR}/vqVersion.h @ONLY) | ||
|
||
# END core libraries and includes | ||
|
||
############################################################################### | ||
|
||
# BEGIN core program code | ||
|
||
set(vqSources | ||
main.cxx | ||
vqApplication.cxx | ||
vqArchiveVideoSource.cxx | ||
vqClassifierQueryDialog.cxx | ||
vqConfigureDialog.cxx | ||
vqContour.cxx | ||
vqCore.cxx | ||
vqDebug.cxx | ||
vqEventInfo.cxx | ||
vqPredefinedQueryCache.cxx | ||
vqPredefinedQueryDialog.cxx | ||
vqQueryDialog.cxx | ||
vqQueryParser.cxx | ||
vqQueryVideoPlayer.cxx | ||
vqRegionEditDialog.cxx | ||
vqResultFilter.cxx | ||
vqResultFilterDialog.cxx | ||
vqResultInfo.cxx | ||
vqSettings.cxx | ||
vqTimeline.cxx | ||
vqTrackingClipViewer.cxx | ||
vqTreeView.cxx | ||
vqUserActions.cxx | ||
vqUtil.cxx | ||
vqVideoPlayer.cxx | ||
vqVideoQueryDialog.cxx | ||
vtkVQBlastLayoutNode.cxx | ||
vtkVQCoordinateTransform.cxx | ||
vtkVQTerrainSource.cxx | ||
vtkVQTrackingClip.cxx | ||
Backends/vqExporterFactory.cxx | ||
Backends/vqVqrExporter.cxx | ||
) | ||
|
||
set(vqUI | ||
classifierQuery.ui | ||
configure.ui | ||
predefinedQuery.ui | ||
query.ui | ||
regionEdit.ui | ||
resultFilter.ui | ||
resultInfo.ui | ||
viqui.ui | ||
) | ||
|
||
set(vqMocHeaders | ||
vqApplication.h | ||
vqArchiveVideoSource.h | ||
vqClassifierQueryDialog.h | ||
vqConfigureDialog.h | ||
vqCore.h | ||
vqPredefinedQueryCache.h | ||
vqPredefinedQueryCachePrivate.h | ||
vqPredefinedQueryDialog.h | ||
vqQueryDialog.h | ||
vqQueryParser.h | ||
vqQueryVideoPlayer.h | ||
vqRegionEditDialog.h | ||
vqResultFilterDialog.h | ||
vqResultInfo.h | ||
vqTimeline.h | ||
vqTrackingClipBuilder.h | ||
vqTrackingClipViewer.h | ||
vqTreeView.h | ||
vqUserActions.h | ||
vqVideoPlayer.h | ||
vqVideoQueryDialog.h | ||
vtkVQBlastLayoutNode.h | ||
) | ||
|
||
set(vqResources ../../Icons/stdbutton.qrc ../../Icons/viqui.qrc ../../Icons/vgvideo.qrc) | ||
|
||
# END core program code | ||
|
||
############################################################################### | ||
|
||
# BEGIN build rules | ||
|
||
qt4_wrap_ui(uiSources ${vqUI}) | ||
qt4_wrap_cpp(mocSources ${vqMocHeaders}) | ||
qt4_add_resources(resSources ${vqResources}) | ||
|
||
source_group("User Interface" FILES | ||
${vqUI} | ||
) | ||
|
||
source_group("Resources" FILES | ||
${vqUI} | ||
${EXE_ICON} | ||
) | ||
|
||
source_group("Generated" FILES | ||
${uiSources} | ||
${mocSources} | ||
${resSources} | ||
) | ||
|
||
set_source_files_properties(${vqSources} | ||
PROPERTIES OBJECT_DEPENDS "${uiSources}" | ||
) | ||
|
||
add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE | ||
${vqSources} ${uiSources} ${mocSources} ${resSources} | ||
) | ||
|
||
target_link_libraries(${PROJECT_NAME} | ||
# Internal libraries | ||
${vgSdkTargets} | ||
# OPTIONAL external libraries | ||
${QT_TESTING_SUPPORT_LIBRARIES} | ||
# Required external libraries | ||
vtkChartsCore | ||
vtkGUISupportQt | ||
vtkRenderingCore | ||
vtkRenderingFreeType | ||
vtkViewsContext2D | ||
vil_io | ||
vnl_io | ||
vgl_algo | ||
${QT_QTMAIN_LIBRARY} ${QT_LIBRARIES} | ||
) | ||
|
||
install_executable_target(${PROJECT_NAME} ${PROJECT_NAME}) | ||
|
||
# END build rules |
Oops, something went wrong.