+/*******************************************************************************\r
+ * Copyright (c) 2012, 2013 Association for Decentralized Information Management in\r
+ * Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
package org.simantics.g3d.csg.scenegraph2;\r
\r
import org.jcae.opencascade.jni.BRepBuilderAPI_MakeEdge;\r
@RelatedSetValue(CSG.URIs.HasMinorRadius)\r
@SetPropertyValue(CSG.URIs.HasMinorRadius)\r
public void setR1(double r1) {\r
+ if (this.r1 == r1)\r
+ return;\r
this.r1 = r1;\r
firePropertyChanged(CSG.URIs.HasMinorRadius);\r
}\r
@RelatedSetValue(CSG.URIs.HasMajorRadius)\r
@SetPropertyValue(CSG.URIs.HasMajorRadius)\r
public void setR2(double r2) {\r
+ if (this.r2 == r2)\r
+ return;\r
this.r2 = r2;\r
firePropertyChanged(CSG.URIs.HasMajorRadius);\r
}\r
@RelatedSetValue(CSG.URIs.HasHeight)\r
@SetPropertyValue(CSG.URIs.HasHeight)\r
public void setH(double h) {\r
+ if (this.h == h)\r
+ return;\r
this.h = h;\r
firePropertyChanged(CSG.URIs.HasHeight);\r
}\r