+/*******************************************************************************\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.TopoDS_Shape;\r
@RelatedSetValue(CSG.URIs.HasRadius)\r
@SetPropertyValue(CSG.URIs.HasRadius)\r
public void setR(double r) {\r
+ if (this.r == r)\r
+ return;\r
this.r = r;\r
firePropertyChanged(CSG.URIs.HasRadius);\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
public void setN(int n) {\r
if (n < 3)\r
n = 3;\r
+ if (this.n == n)\r
+ return;\r
this.n = n;\r
firePropertyChanged(CSG.URIs.HasCorners);\r
}\r