Commit 614060e0 authored by Jan Möbius's avatar Jan Möbius

Missing files



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12857 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6f18a155
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org *
* *
*--------------------------------------------------------------------------- *
* This file is part of OpenFlipper. *
* *
* OpenFlipper is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of *
* the License, or (at your option) any later version with the *
* following exceptions: *
* *
* If other files instantiate templates or use macros *
* or inline functions from this file, or you compile this file and *
* link it with other files to produce an executable, this file does *
* not by itself cause the resulting executable to be covered by the *
* GNU Lesser General Public License. This exception does not however *
* invalidate any other reasons why the executable file might be *
* covered by the GNU Lesser General Public License. *
* *
* OpenFlipper is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU LesserGeneral Public *
* License along with OpenFlipper. If not, *
* see <http://www.gnu.org/licenses/>. *
* *
\*===========================================================================*/
/*===========================================================================*\
* *
* $Revision: 10745 $ *
* $LastChangedBy: moebius $ *
* $Date: 2011-01-26 10:23:50 +0100 (Mi, 26 Jan 2011) $ *
* *
\*===========================================================================*/
#include "DecimaterInfo.hh"
DecimaterInfo::DecimaterInfo() :
normalDeviation_(false),
distance_(false),
roundness_(false),
normalDeviation_value_(0),
distance_value_(0),
roundness_value_(0) {}
DecimaterInfo::~DecimaterInfo() {
}
PerObjectData* DecimaterInfo::copyPerObjectData() {
DecimaterInfo* di_copy = new DecimaterInfo(*this);
return di_copy;
}
//-----------------------------------------------------------------------------------
void DecimaterInfo::setDistanceConstraint( double _value ){
distance_ = true;
distance_value_ = _value;
}
//-----------------------------------------------------------------------------------
void DecimaterInfo::setNormalDeviationConstraint( int _value ){
normalDeviation_ = true;
normalDeviation_value_ = _value;
}
//-----------------------------------------------------------------------------------
void DecimaterInfo::setRoundnessConstraint( double _value ){
roundness_ = true;
roundness_value_ = _value;
}
//-----------------------------------------------------------------------------------
void DecimaterInfo::removeDistanceConstraint(){
if ( distance_ ) {
distance_ = false;
distance_value_ = 0;
}
}
//-----------------------------------------------------------------------------------
void DecimaterInfo::removeNormalDeviationConstraint(){
if ( normalDeviation_ ) {
normalDeviation_ = false;
normalDeviation_value_ = 0;
}
}
//-----------------------------------------------------------------------------------
void DecimaterInfo::removeRoundnessConstraint(){
if ( roundness_ ) {
roundness_ = false;
roundness_value_ = 0;
}
}
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org *
* *
*--------------------------------------------------------------------------- *
* This file is part of OpenFlipper. *
* *
* OpenFlipper is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of *
* the License, or (at your option) any later version with the *
* following exceptions: *
* *
* If other files instantiate templates or use macros *
* or inline functions from this file, or you compile this file and *
* link it with other files to produce an executable, this file does *
* not by itself cause the resulting executable to be covered by the *
* GNU Lesser General Public License. This exception does not however *
* invalidate any other reasons why the executable file might be *
* covered by the GNU Lesser General Public License. *
* *
* OpenFlipper is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU LesserGeneral Public *
* License along with OpenFlipper. If not, *
* see <http://www.gnu.org/licenses/>. *
* *
\*===========================================================================*/
/*===========================================================================*\
* *
* $Revision: 10745 $ *
* $LastChangedBy: moebius $ *
* $Date: 2011-01-26 10:23:50 +0100 (Mi, 26 Jan 2011) $ *
* *
\*===========================================================================*/
#include <OpenFlipper/common/perObjectData.hh>
#include <OpenFlipper/common/Types.hh>
class DecimaterInfo : public PerObjectData
{
public :
//Konstruktor
DecimaterInfo();
//Destruktor
~DecimaterInfo();
// Copy function
PerObjectData* copyPerObjectData();
void setDistanceConstraint( double _value );
void setNormalDeviationConstraint( int _value );
void setRoundnessConstraint( double _value );
void removeDistanceConstraint();
void removeNormalDeviationConstraint();
void removeRoundnessConstraint();
// Get/Set methods
bool normalDeviation() { return normalDeviation_; }
bool distance() { return distance_; }
bool roundness() { return roundness_; }
int normalDeviationValue() { return normalDeviation_value_; }
double distanceValue() { return distance_value_; }
double roundnessValue() { return roundness_value_; }
private :
bool normalDeviation_;
bool distance_;
bool roundness_;
int normalDeviation_value_;
double distance_value_;
double roundness_value_;
};
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