Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
Plugin-PropertyVis
Commits
c0435c9f
Commit
c0435c9f
authored
Dec 20, 2018
by
Jan Möbius
Browse files
Added missing cc files
parent
889d30ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
OpenMesh/OMPropertyModel.hh
View file @
c0435c9f
...
...
@@ -39,20 +39,11 @@
* *
\*===========================================================================*/
/*===========================================================================*\
* *
* $Revision$ *
* $LastChangedBy$ *
* $Date$ *
* *
\*===========================================================================*/
#ifndef OM_PROPERTY_MODEL_H
#define OM_PROPERTY_MODEL_H
#pragma once
#include
"Models/SingleObjectPropertyModel.hh"
#include
"OMPropertyModelSubclass.hh"
#include
"OMPropertyVisualizer.hh"
#include
"Widgets/LoadSaveWidget.hh"
#include
"Widgets/PickWidget.hh"
...
...
@@ -60,36 +51,6 @@
class
PropertyVisPlugin
;
/*! \class OMPropertyModelSubclass
* \brief Added for signal/slot support.
*
* This class adds signal/slot support for OMPropertyModelSubclass. OMPropertyModel is
* then derived from this class to make use of those signals and slots. This needs
* to be done because "Sorry, Qt does not support templates that contain signals,
* slots or Q_OBJECT"
* http://doc.trolltech.com/qq/qq15-academic.html
*/
class
OMPropertyModelSubclass
:
public
SingleObjectPropertyModel
{
Q_OBJECT
public:
explicit
OMPropertyModelSubclass
(
QObject
*
parent
=
0
)
:
SingleObjectPropertyModel
(
parent
)
{
}
public
slots
:
virtual
void
slotCombine
(){
combine
();
}
virtual
void
slotSaveProperty
(){
saveProperty
();
}
virtual
void
slotLoadProperty
(){
loadProperty
();
}
virtual
void
slotPickProperty
(){
pickProperty
();
}
private:
virtual
void
combine
(){}
virtual
void
saveProperty
(){}
virtual
void
pickProperty
(){}
};
template
<
typename
MeshT
>
class
OMPropertyModel
:
public
OMPropertyModelSubclass
{
...
...
@@ -230,4 +191,3 @@ template <typename T> const TypeInfoWrapper OMPropertyModel<T>::proptype_SkinWei
#endif
#endif
/* OM_PROPERTY_MODEL_H */
OpenMesh/OMPropertyModelSubclass.cc
0 → 100644
View file @
c0435c9f
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (c) 2001-2015, RWTH-Aachen University *
* Department of Computer Graphics and Multimedia *
* All rights reserved. *
* www.openflipper.org *
* *
*---------------------------------------------------------------------------*
* This file is part of OpenFlipper. *
*---------------------------------------------------------------------------*
* *
* Redistribution and use in source and binary forms, with or without *
* modification, are permitted provided that the following conditions *
* are met: *
* *
* 1. Redistributions of source code must retain the above copyright notice, *
* this list of conditions and the following disclaimer. *
* *
* 2. Redistributions in binary form must reproduce the above copyright *
* notice, this list of conditions and the following disclaimer in the *
* documentation and/or other materials provided with the distribution. *
* *
* 3. Neither the name of the copyright holder nor the names of its *
* contributors may be used to endorse or promote products derived from *
* this software without specific prior written permission. *
* *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER *
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, *
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR *
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF *
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING *
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
* *
\*===========================================================================*/
#include
"OMPropertyModelSubclass.hh"
OMPropertyModelSubclass
::
OMPropertyModelSubclass
(
QObject
*
parent
)
:
SingleObjectPropertyModel
(
parent
)
{
}
void
OMPropertyModelSubclass
::
slotCombine
(){
combine
();
}
void
OMPropertyModelSubclass
::
slotSaveProperty
(){
saveProperty
();
}
void
OMPropertyModelSubclass
::
slotLoadProperty
(){
loadProperty
();
}
void
OMPropertyModelSubclass
::
slotPickProperty
(){
pickProperty
();
}
void
OMPropertyModelSubclass
::
combine
(){}
void
OMPropertyModelSubclass
::
saveProperty
(){}
void
OMPropertyModelSubclass
::
pickProperty
(){}
OpenMesh/OMPropertyModelSubclass.hh
0 → 100644
View file @
c0435c9f
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (c) 2001-2015, RWTH-Aachen University *
* Department of Computer Graphics and Multimedia *
* All rights reserved. *
* www.openflipper.org *
* *
*---------------------------------------------------------------------------*
* This file is part of OpenFlipper. *
*---------------------------------------------------------------------------*
* *
* Redistribution and use in source and binary forms, with or without *
* modification, are permitted provided that the following conditions *
* are met: *
* *
* 1. Redistributions of source code must retain the above copyright notice, *
* this list of conditions and the following disclaimer. *
* *
* 2. Redistributions in binary form must reproduce the above copyright *
* notice, this list of conditions and the following disclaimer in the *
* documentation and/or other materials provided with the distribution. *
* *
* 3. Neither the name of the copyright holder nor the names of its *
* contributors may be used to endorse or promote products derived from *
* this software without specific prior written permission. *
* *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER *
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, *
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR *
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF *
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING *
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
* *
\*===========================================================================*/
#pragma once
#include
"Models/SingleObjectPropertyModel.hh"
/*! \class OMPropertyModelSubclass
* \brief Added for signal/slot support.
*
* This class adds signal/slot support for OMPropertyModelSubclass. OMPropertyModel is
* then derived from this class to make use of those signals and slots. This needs
* to be done because "Sorry, Qt does not support templates that contain signals,
* slots or Q_OBJECT"
* http://doc.trolltech.com/qq/qq15-academic.html
*/
class
OMPropertyModelSubclass
:
public
SingleObjectPropertyModel
{
Q_OBJECT
public:
explicit
OMPropertyModelSubclass
(
QObject
*
parent
=
0
);
public
slots
:
virtual
void
slotCombine
();
virtual
void
slotSaveProperty
();
virtual
void
slotLoadProperty
();
virtual
void
slotPickProperty
();
private:
virtual
void
combine
();
virtual
void
saveProperty
();
virtual
void
pickProperty
();
};
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment