![]() |
rtVTK
0.6.0
|
00001 00002 /****************************************************************************** 00003 * Copyright (c) 2012, Grove City College 00004 * All rights reserved. 00005 * 00006 * Redistribution and use in source and binary forms, with or without 00007 * modification, are permitted provided that the following conditions are 00008 * met: 00009 * 00010 * * Redistributions of source code must retain the above copyright 00011 * notice, this list of conditions and the following disclaimer. 00012 * 00013 * * Redistributions in binary form must reproduce the above copyright 00014 * notice, this list of conditions and the following disclaimer in 00015 * the documentation and/or other materials provided with the 00016 * distribution. 00017 * 00018 * * Neither the name of Grove City College nor the names of its 00019 * contributors may be used to endorse or promote products derived 00020 * from this software without specific prior written permission. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00023 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00024 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00025 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00026 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00027 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00028 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00029 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00030 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00031 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00032 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00033 * 00034 */ 00035 00036 00037 #ifndef plugins_PluginInterface_h 00038 #define plugins_PluginInterface_h 00039 00040 #include <string> 00041 using std::string; 00042 00043 #include <Core/Types.h> 00044 00045 #include <StandAlone/DLL.h> 00046 00047 00049 // Forward declarations 00050 00051 // class QGridLayout; 00052 class QWidget; 00053 00054 namespace Core 00055 { 00056 00057 class Mesh; 00058 00059 } // namespace Core; 00060 00061 namespace uiCore 00062 { 00063 00064 class Camera; 00065 00066 } // namespace uiCore 00067 00068 namespace rtVTK 00069 { 00070 00071 class MainWindow; 00072 00073 } // namespace rtVTK 00074 00075 00076 extern "C" 00077 { 00078 // NOTE(cpg) - "void close(void*)" conflicts with "int close(int)" in 00079 // unistd.h on Linux, so call function "closer" instead... 00080 // bleh! 00081 00082 DECLSPEC extern const char* name; 00083 DECLSPEC extern const bool requiresTab; 00084 00085 DECLSPEC void* create( rtVTK::MainWindow *const, 00086 const uiCore::Camera&, 00087 const Core::Mesh&, 00088 QWidget*); 00089 // QGridLayout*); 00090 DECLSPEC void init(void*); 00091 DECLSPEC void resize(void*, uint, uint); 00092 DECLSPEC void render(void*); 00093 DECLSPEC void closer(void*); 00094 DECLSPEC void idle(void*); 00095 DECLSPEC bool traceRay(void*,int,int); 00096 00097 } // extern "C" 00098 00099 #endif // plugins_PluginInterface_h