Commit 0598efba authored by Sylvain Thery's avatar Sylvain Thery

forgotten new files in thirdparty

parent 45cfdc80
This is libQGLViewer version 2.4.0. Packaged on May 28, 2013.
The complete change log is available in doc/changeLog.html
The latest releases and changeLog are available at:
http://www.libqglviewer.com/changeLog.html
libQGLViewer GPL Exception
==========================
Additional rights granted beyond the GPL (the "Exception").
As a special exception to the terms and conditions of GPL version 2.0 or
GPL version 3.0, Gilles Debunne hereby grants you the rights described below,
provided you agree to the terms and conditions in this Exception, including
its obligations and restrictions on use.
Nothing in this Exception gives you or anyone else the right to change the
licensing terms of the libQGLViewer Open Source Edition.
Below, "Licensed Software" shall refer to the software licensed under the GPL
version 2.0 or GPL version 3.0 and this exception.
1) The right to use Open Source Licenses not compatible with the GNU
General Public License version 2.0 or GNU General Public License version
3.0: You may link software (hereafter referred to as "Your Software")
against the Licensed Software and/or distribute binaries of Your Software
linked against the Licensed Software, provided that:
A) Your Software is licensed under one of the following licenses:
License name Version(s)/Copyright Date
Academic Free License 2.0, 2.1, 3.0
Apache Software License 1.0 or 1.1
Apache License 2.0
Apple Public Source License 2.0
BSD license "July 22 1999"
Common Development and Distribution
License (CDDL) 1.0
Common Public License 1.0
Eclipse Public License 1.0
GNU Library or "Lesser"
General Public License (LGPL) 2.0, 2.1, 3.0
Jabber Open Source License 1.0
Mozilla Public License (MPL) 1.0 or 1.1
Open Software License 2.0, 3.0
PHP License 3.0
Python Software Foundation License 2.1.1
Q Public License 1.0
Sleepycat License "1999"
W3C License "2001"
X11 License X11R6.6
Zope Public License 2.0, 2.1
and
B) You must, on request, make a complete package including the complete
source code of Your Software (as defined in the GNU General Public
License version 2, section 3, but excluding anything excluded by the
special exception in the same section) available to Gilles Debunne
under the same license as that granted to other recipients of the
source code of Your Software.
and
C) Your or any other contributor's rights to:
i) distribute the source code of Your Software to anyone for
any purpose;
and
ii) publicly discuss the development project for Your
Software and its goals in any form and in any forum
are not prohibited by any legal instrument, including but not limited to
contracts, non-disclosure agreements, and employee contracts.
2) The right to link non-Open Source applications with versions of the
Licensed Software: You may link applications with versions of the Licensed
Software, provided that such applications have been developed and are deployed
in accordance with the terms and conditions of the libQGLViewer Commercial
License Agreement.
l i b Q G L V i e w e r I n s t a l l a t i o n
libQGLViewer requires the Qt library, available from Nokia.
Binary packages are available for different architectures.
If you want to compile the library from its sources:
- On UNIX platforms, simply type (see doc/installUnix.html for details):
> cd QGLViewer
> qmake
> make
> make install [optional]
- For Windows installation, see doc/installWindows.html.
See doc/compilation.html for details on compiling programs that use libQGLViewer.
This diff is collapsed.
# in order to be able to include generated files (ui and moc)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
FIND_PACKAGE(Qt REQUIRED)
INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS})
FIND_PACKAGE(OpenGL REQUIRED)
set(HEADER_FILES
qglviewer.h
camera.h
manipulatedFrame.h
manipulatedCameraFrame.h
frame.h
keyFrameInterpolator.h
)
set(SOURCE_FILES
qglviewer.cpp
camera.cpp
manipulatedFrame.cpp
manipulatedCameraFrame.cpp
frame.cpp
saveSnapshot.cpp
constraint.cpp
keyFrameInterpolator.cpp
mouseGrabber.cpp
quaternion.cpp
vec.cpp
VRender/BackFaceCullingOptimizer.cpp
VRender/EPSExporter.cpp
VRender/FIGExporter.cpp
VRender/NVector3.cpp
VRender/Primitive.cpp
VRender/TopologicalSortMethod.cpp
VRender/Vector3.cpp
VRender/VRender.cpp
VRender/BSPSortMethod.cpp
VRender/Exporter.cpp
VRender/gpc.cpp
VRender/ParserGL.cpp
VRender/PrimitivePositioning.cpp
VRender/Vector2.cpp
VRender/VisibilityOptimizer.cpp
)
set(UI_FILES
ImageInterface.ui
VRenderInterface.ui
)
QT4_WRAP_CPP(MOC_FILES ${HEADER_FILES})
QT4_WRAP_UI(FORM_FILES ${UI_FILES})
# make mocced header / form files path from absolute to relative
ToRelativePath(MOC_FILES "${CMAKE_CURRENT_SOURCE_DIR}" "${MOC_FILES}")
ToRelativePath(MOC_UI_FILES "${CMAKE_CURRENT_SOURCE_DIR}" "${MOC_UI_FILES}")
ToRelativePath(FORM_FILES "${CMAKE_CURRENT_SOURCE_DIR}" "${FORM_FILES}")
# these header files do not need MOCcing
list(APPEND HEADER_FILES
config.h
constraint.h
domUtils.h
mouseGrabber.h
quaternion.h
vec.h
VRender/AxisAlignedBox.h
VRender/Exporter.h
VRender/gpc.h
VRender/NVector3.h
VRender/Optimizer.h
VRender/ParserGL.h
VRender/Primitive.h
VRender/PrimitivePositioning.h
VRender/SortMethod.h
VRender/Types.h
VRender/Vector2.h
VRender/Vector3.h
VRender/VRender.h
)
set(MOC_FILES_GROUP "Generated")
set(MOC_UI_FILES_GROUP "Generated")
set(FORM_FILES_GROUP "Generated")
include_directories("..")
add_library(QGLViewer SHARED ${HEADER_FILES} ${MOC_FILES} ${MOC_UI_FILES} ${FORM_FILES} ${SOURCE_FILES})
target_link_libraries(QGLViewer ${QT_LIBRARIES} ${OPENGL_LIBRARY})
# The code must be relocatable if we want to link a shared library against it
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU"
OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_definitions("-fPIC")
endif()
This diff is collapsed.
#include "/home/nesme_local/dev/SofaTest/extlibs/libQGLViewer-2.4.0/QGLViewer/ui_ImageInterface.h"
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ImageInterface</class>
<widget class="QDialog" name="ImageInterface">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>298</width>
<height>204</height>
</rect>
</property>
<property name="windowTitle">
<string>Image settings</string>
</property>
<layout class="QVBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>9</number>
</property>
<item>
<layout class="QHBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Width</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="imgWidth">
<property name="toolTip">
<string>Width of the image (in pixels)</string>
</property>
<property name="suffix">
<string> px</string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>32000</number>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>22</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Height</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="imgHeight">
<property name="toolTip">
<string>Height of the image (in pixels)</string>
</property>
<property name="suffix">
<string> px</string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>32000</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>Image quality</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="imgQuality">
<property name="toolTip">
<string>Between 0 (smallest files) and 100 (highest quality)</string>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>100</number>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Oversampling</string>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="oversampling">
<property name="toolTip">
<string>Antialiases image (when larger then 1.0)</string>
</property>
<property name="prefix">
<string>x </string>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>0.100000000000000</double>
</property>
<property name="maximum">
<double>64.000000000000000</double>
</property>
<property name="singleStep">
<double>1.000000000000000</double>
</property>
<property name="value">
<double>1.000000000000000</double>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="whiteBackground">
<property name="toolTip">
<string>Use white as background color</string>
</property>
<property name="text">
<string>Use white background</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="expandFrustum">
<property name="toolTip">
<string>When image aspect ratio differs from viewer's one, expand frustum as needed. Fits inside current frustum otherwise.</string>
</property>
<property name="text">
<string>Expand frustum if needed</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>131</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okButton">
<property name="text">
<string>OK</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelButton">
<property name="text">
<string>Cancel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>okButton</sender>
<signal>clicked()</signal>
<receiver>ImageInterface</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>135</x>
<y>184</y>
</hint>
<hint type="destinationlabel">
<x>96</x>
<y>254</y>
</hint>
</hints>
</connection>
<connection>
<sender>cancelButton</sender>
<signal>clicked()</signal>
<receiver>ImageInterface</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>226</x>
<y>184</y>
</hint>
<hint type="destinationlabel">
<x>179</x>
<y>282</y>
</hint>
</hints>
</connection>
</connections>
</ui>
# l i b Q G L V i e w e r
# C o m p i l a t i o n c o n f i g u r a t i o n
# Run "qmake; make; make install" to compile and install the library on Unix systems.
# Optional arguments can tune install paths (as in "qmake PREFIX=$HOME"). See doc/download.html for details.
TEMPLATE = lib
TARGET = QGLViewer
VERSION = 2.6.1
CONFIG *= qt opengl warn_on shared thread create_prl rtti no_keywords
QGL_HEADERS = qglviewer.h \
camera.h \
manipulatedFrame.h \
manipulatedCameraFrame.h \
frame.h \
constraint.h \
keyFrameInterpolator.h \
mouseGrabber.h \
quaternion.h \
vec.h \
domUtils.h \
config.h
SOURCES = qglviewer.cpp \
camera.cpp \
manipulatedFrame.cpp \
manipulatedCameraFrame.cpp \
frame.cpp \
saveSnapshot.cpp \
constraint.cpp \
keyFrameInterpolator.cpp \
mouseGrabber.cpp \
quaternion.cpp \
vec.cpp
HEADERS *= $${QGL_HEADERS}
DISTFILES *= qglviewer-icon.xpm
TRANSLATIONS = qglviewer_fr.ts
QT *= xml opengl
contains ( $$[QT_VERSION], "^5.*" ) {
QT *= gui widgets
}
!isEmpty( QGLVIEWER_STATIC ) {
CONFIG *= staticlib
}
# -----------------------------------
# -- I m a g e I n t e r f a c e --
# -----------------------------------
FORMS *= ImageInterface.ui
# ---------------------------------------------
# -- V e c t o r i a l R e n d e r i n g --
# ---------------------------------------------
# In case of compilation troubles with vectorial rendering, uncomment this line
# DEFINES *= NO_VECTORIAL_RENDER
contains( DEFINES, NO_VECTORIAL_RENDER ) {
message( Vectorial rendering disabled )
} else {
FORMS *= VRenderInterface.ui
SOURCES *= \
VRender/BackFaceCullingOptimizer.cpp \
VRender/BSPSortMethod.cpp \
VRender/EPSExporter.cpp \
VRender/Exporter.cpp \
VRender/FIGExporter.cpp \
VRender/gpc.cpp \
VRender/ParserGL.cpp \
VRender/Primitive.cpp \
VRender/PrimitivePositioning.cpp \
VRender/TopologicalSortMethod.cpp \
VRender/VisibilityOptimizer.cpp \
VRender/Vector2.cpp \
VRender/Vector3.cpp \
VRender/NVector3.cpp \
VRender/VRender.cpp
VRENDER_HEADERS = \
VRender/AxisAlignedBox.h \
VRender/Exporter.h \
VRender/gpc.h \
VRender/NVector3.h \
VRender/Optimizer.h \
VRender/ParserGL.h \
VRender/Primitive.h \
VRender/PrimitivePositioning.h \
VRender/SortMethod.h \
VRender/Types.h \
VRender/Vector2.h \
VRender/Vector3.h \
VRender/VRender.h
HEADERS *= $${VRENDER_HEADERS}
}
# ---------------
# -- U n i x --
# ---------------
unix {
CONFIG -= debug debug_and_release
CONFIG *= release
# INCLUDE_DIR and LIB_DIR specify where to install the include files and the library.
# Use qmake INCLUDE_DIR=... LIB_DIR=... , or qmake PREFIX=... to customize your installation.
HOME_DIR = $$system(cd;pwd)
isEmpty( PREFIX ) {
PREFIX_=/usr
} else {
PREFIX_=$${PREFIX}
}
isEmpty( LIB_DIR ) {
LIB_DIR_ = $${PREFIX_}/lib
} else {
LIB_DIR_ = $${LIB_DIR}
}
isEmpty( INCLUDE_DIR ) {
INCLUDE_DIR_ = $${PREFIX_}/include
} else {
INCLUDE_DIR_ = $${INCLUDE_DIR}
}
isEmpty( DOC_DIR ) {
macx|darwin-g++ {
isEmpty( PREFIX ) {
DOC_DIR = $${HOME_DIR}/Library/Developer/Shared/Documentation/QGLViewer
} else {
DOC_DIR = $${PREFIX}/Shared/Documentation/QGLViewer
}
} else {
DOC_DIR = $${PREFIX_}/share/doc/QGLViewer
}
}
# GLUT for Unix architecture
!isEmpty( USE_GLUT ) {
QMAKE_LIBS_OPENGL *= -lglut
}
macx|darwin-g++ {
# GLU is part of the OpenGL framework
} else {
QMAKE_LIBS_OPENGL *= -lGLU
}
MOC_DIR = .moc
OBJECTS_DIR = .obj
# Adds a -P option so that "make install" as root creates files owned by root and links are preserved.
# This is not a standard option, and it may have to be removed on old Unix flavors.
!hpux {
QMAKE_COPY_FILE = $${QMAKE_COPY_FILE} -P
}
# Make much smaller libraries (and packages) by removing debugging informations
QMAKE_CFLAGS_RELEASE -= -g
QMAKE_CXXFLAGS_RELEASE -= -g
# install header