Commit e9264680 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

ENH: Configure file so that it can be subclass of different vtk classes

parent 78c8e893
......@@ -9,20 +9,19 @@ CONFIGURE_FILE(
${Xdmf_BINARY_DIR}/vtk/vtkXdmfRenderWindowInteractor.h
)
CONFIGURE_FILE(
${Xdmf_SOURCE_DIR}/vtk/vtkXdmfRenderWindowInteractor.cxx.in
${Xdmf_BINARY_DIR}/vtk/vtkXdmfRenderWindowInteractor.cxx
)
${Xdmf_SOURCE_DIR}/vtk/vtkXdmfRenderWindowInteractor.cxx.in
${Xdmf_BINARY_DIR}/vtk/vtkXdmfRenderWindowInteractor.cxx
)
SET( Xdmf_SRCS
vtkXdmfReader.cxx
vtkXdmfDataSetWriter.cxx
vtkXdmfDataArray.cxx
${Xdmf_BINARY_DIR}/vtkXdmfRenderWindowInteractor.cxx
${Xdmf_BINARY_DIR}/vtk/vtkXdmfRenderWindowInteractor.cxx
)
SET_SOURCE_FILES_PROPERTIES(
vtkXdmfRenderWindowInteractor.cxx
vtkXdmfRenderWindowInteractor.h
${Xdmf_BINARY_DIR}/vtk/vtkXdmfRenderWindowInteractor.h
GENERATED)
......@@ -39,14 +38,14 @@ IF (VTK_FOUND)
# Create Tcl wrappers if VTK is wrapped in Tcl.
IF(VTK_WRAP_TCL)
VTK_WRAP_TCL(vtk${PROJECT_NAME}TCL XdmfTCL_SRCS ${Xdmf_SRCS})
VTK_WRAP_TCL2(vtk${PROJECT_NAME}TCL XdmfTCL_SRCS ${Xdmf_SRCS})
ADD_LIBRARY(vtk${PROJECT_NAME}TCL ${LIBTYPE} ${XdmfTCL_SRCS} ${Xdmf_SRCS})
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}TCL vtkIOTCL vtkRenderingTCL Xdmf)
ENDIF(VTK_WRAP_TCL)
# Create Python wrappers if VTK is wrapped in Python.
IF(VTK_WRAP_PYTHON)
VTK_WRAP_PYTHON(vtk${PROJECT_NAME}Python XdmfPython_SRCS ${Xdmf_SRCS})
VTK_WRAP_PYTHON2(vtk${PROJECT_NAME}Python XdmfPython_SRCS ${Xdmf_SRCS})
ADD_LIBRARY(vtk${PROJECT_NAME}Python SHARED ${XdmfPython_SRCS} ${Xdmf_SRCS})
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}Python vtkIOPython vtkRenderingPython Xdmf)
ENDIF(VTK_WRAP_PYTHON)
......
/*******************************************************************/
/* XDMF */
/* eXtensible Data Model and Format */
/* */
/* Id : Id */
/* Date : $Date$ */
/* Version : $Revision$ */
/* */
/* Author: */
/* Jerry A. Clarke */
/* clarke@arl.army.mil */
/* US Army Research Laboratory */
/* Aberdeen Proving Ground, MD */
/* */
/* Copyright @ 2002 US Army Research Laboratory */
/* All Rights Reserved */
/* See Copyright.txt or http://www.arl.hpc.mil/ice for details */
/* */
/* This software is distributed WITHOUT ANY WARRANTY; without */
/* even the implied warranty of MERCHANTABILITY or FITNESS */
/* FOR A PARTICULAR PURPOSE. See the above copyright notice */
/* for more information. */
/* */
/*******************************************************************/
#include <vtkXRenderWindowInteractor.h>
class VTK_EXPORT vtkXdmfRenderWindowInteractor : public vtkXRenderWindowInteractor
{
public:
static vtkXdmfRenderWindowInteractor *New();
vtkTypeMacro(vtkXdmfRenderWindowInteractor,vtkXRenderWindowInteractor);
virtual void LoopOnce();
virtual void Start( int Block = 0 );
};
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