Commit 29347067 authored by Jan Möbius's avatar Jan Möbius

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4919 383ad7c9-94d9-4d36-a494-682f7c89f535
parents
#== SYSTEM PART -- DON'T TOUCH ==============================================
include $(ACGMAKE)/Config
#==============================================================================
SUBDIRS = $(call find-subdirs)
PACKAGES := qt4 glut glew opengl x11 math ACG2 openmesh2
PROJ_LIBS =
MODULES := uic4 moc4 cxx
#== SYSTEM PART -- DON'T TOUCH ==============================================
include $(ACGMAKE)/Rules
#==============================================================================
################################################################################
#
################################################################################
include( $$TOPDIR/qmake/all.include )
Plugin()
DIRECTORIES = .
# Input
HEADERS += $$getFilesFromDir($$DIRECTORIES,*.hh)
SOURCES += $$getFilesFromDir($$DIRECTORIES,*.cc)
FORMS += $$getFilesFromDir($$DIRECTORIES,*.ui)
################################################################################
This diff is collapsed.
#ifndef TOPOLOGYPLUGIN_HH
#define TOPOLOGYPLUGIN_HH
#include <QObject>
#include <QMenuBar>
#include <QGroupBox>
#include <OpenFlipper/BasePlugin/BaseInterface.hh>
#include <OpenFlipper/BasePlugin/MouseInterface.hh>
#include <OpenFlipper/BasePlugin/KeyInterface.hh>
#include <OpenFlipper/BasePlugin/LoggingInterface.hh>
#include <OpenFlipper/BasePlugin/PickingInterface.hh>
#include <OpenFlipper/BasePlugin/BackupInterface.hh>
#include <OpenFlipper/BasePlugin/ContextMenuInterface.hh>
#include <OpenFlipper/common/Types.hh>
#include <ObjectTypes/PolyMesh/PolyMesh.hh>
#include <ObjectTypes/TriangleMesh/TriangleMesh.hh>
class TopologyPlugin : public QObject, BaseInterface , MouseInterface, KeyInterface, PickingInterface, BackupInterface, LoggingInterface, ContextMenuInterface
{
Q_OBJECT
Q_INTERFACES(BaseInterface)
Q_INTERFACES(MouseInterface)
Q_INTERFACES(KeyInterface)
Q_INTERFACES(PickingInterface)
Q_INTERFACES(BackupInterface)
Q_INTERFACES(LoggingInterface)
Q_INTERFACES(ContextMenuInterface)
signals:
void updateView();
void updatedObject(int);
void addHiddenPickMode( const std::string _mode );
void createBackup( int _id , QString _name );
void log(Logtype _type, QString _message);
void log(QString _message);
void addContextMenu(QMenu* _menu ,DataType _objectType , ContextMenuType _type );
private slots:
void slotMouseEvent( QMouseEvent* _event );
void slotKeyEvent( QKeyEvent* /*_event*/ ){};
void pluginsInitialized();
void contextMenuTriggered(QAction* _action);
void slotUpdateContextMenu( int _objectId );
public :
~TopologyPlugin() {};
QString name() { return (QString("Topology")); };
QString description( ) { return (QString("Allows to control Mesh topology (Edge Flips,...)")); };
private :
/// clear the add face vector
void clearAddFaceVertices();
/// Add a face
void add_face(QMouseEvent* _event);
/// Split a face at the current hit point
void split_face(QMouseEvent* _event);
/// Delete a face at the current hit point
void delete_face(QMouseEvent* _event);
/// Flip edge
void flip_edge(QMouseEvent* _event);
/// Collapse edge
void collapse_edge(QMouseEvent* _event);
/// Split Edge
void split_edge(QMouseEvent* _event);
private:
std::vector< std::pair<int,int> > addFaceVertices_;
QMenu* trimeshMenu_;
QMenu* polymeshMenu_;
public slots:
QString version() { return QString("1.0"); };
};
#endif //TOPOLOGYPLUGIN_HH
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9,00"
Name="Plugin-Topology"
ProjectGUID="{57630D5C-782E-4EC3-86DD-8FB5C0AD4B6D}"
RootNamespace="PluginTopology"
TargetFrameworkVersion="131072"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)Plugins\$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
CommandLine=""
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="c:\glut\include;c:\glew\include;&quot;$(SolutionDir)\..&quot;;&quot;$(SolutionDir)&quot;;&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include\QtGui&quot;;&quot;$(QTDIR)\include\QtNetwork&quot;;&quot;$(QTDIR)\include\QtOpenGL&quot;;&quot;$(QTDIR)\mkspecs\win32-msvc.net&quot;"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;QT_GUI_LIB;QT_CORE_LIB;_USE_MATH_DEFINES;INCLUDE_TEMPLATES;NOMINMAX"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
WarningLevel="3"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="glew32.lib QtNetworkd4.lib QtCored4.lib QtGuid4.lib QtOpenGLd4.lib qtmaind.lib glut32.lib"
AdditionalLibraryDirectories="&quot;$(SolutionDir)/lib&quot;;C:\glut\lib;&quot;$(SolutionDir)\Debug&quot;;C:\glew\lib;&quot;$(QTDIR)/lib&quot;"
GenerateManifest="false"
GenerateDebugInformation="true"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
ImportLibrary=""
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
EmbedManifest="false"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)Plugins\$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="2"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
CommandLine=""
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="c:\glut\include;c:\glew\include;&quot;$(SolutionDir)\..&quot;;&quot;$(SolutionDir)&quot;;&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include\QtGui&quot;;&quot;$(QTDIR)\include\QtNetwork&quot;;&quot;$(QTDIR)\include\QtOpenGL&quot;;&quot;$(QTDIR)\mkspecs\win32-msvc.net&quot;"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PLUGINDATACONTROL_EXPORTS;_USE_MATH_DEFINES;INCLUDE_TEMPLATES;NOMINMAX;QT_NO_DEBUG"
RuntimeLibrary="2"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="glew32.lib QtNetwork4.lib QtCore4.lib QtGui4.lib QtOpenGL4.lib qtmain.lib glut32.lib"
AdditionalLibraryDirectories="&quot;$(SolutionDir)/lib&quot;;C:\glut\lib;&quot;$(SolutionDir)\Debug&quot;;C:\glew\lib;&quot;$(QTDIR)/lib&quot;"
GenerateManifest="false"
GenerateDebugInformation="true"
OptimizeReferences="2"
EnableCOMDATFolding="2"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
ImportLibrary=""
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
EmbedManifest="false"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath="..\..\Plugin-Topology\TopologyPlugin.cc"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath="..\..\Plugin-Topology\TopologyPlugin.hh"
FileType="2"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="Moc&apos;ing TopologyPlugin.hh"
CommandLine="$(QTDIR)\bin\moc.exe ..\..\Plugin-Topology\TopologyPlugin.hh -I ..\..\ -o tmp\moc\moc_TopologyPlugin.cpp&#x0D;&#x0A;"
AdditionalDependencies="$(QTDIR)\bin\moc.exe"
Outputs="tmp\moc\moc_TopologyPlugin.cpp"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="Moc&apos;ing TopologyPlugin.hh"
CommandLine="$(QTDIR)\bin\moc.exe ..\..\Plugin-Topology\TopologyPlugin.hh -I ..\..\ -o tmp\moc\moc_TopologyPlugin.cpp&#x0D;&#x0A;"
AdditionalDependencies="$(QTDIR)\bin\moc.exe"
Outputs="tmp\moc\moc_TopologyPlugin.cpp"
/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
<Filter
Name="Generated MOC Files"
>
<File
RelativePath=".\tmp\moc\moc_TopologyPlugin.cpp"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
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